aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexSm <alex@ydb.tech>2024-10-07 14:54:01 +0200
committerGitHub <noreply@github.com>2024-10-07 19:54:01 +0700
commit13d88b211a6f571dbeeb88e594b9b1e63ff368f1 (patch)
tree4994538bb30b2d9ae6c077be5a795e473677c463
parent605e422002e79b6a3bcfc9d161ee4647d6fd4ab7 (diff)
downloadydb-13d88b211a6f571dbeeb88e594b9b1e63ff368f1.tar.gz
build: refresh Embedded UI (v6.23.1) (#10158)
Co-authored-by: artemmufazalov <artemmufazalov@users.noreply.github.com>
-rw-r--r--ydb/core/viewer/monitoring/asset-manifest.json36
-rw-r--r--ydb/core/viewer/monitoring/index.html2
-rw-r--r--ydb/core/viewer/monitoring/static/css/2283.810c7ec7.chunk.css1
-rw-r--r--ydb/core/viewer/monitoring/static/css/2775.331d1970.chunk.css1
-rw-r--r--ydb/core/viewer/monitoring/static/css/3862.f9d9bfe9.chunk.css1
-rw-r--r--ydb/core/viewer/monitoring/static/css/5293.28efb33b.chunk.css1
-rw-r--r--ydb/core/viewer/monitoring/static/css/5616.346fc972.chunk.css1
-rw-r--r--ydb/core/viewer/monitoring/static/css/6123.8f81c527.chunk.css1
-rw-r--r--ydb/core/viewer/monitoring/static/css/6194.566eff0a.chunk.css1
-rw-r--r--ydb/core/viewer/monitoring/static/css/7074.c6e4f322.chunk.css1
-rw-r--r--ydb/core/viewer/monitoring/static/css/7963.dd2b9fe2.chunk.css (renamed from ydb/core/viewer/monitoring/static/css/5384.3206aeb6.chunk.css)2
-rw-r--r--ydb/core/viewer/monitoring/static/js/1878.b8595333.chunk.js (renamed from ydb/core/viewer/monitoring/static/js/1878.bfc449c6.chunk.js)2
-rw-r--r--ydb/core/viewer/monitoring/static/js/2244.a7bd228d.chunk.js (renamed from ydb/core/viewer/monitoring/static/js/2244.54ce68fe.chunk.js)2
-rw-r--r--ydb/core/viewer/monitoring/static/js/2775.ae79e944.chunk.js1
-rw-r--r--ydb/core/viewer/monitoring/static/js/3862.041343ca.chunk.js (renamed from ydb/core/viewer/monitoring/static/js/2283.6b21fbf1.chunk.js)2
-rw-r--r--ydb/core/viewer/monitoring/static/js/4263.183a56ca.chunk.js (renamed from ydb/core/viewer/monitoring/static/js/4263.38b7ba04.chunk.js)2
-rw-r--r--ydb/core/viewer/monitoring/static/js/5293.84db9400.chunk.js1
-rw-r--r--ydb/core/viewer/monitoring/static/js/5410.5b33035f.chunk.js (renamed from ydb/core/viewer/monitoring/static/js/5410.ff2baaff.chunk.js)2
-rw-r--r--ydb/core/viewer/monitoring/static/js/6123.bcc7dc27.chunk.js1
-rw-r--r--ydb/core/viewer/monitoring/static/js/6194.f467f444.chunk.js1
-rw-r--r--ydb/core/viewer/monitoring/static/js/6382.7ce31b00.chunk.js1
-rw-r--r--ydb/core/viewer/monitoring/static/js/6581.043e40e7.chunk.js1
-rw-r--r--ydb/core/viewer/monitoring/static/js/7963.b08b6343.chunk.js (renamed from ydb/core/viewer/monitoring/static/js/5384.7591e911.chunk.js)2
-rw-r--r--ydb/core/viewer/monitoring/static/js/9610.5ed57d9d.chunk.js1
-rw-r--r--ydb/core/viewer/monitoring/static/js/9854.4a10d07f.chunk.js1
-rw-r--r--ydb/core/viewer/monitoring/static/js/9870.f57e1929.chunk.js (renamed from ydb/core/viewer/monitoring/static/js/9870.822da0ba.chunk.js)2
-rw-r--r--ydb/core/viewer/monitoring/static/js/main.5702199d.js2
-rw-r--r--ydb/core/viewer/monitoring/static/js/main.5702199d.js.LICENSE.txt (renamed from ydb/core/viewer/monitoring/static/js/main.a4a734f7.js.LICENSE.txt)0
-rw-r--r--ydb/core/viewer/monitoring/static/js/main.a4a734f7.js2
-rw-r--r--ydb/core/viewer/ya.make36
30 files changed, 55 insertions, 55 deletions
diff --git a/ydb/core/viewer/monitoring/asset-manifest.json b/ydb/core/viewer/monitoring/asset-manifest.json
index 0b7ec2ec3d..243d8f0e05 100644
--- a/ydb/core/viewer/monitoring/asset-manifest.json
+++ b/ydb/core/viewer/monitoring/asset-manifest.json
@@ -1,7 +1,7 @@
{
"files": {
"main.css": "./static/css/main.0bf24cd8.css",
- "main.js": "./static/js/main.a4a734f7.js",
+ "main.js": "./static/js/main.5702199d.js",
"static/js/3457.b193afe6.chunk.js": "./static/js/3457.b193afe6.chunk.js",
"static/js/6876.867b698c.chunk.js": "./static/js/6876.867b698c.chunk.js",
"static/js/2435.092e8d7f.chunk.js": "./static/js/2435.092e8d7f.chunk.js",
@@ -151,22 +151,22 @@
"static/js/3898.1fec42e6.chunk.js": "./static/js/3898.1fec42e6.chunk.js",
"static/js/1616.8a217b93.chunk.js": "./static/js/1616.8a217b93.chunk.js",
"static/js/7522.1a0f9c02.chunk.js": "./static/js/7522.1a0f9c02.chunk.js",
- "static/css/2283.810c7ec7.chunk.css": "./static/css/2283.810c7ec7.chunk.css",
- "static/js/2283.6b21fbf1.chunk.js": "./static/js/2283.6b21fbf1.chunk.js",
- "static/css/5293.28efb33b.chunk.css": "./static/css/5293.28efb33b.chunk.css",
- "static/js/5293.84db9400.chunk.js": "./static/js/5293.84db9400.chunk.js",
- "static/css/5384.3206aeb6.chunk.css": "./static/css/5384.3206aeb6.chunk.css",
- "static/js/5384.7591e911.chunk.js": "./static/js/5384.7591e911.chunk.js",
+ "static/css/3862.f9d9bfe9.chunk.css": "./static/css/3862.f9d9bfe9.chunk.css",
+ "static/js/3862.041343ca.chunk.js": "./static/js/3862.041343ca.chunk.js",
+ "static/css/6194.566eff0a.chunk.css": "./static/css/6194.566eff0a.chunk.css",
+ "static/js/6194.f467f444.chunk.js": "./static/js/6194.f467f444.chunk.js",
+ "static/css/7963.dd2b9fe2.chunk.css": "./static/css/7963.dd2b9fe2.chunk.css",
+ "static/js/7963.b08b6343.chunk.js": "./static/js/7963.b08b6343.chunk.js",
"static/css/4263.34f7edbd.chunk.css": "./static/css/4263.34f7edbd.chunk.css",
- "static/js/4263.38b7ba04.chunk.js": "./static/js/4263.38b7ba04.chunk.js",
+ "static/js/4263.183a56ca.chunk.js": "./static/js/4263.183a56ca.chunk.js",
"static/css/5410.033f4b87.chunk.css": "./static/css/5410.033f4b87.chunk.css",
- "static/js/5410.ff2baaff.chunk.js": "./static/js/5410.ff2baaff.chunk.js",
- "static/css/2775.331d1970.chunk.css": "./static/css/2775.331d1970.chunk.css",
- "static/js/2775.ae79e944.chunk.js": "./static/js/2775.ae79e944.chunk.js",
+ "static/js/5410.5b33035f.chunk.js": "./static/js/5410.5b33035f.chunk.js",
+ "static/css/6123.8f81c527.chunk.css": "./static/css/6123.8f81c527.chunk.css",
+ "static/js/6123.bcc7dc27.chunk.js": "./static/js/6123.bcc7dc27.chunk.js",
"static/css/1878.b2c94758.chunk.css": "./static/css/1878.b2c94758.chunk.css",
- "static/js/1878.bfc449c6.chunk.js": "./static/js/1878.bfc449c6.chunk.js",
+ "static/js/1878.b8595333.chunk.js": "./static/js/1878.b8595333.chunk.js",
"static/css/2244.f723033a.chunk.css": "./static/css/2244.f723033a.chunk.css",
- "static/js/2244.54ce68fe.chunk.js": "./static/js/2244.54ce68fe.chunk.js",
+ "static/js/2244.a7bd228d.chunk.js": "./static/js/2244.a7bd228d.chunk.js",
"static/css/9399.3cc21bd9.chunk.css": "./static/css/9399.3cc21bd9.chunk.css",
"static/js/9399.abafeca2.chunk.js": "./static/js/9399.abafeca2.chunk.js",
"static/js/599.c58caf58.chunk.js": "./static/js/599.c58caf58.chunk.js",
@@ -270,10 +270,10 @@
"static/js/7673.69ae8f05.chunk.js": "./static/js/7673.69ae8f05.chunk.js",
"static/js/5345.37bcf3b0.chunk.js": "./static/js/5345.37bcf3b0.chunk.js",
"static/js/5844.a6d86219.chunk.js": "./static/js/5844.a6d86219.chunk.js",
- "static/js/9610.5ed57d9d.chunk.js": "./static/js/9610.5ed57d9d.chunk.js",
- "static/js/6581.043e40e7.chunk.js": "./static/js/6581.043e40e7.chunk.js",
- "static/css/5616.346fc972.chunk.css": "./static/css/5616.346fc972.chunk.css",
- "static/js/9870.822da0ba.chunk.js": "./static/js/9870.822da0ba.chunk.js",
+ "static/js/6382.7ce31b00.chunk.js": "./static/js/6382.7ce31b00.chunk.js",
+ "static/js/9854.4a10d07f.chunk.js": "./static/js/9854.4a10d07f.chunk.js",
+ "static/css/7074.c6e4f322.chunk.css": "./static/css/7074.c6e4f322.chunk.css",
+ "static/js/9870.f57e1929.chunk.js": "./static/js/9870.f57e1929.chunk.js",
"ts.worker.js": "./ts.worker.js",
"css.worker.js": "./css.worker.js",
"html.worker.js": "./html.worker.js",
@@ -287,6 +287,6 @@
},
"entrypoints": [
"static/css/main.0bf24cd8.css",
- "static/js/main.a4a734f7.js"
+ "static/js/main.5702199d.js"
]
} \ No newline at end of file
diff --git a/ydb/core/viewer/monitoring/index.html b/ydb/core/viewer/monitoring/index.html
index 14411f9a13..00b8f21b9b 100644
--- a/ydb/core/viewer/monitoring/index.html
+++ b/ydb/core/viewer/monitoring/index.html
@@ -1 +1 @@
-<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="./static/favicon.png"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="YDB Monitoring"/><meta name="referrer" content="no-referrer-when-downgrade"/><title>YDB Monitoring</title><script>window.systemSettings={},window.userSettings={},window.web_version=!1,window.custom_backend=!1,window.meta_backend="undefined"</script><script defer="defer" src="./static/js/main.a4a734f7.js"></script><link href="./static/css/main.0bf24cd8.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html> \ No newline at end of file
+<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="./static/favicon.png"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="YDB Monitoring"/><meta name="referrer" content="no-referrer-when-downgrade"/><title>YDB Monitoring</title><script>window.systemSettings={},window.userSettings={},window.web_version=!1,window.custom_backend=!1,window.meta_backend="undefined"</script><script defer="defer" src="./static/js/main.5702199d.js"></script><link href="./static/css/main.0bf24cd8.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html> \ No newline at end of file
diff --git a/ydb/core/viewer/monitoring/static/css/2283.810c7ec7.chunk.css b/ydb/core/viewer/monitoring/static/css/2283.810c7ec7.chunk.css
deleted file mode 100644
index ea3806313f..0000000000
--- a/ydb/core/viewer/monitoring/static/css/2283.810c7ec7.chunk.css
+++ /dev/null
@@ -1 +0,0 @@
-@charset "UTF-8";.auto-refresh-control{align-items:center;display:flex;gap:var(--g-spacing-1)}.g-tooltip[class]{--g-popup-border-width:0}.g-tooltip[class]>div{animation-duration:1ms;box-shadow:0 1px 5px 0 #00000026;box-sizing:border-box;max-width:360px;padding:4px 8px}.g-tooltip__content{-webkit-box-orient:vertical;-ms-box-orient:vertical;-webkit-line-clamp:20;-moz-line-clamp:20;-ms-line-clamp:20;display:-webkit-box;overflow:hidden;text-overflow:ellipsis}.ydb-status-icon__status-color_state_green{background-color:var(--ydb-color-status-green)}.ydb-status-icon__status-color_state_yellow{background-color:var(--ydb-color-status-yellow)}.ydb-status-icon__status-color_state_blue{background-color:var(--ydb-color-status-blue)}.ydb-status-icon__status-color_state_red{background-color:var(--ydb-color-status-red)}.ydb-status-icon__status-color_state_grey{background-color:var(--ydb-color-status-grey)}.ydb-status-icon__status-color_state_orange{background-color:var(--ydb-color-status-orange)}.ydb-status-icon__status-icon_state_blue{color:var(--ydb-color-status-blue)}.ydb-status-icon__status-icon_state_yellow{color:var(--ydb-color-status-yellow)}.ydb-status-icon__status-icon_state_orange{color:var(--ydb-color-status-orange)}.ydb-status-icon__status-icon_state_red{color:var(--ydb-color-status-red)}.ydb-status-icon__status-color,.ydb-status-icon__status-icon{border-radius:3px;flex-shrink:0}.ydb-status-icon__status-color_size_xs,.ydb-status-icon__status-icon_size_xs{aspect-ratio:1;height:12px;width:12px}.ydb-status-icon__status-color_size_s,.ydb-status-icon__status-icon_size_s{aspect-ratio:1;height:16px;width:16px}.ydb-status-icon__status-color_size_m,.ydb-status-icon__status-icon_size_m{aspect-ratio:1;height:18px;width:18px}.ydb-status-icon__status-color_size_l,.ydb-status-icon__status-icon_size_l{height:24px;width:24px}.entity-status{align-items:center;display:inline-flex;font-size:var(--g-text-body-2-font-size);height:100%;line-height:var(--g-text-body-2-line-height);max-width:100%}.entity-status__icon{margin-right:var(--g-spacing-2)}.entity-status__clipboard-button{color:var(--g-color-text-secondary);display:flex;flex-shrink:0;margin-left:var(--g-spacing-2);opacity:0}.entity-status__clipboard-button:focus-visible,.entity-status__clipboard-button_visible{opacity:1}.entity-status__additional-controls{margin-left:var(--g-spacing-1)}.entity-status__label{color:var(--g-color-text-complementary);font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height);margin-right:2px}.entity-status__label_size_l{font-size:var(--g-text-header-2-font-size)}.entity-status__link{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.entity-status__link_with-left-trim{direction:rtl}.entity-status__link_with-left-trim .entity-status__name{unicode-bidi:plaintext}.entity-status__label_state_blue{color:var(--ydb-color-status-blue)}.entity-status__label_state_yellow{color:var(--ydb-color-status-yellow)}.entity-status__label_state_orange{color:var(--ydb-color-status-orange)}.entity-status__label_state_red{color:var(--ydb-color-status-red)}.ydb-resizeable-data-table{display:flex;padding-right:20px;width:max-content}.ydb-search{min-width:100px}.table-skeleton{width:100%}.table-skeleton__row{align-items:center;display:flex;height:var(--data-table-row-height)}.table-skeleton__row .g-skeleton{height:var(--g-text-body-2-line-height)}.table-skeleton__col-1{margin-right:5%;width:10%}.table-skeleton__col-2{margin-right:5%;width:7%}.table-skeleton__col-3,.table-skeleton__col-4{margin-right:5%;width:5%}.table-skeleton__col-5{width:20%}.table-skeleton__col-full{width:100%}.g-skeleton{--_--animation-from:calc(-100%*var(--g-flow-direction));--_--animation-to:calc(100%*var(--g-flow-direction));--_--gradient-deg:calc(90deg*var(--g-flow-direction));background-color:var(--g-color-base-generic);border-radius:5px;display:inline-block;overflow:hidden;position:relative;width:100%;z-index:0}.g-skeleton:after{animation:g-skeleton 1.2s ease-out infinite;background-image:linear-gradient(var(--_--gradient-deg),#0000,var(--g-color-base-generic));content:"";inset:0;position:absolute}@keyframes g-skeleton{0%{transform:translateX(var(--_--animation-from))}to{transform:translateX(var(--_--animation-to))}}.ydb-table-with-controls-layout{box-sizing:border-box;display:inline-block;min-width:100%}.ydb-table-with-controls-layout__controls-wrapper{background-color:var(--g-color-base-background);box-sizing:border-box;left:0;position:sticky;top:0;width:100%;z-index:3}.ydb-table-with-controls-layout__controls{align-items:center;background-color:var(--g-color-base-background);display:flex;gap:12px;height:62px;left:0;padding:16px 0 18px;position:sticky;top:0;width:max-content;z-index:3}.ydb-table-with-controls-layout__table{position:relative;z-index:2}.ydb-table-with-controls-layout .ydb-paginated-table__head{top:62px}.ydb-table-with-controls-layout .data-table__sticky_moving{top:62px!important}.ydb-cell-with-popover{display:flex;max-width:100%}.ydb-cell-with-popover__popover{display:inline-block;max-width:100%;overflow:hidden;text-overflow:ellipsis;vertical-align:middle;white-space:nowrap}.ydb-cell-with-popover__popover .g-popover__handler{display:inline}.developer-ui-link-button{display:none}.data-table__row:hover .developer-ui-link-button,.developer-ui-link-button_visible,.ydb-paginated-table__row:hover .developer-ui-link-button{display:inline-block}.ydb-pool-bar{border:1px solid;border-radius:1px;cursor:pointer;height:20px;margin-right:2px;position:relative;width:6px}.ydb-pool-bar__popup-content{padding:10px;width:170px}.ydb-pool-bar:last-child{margin-right:0}.ydb-pool-bar_type_normal{border-color:var(--ydb-color-status-green)}.ydb-pool-bar_type_warning{border-color:var(--ydb-color-status-yellow)}.ydb-pool-bar_type_danger{border-color:var(--ydb-color-status-red)}.ydb-pool-bar__value{bottom:0;min-height:1px;position:absolute;width:100%}.ydb-pool-bar__value_type_normal{background-color:var(--ydb-color-status-green)}.ydb-pool-bar__value_type_warning{background-color:var(--ydb-color-status-yellow)}.ydb-pool-bar__value_type_danger{background-color:var(--ydb-color-status-red)}.ydb-pools-graph{display:flex}.progress-viewer{align-items:center;background:var(--g-color-base-generic);border-radius:2px;color:var(--g-color-text-complementary);display:flex;font-size:var(--g-text-body-2-font-size);height:23px;justify-content:center;min-width:120px;overflow:hidden;padding:0 4px;position:relative;white-space:nowrap;z-index:0}.progress-viewer_theme_dark{color:var(--g-color-text-light-primary)}.progress-viewer_theme_dark .progress-viewer__line{opacity:.75}.progress-viewer_status_good{background-color:var(--g-color-base-positive-light)}.progress-viewer_status_good .progress-viewer__line{background-color:var(--ydb-color-status-green)}.progress-viewer_status_warning{background-color:var(--g-color-base-yellow-light)}.progress-viewer_status_warning .progress-viewer__line{background-color:var(--ydb-color-status-yellow)}.progress-viewer_status_danger{background-color:var(--g-color-base-danger-light)}.progress-viewer_status_danger .progress-viewer__line{background-color:var(--ydb-color-status-red)}.progress-viewer__line{height:100%;left:0;position:absolute;top:0}.progress-viewer__text{position:relative;z-index:1}.progress-viewer_size_xs{font-size:var(--g-text-body-2-font-size);height:20px;line-height:var(--g-text-body-2-line-height)}.progress-viewer_size_s{font-size:var(--g-text-body-1-font-size);height:28px;line-height:28px}.progress-viewer_size_m{font-size:var(--g-text-body-2-font-size);height:32px;line-height:32px}.progress-viewer_size_ns{font-size:13px;height:24px;line-height:var(--g-text-subheader-3-line-height)}.progress-viewer_size_n{font-size:var(--g-text-body-1-font-size);height:36px;line-height:36px}.progress-viewer_size_l{font-size:var(--g-text-subheader-3-font-size);height:38px;line-height:38px}.progress-viewer_size_head{font-size:var(--g-text-body-1-font-size);line-height:36px}.tablets-statistic{align-items:center;display:flex;gap:2px}.tablets-statistic__tablet{border:1px solid;border-radius:2px;color:var(--g-color-text-secondary);display:inline-block;font-size:11px;height:20px;line-height:20px;padding:0 4px;text-align:center;text-decoration:none;text-transform:uppercase}.tablets-statistic__tablet_state_green{background-color:var(--g-color-base-positive-light);color:var(--g-color-text-positive)}.tablets-statistic__tablet_state_yellow{background-color:var(--g-color-base-warning-light);color:var(--g-color-text-warning)}.tablets-statistic__tablet_state_blue{background-color:var(--g-color-base-info-light);color:var(--g-color-text-info)}.tablets-statistic__tablet_state_orange{background-color:var(--g-color-base-warning-light);color:var(--g-color-text-warning-heavy)}.tablets-statistic__tablet_state_red{background:var(--g-color-base-danger-light);color:var(--g-color-text-danger)}.tablets-statistic__tablet_state_grey{border:1px solid var(--g-color-line-generic-hover);color:var(--g-color-text-secondary)}.ydb-usage-label_overload{background-color:var(--ydb-color-status-red);color:var(--g-color-text-light-primary)}.ydb-nodes__search{width:238px}.ydb-nodes__show-all-wrapper{left:0;margin-bottom:15px;position:sticky}.ydb-nodes__node_unavailable{opacity:.6}.g-table-column-setup__status{color:var(--g-color-text-secondary);margin-inline-start:5px}.g-inner-table-column-setup{display:inline-block}.g-inner-table-column-setup__controls{margin:var(--g-spacing-1) var(--g-spacing-1) 0}.g-inner-table-column-setup__filter-input{border-block-end:1px solid var(--g-color-line-generic);box-sizing:border-box;padding:0 var(--g-spacing-2) var(--g-spacing-1)}.g-inner-table-column-setup__empty-placeholder{padding:var(--g-spacing-2)}.g-list-container-view{box-sizing:border-box;outline:none;width:100%}.g-list-container-view_fixed-height{height:300px;height:var(--g-list-container-height,300px)}.g-list-container-view:not(.g-list-container-view_fixed-height){overflow:auto}.g-list-item-view{flex-shrink:0}.g-list-item-view__main-content{grid-gap:2px;grid-gap:var(--g-spacing-half,2px);display:grid;gap:2px;gap:var(--g-spacing-half,2px);width:100%}.g-list-item-view:hover.g-list-item-view_activeOnHover,.g-list-item-view_active{background:var(--g-color-base-simple-hover)}.g-list-item-view_clickable{cursor:pointer}.g-list-item-view_selected,.g-list-item-view_selected.g-list-item-view_active,.g-list-item-view_selected:hover.g-list-item-view_activeOnHover{background:var(--g-color-base-selection)}.g-list-item-view_dragging,.g-list-item-view_dragging.g-list-item-view_active,.g-list-item-view_dragging.g-list-item-view_selected{background:var(--g-color-base-simple-hover-solid);z-index:100001!important}.g-list-item-view_radius_s{border-radius:3px;border-radius:var(--g-list-item-border-radius,3px)}.g-list-item-view_radius_m{border-radius:5px;border-radius:var(--g-list-item-border-radius,5px)}.g-list-item-view_radius_l{border-radius:6px;border-radius:var(--g-list-item-border-radius,6px)}.g-list-item-view_radius_xl{border-radius:8px;border-radius:var(--g-list-item-border-radius,8px)}.g-list-item-view__icon,.g-list-item-view__slot{flex-shrink:0}.g-tree-select{display:inline-block;max-width:100%}.g-tree-select_width_max{width:100%}.g-tree-select__popup{overflow:hidden;padding:4px 0}.g-tree-select__popup_size_s{border-radius:5px;border-radius:var(--g-list-container-border-radius,5px)}.g-tree-select__popup_size_m{border-radius:6px;border-radius:var(--g-list-container-border-radius,6px)}.g-tree-select__popup_size_l{border-radius:8px;border-radius:var(--g-list-container-border-radius,8px)}.g-tree-select__popup_size_xl{border-radius:10px;border-radius:var(--g-list-container-border-radius,10px)}.g-tree-select__list{padding:0 4px}.g-list-recursive-renderer{margin:0;padding:0}.ydb-paginated-table{--paginated-table-cell-vertical-padding:5px;--paginated-table-cell-horizontal-padding:10px;--paginated-table-border-color:var(--g-color-base-generic-hover);--paginated-table-hover-color:var(--g-color-base-float-hover);font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height);width:100%}.ydb-paginated-table__table{border-collapse:initial;border-spacing:0;max-width:100%;table-layout:fixed;width:max-content}.ydb-paginated-table__table th{padding:0}.ydb-paginated-table__row{position:relative;z-index:1}.ydb-paginated-table__row:hover{background:var(--paginated-table-hover-color)}.ydb-paginated-table__row_empty:hover{background-color:initial}.ydb-paginated-table__head{background-color:var(--g-color-base-background);left:0;position:sticky;top:0;z-index:2}.ydb-paginated-table__sort-icon-container{color:inherit;display:flex;justify-content:center}.ydb-paginated-table__sort-icon-container_shadow{opacity:.15}.ydb-paginated-table__sort-icon_desc{transform:rotate(180deg)}.ydb-paginated-table__head-cell-wrapper{border-bottom:1px solid var(--paginated-table-border-color);display:table-cell;overflow-x:hidden;position:relative}.ydb-paginated-table__head-cell{align-items:center;display:flex;flex-direction:row;max-width:100%;padding:var(--paginated-table-cell-vertical-padding) var(--paginated-table-cell-horizontal-padding);width:100%}.ydb-paginated-table__head-cell_align_left{justify-content:left}.ydb-paginated-table__head-cell_align_center{justify-content:center}.ydb-paginated-table__head-cell_align_right{justify-content:right}.ydb-paginated-table__head-cell{cursor:default;font-weight:700;gap:8px}.ydb-paginated-table__head-cell_sortable{cursor:pointer}.ydb-paginated-table__head-cell_sortable.ydb-paginated-table__head-cell_align_right{flex-direction:row-reverse}.ydb-paginated-table__head-cell-content{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:min-content}.ydb-paginated-table__row-cell{border-bottom:1px solid var(--paginated-table-border-color);display:table-cell;max-width:100%;overflow-x:hidden;padding:var(--paginated-table-cell-vertical-padding) var(--paginated-table-cell-horizontal-padding);text-overflow:ellipsis;vertical-align:middle;white-space:nowrap;width:100%}.ydb-paginated-table__row-cell_align_left{text-align:left}.ydb-paginated-table__row-cell_align_center{text-align:center}.ydb-paginated-table__row-cell_align_right{text-align:right}.ydb-paginated-table__resize-handler{background-color:var(--g-color-base-generic);cursor:col-resize;height:100%;position:absolute;right:0;top:0;visibility:hidden;width:6px}.ydb-paginated-table__head-cell-wrapper:hover>.ydb-paginated-table__resize-handler,.ydb-paginated-table__resize-handler_resizing{visibility:visible}.ydb-paginated-table__resizeable-table-container{padding-right:20px;width:max-content}.ydb-paginated-table__row-skeleton:after{animation-delay:.2s}.usage-filter{min-width:100px}.usage-filter__option{flex-grow:1}.usage-filter__option-title{font-size:var(--g-text-body-1-font-size);height:var(--g-text-body-1-line-height);line-height:var(--g-text-body-1-line-height)}.usage-filter__option-meta{border-radius:3px;font-size:var(--g-text-caption-2-font-size);line-height:var(--g-text-caption-2-line-height);padding:0 5px;position:relative;z-index:0}.usage-filter__option-bar{background-color:var(--g-color-base-info-medium);border-radius:3px;bottom:0;left:0;position:absolute;top:0;z-index:-1}.stack{--ydb-stack-base-z-index:100;--ydb-stack-offset-x:4px;--ydb-stack-offset-y:4px;--ydb-stack-offset-x-hover:4px;--ydb-stack-offset-y-hover:8px;position:relative}.stack__layer{background:var(--g-color-base-background);transition:transform .1s ease-out}.stack__layer:first-child{position:relative;z-index:var(--ydb-stack-base-z-index)}.stack__layer+.stack__layer{height:100%;left:0;position:absolute;top:0;transform:translate(calc(var(--ydb-stack-level)*var(--ydb-stack-offset-x)),calc(var(--ydb-stack-level)*var(--ydb-stack-offset-y)));width:100%;z-index:calc(var(--ydb-stack-base-z-index) - var(--ydb-stack-level))}.stack:hover .stack__layer:first-child{transform:translate(calc(var(--ydb-stack-offset-x-hover)*-1),calc(var(--ydb-stack-offset-y-hover)*-1))}.stack:hover .stack__layer+.stack__layer{transform:translate(calc(var(--ydb-stack-level)*var(--ydb-stack-offset-x-hover)*2 - var(--ydb-stack-offset-x-hover)),calc(var(--ydb-stack-level)*var(--ydb-stack-offset-y-hover)*2 - var(--ydb-stack-offset-y-hover)))}.storage-disk-progress-bar{--progress-bar-full-height:var(--g-text-body-3-line-height);--progress-bar-compact-height:12px;--entity-state-border-color:var(--g-color-base-misc-heavy);--entity-state-background-color:var(--g-color-base-misc-light);--entity-state-fill-color:var(--g-color-base-misc-medium);--entity-state-font-color:var(--g-color-text-primary);background-color:var(--entity-state-background-color);border:1px solid var(--entity-state-border-color);border-radius:4px;color:var(--g-color-text-primary);height:var(--progress-bar-full-height);min-width:50px;position:relative;text-align:center;z-index:0}.storage-disk-progress-bar_green{--entity-state-font-color:var(--g-color-text-positive);--entity-state-border-color:var(--g-color-base-positive-heavy);--entity-state-background-color:var(--g-color-base-positive-light);--entity-state-fill-color:var(--g-color-base-positive-medium)}.storage-disk-progress-bar_blue{--entity-state-font-color:var(--g-color-text-info);--entity-state-border-color:var(--g-color-base-info-heavy);--entity-state-background-color:var(--g-color-base-info-light);--entity-state-fill-color:var(--g-color-base-info-medium)}.storage-disk-progress-bar_yellow{--entity-state-font-color:var(--g-color-text-warning);--entity-state-border-color:var(--g-color-base-warning-heavy);--entity-state-background-color:var(--g-color-base-yellow-light);--entity-state-fill-color:var(--g-color-base-yellow-medium)}.storage-disk-progress-bar_orange{--entity-state-font-color:var(--g-color-private-orange-500);--entity-state-border-color:var(--ydb-color-status-orange);--entity-state-background-color:var(--g-color-private-orange-100);--entity-state-fill-color:var(--g-color-private-orange-300)}.storage-disk-progress-bar_red{--entity-state-font-color:var(--g-color-text-danger);--entity-state-border-color:var(--g-color-base-danger-heavy);--entity-state-background-color:var(--g-color-base-danger-light);--entity-state-fill-color:var(--g-color-base-danger-medium)}.storage-disk-progress-bar__grey{--entity-state-font-color:var(--g-color-text-secondary);--entity-state-border-color:var(--g-color-line-generic-hover)}.storage-disk-progress-bar_compact{border-radius:2px;height:var(--progress-bar-compact-height);min-width:0}.storage-disk-progress-bar_faded{background-color:initial}.storage-disk-progress-bar_inactive{opacity:.5}.storage-disk-progress-bar_empty{background-color:initial;border-style:dashed;color:var(--g-color-text-hint)}.storage-disk-progress-bar__fill-bar{background-color:var(--entity-state-fill-color);border-radius:3px 0 0 3px;height:100%;left:0;position:absolute;top:0}.storage-disk-progress-bar__fill-bar_faded{background-color:var(--entity-state-background-color)}.storage-disk-progress-bar__fill-bar_compact{border-radius:1px}.storage-disk-progress-bar__fill-bar_inverted{border-radius:0 3px 3px 0;left:auto;right:0}.storage-disk-progress-bar__title{color:inherit;font-size:var(--g-text-body-1-font-size);line-height:calc(var(--progress-bar-full-height) - 2px);position:relative;z-index:2}.pdisk-storage-popup,.vdisk-storage-popup{padding:12px}.vdisk-storage-popup .info-viewer+.info-viewer{border-top:1px solid var(--g-color-line-generic);margin-top:8px;padding-top:8px}.vdisk-storage-popup__donor-label{margin-bottom:8px}.ydb-vdisk-component,.ydb-vdisk-component__content{border-radius:4px}.pdisk-storage{position:relative;width:120px}.pdisk-storage__content{border-radius:4px;display:block;position:relative}.pdisk-storage__vdisks{display:flex;flex-wrap:wrap;gap:2px;margin-bottom:4px}.pdisk-storage__vdisks-item{flex-basis:5px;flex-shrink:0}.data-table__row:hover .pdisk-storage__vdisks-item .stack__layer{background:var(--ydb-data-table-color-hover)}.pdisk-storage__donors-stack{--ydb-stack-offset-x:0px;--ydb-stack-offset-y:-2px;--ydb-stack-offset-x-hover:0px;--ydb-stack-offset-y-hover:-7px}.pdisk-storage__media-type{color:var(--g-color-text-secondary);font-size:var(--g-text-body-1-font-size);line-height:var(--g-text-body-1-line-height);position:absolute;right:4px;top:50%;transform:translateY(-50%)}.ydb-storage-disks{align-items:center;display:flex;flex-direction:row;gap:20px;width:max-content}.ydb-storage-disks__vdisks-wrapper{display:flex;flex-direction:row;flex-grow:1;gap:4px;width:300px}.ydb-storage-disks__pdisks-wrapper{display:flex;flex-direction:row;gap:6px;justify-content:left;width:max-content}.ydb-storage-disks__vdisk-item{flex-basis:8px;flex-shrink:0}.ydb-storage-disks__vdisk-progress-bar{--progress-bar-compact-height:18px;border-radius:4px}.ydb-storage-disks__pdisk-item{width:80px}.ydb-storage-disks__pdisk-progress-bar{--progress-bar-full-height:20px;padding-left:var(--g-spacing-2);text-align:left}.ydb-storage-groups-columns__disks-column,.ydb-storage-groups-columns__vdisks-column{overflow:visible}.ydb-storage-groups-columns__vdisks-wrapper{display:flex;gap:10px;justify-content:center;min-width:500px}.ydb-storage-groups-columns__vdisks-item{flex-grow:1;max-width:200px}.data-table__row:hover .ydb-storage-groups-columns__vdisks-item .stack__layer{background:var(--ydb-data-table-color-hover)}.ydb-storage-groups-columns__pool-name-wrapper{width:230px}.ydb-storage-groups-columns__group-id{font-weight:500}.ydb-storage-nodes-columns__pdisks-column{overflow:visible}.ydb-storage-nodes-columns__pdisks-wrapper{align-items:flex-end;display:flex;justify-content:left;width:max-content}.ydb-storage-nodes-columns__pdisks-item{flex-grow:1;margin-right:10px;max-width:200px}.ydb-storage-nodes-columns__pdisks-item:last-child{margin-right:0}.global-storage__search{width:238px}.global-storage__table .g-tooltip{height:var(--g-text-body-2-line-height)!important}.global-storage .entity-status{justify-content:center}.tenants__format-label{margin-right:15px}.tenants__title{text-align:center}.tenants__tooltip{animation:none!important}.tenants__search{width:238px}.tenants__tablets{padding:0!important}.tenants__tablets .tablets-viewer__grid{grid-gap:20px}.tenants__type{align-items:center;display:flex;flex-direction:row;gap:10px}.tenants__type-value{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:min-content}.tenants__type-button{display:none}.data-table__row:hover .tenants__type-button{display:block}.tenants__name{overflow:hidden}.ydb-versions-nodes-tree-title__overview{align-items:center;display:flex;justify-content:space-between;width:100%}.ydb-versions-nodes-tree-title__overview-info{align-items:center;display:flex;margin-left:25px}.ydb-versions-nodes-tree-title__overview-info>:not(:first-child){margin-left:30px}.ydb-versions-nodes-tree-title__overview-container{align-items:center;display:flex}.ydb-versions-nodes-tree-title__info-label{color:var(--g-color-text-complementary);font-weight:200}.ydb-versions-nodes-tree-title__info-label_margin_left{margin-left:5px}.ydb-versions-nodes-tree-title__info-label_margin_right{margin-right:5px}.ydb-versions-nodes-tree-title__version-color{border-radius:100%;height:16px;margin-right:10px;width:16px}.ydb-versions-nodes-tree-title__version-progress{align-items:center;display:flex;width:250px}.ydb-versions-nodes-tree-title__version-progress .g-progress{width:200px}.ydb-versions-nodes-tree-title__overview-title{align-items:center;display:flex}.ydb-versions-nodes-tree-title__clipboard-button{color:var(--g-color-text-secondary);margin-left:8px;opacity:0}.g-progress{--_--empty-background-color:var(--g-color-base-generic);--_--empty-text-color:var(--g-color-text-primary);--_--filled-text-color:var(--g-color-text-primary);--_--filled-background-color:var(--g-color-base-neutral-medium);background-color:var(--_--empty-background-color);background-color:var(--g-progress-empty-background-color,var(--_--empty-background-color));border-radius:3px;margin:0 auto;overflow:hidden;position:relative;text-align:center}.g-progress__text{color:var(--_--empty-text-color);color:var(--g-progress-empty-text-color,var(--_--empty-text-color));position:relative}.g-progress__text,.g-progress__text-inner{box-sizing:border-box;font-family:var(--g-text-body-font-family);font-size:var(--g-text-body-short-font-size);font-weight:var(--g-text-body-font-weight);padding:0 10px}.g-progress__text-inner{color:var(--_--empty-text-color);color:var(--g-progress-filled-text-color,var(--_--empty-text-color));height:100%;position:absolute;transition:transform .6s ease;width:100%}.g-progress__item{background-color:var(--_--filled-background-color);background-color:var(--g-progress-filled-background-color,var(--_--filled-background-color));float:left;height:100%;overflow:hidden;position:relative;transition:transform .6s ease,width .6s ease,background-color .6s ease;width:100%}[dir=rtl] .g-progress__item{float:right}.g-progress__item_theme_default{--_--filled-background-color:var(--g-color-base-neutral-medium)}.g-progress__item_theme_success{--_--filled-background-color:var(--g-color-base-positive-medium)}.g-progress__item_theme_warning{--_--filled-background-color:var(--g-color-base-warning-medium)}.g-progress__item_theme_danger{--_--filled-background-color:var(--g-color-base-danger-medium)}.g-progress__item_theme_info{--_--filled-background-color:var(--g-color-base-info-medium)}.g-progress__item_theme_misc{--_--filled-background-color:var(--g-color-base-misc-medium)}.g-progress__item_loading{animation:g-loading-animation .5s linear infinite;background-clip:padding-box;background-image:repeating-linear-gradient(-45deg,#ffffff4d,#ffffff4d 4px,#0000 0,#0000 8px);background-size:150%}.g-progress__stack{color:var(--g-color-text-light-primary);margin:0 auto;overflow:hidden;position:relative;transition:transform .6s ease;width:100%}.g-progress_size_m,.g-progress_size_m .g-progress__stack{height:20px;line-height:20px}.g-progress_size_m .g-progress__text{height:20px;margin-block-end:-20px}.g-progress_size_s,.g-progress_size_s .g-progress__stack{height:10px;line-height:10px}.g-progress_size_xs,.g-progress_size_xs .g-progress__stack{height:4px;line-height:4px}.g-progress_size_s .g-progress__text,.g-progress_size_s .g-progress__text-inner,.g-progress_size_xs .g-progress__text,.g-progress_size_xs .g-progress__text-inner{display:none}.ydb-versions-grouped-node-tree_first-level{border:1px solid var(--g-color-line-generic);border-radius:10px;margin-bottom:10px;margin-top:10px}.ydb-versions-grouped-node-tree__dt-wrapper{margin-left:24px;margin-right:24px;overflow:auto hidden;position:relative;z-index:0}.ydb-versions-grouped-node-tree__dt-wrapper .data-table__head-row:first-child .data-table__th:first-child,.ydb-versions-grouped-node-tree__dt-wrapper .data-table__td:first-child{background-color:var(--g-color-base-background);border-right:1px solid var(--g-color-line-generic);left:0;position:sticky;z-index:2000}.ydb-versions-grouped-node-tree__dt-wrapper .data-table__row:hover .data-table__td:first-child{background-color:var(--ydb-data-table-color-hover)!important}.ydb-versions-grouped-node-tree__dt-wrapper .data-table__head-row:first-child .data-table__th:nth-child(2),.ydb-versions-grouped-node-tree__dt-wrapper .data-table__td:nth-child(2){background-color:var(--g-color-base-background);border-right:1px solid var(--g-color-line-generic);left:80px;position:sticky;z-index:2000}.ydb-versions-grouped-node-tree__dt-wrapper .data-table__row:hover .data-table__td:nth-child(2){background-color:var(--ydb-data-table-color-hover)!important}.ydb-versions-grouped-node-tree__dt-wrapper .data-table__head-row:first-child .data-table__th:first-child,.ydb-versions-grouped-node-tree__dt-wrapper .data-table__head-row:first-child .data-table__th:nth-child(0),.ydb-versions-grouped-node-tree__dt-wrapper .data-table__td:first-child,.ydb-versions-grouped-node-tree__dt-wrapper .data-table__td:nth-child(0){border-right:initial;box-shadow:none}.ydb-versions-grouped-node-tree__dt-wrapper .data-table__head-row:first-child .data-table__th:nth-child(2),.ydb-versions-grouped-node-tree__dt-wrapper .data-table__td:nth-child(2){box-shadow:none}.ydb-versions-grouped-node-tree .ydb-tree-view{font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height)}.ydb-versions-grouped-node-tree .ydb-tree-view .ydb-tree-view{margin-left:24px}.ydb-versions-grouped-node-tree .tree-view_item{border:0;border-radius:10px;height:40px;margin:0;padding:0 10px!important}.ydb-versions-grouped-node-tree .tree-view_children .tree-view_item{width:100%}.ydb-versions-grouped-node-tree .g-progress__stack{cursor:pointer}.ydb-tree-view{--ydb-tree-view-level:0;font-size:13px;line-height:18px}.ydb-tree-view,.ydb-tree-view *{box-sizing:border-box}.ydb-tree-view__item{align-items:center;border-bottom:1px solid var(--g-color-line-generic-solid);cursor:pointer;display:flex;height:24px;padding-left:calc(24px*var(--ydb-tree-view-level));padding-right:3px}.ydb-tree-view__item:hover{background-color:var(--g-color-base-simple-hover)}.ydb-tree-view__item:hover .ydb-tree-view__actions{display:flex}.ydb-tree-view__item_active{background-color:var(--g-color-base-selection);font-weight:700}.ydb-tree-view__item_active:hover{background-color:var(--g-color-base-selection-hover)}.ydb-tree-view__content{align-items:center;display:flex;flex-grow:1;overflow:hidden}.ydb-tree-view__icon{align-items:center;color:var(--g-color-text-hint);display:flex;flex-shrink:0;height:24px;justify-content:center;width:24px}.ydb-tree-view__icon svg{display:block}.ydb-tree-view__text{flex-grow:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ydb-tree-view__actions{align-items:center;display:none;margin-left:6px}.ydb-tree-view__arrow{background:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 6 12" width="6" height="12"><path d="M0.192529 10.7483C-0.0845649 11.0562 -0.0596061 11.5304 0.248276 11.8075C0.556159 12.0846 1.03038 12.0596 1.30747 11.7517L0.192529 10.7483ZM5.25 6.25L5.80747 6.75172C6.06418 6.46649 6.06418 6.0335 5.80747 5.74828L5.25 6.25ZM1.30747 0.748277C1.03038 0.440394 0.556159 0.415435 0.248276 0.69253C-0.0596065 0.969624 -0.0845653 1.44384 0.192529 1.75172L1.30747 0.748277ZM1.30747 11.7517L5.80747 6.75172L4.69253 5.74828L0.192529 10.7483L1.30747 11.7517ZM5.80747 5.74828L1.30747 0.748277L0.192529 1.75172L4.69253 6.75172L5.80747 5.74828Z" fill="rgba%280, 0, 0, 0.85%29"/></svg>') no-repeat 50%;border:none;cursor:pointer;flex-shrink:0;height:24px;padding:0;width:24px}.g-root_theme_dark .ydb-tree-view__arrow{background:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 6 12" width="6" height="12"><path d="M0.192529 10.7483C-0.0845649 11.0562 -0.0596061 11.5304 0.248276 11.8075C0.556159 12.0846 1.03038 12.0596 1.30747 11.7517L0.192529 10.7483ZM5.25 6.25L5.80747 6.75172C6.06418 6.46649 6.06418 6.0335 5.80747 5.74828L5.25 6.25ZM1.30747 0.748277C1.03038 0.440394 0.556159 0.415435 0.248276 0.69253C-0.0596065 0.969624 -0.0845653 1.44384 0.192529 1.75172L1.30747 0.748277ZM1.30747 11.7517L5.80747 6.75172L4.69253 5.74828L0.192529 10.7483L1.30747 11.7517ZM5.80747 5.74828L1.30747 0.748277L0.192529 1.75172L4.69253 6.75172L5.80747 5.74828Z" fill="rgba%28255, 255, 255, 0.85%29"/></svg>') no-repeat 50%}.ydb-tree-view__arrow:focus-visible{outline:2px solid var(--g-color-line-focus)}.ydb-tree-view__arrow:not(.ydb-tree-view__arrow_collapsed){transform:rotate(90deg)}.ydb-tree-view__arrow_hidden{visibility:hidden}.ydb-tree-view .ydb-tree-view .ydb-tree-view__item{padding-left:24px}.ydb-tree-view .ydb-tree-view .ydb-tree-view .ydb-tree-view__item{padding-left:48px}.ydb-tree-view .ydb-tree-view .ydb-tree-view .ydb-tree-view .ydb-tree-view__item{padding-left:72px}.ydb-tree-view .ydb-tree-view .ydb-tree-view .ydb-tree-view .ydb-tree-view .ydb-tree-view__item{padding-left:96px}.ydb-tree-view .ydb-tree-view .ydb-tree-view .ydb-tree-view .ydb-tree-view .ydb-tree-view .ydb-tree-view__item{padding-left:120px}.ydb-versions__controls{align-items:center;display:flex;padding:0 0 20px}.ydb-versions__controls .ydb-versions__label{font-weight:500;margin-right:10px}.ydb-versions__controls .ydb-versions__checkbox{margin:0}.ydb-versions__controls>*{margin-right:25px}.g-checkbox__indicator{cursor:inherit;display:inline-block;position:relative}.g-checkbox__indicator:before{background-color:initial;border:1px solid var(--g-color-line-generic-accent);border-radius:4px;content:"";inset:0;position:absolute;transition:background .1s linear}.g-checkbox__indicator:after{content:" ";visibility:hidden}.g-checkbox__icon{align-items:center;color:#0000;display:flex;inset:0;justify-content:center;pointer-events:none;position:absolute;transform:translateY(-5px);transition:color .1s,transform .2s;visibility:hidden}.g-checkbox__control{border:none;cursor:inherit;margin:0;opacity:0;outline:none;padding:0}.g-checkbox__control,.g-checkbox__outline{background:none;height:100%;inset-block-start:0;inset-inline-start:0;position:absolute;width:100%}.g-checkbox__outline{border-radius:4px;pointer-events:none}.g-checkbox__control:focus-visible+.g-checkbox__outline{outline:2px solid var(--g-color-line-focus)}.g-checkbox_size_m .g-checkbox__icon-svg_type_tick{height:10px;width:8px}.g-checkbox_size_m .g-checkbox__icon-svg_type_dash{height:12px;width:12px}.g-checkbox_size_m .g-checkbox__indicator{height:14px;width:14px}.g-checkbox_size_l .g-checkbox__icon-svg_type_tick{height:9px;width:11px}.g-checkbox_size_l .g-checkbox__icon-svg_type_dash{height:15px;width:15px}.g-checkbox_size_l .g-checkbox__indicator{height:17px;width:17px}.g-checkbox:hover .g-checkbox__indicator:before{border-color:var(--g-color-line-generic-accent-hover)}.g-checkbox_checked .g-checkbox__indicator:before,.g-checkbox_indeterminate .g-checkbox__indicator:before{background-color:var(--g-color-base-brand);border:#0000}.g-checkbox_checked .g-checkbox__icon,.g-checkbox_indeterminate .g-checkbox__icon{color:var(--g-color-text-brand-contrast);transform:translateX(0);visibility:visible}.g-checkbox_disabled .g-checkbox__indicator:before{background-color:var(--g-color-base-generic-accent-disabled);border:#0000}.g-checkbox_disabled.g-checkbox_checked .g-checkbox__indicator:before,.g-checkbox_disabled.g-checkbox_indeterminate .g-checkbox__indicator:before{background-color:var(--g-color-base-brand);opacity:.5}.ydb-info-viewer-skeleton{display:flex;flex-direction:column;gap:16px}.ydb-info-viewer-skeleton__row{align-items:flex-start;display:flex}.ydb-info-viewer-skeleton__row,.ydb-info-viewer-skeleton__row .g-skeleton{min-height:var(--g-text-body-2-font-size)}.ydb-info-viewer-skeleton__label{align-items:baseline;display:flex;flex:0 1 auto;width:200px}.ydb-info-viewer-skeleton__label__text{width:100px}.ydb-info-viewer-skeleton__label__dots{border-bottom:1px dotted var(--g-color-text-secondary);margin:0 2px;width:100px}.ydb-info-viewer-skeleton__value{max-width:20%;min-width:200px}.tablet{border-color:var(--g-color-base-generic-medium-hover);color:var(--g-color-text-complementary);cursor:pointer}.tablet__wrapper{margin-bottom:2px;margin-right:2px}.tablet__wrapper:last-child{margin-right:0}.tablet__popup-content{padding:10px}.tablet_status_grey{background-color:var(--ydb-color-status-grey)}.tablet_status_yellow{background-color:var(--ydb-color-status-yellow)}.tablet_status_orange{background-color:var(--ydb-color-status-orange)}.tablet_status_red{background-color:var(--ydb-color-status-red)}.tablet_status_green{background-color:var(--ydb-color-status-green)}.tablet_status_blue{background-color:var(--ydb-color-status-blue)}.tablet_status_black{background-color:var(--ydb-color-status-black)}.tag{background:var(--g-color-base-generic);border-radius:3px;color:var(--g-color-text-primary);font-size:12px;margin-right:5px;padding:2px 5px;text-transform:uppercase}.tag:last-child{margin-right:0}.tag_type_blue{background-color:var(--g-color-celestial-thunder)}.tags{align-items:center;display:flex;flex-wrap:wrap}.ydb-cluster-versions-bar{display:flex;flex-direction:column;width:600px}.ydb-cluster-versions-bar .g-progress{width:100%}.ydb-cluster-versions-bar__versions{display:flex;flex-flow:row wrap;margin-top:6px}.ydb-cluster-versions-bar__version-title{margin-left:3px;white-space:nowrap}.ydb-cluster-versions-bar .g-progress__stack{cursor:pointer}.ydb-disk-groups-stats{display:flex;flex-direction:column;gap:var(--g-spacing-3)}.ydb-disk-groups-stats__bar{cursor:pointer}.ydb-disk-groups-stats__popup-content{padding:var(--g-spacing-3)}.ydb-nodes-state{--entity-state-border-color:var(--g-color-base-misc-heavy);--entity-state-background-color:var(--g-color-base-misc-light);--entity-state-fill-color:var(--g-color-base-misc-medium);--entity-state-font-color:var(--g-color-text-primary);align-items:center;background-color:var(--entity-state-background-color);border:1px solid var(--entity-state-border-color);border-radius:var(--g-spacing-1);color:var(--entity-state-font-color);display:flex;justify-content:center;min-width:30px;padding:0 var(--g-spacing-1)}.ydb-nodes-state_green{--entity-state-font-color:var(--g-color-text-positive);--entity-state-border-color:var(--g-color-base-positive-heavy);--entity-state-background-color:var(--g-color-base-positive-light);--entity-state-fill-color:var(--g-color-base-positive-medium)}.ydb-nodes-state_blue{--entity-state-font-color:var(--g-color-text-info);--entity-state-border-color:var(--g-color-base-info-heavy);--entity-state-background-color:var(--g-color-base-info-light);--entity-state-fill-color:var(--g-color-base-info-medium)}.ydb-nodes-state_yellow{--entity-state-font-color:var(--g-color-text-warning);--entity-state-border-color:var(--g-color-base-warning-heavy);--entity-state-background-color:var(--g-color-base-yellow-light);--entity-state-fill-color:var(--g-color-base-yellow-medium)}.ydb-nodes-state_orange{--entity-state-font-color:var(--g-color-private-orange-500);--entity-state-border-color:var(--ydb-color-status-orange);--entity-state-background-color:var(--g-color-private-orange-100);--entity-state-fill-color:var(--g-color-private-orange-300)}.ydb-nodes-state_red{--entity-state-font-color:var(--g-color-text-danger);--entity-state-border-color:var(--g-color-base-danger-heavy);--entity-state-background-color:var(--g-color-base-danger-light);--entity-state-fill-color:var(--g-color-base-danger-medium)}.ydb-nodes-state__grey{--entity-state-font-color:var(--g-color-text-secondary);--entity-state-border-color:var(--g-color-line-generic-hover)}.cluster-info{padding-top:20px}.cluster-info__skeleton{margin-top:5px}.cluster-info__error{font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height)}.cluster-info__system-tablets{align-items:center;display:flex;flex-wrap:wrap}.cluster-info__system-tablets .tablet{margin-top:2px}.cluster-info__metrics{margin:0 -15px;padding:0 15px!important}.cluster-info__metrics .info-viewer__items{grid-template-columns:repeat(2,minmax(auto,250px))}.cluster-info__metrics .info-viewer__label{width:50px}.cluster-info__metrics .info-viewer__value{width:130px}.cluster-info__tablets{margin-left:15px;padding:0!important}.cluster-info__links{display:flex;flex-flow:row wrap;gap:var(--g-spacing-2)}.cluster-info__clipboard-button{align-items:center;display:flex;margin-left:5px}.cluster-info__dc-count{text-transform:lowercase}.cluster-info__nodes-states{display:flex;gap:var(--g-spacing-half)}.link{color:var(--g-color-text-link);text-decoration:none}.link_external{margin-right:10px}.link:hover{color:var(--g-color-text-link-hover)}.cluster{display:flex;flex-direction:column;flex-grow:1;flex:1 1 auto;height:100%;overflow:auto;padding:0 20px}.cluster__header{left:0;padding:20px 0;position:sticky}.cluster__title{font-size:var(--g-text-header-1-font-size);font-weight:var(--g-text-header-font-weight);line-height:var(--g-text-header-1-line-height)}.cluster__title-skeleton{height:var(--g-text-header-1-line-height);min-width:200px;width:20%}.cluster__tabs{--g-tabs-border-width:0;align-items:center;box-shadow:inset 0 -1px 0 0 var(--g-color-line-generic);display:flex;justify-content:space-between;left:0;position:sticky}.cluster__sticky-wrapper{left:0;position:sticky;top:56px;z-index:4}.cluster__auto-refresh-control{background-color:var(--g-color-base-background);float:right;margin-top:-40px} \ No newline at end of file
diff --git a/ydb/core/viewer/monitoring/static/css/2775.331d1970.chunk.css b/ydb/core/viewer/monitoring/static/css/2775.331d1970.chunk.css
deleted file mode 100644
index 4b33146d2b..0000000000
--- a/ydb/core/viewer/monitoring/static/css/2775.331d1970.chunk.css
+++ /dev/null
@@ -1 +0,0 @@
-.ydb-status-icon__status-color_state_green{background-color:var(--ydb-color-status-green)}.ydb-status-icon__status-color_state_yellow{background-color:var(--ydb-color-status-yellow)}.ydb-status-icon__status-color_state_blue{background-color:var(--ydb-color-status-blue)}.ydb-status-icon__status-color_state_red{background-color:var(--ydb-color-status-red)}.ydb-status-icon__status-color_state_grey{background-color:var(--ydb-color-status-grey)}.ydb-status-icon__status-color_state_orange{background-color:var(--ydb-color-status-orange)}.ydb-status-icon__status-icon_state_blue{color:var(--ydb-color-status-blue)}.ydb-status-icon__status-icon_state_yellow{color:var(--ydb-color-status-yellow)}.ydb-status-icon__status-icon_state_orange{color:var(--ydb-color-status-orange)}.ydb-status-icon__status-icon_state_red{color:var(--ydb-color-status-red)}.ydb-status-icon__status-color,.ydb-status-icon__status-icon{border-radius:3px;flex-shrink:0}.ydb-status-icon__status-color_size_xs,.ydb-status-icon__status-icon_size_xs{aspect-ratio:1;height:12px;width:12px}.ydb-status-icon__status-color_size_s,.ydb-status-icon__status-icon_size_s{aspect-ratio:1;height:16px;width:16px}.ydb-status-icon__status-color_size_m,.ydb-status-icon__status-icon_size_m{aspect-ratio:1;height:18px;width:18px}.ydb-status-icon__status-color_size_l,.ydb-status-icon__status-icon_size_l{height:24px;width:24px}.ydb-entity-page-title{text-wrap:nowrap;align-items:baseline;display:flex;flex-flow:row nowrap;font-size:var(--g-text-header-2-font-size);line-height:var(--g-text-header-2-line-height)}.ydb-entity-page-title__prefix{color:var(--g-color-text-secondary);margin-right:6px}.ydb-entity-page-title__icon{margin-right:8px}.ydb-info-viewer-skeleton{display:flex;flex-direction:column;gap:16px}.ydb-info-viewer-skeleton__row{align-items:flex-start;display:flex}.ydb-info-viewer-skeleton__row,.ydb-info-viewer-skeleton__row .g-skeleton{min-height:var(--g-text-body-2-font-size)}.ydb-info-viewer-skeleton__label{align-items:baseline;display:flex;flex:0 1 auto;width:200px}.ydb-info-viewer-skeleton__label__text{width:100px}.ydb-info-viewer-skeleton__label__dots{border-bottom:1px dotted var(--g-color-text-secondary);margin:0 2px;width:100px}.ydb-info-viewer-skeleton__value{max-width:20%;min-width:200px}.g-skeleton{--_--animation-from:calc(-100%*var(--g-flow-direction));--_--animation-to:calc(100%*var(--g-flow-direction));--_--gradient-deg:calc(90deg*var(--g-flow-direction));background-color:var(--g-color-base-generic);border-radius:5px;display:inline-block;overflow:hidden;position:relative;width:100%;z-index:0}.g-skeleton:after{animation:g-skeleton 1.2s ease-out infinite;background-image:linear-gradient(var(--_--gradient-deg),#0000,var(--g-color-base-generic));content:"";inset:0;position:absolute}@keyframes g-skeleton{0%{transform:translateX(var(--_--animation-from))}to{transform:translateX(var(--_--animation-to))}}.auto-refresh-control{align-items:center;display:flex;gap:var(--g-spacing-1)}.ydb-page-meta__info{text-wrap:nowrap;color:var(--g-color-text-primary);display:flex;flex-flow:row nowrap;flex-grow:1;font-size:var(--g-text-body-2-font-size);height:var(--g-text-body-2-line-height);line-height:var(--g-text-body-2-line-height)}.ydb-page-meta__skeleton{height:80%;width:80%}.g-tooltip[class]{--g-popup-border-width:0}.g-tooltip[class]>div{animation-duration:1ms;box-shadow:0 1px 5px 0 #00000026;box-sizing:border-box;max-width:360px;padding:4px 8px}.g-tooltip__content{-webkit-box-orient:vertical;-ms-box-orient:vertical;-webkit-line-clamp:20;-moz-line-clamp:20;-ms-line-clamp:20;display:-webkit-box;overflow:hidden;text-overflow:ellipsis}.entity-status{align-items:center;display:inline-flex;font-size:var(--g-text-body-2-font-size);height:100%;line-height:var(--g-text-body-2-line-height);max-width:100%}.entity-status__icon{margin-right:var(--g-spacing-2)}.entity-status__clipboard-button{color:var(--g-color-text-secondary);display:flex;flex-shrink:0;margin-left:var(--g-spacing-2);opacity:0}.entity-status__clipboard-button:focus-visible,.entity-status__clipboard-button_visible{opacity:1}.entity-status__additional-controls{margin-left:var(--g-spacing-1)}.entity-status__label{color:var(--g-color-text-complementary);font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height);margin-right:2px}.entity-status__label_size_l{font-size:var(--g-text-header-2-font-size)}.entity-status__link{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.entity-status__link_with-left-trim{direction:rtl}.entity-status__link_with-left-trim .entity-status__name{unicode-bidi:plaintext}.entity-status__label_state_blue{color:var(--ydb-color-status-blue)}.entity-status__label_state_yellow{color:var(--ydb-color-status-yellow)}.entity-status__label_state_orange{color:var(--ydb-color-status-orange)}.entity-status__label_state_red{color:var(--ydb-color-status-red)}.progress-viewer{align-items:center;background:var(--g-color-base-generic);border-radius:2px;color:var(--g-color-text-complementary);display:flex;font-size:var(--g-text-body-2-font-size);height:23px;justify-content:center;min-width:120px;overflow:hidden;padding:0 4px;position:relative;white-space:nowrap;z-index:0}.progress-viewer_theme_dark{color:var(--g-color-text-light-primary)}.progress-viewer_theme_dark .progress-viewer__line{opacity:.75}.progress-viewer_status_good{background-color:var(--g-color-base-positive-light)}.progress-viewer_status_good .progress-viewer__line{background-color:var(--ydb-color-status-green)}.progress-viewer_status_warning{background-color:var(--g-color-base-yellow-light)}.progress-viewer_status_warning .progress-viewer__line{background-color:var(--ydb-color-status-yellow)}.progress-viewer_status_danger{background-color:var(--g-color-base-danger-light)}.progress-viewer_status_danger .progress-viewer__line{background-color:var(--ydb-color-status-red)}.progress-viewer__line{height:100%;left:0;position:absolute;top:0}.progress-viewer__text{position:relative;z-index:1}.progress-viewer_size_xs{font-size:var(--g-text-body-2-font-size);height:20px;line-height:var(--g-text-body-2-line-height)}.progress-viewer_size_s{font-size:var(--g-text-body-1-font-size);height:28px;line-height:28px}.progress-viewer_size_m{font-size:var(--g-text-body-2-font-size);height:32px;line-height:32px}.progress-viewer_size_ns{font-size:13px;height:24px;line-height:var(--g-text-subheader-3-line-height)}.progress-viewer_size_n{font-size:var(--g-text-body-1-font-size);height:36px;line-height:36px}.progress-viewer_size_l{font-size:var(--g-text-subheader-3-font-size);height:38px;line-height:38px}.progress-viewer_size_head{font-size:var(--g-text-body-1-font-size);line-height:36px}.table-skeleton{width:100%}.table-skeleton__row{align-items:center;display:flex;height:var(--data-table-row-height)}.table-skeleton__row .g-skeleton{height:var(--g-text-body-2-line-height)}.table-skeleton__col-1{margin-right:5%;width:10%}.table-skeleton__col-2{margin-right:5%;width:7%}.table-skeleton__col-3,.table-skeleton__col-4{margin-right:5%;width:5%}.table-skeleton__col-5{width:20%}.table-skeleton__col-full{width:100%}.ydb-table-with-controls-layout{box-sizing:border-box;display:inline-block;min-width:100%}.ydb-table-with-controls-layout__controls-wrapper{background-color:var(--g-color-base-background);box-sizing:border-box;left:0;position:sticky;top:0;width:100%;z-index:3}.ydb-table-with-controls-layout__controls{align-items:center;background-color:var(--g-color-base-background);display:flex;gap:12px;height:62px;left:0;padding:16px 0 18px;position:sticky;top:0;width:max-content;z-index:3}.ydb-table-with-controls-layout__table{position:relative;z-index:2}.ydb-table-with-controls-layout .ydb-paginated-table__head{top:62px}.ydb-table-with-controls-layout .data-table__sticky_moving{top:62px!important}.usage-filter,.ydb-search{min-width:100px}.usage-filter__option{flex-grow:1}.usage-filter__option-title{font-size:var(--g-text-body-1-font-size);height:var(--g-text-body-1-line-height);line-height:var(--g-text-body-1-line-height)}.usage-filter__option-meta{border-radius:3px;font-size:var(--g-text-caption-2-font-size);line-height:var(--g-text-caption-2-line-height);padding:0 5px;position:relative;z-index:0}.usage-filter__option-bar{background-color:var(--g-color-base-info-medium);border-radius:3px;bottom:0;left:0;position:absolute;top:0;z-index:-1}.g-table-column-setup__status{color:var(--g-color-text-secondary);margin-inline-start:5px}.g-inner-table-column-setup{display:inline-block}.g-inner-table-column-setup__controls{margin:var(--g-spacing-1) var(--g-spacing-1) 0}.g-inner-table-column-setup__filter-input{border-block-end:1px solid var(--g-color-line-generic);box-sizing:border-box;padding:0 var(--g-spacing-2) var(--g-spacing-1)}.g-inner-table-column-setup__empty-placeholder{padding:var(--g-spacing-2)}.g-list-container-view{box-sizing:border-box;outline:none;width:100%}.g-list-container-view_fixed-height{height:300px;height:var(--g-list-container-height,300px)}.g-list-container-view:not(.g-list-container-view_fixed-height){overflow:auto}.g-list-item-view{flex-shrink:0}.g-list-item-view__main-content{grid-gap:2px;grid-gap:var(--g-spacing-half,2px);display:grid;gap:2px;gap:var(--g-spacing-half,2px);width:100%}.g-list-item-view:hover.g-list-item-view_activeOnHover,.g-list-item-view_active{background:var(--g-color-base-simple-hover)}.g-list-item-view_clickable{cursor:pointer}.g-list-item-view_selected,.g-list-item-view_selected.g-list-item-view_active,.g-list-item-view_selected:hover.g-list-item-view_activeOnHover{background:var(--g-color-base-selection)}.g-list-item-view_dragging,.g-list-item-view_dragging.g-list-item-view_active,.g-list-item-view_dragging.g-list-item-view_selected{background:var(--g-color-base-simple-hover-solid);z-index:100001!important}.g-list-item-view_radius_s{border-radius:3px;border-radius:var(--g-list-item-border-radius,3px)}.g-list-item-view_radius_m{border-radius:5px;border-radius:var(--g-list-item-border-radius,5px)}.g-list-item-view_radius_l{border-radius:6px;border-radius:var(--g-list-item-border-radius,6px)}.g-list-item-view_radius_xl{border-radius:8px;border-radius:var(--g-list-item-border-radius,8px)}.g-list-item-view__icon,.g-list-item-view__slot{flex-shrink:0}.g-tree-select{display:inline-block;max-width:100%}.g-tree-select_width_max{width:100%}.g-tree-select__popup{overflow:hidden;padding:4px 0}.g-tree-select__popup_size_s{border-radius:5px;border-radius:var(--g-list-container-border-radius,5px)}.g-tree-select__popup_size_m{border-radius:6px;border-radius:var(--g-list-container-border-radius,6px)}.g-tree-select__popup_size_l{border-radius:8px;border-radius:var(--g-list-container-border-radius,8px)}.g-tree-select__popup_size_xl{border-radius:10px;border-radius:var(--g-list-container-border-radius,10px)}.g-tree-select__list{padding:0 4px}.g-list-recursive-renderer{margin:0;padding:0}.ydb-resizeable-data-table{display:flex;padding-right:20px;width:max-content}.ydb-cell-with-popover{display:flex;max-width:100%}.ydb-cell-with-popover__popover{display:inline-block;max-width:100%;overflow:hidden;text-overflow:ellipsis;vertical-align:middle;white-space:nowrap}.ydb-cell-with-popover__popover .g-popover__handler{display:inline}.ydb-usage-label_overload{background-color:var(--ydb-color-status-red);color:var(--g-color-text-light-primary)}.stack{--ydb-stack-base-z-index:100;--ydb-stack-offset-x:4px;--ydb-stack-offset-y:4px;--ydb-stack-offset-x-hover:4px;--ydb-stack-offset-y-hover:8px;position:relative}.stack__layer{background:var(--g-color-base-background);transition:transform .1s ease-out}.stack__layer:first-child{position:relative;z-index:var(--ydb-stack-base-z-index)}.stack__layer+.stack__layer{height:100%;left:0;position:absolute;top:0;transform:translate(calc(var(--ydb-stack-level)*var(--ydb-stack-offset-x)),calc(var(--ydb-stack-level)*var(--ydb-stack-offset-y)));width:100%;z-index:calc(var(--ydb-stack-base-z-index) - var(--ydb-stack-level))}.stack:hover .stack__layer:first-child{transform:translate(calc(var(--ydb-stack-offset-x-hover)*-1),calc(var(--ydb-stack-offset-y-hover)*-1))}.stack:hover .stack__layer+.stack__layer{transform:translate(calc(var(--ydb-stack-level)*var(--ydb-stack-offset-x-hover)*2 - var(--ydb-stack-offset-x-hover)),calc(var(--ydb-stack-level)*var(--ydb-stack-offset-y-hover)*2 - var(--ydb-stack-offset-y-hover)))}.storage-disk-progress-bar{--progress-bar-full-height:var(--g-text-body-3-line-height);--progress-bar-compact-height:12px;--entity-state-border-color:var(--g-color-base-misc-heavy);--entity-state-background-color:var(--g-color-base-misc-light);--entity-state-fill-color:var(--g-color-base-misc-medium);--entity-state-font-color:var(--g-color-text-primary);background-color:var(--entity-state-background-color);border:1px solid var(--entity-state-border-color);border-radius:4px;color:var(--g-color-text-primary);height:var(--progress-bar-full-height);min-width:50px;position:relative;text-align:center;z-index:0}.storage-disk-progress-bar_green{--entity-state-font-color:var(--g-color-text-positive);--entity-state-border-color:var(--g-color-base-positive-heavy);--entity-state-background-color:var(--g-color-base-positive-light);--entity-state-fill-color:var(--g-color-base-positive-medium)}.storage-disk-progress-bar_blue{--entity-state-font-color:var(--g-color-text-info);--entity-state-border-color:var(--g-color-base-info-heavy);--entity-state-background-color:var(--g-color-base-info-light);--entity-state-fill-color:var(--g-color-base-info-medium)}.storage-disk-progress-bar_yellow{--entity-state-font-color:var(--g-color-text-warning);--entity-state-border-color:var(--g-color-base-warning-heavy);--entity-state-background-color:var(--g-color-base-yellow-light);--entity-state-fill-color:var(--g-color-base-yellow-medium)}.storage-disk-progress-bar_orange{--entity-state-font-color:var(--g-color-private-orange-500);--entity-state-border-color:var(--ydb-color-status-orange);--entity-state-background-color:var(--g-color-private-orange-100);--entity-state-fill-color:var(--g-color-private-orange-300)}.storage-disk-progress-bar_red{--entity-state-font-color:var(--g-color-text-danger);--entity-state-border-color:var(--g-color-base-danger-heavy);--entity-state-background-color:var(--g-color-base-danger-light);--entity-state-fill-color:var(--g-color-base-danger-medium)}.storage-disk-progress-bar__grey{--entity-state-font-color:var(--g-color-text-secondary);--entity-state-border-color:var(--g-color-line-generic-hover)}.storage-disk-progress-bar_compact{border-radius:2px;height:var(--progress-bar-compact-height);min-width:0}.storage-disk-progress-bar_faded{background-color:initial}.storage-disk-progress-bar_inactive{opacity:.5}.storage-disk-progress-bar_empty{background-color:initial;border-style:dashed;color:var(--g-color-text-hint)}.storage-disk-progress-bar__fill-bar{background-color:var(--entity-state-fill-color);border-radius:3px 0 0 3px;height:100%;left:0;position:absolute;top:0}.storage-disk-progress-bar__fill-bar_faded{background-color:var(--entity-state-background-color)}.storage-disk-progress-bar__fill-bar_compact{border-radius:1px}.storage-disk-progress-bar__fill-bar_inverted{border-radius:0 3px 3px 0;left:auto;right:0}.storage-disk-progress-bar__title{color:inherit;font-size:var(--g-text-body-1-font-size);line-height:calc(var(--progress-bar-full-height) - 2px);position:relative;z-index:2}.pdisk-storage-popup,.vdisk-storage-popup{padding:12px}.vdisk-storage-popup .info-viewer+.info-viewer{border-top:1px solid var(--g-color-line-generic);margin-top:8px;padding-top:8px}.vdisk-storage-popup__donor-label{margin-bottom:8px}.ydb-vdisk-component,.ydb-vdisk-component__content{border-radius:4px}.pdisk-storage{position:relative;width:120px}.pdisk-storage__content{border-radius:4px;display:block;position:relative}.pdisk-storage__vdisks{display:flex;flex-wrap:wrap;gap:2px;margin-bottom:4px}.pdisk-storage__vdisks-item{flex-basis:5px;flex-shrink:0}.data-table__row:hover .pdisk-storage__vdisks-item .stack__layer{background:var(--ydb-data-table-color-hover)}.pdisk-storage__donors-stack{--ydb-stack-offset-x:0px;--ydb-stack-offset-y:-2px;--ydb-stack-offset-x-hover:0px;--ydb-stack-offset-y-hover:-7px}.pdisk-storage__media-type{color:var(--g-color-text-secondary);font-size:var(--g-text-body-1-font-size);line-height:var(--g-text-body-1-line-height);position:absolute;right:4px;top:50%;transform:translateY(-50%)}.ydb-storage-disks{align-items:center;display:flex;flex-direction:row;gap:20px;width:max-content}.ydb-storage-disks__vdisks-wrapper{display:flex;flex-direction:row;flex-grow:1;gap:4px;width:300px}.ydb-storage-disks__pdisks-wrapper{display:flex;flex-direction:row;gap:6px;justify-content:left;width:max-content}.ydb-storage-disks__vdisk-item{flex-basis:8px;flex-shrink:0}.ydb-storage-disks__vdisk-progress-bar{--progress-bar-compact-height:18px;border-radius:4px}.ydb-storage-disks__pdisk-item{width:80px}.ydb-storage-disks__pdisk-progress-bar{--progress-bar-full-height:20px;padding-left:var(--g-spacing-2);text-align:left}.ydb-storage-groups-columns__disks-column,.ydb-storage-groups-columns__vdisks-column{overflow:visible}.ydb-storage-groups-columns__vdisks-wrapper{display:flex;gap:10px;justify-content:center;min-width:500px}.ydb-storage-groups-columns__vdisks-item{flex-grow:1;max-width:200px}.data-table__row:hover .ydb-storage-groups-columns__vdisks-item .stack__layer{background:var(--ydb-data-table-color-hover)}.ydb-storage-groups-columns__pool-name-wrapper{width:230px}.ydb-storage-groups-columns__group-id{font-weight:500}.developer-ui-link-button{display:none}.data-table__row:hover .developer-ui-link-button,.developer-ui-link-button_visible,.ydb-paginated-table__row:hover .developer-ui-link-button{display:inline-block}.ydb-storage-nodes-columns__pdisks-column{overflow:visible}.ydb-storage-nodes-columns__pdisks-wrapper{align-items:flex-end;display:flex;justify-content:left;width:max-content}.ydb-storage-nodes-columns__pdisks-item{flex-grow:1;margin-right:10px;max-width:200px}.ydb-storage-nodes-columns__pdisks-item:last-child{margin-right:0}.global-storage__search{width:238px}.global-storage__table .g-tooltip{height:var(--g-text-body-2-line-height)!important}.global-storage .entity-status{justify-content:center}.link{color:var(--g-color-text-link);text-decoration:none}.link_external{margin-right:10px}.link:hover{color:var(--g-color-text-link-hover)}.ydb-storage-group-page{height:100%;overflow:auto;padding:0 20px;position:relative}.ydb-storage-group-page__info,.ydb-storage-group-page__meta,.ydb-storage-group-page__storage-title,.ydb-storage-group-page__title{left:0;margin-bottom:20px;position:sticky}.ydb-storage-group-page__meta{margin-top:20px}.ydb-storage-group-page__title{margin-bottom:60px}.ydb-storage-group-page__storage-title{font-size:var(--g-text-header-1-font-size);line-height:var(--g-text-header-1-line-height);margin-bottom:0}.ydb-storage-group-page__info{margin-top:var(--g-spacing-10)} \ No newline at end of file
diff --git a/ydb/core/viewer/monitoring/static/css/3862.f9d9bfe9.chunk.css b/ydb/core/viewer/monitoring/static/css/3862.f9d9bfe9.chunk.css
new file mode 100644
index 0000000000..1f40b20e94
--- /dev/null
+++ b/ydb/core/viewer/monitoring/static/css/3862.f9d9bfe9.chunk.css
@@ -0,0 +1 @@
+@charset "UTF-8";.auto-refresh-control{align-items:center;display:flex;gap:var(--g-spacing-1)}.g-tooltip[class]{--g-popup-border-width:0}.g-tooltip[class]>div{animation-duration:1ms;box-shadow:0 1px 5px 0 #00000026;box-sizing:border-box;max-width:360px;padding:4px 8px}.g-tooltip__content{-webkit-box-orient:vertical;-ms-box-orient:vertical;-webkit-line-clamp:20;-moz-line-clamp:20;-ms-line-clamp:20;display:-webkit-box;overflow:hidden;text-overflow:ellipsis}.ydb-status-icon__status-color_state_green{background-color:var(--ydb-color-status-green)}.ydb-status-icon__status-color_state_yellow{background-color:var(--ydb-color-status-yellow)}.ydb-status-icon__status-color_state_blue{background-color:var(--ydb-color-status-blue)}.ydb-status-icon__status-color_state_red{background-color:var(--ydb-color-status-red)}.ydb-status-icon__status-color_state_grey{background-color:var(--ydb-color-status-grey)}.ydb-status-icon__status-color_state_orange{background-color:var(--ydb-color-status-orange)}.ydb-status-icon__status-icon_state_blue{color:var(--ydb-color-status-blue)}.ydb-status-icon__status-icon_state_yellow{color:var(--ydb-color-status-yellow)}.ydb-status-icon__status-icon_state_orange{color:var(--ydb-color-status-orange)}.ydb-status-icon__status-icon_state_red{color:var(--ydb-color-status-red)}.ydb-status-icon__status-color,.ydb-status-icon__status-icon{border-radius:3px;flex-shrink:0}.ydb-status-icon__status-color_size_xs,.ydb-status-icon__status-icon_size_xs{aspect-ratio:1;height:12px;width:12px}.ydb-status-icon__status-color_size_s,.ydb-status-icon__status-icon_size_s{aspect-ratio:1;height:16px;width:16px}.ydb-status-icon__status-color_size_m,.ydb-status-icon__status-icon_size_m{aspect-ratio:1;height:18px;width:18px}.ydb-status-icon__status-color_size_l,.ydb-status-icon__status-icon_size_l{height:24px;width:24px}.entity-status{align-items:center;display:inline-flex;font-size:var(--g-text-body-2-font-size);height:100%;line-height:var(--g-text-body-2-line-height);max-width:100%}.entity-status__icon{margin-right:var(--g-spacing-2)}.entity-status__clipboard-button{color:var(--g-color-text-secondary);display:flex;flex-shrink:0;margin-left:var(--g-spacing-2);opacity:0}.entity-status__clipboard-button:focus-visible,.entity-status__clipboard-button_visible{opacity:1}.entity-status__additional-controls{margin-left:var(--g-spacing-1)}.entity-status__label{color:var(--g-color-text-complementary);font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height);margin-right:2px}.entity-status__label_size_l{font-size:var(--g-text-header-2-font-size)}.entity-status__link{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.entity-status__link_with-left-trim{direction:rtl}.entity-status__link_with-left-trim .entity-status__name{unicode-bidi:plaintext}.entity-status__label_state_blue{color:var(--ydb-color-status-blue)}.entity-status__label_state_yellow{color:var(--ydb-color-status-yellow)}.entity-status__label_state_orange{color:var(--ydb-color-status-orange)}.entity-status__label_state_red{color:var(--ydb-color-status-red)}.ydb-resizeable-data-table{display:flex;padding-right:20px;width:max-content}.ydb-search{min-width:100px}.table-skeleton__wrapper{width:100%}.table-skeleton__wrapper_hidden{visibility:hidden}.table-skeleton__row{align-items:center;display:flex;height:var(--data-table-row-height)}.table-skeleton__row .g-skeleton{height:var(--g-text-body-2-line-height)}.table-skeleton__col-1{margin-right:5%;width:10%}.table-skeleton__col-2{margin-right:5%;width:7%}.table-skeleton__col-3,.table-skeleton__col-4{margin-right:5%;width:5%}.table-skeleton__col-5{width:20%}.table-skeleton__col-full{width:100%}.g-skeleton{--_--animation-from:calc(-100%*var(--g-flow-direction));--_--animation-to:calc(100%*var(--g-flow-direction));--_--gradient-deg:calc(90deg*var(--g-flow-direction));background-color:var(--g-color-base-generic);border-radius:5px;display:inline-block;overflow:hidden;position:relative;width:100%;z-index:0}.g-skeleton:after{animation:g-skeleton 1.2s ease-out infinite;background-image:linear-gradient(var(--_--gradient-deg),#0000,var(--g-color-base-generic));content:"";inset:0;position:absolute}@keyframes g-skeleton{0%{transform:translateX(var(--_--animation-from))}to{transform:translateX(var(--_--animation-to))}}.ydb-table-with-controls-layout{box-sizing:border-box;display:inline-block;min-width:100%}.ydb-table-with-controls-layout__controls-wrapper{background-color:var(--g-color-base-background);box-sizing:border-box;left:0;position:sticky;top:0;width:100%;z-index:3}.ydb-table-with-controls-layout__controls{align-items:center;background-color:var(--g-color-base-background);display:flex;gap:12px;height:62px;left:0;padding:16px 0 18px;position:sticky;top:0;width:max-content;z-index:3}.ydb-table-with-controls-layout__table{position:relative;z-index:2}.ydb-table-with-controls-layout .ydb-paginated-table__head{top:62px}.ydb-table-with-controls-layout .data-table__sticky_moving{top:62px!important}.ydb-cell-with-popover{display:flex;max-width:100%}.ydb-cell-with-popover__popover{display:inline-block;max-width:100%;overflow:hidden;text-overflow:ellipsis;vertical-align:middle;white-space:nowrap}.ydb-cell-with-popover__popover .g-popover__handler{display:inline}.developer-ui-link-button{display:none}.data-table__row:hover .developer-ui-link-button,.developer-ui-link-button_visible,.ydb-paginated-table__row:hover .developer-ui-link-button{display:inline-block}.ydb-pool-bar{border:1px solid;border-radius:1px;cursor:pointer;height:20px;margin-right:2px;position:relative;width:6px}.ydb-pool-bar__popup-content{padding:10px;width:170px}.ydb-pool-bar:last-child{margin-right:0}.ydb-pool-bar_type_normal{border-color:var(--ydb-color-status-green)}.ydb-pool-bar_type_warning{border-color:var(--ydb-color-status-yellow)}.ydb-pool-bar_type_danger{border-color:var(--ydb-color-status-red)}.ydb-pool-bar__value{bottom:0;min-height:1px;position:absolute;width:100%}.ydb-pool-bar__value_type_normal{background-color:var(--ydb-color-status-green)}.ydb-pool-bar__value_type_warning{background-color:var(--ydb-color-status-yellow)}.ydb-pool-bar__value_type_danger{background-color:var(--ydb-color-status-red)}.ydb-pools-graph{display:flex}.progress-viewer{align-items:center;background:var(--g-color-base-generic);border-radius:2px;color:var(--g-color-text-complementary);display:flex;font-size:var(--g-text-body-2-font-size);height:23px;justify-content:center;min-width:120px;overflow:hidden;padding:0 4px;position:relative;white-space:nowrap;z-index:0}.progress-viewer_theme_dark{color:var(--g-color-text-light-primary)}.progress-viewer_theme_dark .progress-viewer__line{opacity:.75}.progress-viewer_status_good{background-color:var(--g-color-base-positive-light)}.progress-viewer_status_good .progress-viewer__line{background-color:var(--ydb-color-status-green)}.progress-viewer_status_warning{background-color:var(--g-color-base-yellow-light)}.progress-viewer_status_warning .progress-viewer__line{background-color:var(--ydb-color-status-yellow)}.progress-viewer_status_danger{background-color:var(--g-color-base-danger-light)}.progress-viewer_status_danger .progress-viewer__line{background-color:var(--ydb-color-status-red)}.progress-viewer__line{height:100%;left:0;position:absolute;top:0}.progress-viewer__text{position:relative;z-index:1}.progress-viewer_size_xs{font-size:var(--g-text-body-2-font-size);height:20px;line-height:var(--g-text-body-2-line-height)}.progress-viewer_size_s{font-size:var(--g-text-body-1-font-size);height:28px;line-height:28px}.progress-viewer_size_m{font-size:var(--g-text-body-2-font-size);height:32px;line-height:32px}.progress-viewer_size_ns{font-size:13px;height:24px;line-height:var(--g-text-subheader-3-line-height)}.progress-viewer_size_n{font-size:var(--g-text-body-1-font-size);height:36px;line-height:36px}.progress-viewer_size_l{font-size:var(--g-text-subheader-3-font-size);height:38px;line-height:38px}.progress-viewer_size_head{font-size:var(--g-text-body-1-font-size);line-height:36px}.tablets-statistic{align-items:center;display:flex;gap:2px}.tablets-statistic__tablet{border:1px solid;border-radius:2px;color:var(--g-color-text-secondary);display:inline-block;font-size:11px;height:20px;line-height:20px;padding:0 4px;text-align:center;text-decoration:none;text-transform:uppercase}.tablets-statistic__tablet_state_green{background-color:var(--g-color-base-positive-light);color:var(--g-color-text-positive)}.tablets-statistic__tablet_state_yellow{background-color:var(--g-color-base-warning-light);color:var(--g-color-text-warning)}.tablets-statistic__tablet_state_blue{background-color:var(--g-color-base-info-light);color:var(--g-color-text-info)}.tablets-statistic__tablet_state_orange{background-color:var(--g-color-base-warning-light);color:var(--g-color-text-warning-heavy)}.tablets-statistic__tablet_state_red{background:var(--g-color-base-danger-light);color:var(--g-color-text-danger)}.tablets-statistic__tablet_state_grey{border:1px solid var(--g-color-line-generic-hover);color:var(--g-color-text-secondary)}.ydb-usage-label_overload{background-color:var(--ydb-color-status-red);color:var(--g-color-text-light-primary)}.ydb-nodes__search{width:238px}.ydb-nodes__show-all-wrapper{left:0;margin-bottom:15px;position:sticky}.ydb-nodes__node_unavailable{opacity:.6}.g-table-column-setup__status{color:var(--g-color-text-secondary);margin-inline-start:5px}.g-inner-table-column-setup{display:inline-block}.g-inner-table-column-setup__controls{margin:var(--g-spacing-1) var(--g-spacing-1) 0}.g-inner-table-column-setup__filter-input{border-block-end:1px solid var(--g-color-line-generic);box-sizing:border-box;padding:0 var(--g-spacing-2) var(--g-spacing-1)}.g-inner-table-column-setup__empty-placeholder{padding:var(--g-spacing-2)}.g-list-container-view{box-sizing:border-box;outline:none;width:100%}.g-list-container-view_fixed-height{height:300px;height:var(--g-list-container-height,300px)}.g-list-container-view:not(.g-list-container-view_fixed-height){overflow:auto}.g-list-item-view{flex-shrink:0}.g-list-item-view__main-content{grid-gap:2px;grid-gap:var(--g-spacing-half,2px);display:grid;gap:2px;gap:var(--g-spacing-half,2px);width:100%}.g-list-item-view:hover.g-list-item-view_activeOnHover,.g-list-item-view_active{background:var(--g-color-base-simple-hover)}.g-list-item-view_clickable{cursor:pointer}.g-list-item-view_selected,.g-list-item-view_selected.g-list-item-view_active,.g-list-item-view_selected:hover.g-list-item-view_activeOnHover{background:var(--g-color-base-selection)}.g-list-item-view_dragging,.g-list-item-view_dragging.g-list-item-view_active,.g-list-item-view_dragging.g-list-item-view_selected{background:var(--g-color-base-simple-hover-solid);z-index:100001!important}.g-list-item-view_radius_s{border-radius:3px;border-radius:var(--g-list-item-border-radius,3px)}.g-list-item-view_radius_m{border-radius:5px;border-radius:var(--g-list-item-border-radius,5px)}.g-list-item-view_radius_l{border-radius:6px;border-radius:var(--g-list-item-border-radius,6px)}.g-list-item-view_radius_xl{border-radius:8px;border-radius:var(--g-list-item-border-radius,8px)}.g-list-item-view__icon,.g-list-item-view__slot{flex-shrink:0}.g-tree-select{display:inline-block;max-width:100%}.g-tree-select_width_max{width:100%}.g-tree-select__popup{overflow:hidden;padding:4px 0}.g-tree-select__popup_size_s{border-radius:5px;border-radius:var(--g-list-container-border-radius,5px)}.g-tree-select__popup_size_m{border-radius:6px;border-radius:var(--g-list-container-border-radius,6px)}.g-tree-select__popup_size_l{border-radius:8px;border-radius:var(--g-list-container-border-radius,8px)}.g-tree-select__popup_size_xl{border-radius:10px;border-radius:var(--g-list-container-border-radius,10px)}.g-tree-select__list{padding:0 4px}.g-list-recursive-renderer{margin:0;padding:0}.ydb-paginated-table{--paginated-table-cell-vertical-padding:5px;--paginated-table-cell-horizontal-padding:10px;--paginated-table-border-color:var(--g-color-base-generic-hover);--paginated-table-hover-color:var(--g-color-base-float-hover);font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height);width:100%}.ydb-paginated-table__table{border-collapse:initial;border-spacing:0;max-width:100%;table-layout:fixed;width:max-content}.ydb-paginated-table__table th{padding:0}.ydb-paginated-table__row{position:relative;z-index:1}.ydb-paginated-table__row:hover{background:var(--paginated-table-hover-color)}.ydb-paginated-table__row_empty:hover{background-color:initial}.ydb-paginated-table__head{background-color:var(--g-color-base-background);left:0;position:sticky;top:0;z-index:2}.ydb-paginated-table__sort-icon-container{color:inherit;display:flex;justify-content:center}.ydb-paginated-table__sort-icon-container_shadow{opacity:.15}.ydb-paginated-table__sort-icon_desc{transform:rotate(180deg)}.ydb-paginated-table__head-cell-wrapper{border-bottom:1px solid var(--paginated-table-border-color);display:table-cell;overflow-x:hidden;position:relative}.ydb-paginated-table__head-cell{align-items:center;display:flex;flex-direction:row;max-width:100%;padding:var(--paginated-table-cell-vertical-padding) var(--paginated-table-cell-horizontal-padding);width:100%}.ydb-paginated-table__head-cell_align_left{justify-content:left}.ydb-paginated-table__head-cell_align_center{justify-content:center}.ydb-paginated-table__head-cell_align_right{justify-content:right}.ydb-paginated-table__head-cell{cursor:default;font-weight:700;gap:8px}.ydb-paginated-table__head-cell_sortable{cursor:pointer}.ydb-paginated-table__head-cell_sortable.ydb-paginated-table__head-cell_align_right{flex-direction:row-reverse}.ydb-paginated-table__head-cell-content{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:min-content}.ydb-paginated-table__row-cell{border-bottom:1px solid var(--paginated-table-border-color);display:table-cell;max-width:100%;overflow-x:hidden;padding:var(--paginated-table-cell-vertical-padding) var(--paginated-table-cell-horizontal-padding);text-overflow:ellipsis;vertical-align:middle;white-space:nowrap;width:100%}.ydb-paginated-table__row-cell_align_left{text-align:left}.ydb-paginated-table__row-cell_align_center{text-align:center}.ydb-paginated-table__row-cell_align_right{text-align:right}.ydb-paginated-table__resize-handler{background-color:var(--g-color-base-generic);cursor:col-resize;height:100%;position:absolute;right:0;top:0;visibility:hidden;width:6px}.ydb-paginated-table__head-cell-wrapper:hover>.ydb-paginated-table__resize-handler,.ydb-paginated-table__resize-handler_resizing{visibility:visible}.ydb-paginated-table__resizeable-table-container{padding-right:20px;width:max-content}.ydb-paginated-table__row-skeleton:after{animation-delay:.2s}.stack{--ydb-stack-base-z-index:100;--ydb-stack-offset-x:4px;--ydb-stack-offset-y:4px;--ydb-stack-offset-x-hover:4px;--ydb-stack-offset-y-hover:8px;position:relative}.stack__layer{background:var(--g-color-base-background);transition:transform .1s ease-out}.stack__layer:first-child{position:relative;z-index:var(--ydb-stack-base-z-index)}.stack__layer+.stack__layer{height:100%;left:0;position:absolute;top:0;transform:translate(calc(var(--ydb-stack-level)*var(--ydb-stack-offset-x)),calc(var(--ydb-stack-level)*var(--ydb-stack-offset-y)));width:100%;z-index:calc(var(--ydb-stack-base-z-index) - var(--ydb-stack-level))}.stack:hover .stack__layer:first-child{transform:translate(calc(var(--ydb-stack-offset-x-hover)*-1),calc(var(--ydb-stack-offset-y-hover)*-1))}.stack:hover .stack__layer+.stack__layer{transform:translate(calc(var(--ydb-stack-level)*var(--ydb-stack-offset-x-hover)*2 - var(--ydb-stack-offset-x-hover)),calc(var(--ydb-stack-level)*var(--ydb-stack-offset-y-hover)*2 - var(--ydb-stack-offset-y-hover)))}.storage-disk-progress-bar{--progress-bar-full-height:var(--g-text-body-3-line-height);--progress-bar-compact-height:12px;--entity-state-border-color:var(--g-color-base-misc-heavy);--entity-state-background-color:var(--g-color-base-misc-light);--entity-state-fill-color:var(--g-color-base-misc-medium);--entity-state-font-color:var(--g-color-text-primary);background-color:var(--entity-state-background-color);border:1px solid var(--entity-state-border-color);border-radius:4px;color:var(--g-color-text-primary);height:var(--progress-bar-full-height);min-width:50px;position:relative;text-align:center;z-index:0}.storage-disk-progress-bar_green{--entity-state-font-color:var(--g-color-text-positive);--entity-state-border-color:var(--g-color-base-positive-heavy);--entity-state-background-color:var(--g-color-base-positive-light);--entity-state-fill-color:var(--g-color-base-positive-medium)}.storage-disk-progress-bar_blue{--entity-state-font-color:var(--g-color-text-info);--entity-state-border-color:var(--g-color-base-info-heavy);--entity-state-background-color:var(--g-color-base-info-light);--entity-state-fill-color:var(--g-color-base-info-medium)}.storage-disk-progress-bar_yellow{--entity-state-font-color:var(--g-color-text-warning);--entity-state-border-color:var(--g-color-base-warning-heavy);--entity-state-background-color:var(--g-color-base-yellow-light);--entity-state-fill-color:var(--g-color-base-yellow-medium)}.storage-disk-progress-bar_orange{--entity-state-font-color:var(--g-color-private-orange-500);--entity-state-border-color:var(--ydb-color-status-orange);--entity-state-background-color:var(--g-color-private-orange-100);--entity-state-fill-color:var(--g-color-private-orange-300)}.storage-disk-progress-bar_red{--entity-state-font-color:var(--g-color-text-danger);--entity-state-border-color:var(--g-color-base-danger-heavy);--entity-state-background-color:var(--g-color-base-danger-light);--entity-state-fill-color:var(--g-color-base-danger-medium)}.storage-disk-progress-bar__grey{--entity-state-font-color:var(--g-color-text-secondary);--entity-state-border-color:var(--g-color-line-generic-hover)}.storage-disk-progress-bar_compact{border-radius:2px;height:var(--progress-bar-compact-height);min-width:0}.storage-disk-progress-bar_faded{background-color:initial}.storage-disk-progress-bar_inactive{opacity:.5}.storage-disk-progress-bar_empty{background-color:initial;border-style:dashed;color:var(--g-color-text-hint)}.storage-disk-progress-bar__fill-bar{background-color:var(--entity-state-fill-color);border-radius:3px 0 0 3px;height:100%;left:0;position:absolute;top:0}.storage-disk-progress-bar__fill-bar_faded{background-color:var(--entity-state-background-color)}.storage-disk-progress-bar__fill-bar_compact{border-radius:1px}.storage-disk-progress-bar__fill-bar_inverted{border-radius:0 3px 3px 0;left:auto;right:0}.storage-disk-progress-bar__title{color:inherit;font-size:var(--g-text-body-1-font-size);line-height:calc(var(--progress-bar-full-height) - 2px);position:relative;z-index:2}.pdisk-storage-popup,.vdisk-storage-popup{padding:12px}.vdisk-storage-popup .info-viewer+.info-viewer{border-top:1px solid var(--g-color-line-generic);margin-top:8px;padding-top:8px}.vdisk-storage-popup__donor-label{margin-bottom:8px}.ydb-vdisk-component,.ydb-vdisk-component__content{border-radius:4px}.pdisk-storage{position:relative;width:120px}.pdisk-storage__content{border-radius:4px;display:block;position:relative}.pdisk-storage__vdisks{display:flex;flex-wrap:wrap;gap:2px;margin-bottom:4px}.pdisk-storage__vdisks-item{flex-basis:3px;flex-shrink:0}.data-table__row:hover .pdisk-storage__vdisks-item .stack__layer{background:var(--ydb-data-table-color-hover)}.pdisk-storage__donors-stack{--ydb-stack-offset-x:0px;--ydb-stack-offset-y:-2px;--ydb-stack-offset-x-hover:0px;--ydb-stack-offset-y-hover:-7px}.pdisk-storage__media-type{color:var(--g-color-text-secondary);font-size:var(--g-text-body-1-font-size);line-height:var(--g-text-body-1-line-height);position:absolute;right:4px;top:50%;transform:translateY(-50%)}.ydb-storage-disks{align-items:center;display:flex;flex-direction:row;gap:20px;width:max-content}.ydb-storage-disks__vdisks-wrapper{display:flex;flex-direction:row;flex-grow:1;gap:4px;width:300px}.ydb-storage-disks__pdisks-wrapper{display:flex;flex-direction:row;gap:6px;justify-content:left;width:max-content}.ydb-storage-disks__vdisk-item{flex-basis:8px;flex-shrink:0}.ydb-storage-disks__vdisk-progress-bar{--progress-bar-compact-height:18px;border-radius:4px}.ydb-storage-disks__pdisk-item{width:80px}.ydb-storage-disks__pdisk-progress-bar{--progress-bar-full-height:20px;padding-left:var(--g-spacing-2);text-align:left}.ydb-storage-groups-columns__disks-column,.ydb-storage-groups-columns__vdisks-column{overflow:visible}.ydb-storage-groups-columns__vdisks-wrapper{display:flex;gap:10px;justify-content:center;min-width:500px}.ydb-storage-groups-columns__vdisks-item{flex-grow:1;max-width:200px}.data-table__row:hover .ydb-storage-groups-columns__vdisks-item .stack__layer{background:var(--ydb-data-table-color-hover)}.ydb-storage-groups-columns__pool-name-wrapper{width:230px}.ydb-storage-groups-columns__group-id{font-weight:500}.ydb-table-group{border:1px solid var(--g-color-line-generic);border-radius:var(--g-spacing-2);display:flex;flex-direction:column;margin-bottom:20px;width:100%}.ydb-table-group__button{background:#0000 none repeat 0 0/auto auto padding-box border-box scroll;background:initial;border:initial;cursor:pointer;padding:8px 0}.ydb-table-group__title-wrapper{align-items:center;display:flex;flex-direction:row;gap:var(--g-spacing-2);justify-content:flex-start;left:0;padding-left:20px;position:sticky;width:max-content}.ydb-table-group__title{display:flex;flex-direction:row;gap:var(--g-spacing-4)}.ydb-table-group__count{display:flex;flex-direction:row;gap:var(--g-spacing-3)}.ydb-table-group__content{padding:12px 0 20px 20px}.global-storage__search{width:238px}.global-storage__table .g-tooltip{height:var(--g-text-body-2-line-height)!important}.global-storage .entity-status{justify-content:center}.global-storage__groups-wrapper{padding-right:20px}.ydb-storage-nodes-columns__pdisks-column{overflow:visible}.ydb-storage-nodes-columns__pdisks-wrapper{align-items:flex-end;display:flex;height:40px;justify-content:left;width:max-content}.ydb-storage-nodes-columns__pdisks-item{flex-grow:1;margin-right:10px;max-width:200px}.ydb-storage-nodes-columns__pdisks-item:last-child{margin-right:0}.tenants__format-label{margin-right:15px}.tenants__title{text-align:center}.tenants__tooltip{animation:none!important}.tenants__search{width:238px}.tenants__tablets{padding:0!important}.tenants__tablets .tablets-viewer__grid{grid-gap:20px}.tenants__type{align-items:center;display:flex;flex-direction:row;gap:10px}.tenants__type-value{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:min-content}.tenants__type-button{display:none}.data-table__row:hover .tenants__type-button{display:block}.tenants__name{overflow:hidden}.ydb-versions-nodes-tree-title__overview{align-items:center;display:flex;justify-content:space-between;width:100%}.ydb-versions-nodes-tree-title__overview-info{align-items:center;display:flex;margin-left:25px}.ydb-versions-nodes-tree-title__overview-info>:not(:first-child){margin-left:30px}.ydb-versions-nodes-tree-title__overview-container{align-items:center;display:flex}.ydb-versions-nodes-tree-title__info-label{color:var(--g-color-text-complementary);font-weight:200}.ydb-versions-nodes-tree-title__info-label_margin_left{margin-left:5px}.ydb-versions-nodes-tree-title__info-label_margin_right{margin-right:5px}.ydb-versions-nodes-tree-title__version-color{border-radius:100%;height:16px;margin-right:10px;width:16px}.ydb-versions-nodes-tree-title__version-progress{align-items:center;display:flex;width:250px}.ydb-versions-nodes-tree-title__version-progress .g-progress{width:200px}.ydb-versions-nodes-tree-title__overview-title{align-items:center;display:flex}.ydb-versions-nodes-tree-title__clipboard-button{color:var(--g-color-text-secondary);margin-left:8px;opacity:0}.g-progress{--_--empty-background-color:var(--g-color-base-generic);--_--empty-text-color:var(--g-color-text-primary);--_--filled-text-color:var(--g-color-text-primary);--_--filled-background-color:var(--g-color-base-neutral-medium);background-color:var(--_--empty-background-color);background-color:var(--g-progress-empty-background-color,var(--_--empty-background-color));border-radius:3px;margin:0 auto;overflow:hidden;position:relative;text-align:center}.g-progress__text{color:var(--_--empty-text-color);color:var(--g-progress-empty-text-color,var(--_--empty-text-color));position:relative}.g-progress__text,.g-progress__text-inner{box-sizing:border-box;font-family:var(--g-text-body-font-family);font-size:var(--g-text-body-short-font-size);font-weight:var(--g-text-body-font-weight);padding:0 10px}.g-progress__text-inner{color:var(--_--empty-text-color);color:var(--g-progress-filled-text-color,var(--_--empty-text-color));height:100%;position:absolute;transition:transform .6s ease;width:100%}.g-progress__item{background-color:var(--_--filled-background-color);background-color:var(--g-progress-filled-background-color,var(--_--filled-background-color));float:left;height:100%;overflow:hidden;position:relative;transition:transform .6s ease,width .6s ease,background-color .6s ease;width:100%}[dir=rtl] .g-progress__item{float:right}.g-progress__item_theme_default{--_--filled-background-color:var(--g-color-base-neutral-medium)}.g-progress__item_theme_success{--_--filled-background-color:var(--g-color-base-positive-medium)}.g-progress__item_theme_warning{--_--filled-background-color:var(--g-color-base-warning-medium)}.g-progress__item_theme_danger{--_--filled-background-color:var(--g-color-base-danger-medium)}.g-progress__item_theme_info{--_--filled-background-color:var(--g-color-base-info-medium)}.g-progress__item_theme_misc{--_--filled-background-color:var(--g-color-base-misc-medium)}.g-progress__item_loading{animation:g-loading-animation .5s linear infinite;background-clip:padding-box;background-image:repeating-linear-gradient(-45deg,#ffffff4d,#ffffff4d 4px,#0000 0,#0000 8px);background-size:150%}.g-progress__stack{color:var(--g-color-text-light-primary);margin:0 auto;overflow:hidden;position:relative;transition:transform .6s ease;width:100%}.g-progress_size_m,.g-progress_size_m .g-progress__stack{height:20px;line-height:20px}.g-progress_size_m .g-progress__text{height:20px;margin-block-end:-20px}.g-progress_size_s,.g-progress_size_s .g-progress__stack{height:10px;line-height:10px}.g-progress_size_xs,.g-progress_size_xs .g-progress__stack{height:4px;line-height:4px}.g-progress_size_s .g-progress__text,.g-progress_size_s .g-progress__text-inner,.g-progress_size_xs .g-progress__text,.g-progress_size_xs .g-progress__text-inner{display:none}.ydb-versions-grouped-node-tree_first-level{border:1px solid var(--g-color-line-generic);border-radius:10px;margin-bottom:10px;margin-top:10px}.ydb-versions-grouped-node-tree__dt-wrapper{margin-left:24px;margin-right:24px;overflow:auto hidden;position:relative;z-index:0}.ydb-versions-grouped-node-tree__dt-wrapper .data-table__head-row:first-child .data-table__th:first-child,.ydb-versions-grouped-node-tree__dt-wrapper .data-table__td:first-child{background-color:var(--g-color-base-background);border-right:1px solid var(--g-color-line-generic);left:0;position:sticky;z-index:2000}.ydb-versions-grouped-node-tree__dt-wrapper .data-table__row:hover .data-table__td:first-child{background-color:var(--ydb-data-table-color-hover)!important}.ydb-versions-grouped-node-tree__dt-wrapper .data-table__head-row:first-child .data-table__th:nth-child(2),.ydb-versions-grouped-node-tree__dt-wrapper .data-table__td:nth-child(2){background-color:var(--g-color-base-background);border-right:1px solid var(--g-color-line-generic);left:80px;position:sticky;z-index:2000}.ydb-versions-grouped-node-tree__dt-wrapper .data-table__row:hover .data-table__td:nth-child(2){background-color:var(--ydb-data-table-color-hover)!important}.ydb-versions-grouped-node-tree__dt-wrapper .data-table__head-row:first-child .data-table__th:first-child,.ydb-versions-grouped-node-tree__dt-wrapper .data-table__head-row:first-child .data-table__th:nth-child(0),.ydb-versions-grouped-node-tree__dt-wrapper .data-table__td:first-child,.ydb-versions-grouped-node-tree__dt-wrapper .data-table__td:nth-child(0){border-right:initial;box-shadow:none}.ydb-versions-grouped-node-tree__dt-wrapper .data-table__head-row:first-child .data-table__th:nth-child(2),.ydb-versions-grouped-node-tree__dt-wrapper .data-table__td:nth-child(2){box-shadow:none}.ydb-versions-grouped-node-tree .ydb-tree-view{font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height)}.ydb-versions-grouped-node-tree .ydb-tree-view .ydb-tree-view{margin-left:24px}.ydb-versions-grouped-node-tree .tree-view_item{border:0;border-radius:10px;height:40px;margin:0;padding:0 10px!important}.ydb-versions-grouped-node-tree .tree-view_children .tree-view_item{width:100%}.ydb-versions-grouped-node-tree .g-progress__stack{cursor:pointer}.ydb-tree-view{--ydb-tree-view-level:0;font-size:13px;line-height:18px}.ydb-tree-view,.ydb-tree-view *{box-sizing:border-box}.ydb-tree-view__item{align-items:center;border-bottom:1px solid var(--g-color-line-generic-solid);cursor:pointer;display:flex;height:24px;padding-left:calc(24px*var(--ydb-tree-view-level));padding-right:3px}.ydb-tree-view__item:hover{background-color:var(--g-color-base-simple-hover)}.ydb-tree-view__item:hover .ydb-tree-view__actions{display:flex}.ydb-tree-view__item_active{background-color:var(--g-color-base-selection);font-weight:700}.ydb-tree-view__item_active:hover{background-color:var(--g-color-base-selection-hover)}.ydb-tree-view__content{align-items:center;display:flex;flex-grow:1;overflow:hidden}.ydb-tree-view__icon{align-items:center;color:var(--g-color-text-hint);display:flex;flex-shrink:0;height:24px;justify-content:center;width:24px}.ydb-tree-view__icon svg{display:block}.ydb-tree-view__text{flex-grow:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ydb-tree-view__actions{align-items:center;display:none;margin-left:6px}.ydb-tree-view__arrow{background:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 6 12" width="6" height="12"><path d="M0.192529 10.7483C-0.0845649 11.0562 -0.0596061 11.5304 0.248276 11.8075C0.556159 12.0846 1.03038 12.0596 1.30747 11.7517L0.192529 10.7483ZM5.25 6.25L5.80747 6.75172C6.06418 6.46649 6.06418 6.0335 5.80747 5.74828L5.25 6.25ZM1.30747 0.748277C1.03038 0.440394 0.556159 0.415435 0.248276 0.69253C-0.0596065 0.969624 -0.0845653 1.44384 0.192529 1.75172L1.30747 0.748277ZM1.30747 11.7517L5.80747 6.75172L4.69253 5.74828L0.192529 10.7483L1.30747 11.7517ZM5.80747 5.74828L1.30747 0.748277L0.192529 1.75172L4.69253 6.75172L5.80747 5.74828Z" fill="rgba%280, 0, 0, 0.85%29"/></svg>') no-repeat 50%;border:none;cursor:pointer;flex-shrink:0;height:24px;padding:0;width:24px}.g-root_theme_dark .ydb-tree-view__arrow{background:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 6 12" width="6" height="12"><path d="M0.192529 10.7483C-0.0845649 11.0562 -0.0596061 11.5304 0.248276 11.8075C0.556159 12.0846 1.03038 12.0596 1.30747 11.7517L0.192529 10.7483ZM5.25 6.25L5.80747 6.75172C6.06418 6.46649 6.06418 6.0335 5.80747 5.74828L5.25 6.25ZM1.30747 0.748277C1.03038 0.440394 0.556159 0.415435 0.248276 0.69253C-0.0596065 0.969624 -0.0845653 1.44384 0.192529 1.75172L1.30747 0.748277ZM1.30747 11.7517L5.80747 6.75172L4.69253 5.74828L0.192529 10.7483L1.30747 11.7517ZM5.80747 5.74828L1.30747 0.748277L0.192529 1.75172L4.69253 6.75172L5.80747 5.74828Z" fill="rgba%28255, 255, 255, 0.85%29"/></svg>') no-repeat 50%}.ydb-tree-view__arrow:focus-visible{outline:2px solid var(--g-color-line-focus)}.ydb-tree-view__arrow:not(.ydb-tree-view__arrow_collapsed){transform:rotate(90deg)}.ydb-tree-view__arrow_hidden{visibility:hidden}.ydb-tree-view .ydb-tree-view .ydb-tree-view__item{padding-left:24px}.ydb-tree-view .ydb-tree-view .ydb-tree-view .ydb-tree-view__item{padding-left:48px}.ydb-tree-view .ydb-tree-view .ydb-tree-view .ydb-tree-view .ydb-tree-view__item{padding-left:72px}.ydb-tree-view .ydb-tree-view .ydb-tree-view .ydb-tree-view .ydb-tree-view .ydb-tree-view__item{padding-left:96px}.ydb-tree-view .ydb-tree-view .ydb-tree-view .ydb-tree-view .ydb-tree-view .ydb-tree-view .ydb-tree-view__item{padding-left:120px}.ydb-versions__controls{align-items:center;display:flex;padding:0 0 20px}.ydb-versions__controls .ydb-versions__label{font-weight:500;margin-right:10px}.ydb-versions__controls .ydb-versions__checkbox{margin:0}.ydb-versions__controls>*{margin-right:25px}.g-checkbox__indicator{cursor:inherit;display:inline-block;position:relative}.g-checkbox__indicator:before{background-color:initial;border:1px solid var(--g-color-line-generic-accent);border-radius:4px;content:"";inset:0;position:absolute;transition:background .1s linear}.g-checkbox__indicator:after{content:" ";visibility:hidden}.g-checkbox__icon{align-items:center;color:#0000;display:flex;inset:0;justify-content:center;pointer-events:none;position:absolute;transform:translateY(-5px);transition:color .1s,transform .2s;visibility:hidden}.g-checkbox__control{border:none;cursor:inherit;margin:0;opacity:0;outline:none;padding:0}.g-checkbox__control,.g-checkbox__outline{background:none;height:100%;inset-block-start:0;inset-inline-start:0;position:absolute;width:100%}.g-checkbox__outline{border-radius:4px;pointer-events:none}.g-checkbox__control:focus-visible+.g-checkbox__outline{outline:2px solid var(--g-color-line-focus)}.g-checkbox_size_m .g-checkbox__icon-svg_type_tick{height:10px;width:8px}.g-checkbox_size_m .g-checkbox__icon-svg_type_dash{height:12px;width:12px}.g-checkbox_size_m .g-checkbox__indicator{height:14px;width:14px}.g-checkbox_size_l .g-checkbox__icon-svg_type_tick{height:9px;width:11px}.g-checkbox_size_l .g-checkbox__icon-svg_type_dash{height:15px;width:15px}.g-checkbox_size_l .g-checkbox__indicator{height:17px;width:17px}.g-checkbox:hover .g-checkbox__indicator:before{border-color:var(--g-color-line-generic-accent-hover)}.g-checkbox_checked .g-checkbox__indicator:before,.g-checkbox_indeterminate .g-checkbox__indicator:before{background-color:var(--g-color-base-brand);border:#0000}.g-checkbox_checked .g-checkbox__icon,.g-checkbox_indeterminate .g-checkbox__icon{color:var(--g-color-text-brand-contrast);transform:translateX(0);visibility:visible}.g-checkbox_disabled .g-checkbox__indicator:before{background-color:var(--g-color-base-generic-accent-disabled);border:#0000}.g-checkbox_disabled.g-checkbox_checked .g-checkbox__indicator:before,.g-checkbox_disabled.g-checkbox_indeterminate .g-checkbox__indicator:before{background-color:var(--g-color-base-brand);opacity:.5}.ydb-info-viewer-skeleton{display:flex;flex-direction:column;gap:16px}.ydb-info-viewer-skeleton__row{align-items:flex-start;display:flex}.ydb-info-viewer-skeleton__row,.ydb-info-viewer-skeleton__row .g-skeleton{min-height:var(--g-text-body-2-font-size)}.ydb-info-viewer-skeleton__label{align-items:baseline;display:flex;flex:0 1 auto;width:200px}.ydb-info-viewer-skeleton__label__text{width:100px}.ydb-info-viewer-skeleton__label__dots{border-bottom:1px dotted var(--g-color-text-secondary);margin:0 2px;width:100px}.ydb-info-viewer-skeleton__value{max-width:20%;min-width:200px}.tablet{border-color:var(--g-color-base-generic-medium-hover);color:var(--g-color-text-complementary);cursor:pointer}.tablet__wrapper{margin-bottom:2px;margin-right:2px}.tablet__wrapper:last-child{margin-right:0}.tablet__popup-content{padding:10px}.tablet_status_grey{background-color:var(--ydb-color-status-grey)}.tablet_status_yellow{background-color:var(--ydb-color-status-yellow)}.tablet_status_orange{background-color:var(--ydb-color-status-orange)}.tablet_status_red{background-color:var(--ydb-color-status-red)}.tablet_status_green{background-color:var(--ydb-color-status-green)}.tablet_status_blue{background-color:var(--ydb-color-status-blue)}.tablet_status_black{background-color:var(--ydb-color-status-black)}.tag{background:var(--g-color-base-generic);border-radius:3px;color:var(--g-color-text-primary);font-size:12px;margin-right:5px;padding:2px 5px;text-transform:uppercase}.tag:last-child{margin-right:0}.tag_type_blue{background-color:var(--g-color-celestial-thunder)}.tags{align-items:center;display:flex;flex-wrap:wrap}.ydb-cluster-versions-bar{display:flex;flex-direction:column;width:600px}.ydb-cluster-versions-bar .g-progress{width:100%}.ydb-cluster-versions-bar__versions{display:flex;flex-flow:row wrap;margin-top:6px}.ydb-cluster-versions-bar__version-title{margin-left:3px;white-space:nowrap}.ydb-cluster-versions-bar .g-progress__stack{cursor:pointer}.ydb-disk-groups-stats{display:flex;flex-direction:column;gap:var(--g-spacing-3)}.ydb-disk-groups-stats__bar{cursor:pointer}.ydb-disk-groups-stats__popup-content{padding:var(--g-spacing-3)}.ydb-nodes-state{--entity-state-border-color:var(--g-color-base-misc-heavy);--entity-state-background-color:var(--g-color-base-misc-light);--entity-state-fill-color:var(--g-color-base-misc-medium);--entity-state-font-color:var(--g-color-text-primary);align-items:center;background-color:var(--entity-state-background-color);border:1px solid var(--entity-state-border-color);border-radius:var(--g-spacing-1);color:var(--entity-state-font-color);display:flex;justify-content:center;min-width:30px;padding:0 var(--g-spacing-1)}.ydb-nodes-state_green{--entity-state-font-color:var(--g-color-text-positive);--entity-state-border-color:var(--g-color-base-positive-heavy);--entity-state-background-color:var(--g-color-base-positive-light);--entity-state-fill-color:var(--g-color-base-positive-medium)}.ydb-nodes-state_blue{--entity-state-font-color:var(--g-color-text-info);--entity-state-border-color:var(--g-color-base-info-heavy);--entity-state-background-color:var(--g-color-base-info-light);--entity-state-fill-color:var(--g-color-base-info-medium)}.ydb-nodes-state_yellow{--entity-state-font-color:var(--g-color-text-warning);--entity-state-border-color:var(--g-color-base-warning-heavy);--entity-state-background-color:var(--g-color-base-yellow-light);--entity-state-fill-color:var(--g-color-base-yellow-medium)}.ydb-nodes-state_orange{--entity-state-font-color:var(--g-color-private-orange-500);--entity-state-border-color:var(--ydb-color-status-orange);--entity-state-background-color:var(--g-color-private-orange-100);--entity-state-fill-color:var(--g-color-private-orange-300)}.ydb-nodes-state_red{--entity-state-font-color:var(--g-color-text-danger);--entity-state-border-color:var(--g-color-base-danger-heavy);--entity-state-background-color:var(--g-color-base-danger-light);--entity-state-fill-color:var(--g-color-base-danger-medium)}.ydb-nodes-state__grey{--entity-state-font-color:var(--g-color-text-secondary);--entity-state-border-color:var(--g-color-line-generic-hover)}.cluster-info{padding-top:20px}.cluster-info__skeleton{margin-top:5px}.cluster-info__error{font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height)}.cluster-info__system-tablets{align-items:center;display:flex;flex-wrap:wrap}.cluster-info__system-tablets .tablet{margin-top:2px}.cluster-info__metrics{margin:0 -15px;padding:0 15px!important}.cluster-info__metrics .info-viewer__items{grid-template-columns:repeat(2,minmax(auto,250px))}.cluster-info__metrics .info-viewer__label{width:50px}.cluster-info__metrics .info-viewer__value{width:130px}.cluster-info__tablets{margin-left:15px;padding:0!important}.cluster-info__links{display:flex;flex-flow:row wrap;gap:var(--g-spacing-2)}.cluster-info__clipboard-button{align-items:center;display:flex;margin-left:5px}.cluster-info__dc-count{text-transform:lowercase}.cluster-info__nodes-states{display:flex;gap:var(--g-spacing-half)}.link{color:var(--g-color-text-link);text-decoration:none}.link_external{margin-right:10px}.link:hover{color:var(--g-color-text-link-hover)}.cluster{flex-grow:1;height:100%;overflow:auto;padding:0 20px;position:relative}.cluster__header{left:0;padding:20px 0;position:sticky}.cluster__title{font-size:var(--g-text-header-1-font-size);font-weight:var(--g-text-header-font-weight);line-height:var(--g-text-header-1-line-height)}.cluster__title-skeleton{height:var(--g-text-header-1-line-height);min-width:200px;width:20%}.cluster__tabs{--g-tabs-border-width:0;align-items:center;box-shadow:inset 0 -1px 0 0 var(--g-color-line-generic);display:flex;justify-content:space-between;left:0;position:sticky}.cluster__sticky-wrapper{left:0;position:sticky;top:56px;z-index:4}.cluster__auto-refresh-control{background-color:var(--g-color-base-background);float:right;margin-top:-40px} \ No newline at end of file
diff --git a/ydb/core/viewer/monitoring/static/css/5293.28efb33b.chunk.css b/ydb/core/viewer/monitoring/static/css/5293.28efb33b.chunk.css
deleted file mode 100644
index 2fe6aa9b3c..0000000000
--- a/ydb/core/viewer/monitoring/static/css/5293.28efb33b.chunk.css
+++ /dev/null
@@ -1 +0,0 @@
-.kv-split{display:flex;height:100%;outline:none;-webkit-user-select:text;user-select:text;z-index:0}.kv-split.horizontal{flex-direction:row}.kv-split.vertical{flex-direction:column;min-height:100%;width:100%}.kv-split .gutter{background:var(--g-color-base-background);position:relative;z-index:10}.kv-split .gutter:after{background-color:var(--g-color-base-generic-ultralight);content:"";inset:0;position:absolute}.kv-split .gutter.active:after,.kv-split .gutter:hover:after{background-color:var(--g-color-line-generic-hover);transition:background-color 1s ease}.kv-split .gutter.disabled{display:none}.kv-split .gutter.gutter-vertical{cursor:row-resize;height:8px;width:100%}.kv-split .gutter.gutter-vertical:before{border-color:var(--g-color-base-generic-hover);border-style:solid;border-width:1px 0;content:"";height:4px;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);width:16px}.kv-split .gutter.gutter-horizontal{cursor:col-resize;height:100%;width:8px}.kv-split .gutter.gutter-horizontal:before{border-color:var(--g-color-base-generic-hover);border-style:solid;border-width:0 1px;content:"";height:16px;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);width:4px}.auto-refresh-control{align-items:center;display:flex;gap:var(--g-spacing-1)}.histogram{display:flex;flex:1 1 auto}.histogram__chart{align-items:baseline;border-bottom:1px solid var(--g-color-base-generic);border-left:1px solid var(--g-color-base-generic);display:flex;height:300px;margin-left:50px;margin-top:30px;position:relative;width:800px}.histogram__x-min{left:-3px}.histogram__x-max,.histogram__x-min{bottom:-25px;color:var(--g-color-text-secondary);position:absolute}.histogram__x-max{right:0}.histogram__y-min{bottom:-7px;left:-30px;width:20px}.histogram__y-max,.histogram__y-min{color:var(--g-color-text-secondary);position:absolute;text-align:right}.histogram__y-max{left:-60px;top:-5px;width:50px}.histogram__item{cursor:pointer;margin-right:.5%;width:1.5%}.heatmap{display:flex;flex:1 1 auto;flex-direction:column;height:100%;overflow:auto}.heatmap__limits{align-items:center;display:flex;margin-left:20px}.heatmap__limits-block{display:flex;margin-right:10px}.heatmap__limits-title{color:var(--g-color-text-secondary);margin-right:5px}.heatmap__row{align-items:center}.heatmap__row_overall{margin:15px 20px}.heatmap__row_overall .g-progress{margin:0;width:300px}.heatmap__label{font-size:var(--g-text-body-2-font-size);font-weight:500;line-height:var(--g-text-body-2-line-height);margin-right:16px;text-transform:uppercase}.heatmap__label_overall{margin-right:15px}.heatmap__items{overflow:auto}.heatmap__canvas-container{cursor:pointer;overflow:auto}.heatmap__filters{align-items:center;display:flex;margin:0 0 10px}.heatmap__filter-control{margin-right:10px;max-width:200px;min-width:100px}.heatmap__filter-control:last-child{margin-right:0}.heatmap__histogram-checkbox,.heatmap__sort-checkbox{margin-left:10px}.heatmap__row{display:flex}.heatmap .tablet,.heatmap__row{margin-bottom:2px}.ydb-resizeable-data-table{display:flex;padding-right:20px;width:max-content}.ydb-search{min-width:100px}.table-skeleton{width:100%}.table-skeleton__row{align-items:center;display:flex;height:var(--data-table-row-height)}.table-skeleton__row .g-skeleton{height:var(--g-text-body-2-line-height)}.table-skeleton__col-1{margin-right:5%;width:10%}.table-skeleton__col-2{margin-right:5%;width:7%}.table-skeleton__col-3,.table-skeleton__col-4{margin-right:5%;width:5%}.table-skeleton__col-5{width:20%}.table-skeleton__col-full{width:100%}.ydb-table-with-controls-layout{box-sizing:border-box;display:inline-block;min-width:100%}.ydb-table-with-controls-layout__controls-wrapper{background-color:var(--g-color-base-background);box-sizing:border-box;left:0;position:sticky;top:0;width:100%;z-index:3}.ydb-table-with-controls-layout__controls{align-items:center;background-color:var(--g-color-base-background);display:flex;gap:12px;height:62px;left:0;padding:16px 0 18px;position:sticky;top:0;width:max-content;z-index:3}.ydb-table-with-controls-layout__table{position:relative;z-index:2}.ydb-table-with-controls-layout .ydb-paginated-table__head{top:62px}.ydb-table-with-controls-layout .data-table__sticky_moving{top:62px!important}.ydb-cell-with-popover{display:flex;max-width:100%}.ydb-cell-with-popover__popover{display:inline-block;max-width:100%;overflow:hidden;text-overflow:ellipsis;vertical-align:middle;white-space:nowrap}.ydb-cell-with-popover__popover .g-popover__handler{display:inline}.developer-ui-link-button{display:none}.data-table__row:hover .developer-ui-link-button,.developer-ui-link-button_visible,.ydb-paginated-table__row:hover .developer-ui-link-button{display:inline-block}.ydb-status-icon__status-color_state_green{background-color:var(--ydb-color-status-green)}.ydb-status-icon__status-color_state_yellow{background-color:var(--ydb-color-status-yellow)}.ydb-status-icon__status-color_state_blue{background-color:var(--ydb-color-status-blue)}.ydb-status-icon__status-color_state_red{background-color:var(--ydb-color-status-red)}.ydb-status-icon__status-color_state_grey{background-color:var(--ydb-color-status-grey)}.ydb-status-icon__status-color_state_orange{background-color:var(--ydb-color-status-orange)}.ydb-status-icon__status-icon_state_blue{color:var(--ydb-color-status-blue)}.ydb-status-icon__status-icon_state_yellow{color:var(--ydb-color-status-yellow)}.ydb-status-icon__status-icon_state_orange{color:var(--ydb-color-status-orange)}.ydb-status-icon__status-icon_state_red{color:var(--ydb-color-status-red)}.ydb-status-icon__status-color,.ydb-status-icon__status-icon{border-radius:3px;flex-shrink:0}.ydb-status-icon__status-color_size_xs,.ydb-status-icon__status-icon_size_xs{aspect-ratio:1;height:12px;width:12px}.ydb-status-icon__status-color_size_s,.ydb-status-icon__status-icon_size_s{aspect-ratio:1;height:16px;width:16px}.ydb-status-icon__status-color_size_m,.ydb-status-icon__status-icon_size_m{aspect-ratio:1;height:18px;width:18px}.ydb-status-icon__status-color_size_l,.ydb-status-icon__status-icon_size_l{height:24px;width:24px}.entity-status{align-items:center;display:inline-flex;font-size:var(--g-text-body-2-font-size);height:100%;line-height:var(--g-text-body-2-line-height);max-width:100%}.entity-status__icon{margin-right:var(--g-spacing-2)}.entity-status__clipboard-button{color:var(--g-color-text-secondary);display:flex;flex-shrink:0;margin-left:var(--g-spacing-2);opacity:0}.entity-status__clipboard-button:focus-visible,.entity-status__clipboard-button_visible{opacity:1}.entity-status__additional-controls{margin-left:var(--g-spacing-1)}.entity-status__label{color:var(--g-color-text-complementary);font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height);margin-right:2px}.entity-status__label_size_l{font-size:var(--g-text-header-2-font-size)}.entity-status__link{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.entity-status__link_with-left-trim{direction:rtl}.entity-status__link_with-left-trim .entity-status__name{unicode-bidi:plaintext}.entity-status__label_state_blue{color:var(--ydb-color-status-blue)}.entity-status__label_state_yellow{color:var(--ydb-color-status-yellow)}.entity-status__label_state_orange{color:var(--ydb-color-status-orange)}.entity-status__label_state_red{color:var(--ydb-color-status-red)}.ydb-pool-bar{border:1px solid;border-radius:1px;cursor:pointer;height:20px;margin-right:2px;position:relative;width:6px}.ydb-pool-bar__popup-content{padding:10px;width:170px}.ydb-pool-bar:last-child{margin-right:0}.ydb-pool-bar_type_normal{border-color:var(--ydb-color-status-green)}.ydb-pool-bar_type_warning{border-color:var(--ydb-color-status-yellow)}.ydb-pool-bar_type_danger{border-color:var(--ydb-color-status-red)}.ydb-pool-bar__value{bottom:0;min-height:1px;position:absolute;width:100%}.ydb-pool-bar__value_type_normal{background-color:var(--ydb-color-status-green)}.ydb-pool-bar__value_type_warning{background-color:var(--ydb-color-status-yellow)}.ydb-pool-bar__value_type_danger{background-color:var(--ydb-color-status-red)}.ydb-pools-graph{display:flex}.progress-viewer{align-items:center;background:var(--g-color-base-generic);border-radius:2px;color:var(--g-color-text-complementary);display:flex;font-size:var(--g-text-body-2-font-size);height:23px;justify-content:center;min-width:120px;overflow:hidden;padding:0 4px;position:relative;white-space:nowrap;z-index:0}.progress-viewer_theme_dark{color:var(--g-color-text-light-primary)}.progress-viewer_theme_dark .progress-viewer__line{opacity:.75}.progress-viewer_status_good{background-color:var(--g-color-base-positive-light)}.progress-viewer_status_good .progress-viewer__line{background-color:var(--ydb-color-status-green)}.progress-viewer_status_warning{background-color:var(--g-color-base-yellow-light)}.progress-viewer_status_warning .progress-viewer__line{background-color:var(--ydb-color-status-yellow)}.progress-viewer_status_danger{background-color:var(--g-color-base-danger-light)}.progress-viewer_status_danger .progress-viewer__line{background-color:var(--ydb-color-status-red)}.progress-viewer__line{height:100%;left:0;position:absolute;top:0}.progress-viewer__text{position:relative;z-index:1}.progress-viewer_size_xs{font-size:var(--g-text-body-2-font-size);height:20px;line-height:var(--g-text-body-2-line-height)}.progress-viewer_size_s{font-size:var(--g-text-body-1-font-size);height:28px;line-height:28px}.progress-viewer_size_m{font-size:var(--g-text-body-2-font-size);height:32px;line-height:32px}.progress-viewer_size_ns{font-size:13px;height:24px;line-height:var(--g-text-subheader-3-line-height)}.progress-viewer_size_n{font-size:var(--g-text-body-1-font-size);height:36px;line-height:36px}.progress-viewer_size_l{font-size:var(--g-text-subheader-3-font-size);height:38px;line-height:38px}.progress-viewer_size_head{font-size:var(--g-text-body-1-font-size);line-height:36px}.tablets-statistic{align-items:center;display:flex;gap:2px}.tablets-statistic__tablet{border:1px solid;border-radius:2px;color:var(--g-color-text-secondary);display:inline-block;font-size:11px;height:20px;line-height:20px;padding:0 4px;text-align:center;text-decoration:none;text-transform:uppercase}.tablets-statistic__tablet_state_green{background-color:var(--g-color-base-positive-light);color:var(--g-color-text-positive)}.tablets-statistic__tablet_state_yellow{background-color:var(--g-color-base-warning-light);color:var(--g-color-text-warning)}.tablets-statistic__tablet_state_blue{background-color:var(--g-color-base-info-light);color:var(--g-color-text-info)}.tablets-statistic__tablet_state_orange{background-color:var(--g-color-base-warning-light);color:var(--g-color-text-warning-heavy)}.tablets-statistic__tablet_state_red{background:var(--g-color-base-danger-light);color:var(--g-color-text-danger)}.tablets-statistic__tablet_state_grey{border:1px solid var(--g-color-line-generic-hover);color:var(--g-color-text-secondary)}.ydb-usage-label_overload{background-color:var(--ydb-color-status-red);color:var(--g-color-text-light-primary)}.ydb-nodes__search{width:238px}.ydb-nodes__show-all-wrapper{left:0;margin-bottom:15px;position:sticky}.ydb-nodes__node_unavailable{opacity:.6}.ydb-paginated-table{--paginated-table-cell-vertical-padding:5px;--paginated-table-cell-horizontal-padding:10px;--paginated-table-border-color:var(--g-color-base-generic-hover);--paginated-table-hover-color:var(--g-color-base-float-hover);font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height);width:100%}.ydb-paginated-table__table{border-collapse:initial;border-spacing:0;max-width:100%;table-layout:fixed;width:max-content}.ydb-paginated-table__table th{padding:0}.ydb-paginated-table__row{position:relative;z-index:1}.ydb-paginated-table__row:hover{background:var(--paginated-table-hover-color)}.ydb-paginated-table__row_empty:hover{background-color:initial}.ydb-paginated-table__head{background-color:var(--g-color-base-background);left:0;position:sticky;top:0;z-index:2}.ydb-paginated-table__sort-icon-container{color:inherit;display:flex;justify-content:center}.ydb-paginated-table__sort-icon-container_shadow{opacity:.15}.ydb-paginated-table__sort-icon_desc{transform:rotate(180deg)}.ydb-paginated-table__head-cell-wrapper{border-bottom:1px solid var(--paginated-table-border-color);display:table-cell;overflow-x:hidden;position:relative}.ydb-paginated-table__head-cell{align-items:center;display:flex;flex-direction:row;max-width:100%;padding:var(--paginated-table-cell-vertical-padding) var(--paginated-table-cell-horizontal-padding);width:100%}.ydb-paginated-table__head-cell_align_left{justify-content:left}.ydb-paginated-table__head-cell_align_center{justify-content:center}.ydb-paginated-table__head-cell_align_right{justify-content:right}.ydb-paginated-table__head-cell{cursor:default;font-weight:700;gap:8px}.ydb-paginated-table__head-cell_sortable{cursor:pointer}.ydb-paginated-table__head-cell_sortable.ydb-paginated-table__head-cell_align_right{flex-direction:row-reverse}.ydb-paginated-table__head-cell-content{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:min-content}.ydb-paginated-table__row-cell{border-bottom:1px solid var(--paginated-table-border-color);display:table-cell;max-width:100%;overflow-x:hidden;padding:var(--paginated-table-cell-vertical-padding) var(--paginated-table-cell-horizontal-padding);text-overflow:ellipsis;vertical-align:middle;white-space:nowrap;width:100%}.ydb-paginated-table__row-cell_align_left{text-align:left}.ydb-paginated-table__row-cell_align_center{text-align:center}.ydb-paginated-table__row-cell_align_right{text-align:right}.ydb-paginated-table__resize-handler{background-color:var(--g-color-base-generic);cursor:col-resize;height:100%;position:absolute;right:0;top:0;visibility:hidden;width:6px}.ydb-paginated-table__head-cell-wrapper:hover>.ydb-paginated-table__resize-handler,.ydb-paginated-table__resize-handler_resizing{visibility:visible}.ydb-paginated-table__resizeable-table-container{padding-right:20px;width:max-content}.ydb-paginated-table__row-skeleton:after{animation-delay:.2s}.usage-filter{min-width:100px}.usage-filter__option{flex-grow:1}.usage-filter__option-title{font-size:var(--g-text-body-1-font-size);height:var(--g-text-body-1-line-height);line-height:var(--g-text-body-1-line-height)}.usage-filter__option-meta{border-radius:3px;font-size:var(--g-text-caption-2-font-size);line-height:var(--g-text-caption-2-line-height);padding:0 5px;position:relative;z-index:0}.usage-filter__option-bar{background-color:var(--g-color-base-info-medium);border-radius:3px;bottom:0;left:0;position:absolute;top:0;z-index:-1}.stack{--ydb-stack-base-z-index:100;--ydb-stack-offset-x:4px;--ydb-stack-offset-y:4px;--ydb-stack-offset-x-hover:4px;--ydb-stack-offset-y-hover:8px;position:relative}.stack__layer{background:var(--g-color-base-background);transition:transform .1s ease-out}.stack__layer:first-child{position:relative;z-index:var(--ydb-stack-base-z-index)}.stack__layer+.stack__layer{height:100%;left:0;position:absolute;top:0;transform:translate(calc(var(--ydb-stack-level)*var(--ydb-stack-offset-x)),calc(var(--ydb-stack-level)*var(--ydb-stack-offset-y)));width:100%;z-index:calc(var(--ydb-stack-base-z-index) - var(--ydb-stack-level))}.stack:hover .stack__layer:first-child{transform:translate(calc(var(--ydb-stack-offset-x-hover)*-1),calc(var(--ydb-stack-offset-y-hover)*-1))}.stack:hover .stack__layer+.stack__layer{transform:translate(calc(var(--ydb-stack-level)*var(--ydb-stack-offset-x-hover)*2 - var(--ydb-stack-offset-x-hover)),calc(var(--ydb-stack-level)*var(--ydb-stack-offset-y-hover)*2 - var(--ydb-stack-offset-y-hover)))}.storage-disk-progress-bar{--progress-bar-full-height:var(--g-text-body-3-line-height);--progress-bar-compact-height:12px;--entity-state-border-color:var(--g-color-base-misc-heavy);--entity-state-background-color:var(--g-color-base-misc-light);--entity-state-fill-color:var(--g-color-base-misc-medium);--entity-state-font-color:var(--g-color-text-primary);background-color:var(--entity-state-background-color);border:1px solid var(--entity-state-border-color);border-radius:4px;color:var(--g-color-text-primary);height:var(--progress-bar-full-height);min-width:50px;position:relative;text-align:center;z-index:0}.storage-disk-progress-bar_green{--entity-state-font-color:var(--g-color-text-positive);--entity-state-border-color:var(--g-color-base-positive-heavy);--entity-state-background-color:var(--g-color-base-positive-light);--entity-state-fill-color:var(--g-color-base-positive-medium)}.storage-disk-progress-bar_blue{--entity-state-font-color:var(--g-color-text-info);--entity-state-border-color:var(--g-color-base-info-heavy);--entity-state-background-color:var(--g-color-base-info-light);--entity-state-fill-color:var(--g-color-base-info-medium)}.storage-disk-progress-bar_yellow{--entity-state-font-color:var(--g-color-text-warning);--entity-state-border-color:var(--g-color-base-warning-heavy);--entity-state-background-color:var(--g-color-base-yellow-light);--entity-state-fill-color:var(--g-color-base-yellow-medium)}.storage-disk-progress-bar_orange{--entity-state-font-color:var(--g-color-private-orange-500);--entity-state-border-color:var(--ydb-color-status-orange);--entity-state-background-color:var(--g-color-private-orange-100);--entity-state-fill-color:var(--g-color-private-orange-300)}.storage-disk-progress-bar_red{--entity-state-font-color:var(--g-color-text-danger);--entity-state-border-color:var(--g-color-base-danger-heavy);--entity-state-background-color:var(--g-color-base-danger-light);--entity-state-fill-color:var(--g-color-base-danger-medium)}.storage-disk-progress-bar__grey{--entity-state-font-color:var(--g-color-text-secondary);--entity-state-border-color:var(--g-color-line-generic-hover)}.storage-disk-progress-bar_compact{border-radius:2px;height:var(--progress-bar-compact-height);min-width:0}.storage-disk-progress-bar_faded{background-color:initial}.storage-disk-progress-bar_inactive{opacity:.5}.storage-disk-progress-bar_empty{background-color:initial;border-style:dashed;color:var(--g-color-text-hint)}.storage-disk-progress-bar__fill-bar{background-color:var(--entity-state-fill-color);border-radius:3px 0 0 3px;height:100%;left:0;position:absolute;top:0}.storage-disk-progress-bar__fill-bar_faded{background-color:var(--entity-state-background-color)}.storage-disk-progress-bar__fill-bar_compact{border-radius:1px}.storage-disk-progress-bar__fill-bar_inverted{border-radius:0 3px 3px 0;left:auto;right:0}.storage-disk-progress-bar__title{color:inherit;font-size:var(--g-text-body-1-font-size);line-height:calc(var(--progress-bar-full-height) - 2px);position:relative;z-index:2}.pdisk-storage-popup,.vdisk-storage-popup{padding:12px}.vdisk-storage-popup .info-viewer+.info-viewer{border-top:1px solid var(--g-color-line-generic);margin-top:8px;padding-top:8px}.vdisk-storage-popup__donor-label{margin-bottom:8px}.ydb-vdisk-component,.ydb-vdisk-component__content{border-radius:4px}.pdisk-storage{position:relative;width:120px}.pdisk-storage__content{border-radius:4px;display:block;position:relative}.pdisk-storage__vdisks{display:flex;flex-wrap:wrap;gap:2px;margin-bottom:4px}.pdisk-storage__vdisks-item{flex-basis:5px;flex-shrink:0}.data-table__row:hover .pdisk-storage__vdisks-item .stack__layer{background:var(--ydb-data-table-color-hover)}.pdisk-storage__donors-stack{--ydb-stack-offset-x:0px;--ydb-stack-offset-y:-2px;--ydb-stack-offset-x-hover:0px;--ydb-stack-offset-y-hover:-7px}.pdisk-storage__media-type{color:var(--g-color-text-secondary);font-size:var(--g-text-body-1-font-size);line-height:var(--g-text-body-1-line-height);position:absolute;right:4px;top:50%;transform:translateY(-50%)}.ydb-storage-disks{align-items:center;display:flex;flex-direction:row;gap:20px;width:max-content}.ydb-storage-disks__vdisks-wrapper{display:flex;flex-direction:row;flex-grow:1;gap:4px;width:300px}.ydb-storage-disks__pdisks-wrapper{display:flex;flex-direction:row;gap:6px;justify-content:left;width:max-content}.ydb-storage-disks__vdisk-item{flex-basis:8px;flex-shrink:0}.ydb-storage-disks__vdisk-progress-bar{--progress-bar-compact-height:18px;border-radius:4px}.ydb-storage-disks__pdisk-item{width:80px}.ydb-storage-disks__pdisk-progress-bar{--progress-bar-full-height:20px;padding-left:var(--g-spacing-2);text-align:left}.ydb-storage-groups-columns__disks-column,.ydb-storage-groups-columns__vdisks-column{overflow:visible}.ydb-storage-groups-columns__vdisks-wrapper{display:flex;gap:10px;justify-content:center;min-width:500px}.ydb-storage-groups-columns__vdisks-item{flex-grow:1;max-width:200px}.data-table__row:hover .ydb-storage-groups-columns__vdisks-item .stack__layer{background:var(--ydb-data-table-color-hover)}.ydb-storage-groups-columns__pool-name-wrapper{width:230px}.ydb-storage-groups-columns__group-id{font-weight:500}.ydb-storage-nodes-columns__pdisks-column{overflow:visible}.ydb-storage-nodes-columns__pdisks-wrapper{align-items:flex-end;display:flex;justify-content:left;width:max-content}.ydb-storage-nodes-columns__pdisks-item{flex-grow:1;margin-right:10px;max-width:200px}.ydb-storage-nodes-columns__pdisks-item:last-child{margin-right:0}.global-storage__search{width:238px}.global-storage__table .g-tooltip{height:var(--g-text-body-2-line-height)!important}.global-storage .entity-status{justify-content:center}.ydb-critical-dialog{padding-top:var(--g-spacing-3)}.ydb-critical-dialog__warning-icon{color:var(--ydb-color-status-yellow);margin-right:16px}.ydb-critical-dialog__error-icon{color:var(--ydb-color-status-red);height:24px;margin-right:16px}.ydb-critical-dialog__body{display:flex;flex-direction:column;gap:var(--g-spacing-6)}.ydb-critical-dialog__body-message{align-items:center;display:flex}.ydb-critical-dialog__body-message_error,.ydb-critical-dialog__body-message_warning{border:1px solid;border-radius:5px;border-radius:var(--g-modal-border-radius,5px);padding:var(--g-spacing-4) var(--g-spacing-5)}.ydb-critical-dialog__body-message_warning{border-color:var(--ydb-color-status-yellow)}.ydb-critical-dialog__body-message_error{border-color:var(--ydb-color-status-red)}.schema-viewer__keys{display:inline-block;padding-bottom:var(--g-spacing-4);padding-left:10px}.schema-viewer__keys-values{color:var(--g-color-text-complementary);display:inline;font-size:var(--g-text-body-1-font-size);line-height:var(--g-text-body-1-line-height)}.schema-viewer__keys-header{color:var(--g-color-text-primary);display:inline;font-size:var(--g-text-subheader-1-font-size);font-weight:700;line-height:var(--g-text-subheader-1-line-height);white-space:nowrap}.schema-viewer__keys-label{cursor:pointer}.schema-viewer__keys-wrapper{left:0;position:sticky;width:100%;z-index:1}.schema-viewer__keys+.schema-viewer__keys{margin-left:var(--g-spacing-8)}.schema-viewer__keys_summary+.schema-viewer__keys_summary{margin-left:0}.schema-viewer__popup-content{padding:var(--g-spacing-2) var(--g-spacing-4)}.schema-viewer__popup-item{padding-bottom:var(--g-spacing-2)}.schema-viewer__popup-item:last-child{padding-bottom:0}.schema-viewer__more-badge{margin-left:var(--g-spacing-1)}.ydb-diagnostics-configs__icon-touched{color:var(--g-color-text-secondary);cursor:default!important;line-height:1}.speed-multimeter{display:flex;width:100%}.speed-multimeter__content{display:flex;flex-direction:row;flex-grow:1;justify-content:flex-end;line-height:22px}.speed-multimeter__displayed-value{display:flex;flex-direction:row;justify-content:flex-end;margin-right:10px}.speed-multimeter__bars{align-items:flex-start;display:flex;flex-direction:column;margin-right:5px;overflow:hidden;width:32px}.speed-multimeter__bar-container{height:6px;width:100%}.speed-multimeter__bar-container_highlighted{background:var(--g-color-line-generic)}.speed-multimeter__bar{height:100%;min-width:2px}.speed-multimeter__bar_color_light{background:var(--g-color-base-info-medium)}.speed-multimeter__bar_color_dark{background:var(--g-color-base-info-heavy)}.speed-multimeter__bar-container+.speed-multimeter__bar-container{margin-top:2px}.speed-multimeter__popover-container{align-items:center;display:flex;justify-content:center}.speed-multimeter__popover-content{padding:10px}.speed-multimeter__popover-header{display:block;font-size:18px;line-height:24px;margin-bottom:7px}.speed-multimeter__popover-row{display:block;font-size:13px;line-height:18px}.speed-multimeter__popover-row_color_primary{color:var(--g-color-text-primary)}.speed-multimeter__popover-row_color_secondary{color:var(--g-color-text-secondary)}.ydb-diagnostics-consumers-topic-stats{font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height)}.ydb-diagnostics-consumers-topic-stats__wrapper{border-left:1px solid var(--g-color-line-generic);display:flex;flex-direction:row;padding-left:16px}.ydb-diagnostics-consumers-topic-stats__item{display:flex;flex-direction:column;margin-right:20px}.ydb-diagnostics-consumers-topic-stats__label{color:var(--g-color-text-secondary);margin-bottom:4px}.ydb-diagnostics-consumers-topic-stats__value{align-items:center;display:flex;height:30px;justify-content:flex-start}.ydb-lag-popover-content__text{margin-bottom:10px}.ydb-lag-popover-content_type_read{max-width:280px}.ydb-lag-popover-content_type_write{max-width:220px}.ydb-diagnostics-consumers-columns-header__lags{white-space:nowrap}.ydb-diagnostics-consumers-columns__lags-header{text-align:center}.ydb-diagnostics-consumers{display:flex;flex-grow:1;flex:1 1 auto;flex-direction:column;height:100%;overflow:auto}.ydb-diagnostics-consumers__controls{align-items:center;display:flex;gap:12px;padding:16px 0 18px}.ydb-diagnostics-consumers__search{width:238px}.ydb-diagnostics-consumers__table-wrapper{display:flex;flex:1 1 auto;flex-direction:column;overflow:auto}.ydb-diagnostics-consumers__table-content{height:100%;overflow:auto}.ydb-diagnostics-consumers__table .data-table__head-row:first-child .data-table__th:first-child,.ydb-diagnostics-consumers__table .data-table__td:first-child{background-color:var(--g-color-base-background);border-right:1px solid var(--g-color-line-generic);left:0;position:sticky;z-index:2000}.ydb-diagnostics-consumers__table .data-table__row:hover .data-table__td:first-child{background-color:var(--ydb-data-table-color-hover)!important}.ydb-diagnostics-consumers__table .data-table__head-row:first-child .data-table__th:nth-child(0),.ydb-diagnostics-consumers__table .data-table__td:nth-child(0){border-right:initial;box-shadow:none}.ydb-diagnostics-consumers__table .data-table__head-row:first-child .data-table__th:first-child,.ydb-diagnostics-consumers__table .data-table__td:first-child{box-shadow:none}.ydb-describe__message-container{padding:15px 0}.ydb-describe__result{display:flex;flex:0 0 auto;overflow:auto;padding:0 20px 20px 0;position:relative}.ydb-describe__tree{word-wrap:break-word;font-family:var(--g-font-family-monospace)!important;font-size:var(--g-text-code-1-font-size)!important;line-height:var(--g-text-code-1-line-height)!important;width:100%}.ydb-describe__tree .json-inspector__leaf_composite:before{color:var(--g-color-text-secondary);font-size:9px;left:20px;position:absolute}.ydb-describe__tree .json-inspector__leaf_composite.json-inspector__leaf_root:before{left:0}.ydb-describe__tree :not(.json-inspector__leaf_expanded).json-inspector__leaf_composite:before{content:"[+]"}.ydb-describe__tree .json-inspector__leaf_expanded.json-inspector__leaf_composite:before{content:"[-]"}.ydb-describe__tree .json-inspector__key{color:var(--g-color-text-misc)}.ydb-describe__tree .json-inspector__leaf{padding-left:20px;position:relative}.ydb-describe__tree .json-inspector__leaf_root{padding-left:0}.ydb-describe__tree .json-inspector__line{padding-left:20px}.ydb-describe__tree .json-inspector__toolbar{border:1px solid var(--g-color-line-generic);border-radius:4px;margin-bottom:10px;width:300px}.ydb-describe__tree .json-inspector__search{background:none;border:0 solid #0000;border-width:0 22px 0 8px;box-sizing:border-box;color:var(--g-color-text-primary);font-family:var(--g-text-body-font-family);font-size:13px;height:28px;margin:0;outline:0;padding:0;vertical-align:top;width:300px}.ydb-describe__tree .json-inspector__value_helper{color:var(--g-color-text-secondary)}.ydb-describe__tree .json-inspector__line:hover:after{background:var(--g-color-base-simple-hover)}.ydb-describe__tree .json-inspector__show-original:before{color:var(--g-color-text-secondary)}.ydb-describe__tree .json-inspector__show-original:hover:after,.ydb-describe__tree .json-inspector__show-original:hover:before{color:var(--g-color-text-primary)}.ydb-describe__tree .json-inspector__leaf.json-inspector__leaf_root.json-inspector__leaf_composite{max-width:calc(100% - 50px)}.ydb-describe__copy{left:308px;position:absolute}.ydb-describe .json-inspector__search{height:26px}.ydb-external-data-source-info__location,.ydb-external-table-info__location{max-width:var(--tenant-object-info-max-value-width)}.ydb-definition-list{display:flex;flex:1 1 auto;flex-direction:column}.ydb-definition-list__title{font-size:var(--g-text-body-2-font-size);font-weight:600;line-height:var(--g-text-body-2-line-height);margin:15px 0 10px}.ydb-definition-list__properties-list{max-width:calc(100% - 40px)}.ydb-async-replication-paths__title,.ydb-overview-topic-stats__title{font-size:var(--g-text-body-2-font-size);font-weight:600;line-height:var(--g-text-body-2-line-height);margin:15px 0 10px}.ydb-overview-topic-stats .ydb-loader{margin-top:50px}.ydb-overview-topic-stats .info-viewer__row{align-items:flex-start}.ydb-overview-topic-stats .speed-multimeter{margin-top:-5px}.ydb-overview-topic-stats .speed-multimeter__content{justify-content:flex-start}.ydb-overview-topic-stats__info .info-viewer__label-text_multiline{max-width:150px}.ydb-overview-topic-stats__bytes-written{margin-top:7px;padding-left:20px}.ydb-overview-topic-stats__bytes-written .info-viewer__label{min-width:180px}.ydb-diagnostics-table-info__title{font-size:var(--g-text-body-2-font-size);font-weight:600;line-height:var(--g-text-body-2-line-height);margin:15px 0 10px}.ydb-diagnostics-table-info__row{align-items:flex-start;display:flex;flex-wrap:wrap;justify-content:flex-start}.ydb-diagnostics-table-info__col{align-items:flex-start;display:flex;flex-direction:column;justify-content:flex-start}.ydb-diagnostics-table-info__col:not(:last-child){margin-right:50px}.ydb-diagnostics-table-info__info-block{margin-bottom:20px}.ydb-diagnostics-table-info__info-block .info-viewer__items{grid-template-columns:minmax(max-content,280px)}.ydb-metric-chart{border:1px solid var(--g-color-line-generic);border-radius:8px;display:flex;flex-direction:column;padding:16px 16px 8px}.ydb-metric-chart__title{margin-bottom:10px}.ydb-metric-chart__chart{display:flex;height:100%;overflow:hidden;position:relative;width:100%}.ydb-metric-chart__error{left:50%;position:absolute;text-align:center;top:10%;transform:translateX(-50%);z-index:1}.ydb-timeframe-selector{display:flex;gap:2px}.ydb-tenant-dashboard{margin-bottom:var(--diagnostics-section-margin);width:var(--diagnostics-section-table-width)}.ydb-tenant-dashboard__controls{margin-bottom:10px}.ydb-tenant-dashboard__charts{display:flex;flex-flow:row wrap;gap:16px}.issue-tree-item{align-items:center;cursor:pointer;display:flex;height:40px;justify-content:space-between}.issue-tree-item__field{display:flex;overflow:hidden}.issue-tree-item__field_status{display:flex;white-space:nowrap}.issue-tree-item__field_additional{color:var(--g-color-text-link);cursor:pointer;width:max-content}.issue-tree-item__field_additional:hover{color:var(--g-color-text-link-hover)}.issue-tree-item__field_message{flex-shrink:0;overflow:hidden;white-space:normal;width:300px}.issue-tree-item__field-tooltip.issue-tree-item__field-tooltip{max-width:500px;min-width:500px}.issue-tree-item__field-label{color:var(--g-color-text-secondary)}.issue-tree{display:flex}.issue-tree__block{width:100%}.issue-tree__checkbox{margin:5px 0 10px}.issue-tree__info-panel{background:var(--g-color-base-generic);border-radius:4px;height:100%;margin:11px 0;padding:8px 20px;position:sticky}.issue-tree__inspector{word-wrap:break-word;font-family:var(--g-font-family-monospace)!important;font-size:var(--g-text-code-1-font-size)!important;line-height:var(--g-text-code-1-line-height)!important;width:100%}.issue-tree__inspector .json-inspector__leaf_composite:before{color:var(--g-color-text-secondary);font-size:9px;left:20px;position:absolute}.issue-tree__inspector .json-inspector__leaf_composite.json-inspector__leaf_root:before{left:0}.issue-tree__inspector :not(.json-inspector__leaf_expanded).json-inspector__leaf_composite:before{content:"[+]"}.issue-tree__inspector .json-inspector__leaf_expanded.json-inspector__leaf_composite:before{content:"[-]"}.issue-tree__inspector .json-inspector__key{color:var(--g-color-text-misc)}.issue-tree__inspector .json-inspector__leaf{padding-left:20px;position:relative}.issue-tree__inspector .json-inspector__leaf_root{padding-left:0}.issue-tree__inspector .json-inspector__line{padding-left:20px}.issue-tree__inspector .json-inspector__toolbar{border:1px solid var(--g-color-line-generic);border-radius:4px;margin-bottom:10px;width:300px}.issue-tree__inspector .json-inspector__search{background:none;border:0 solid #0000;border-width:0 22px 0 8px;box-sizing:border-box;color:var(--g-color-text-primary);font-family:var(--g-text-body-font-family);font-size:13px;height:28px;margin:0;outline:0;padding:0;vertical-align:top;width:300px}.issue-tree__inspector .json-inspector__value_helper{color:var(--g-color-text-secondary)}.issue-tree__inspector .json-inspector__line:hover:after{background:var(--g-color-base-simple-hover)}.issue-tree__inspector .json-inspector__show-original:before{color:var(--g-color-text-secondary)}.issue-tree__inspector .json-inspector__show-original:hover:after,.issue-tree__inspector .json-inspector__show-original:hover:before{color:var(--g-color-text-primary)}.issue-tree__inspector .json-inspector__leaf.json-inspector__leaf_root.json-inspector__leaf_composite{max-width:calc(100% - 50px)}.issue-tree__inspector .json-inspector__leaf_expanded.json-inspector__leaf_composite:before,.issue-tree__inspector :not(.json-inspector__leaf_expanded).json-inspector__leaf_composite:before{content:""}.issue-tree__inspector .json-inspector__line:hover:after{background:#0000}.issue-tree__inspector .json-inspector__show-original:hover:after,.issue-tree__inspector .json-inspector__show-original:hover:before{color:#0000}.issue-tree__inspector .json-inspector__value_helper{display:none}.issue-tree__inspector .json-inspector__value{overflow:hidden;word-break:break-all}.issue-tree__inspector .json-inspector__value>span{-webkit-user-select:all;user-select:all}.issue-tree .ydb-tree-view__item{height:40px}.issue-tree .ydb-tree-view .tree-view_arrow{height:40px;width:40px}.issue-tree .ydb-tree-view .ydb-tree-view__item{margin-left:calc(24px*var(--ydb-tree-view-level))!important;padding-left:0!important}.issue-tree .ydb-tree-view .issue-tree__info-panel{margin-left:calc(24px*var(--ydb-tree-view-level))}.healthcheck__details{width:872px}.healthcheck__details-content-wrapper{overflow-x:hidden}.healthcheck__preview{display:flex;flex-direction:column;height:100%}.healthcheck__preview-title{color:var(--g-color-text-link);font-size:var(--g-text-subheader-3-font-size);font-weight:600;line-height:var(--g-text-subheader-3-line-height)}.healthcheck__preview-content{line-height:24px;margin:auto}.healthcheck__preview-status-icon{height:64px;width:64px}.healthcheck__preview-title-wrapper{align-items:center;display:flex;gap:8px;margin-bottom:4px}.healthcheck__preview-issue{align-items:center;display:flex;flex-direction:column;gap:4px;position:relative;top:-8px}.healthcheck__preview-issue_good{color:var(--g-color-text-positive)}.healthcheck__preview-issue_good .healthcheck__self-check-status-indicator{background-color:var(--g-color-base-positive-light)}.healthcheck__preview-issue_degraded{color:var(--g-color-text-info)}.healthcheck__preview-issue_degraded .healthcheck__self-check-status-indicator{background-color:var(--g-color-base-info-light)}.healthcheck__preview-issue_emergency{color:var(--g-color-text-danger)}.healthcheck__preview-issue_emergency .healthcheck__self-check-status-indicator{background-color:var(--g-color-base-danger-light)}.healthcheck__preview-issue_unspecified{color:var(--g-color-text-misc)}.healthcheck__preview-issue_unspecified .healthcheck__self-check-status-indicator{background-color:var(--g-color-base-misc-light)}.healthcheck__preview-issue_maintenance_required{color:var(--g-color-text-warning-heavy)}.healthcheck__preview-issue_maintenance_required .healthcheck__self-check-status-indicator{background-color:var(--g-color-base-warning-light)}.healthcheck__self-check-status-indicator{text-wrap:nowrap;border-radius:4px;display:inline-block;font-size:13px;line-height:24px;padding:0 8px}.ydb-diagnostic-card{background-color:#0000;border:1px solid var(--g-color-line-generic);border-radius:8px;flex-shrink:0;padding:16px 16px 28px;width:206px}.ydb-diagnostic-card_active{background-color:var(--g-color-base-selection);border-color:var(--g-color-base-info-medium)}.ydb-diagnostic-card:hover{box-shadow:0 1px 5px var(--g-color-sfx-shadow);cursor:pointer}.ydb-metrics-card{min-height:252px}.ydb-metrics-card__header{align-items:center;display:flex;gap:8px;justify-content:space-between;margin-bottom:10px}.ydb-metrics-card__label{color:var(--g-color-text-link);font-size:var(--g-text-subheader-3-font-size);font-weight:600;line-height:var(--g-text-subheader-3-line-height)}.ydb-metrics-card__content{color:var(--g-color-text-secondary);display:flex;flex-direction:column;gap:10px}.ydb-metrics-card__metric-title{height:var(--g-text-body-2-line-height)}.ydb-metrics-card_active .ydb-metrics-card__content{color:var(--g-color-text-complementary)}.metrics-cards{display:flex;gap:16px;margin-bottom:32px}.metrics-cards__tab{color:inherit;text-decoration:none}.kv-truncated-query{max-width:100%;vertical-align:top;white-space:pre;word-break:break-word}.kv-truncated-query__message{white-space:pre-wrap}.kv-truncated-query__message_color_secondary{color:var(--g-color-text-secondary)}.kv-truncated-query__popover-content{max-width:600px;overflow:hidden;white-space:pre}.kv-top-queries{display:flex;flex-direction:column;height:100%}.kv-top-queries .data-table__box .data-table__table-wrapper{padding-bottom:20px}.kv-top-queries .data-table__th{box-shadow:inset 0 -1px 0 0 var(--g-tabs-color-divider)}.kv-top-queries__search{width:238px}.kv-top-queries__row{cursor:pointer}.kv-top-queries__query{overflow:hidden;text-overflow:ellipsis;vertical-align:top;white-space:pre-wrap;word-break:break-word}.kv-top-queries__user-sid{max-width:200px;overflow:hidden;text-overflow:ellipsis}.tenant-overview{height:100%;overflow:auto;padding-bottom:20px}.tenant-overview__loader{display:flex;justify-content:center}.tenant-overview__tenant-name-wrapper{align-items:center;display:flex;overflow:hidden}.tenant-overview__top{align-items:center;display:flex;gap:4px;line-height:24px;margin-bottom:10px}.tenant-overview__top-label{font-weight:600;gap:10px;line-height:24px;margin-bottom:var(--diagnostics-section-title-margin)}.tenant-overview__info{left:0;position:sticky;width:max-content}.tenant-overview__title{font-size:var(--g-text-body-2-font-size);font-weight:700;line-height:var(--g-text-body-2-line-height);margin-bottom:10px}.tenant-overview__table:not(:last-child){margin-bottom:var(--diagnostics-section-margin)}.tenant-overview__top-queries-row{cursor:pointer}.tenant-overview__storage-info{margin-bottom:36px}.kv-detailed-overview{display:flex;flex-direction:column;gap:20px;height:100%;width:100%}.kv-detailed-overview__section{display:flex;flex-basis:calc(50% - 10px);flex-direction:column;flex-grow:1;flex-shrink:0;min-width:300px}.kv-detailed-overview__modal .g-modal__content{position:relative}.kv-detailed-overview__close-modal-button{position:absolute;right:13px;top:23px}.ydb-hot-keys__primary-key-column{align-items:center;display:flex;gap:5px}.ydb-hot-keys__help-card{left:0;margin-bottom:20px;padding:20px 40px 20px 20px;position:sticky}.ydb-hot-keys__help-card__close-button{position:absolute;right:5px;top:5px}.node-network{border:1px solid #0000;border-radius:4px;box-sizing:border-box;color:var(--g-color-text-complementary);cursor:pointer;display:inline-block;font-size:12px;height:14px;line-height:14px;margin-bottom:5px;margin-right:5px;padding:0 5px;text-align:center;text-transform:uppercase;width:14px}.node-network_id{height:14px;width:42px}.node-network_blur{opacity:.25}.node-network_grey{background:var(--ydb-color-status-grey)}.node-network_black{background-color:var(--ydb-color-status-black);color:var(--g-color-text-light-primary)}.node-network_green{background-color:var(--ydb-color-status-green)}.node-network_yellow{background-color:var(--ydb-color-status-yellow)}.node-network_red{background-color:var(--ydb-color-status-red)}.node-network:hover{border:1px solid var(--g-color-text-primary)}.network{flex-direction:column;font-size:var(--g-text-body-2-font-size);justify-content:space-between;line-height:var(--g-text-body-2-line-height);max-width:1305px}.network,.network__nodes-row{display:flex;flex-grow:1;height:100%;overflow:auto}.network__nodes-row{align-items:flex-start;flex-direction:row}.network__inner{display:flex;flex:1 1 auto;flex-direction:column;overflow:auto}.network__right{height:100%;padding-left:20px;width:100%}.network__left{border-right:1px solid var(--g-color-base-generic-accent);height:100%}.network__placeholder{align-items:center;display:flex;flex-direction:column;flex-grow:1;height:100%;justify-content:center;width:100%}.network__placeholder-text{margin-top:15px}.network__placeholder-img{color:#0000}.network__nodes{display:flex;flex-wrap:wrap}.network__nodes-container{min-width:325px}.network__nodes-container_right{margin-right:60px}.network__nodes-title{border-bottom:1px solid var(--g-color-base-generic-accent);color:var(--g-color-text-secondary);font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height);margin:0 0 15px}.network__link{color:var(--g-color-base-brand);text-decoration:none}.network__title{font-size:var(--g-text-body-1-font-size);font-weight:500;line-height:var(--g-text-body-1-line-height);margin:20px 0}.network__checkbox-wrapper{align-items:center;display:flex}.network__checkbox-wrapper label{white-space:nowrap}.network__label{margin-bottom:16px}.network__controls{display:flex;gap:12px;margin:0 16px 16px 0}.network__controls-wrapper{display:flex;flex:1 1 auto;flex-direction:row;flex-direction:column}.network__select{margin:0 15px;max-width:115px}.network__rack-column{align-items:center;background-color:#00000012;border-radius:4px;display:flex;flex-direction:column;margin-bottom:5px;margin-right:5px;padding:2px}.network__rack-column .node-network{margin-right:0}.ydb-diagnostics-partitions-columns-header__multiline{white-space:normal}.ydb-diagnostics-partitions-columns-header__read-session{white-space:normal;width:80px}.ydb-diagnostics-partitions-columns-header__lags{white-space:nowrap}.ydb-diagnostics-partitions-columns-header__messages{white-space:normal;width:90px}.ydb-diagnostics-partitions-columns-header__messages-popover-content{max-width:200px}.ydb-diagnostics-partitions-columns__lags-header{text-align:center}.ydb-diagnostics-partitions{display:flex;flex-grow:1;flex:1 1 auto;flex-direction:column;height:100%;overflow:auto}.ydb-diagnostics-partitions__controls{align-items:center;display:flex;gap:12px;padding:16px 0 18px}.ydb-diagnostics-partitions__consumer-select{width:220px}.ydb-diagnostics-partitions__select-option_empty{color:var(--g-color-text-hint)}.ydb-diagnostics-partitions__search{width:238px}.ydb-diagnostics-partitions__search_partition{width:100px}.ydb-diagnostics-partitions__search_general{width:280px}.ydb-diagnostics-partitions__table-wrapper{display:flex;flex:1 1 auto;flex-direction:column;overflow:auto}.ydb-diagnostics-partitions__table-content{height:100%;overflow:auto}.ydb-diagnostics-partitions__table .data-table__head-row:first-child .data-table__th:first-child,.ydb-diagnostics-partitions__table .data-table__td:first-child{background-color:var(--g-color-base-background);border-right:1px solid var(--g-color-line-generic);left:0;position:sticky;z-index:2000}.ydb-diagnostics-partitions__table .data-table__row:hover .data-table__td:first-child{background-color:var(--ydb-data-table-color-hover)!important}.ydb-diagnostics-partitions__table .data-table__head-row:first-child .data-table__th:nth-child(0),.ydb-diagnostics-partitions__table .data-table__td:nth-child(0){border-right:initial;box-shadow:none}.ydb-diagnostics-partitions__table .data-table__head-row:first-child .data-table__th:first-child,.ydb-diagnostics-partitions__table .data-table__td:first-child{box-shadow:none}.date-range__range-input_s{width:200px}.date-range__range-input_m{width:300px}.date-range__range-input_l{width:350px}.date-range__range-input input{cursor:pointer}.top-shards__hint{left:0;position:sticky;width:max-content}.kv-tenant-diagnostics{display:flex;flex-direction:column;height:100%;overflow:hidden}.kv-tenant-diagnostics__header-wrapper{background-color:var(--g-color-base-background);padding:0 20px 16px}.kv-tenant-diagnostics__tabs{--g-tabs-border-width:0;align-items:center;box-shadow:inset 0 -1px 0 0 var(--g-color-line-generic);display:flex;justify-content:space-between}.kv-tenant-diagnostics__tabs .g-tabs_direction_horizontal{box-shadow:none}.kv-tenant-diagnostics__tab{margin-right:40px;text-decoration:none}.kv-tenant-diagnostics__tab:first-letter{text-transform:uppercase}.kv-tenant-diagnostics__page-wrapper{flex-grow:1;overflow:auto;padding:0 20px;width:100%}.kv-tenant-diagnostics__page-wrapper .ydb-table-with-controls-layout__controls{height:46px;padding-top:0}.kv-tenant-diagnostics__page-wrapper .ydb-table-with-controls-layout .data-table__sticky_moving,.kv-tenant-diagnostics__page-wrapper .ydb-table-with-controls-layout .ydb-paginated-table__head{top:46px!important}.ydb-queries-history{display:flex;flex:1 1 auto;flex-direction:column;height:100%;overflow:auto;padding:0 20px}.ydb-queries-history .ydb-table-with-controls-layout__controls{height:46px;padding-top:0}.ydb-queries-history.ydb-table-with-controls-layout .data-table__sticky_moving{top:46px!important}.ydb-queries-history__search{width:238px}.ydb-queries-history__table-row{cursor:pointer}.ydb-queries-history__query{flex-grow:1;overflow:hidden;text-overflow:ellipsis;white-space:pre}.kv-pane-visibility-button_hidden{display:none}.kv-pane-visibility-button_bottom{transform:rotate(180deg)}.kv-pane-visibility-button_bottom.rotate{transform:rotate(0)}.kv-pane-visibility-button_left{transform:rotate(-90deg)}.kv-pane-visibility-button_left.rotate{transform:rotate(90deg)}.kv-pane-visibility-button_top.rotate{transform:rotate(180deg)}.kv-divider{background-color:var(--g-color-line-generic);height:100%;margin:0 4px;width:1px}.ydb-fullscreen{display:flex;flex-grow:1;overflow:hidden}.ydb-fullscreen_fullscreen{background-color:var(--g-color-base-background);inset:0;position:absolute;z-index:10}.ydb-fullscreen__close-button{display:none;position:fixed;right:20px;top:8px;z-index:11}.ydb-fullscreen_fullscreen .ydb-fullscreen__close-button{display:block}.ydb-query-settings-description__message{display:flex;flex-wrap:wrap;white-space:pre}.kv-query-execution-status{align-items:center;color:var(--g-color-text-complementary);display:flex;gap:4px}.kv-query-execution-status__result-status-icon{color:var(--g-color-text-positive)}.kv-query-execution-status__result-status-icon_error{color:var(--g-color-text-danger)}.kv-query-execution-status__query-settings-icon{color:var(--g-color-text-hint)}.ydb-query-result-table__cell{cursor:pointer;display:inline-block;max-width:600px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.ydb-query-result-table__message{padding:15px 10px}.cancel-query-button__stop-button_error{animation:errorAnimation .5s linear}@keyframes errorAnimation{41%,8%{transform:translateX(-2px)}25%,58%{transform:translateX(2px)}75%{transform:translateX(-1px)}92%{transform:translateX(1px)}0%,to{transform:translateX(0)}}.ydb-query-explain-simplified-plan{height:100%;overflow:auto;padding:0 0 15px}.ydb-query-explain-simplified-plan__table{border-collapse:collapse;border-spacing:0;max-width:100%;table-layout:fixed;width:100%}.ydb-query-explain-simplified-plan__table tr:hover{background-color:var(--g-color-base-generic-hover)!important}.ydb-query-explain-simplified-plan__table tr:nth-of-type(odd){background-color:var(--g-color-base-generic-ultralight)}.ydb-query-explain-simplified-plan__name{align-items:center;display:flex;gap:var(--g-spacing-1);max-width:100%}.ydb-query-explain-simplified-plan__table-header-cell{background-color:var(--g-color-base-background);font-size:var(--g-text-subheader-2-font-size);font-weight:var(--g-text-subheader-font-weight);height:40px;line-height:var(--g-text-subheader-2-line-height);padding:0;text-align:left}.ydb-query-explain-simplified-plan__table-header-cell_align_right{text-align:right}.ydb-query-explain-simplified-plan__table-header-content{border-bottom:1px solid var(--g-color-line-generic);height:100%;line-height:40px;padding:0 var(--g-spacing-2)}.ydb-query-explain-simplified-plan__metrics-cell{padding:var(--g-spacing-1) var(--g-spacing-2)}.ydb-query-explain-simplified-plan__table-cell{font-size:var(--g-text-body-2-font-size);font-weight:var(--g-text-body-font-weight);height:30px;line-height:var(--g-text-body-2-line-height);padding:0}.ydb-query-explain-simplified-plan__table-cell_align_right{text-align:right}.ydb-query-explain-simplified-plan__table-cell_vertical-align_top{vertical-align:top}.ydb-query-explain-simplified-plan__operation-params{color:var(--g-color-text-secondary)}.ydb-query-explain-simplified-plan__operation-name{height:100%;max-width:100%;position:relative}.ydb-query-explain-simplified-plan__divider{bottom:0;box-shadow:1px 0 0 0 var(--g-color-line-generic) inset;height:100%;position:absolute;width:12px}.ydb-query-explain-simplified-plan__divider_last{border-radius:0 0 0 1px;bottom:auto;box-shadow:1px -1px 0 0 var(--g-color-line-generic) inset;height:14px;top:0;width:12px}.ydb-query-explain-simplified-plan__divider_horizontal{bottom:auto;box-shadow:0 -1px 0 0 var(--g-color-line-generic) inset;height:14px;top:0;width:12px}.ydb-query-explain-simplified-plan__divider_first{height:calc(100% - 24px)}.ydb-query-explain-simplified-plan__operation-content{align-items:baseline;height:100%;max-width:100%;padding:var(--g-spacing-1) 0;word-break:break-word}.ydb-query-explain-simplified-plan__operation-name-content{display:flex;flex-grow:1;height:100%}.ydb-query-explain-simplified-plan .gt-table__cell_id_name{border:initial}.kv-shorty-string__toggle{font-size:.85em;margin-left:2em}.kv-result-issues{padding:0 10px}.kv-result-issues__error-message{align-items:center;background-color:var(--g-color-base-background);display:flex;left:0;padding:10px 0;position:sticky;top:0;z-index:2}.kv-result-issues__error-message-text{margin:0 10px}.kv-issues{position:relative}.kv-issue_leaf{margin-left:31px}.kv-issue__issues{padding-left:24px}.kv-issue__line{align-items:flex-start;display:flex;margin:0 0 10px;padding:0 10px 0 0}.kv-issue__place-text{color:var(--g-color-text-secondary);display:inline-block;padding-right:10px;text-align:left}.kv-issue__message{display:flex;font-family:var(--g-font-family-monospace);font-size:var(--g-text-code-2-font-size);line-height:var(--g-text-header-2-line-height);margin-left:10px;margin-right:auto}.kv-issue__message-text{flex:1 1 auto;min-width:240px;white-space:pre-wrap;word-break:break-word}.kv-issue__code{color:var(--g-color-text-complementary);flex:0 0 auto;font-size:12px;margin-left:1.5em;padding:3px 0}.kv-issue__arrow-toggle{margin-right:5px}.yql-issue-severity{align-items:center;display:flex;line-height:28px;white-space:nowrap}.yql-issue-severity_severity_error .yql-issue-severity__icon,.yql-issue-severity_severity_fatal .yql-issue-severity__icon{color:var(--g-color-text-danger)}.yql-issue-severity_severity_warning .yql-issue-severity__icon{color:var(--g-color-text-warning)}.yql-issue-severity_severity_info .yql-issue-severity__icon{color:var(--g-color-text-info)}.yql-issue-severity__title{color:var(--g-color-text-complementary);margin-left:4px;text-transform:capitalize}.ydb-query-duration{align-items:center;color:var(--g-color-text-complementary);display:flex;margin-left:10px}.ydb-query-duration__item-with-popover{display:flex;white-space:nowrap}.ydb-query-duration__popover{align-items:center;display:flex}.ydb-query-duration__popover-content{max-width:300px}.ydb-query-duration__popover-button{display:flex}.ydb-query-settings-banner{margin:var(--g-spacing-1) var(--g-spacing-5)}.ydb-query-execute-result__result{display:flex;flex-direction:column;flex-grow:1;overflow:auto;padding-left:10px}.ydb-query-execute-result__result .data-table__box .data-table__table-wrapper{padding-bottom:20px}.ydb-query-execute-result__result .data-table__th{box-shadow:inset 0 -1px 0 0 var(--g-tabs-color-divider)}.ydb-query-execute-result__result .data-table__table-wrapper{padding-bottom:0}.ydb-query-execute-result__row-count{margin-left:var(--g-spacing-1)}.ydb-query-execute-result__result-head{margin-top:var(--g-spacing-4)}.ydb-query-execute-result__result-wrapper{display:flex;flex-direction:column;width:100%}.ydb-query-execute-result__result-tabs{padding-left:10px}.ydb-query-execute-result__error{padding:15px 10px}.ydb-query-execute-result__controls{align-items:center;background-color:var(--g-color-base-background);border-bottom:1px solid var(--g-color-line-generic);display:flex;height:53px;justify-content:space-between;padding:12px 20px;position:sticky;top:0;z-index:2}.ydb-query-execute-result__controls-right{align-items:center;display:flex;gap:12px;height:100%}.ydb-query-execute-result__controls-left{display:flex;gap:4px}.ydb-query-execute-result__inspector{word-wrap:break-word;font-family:var(--g-font-family-monospace)!important;font-size:var(--g-text-code-1-font-size)!important;height:100%;line-height:var(--g-text-code-1-line-height)!important;overflow:auto;padding:15px 10px;width:100%}.ydb-query-execute-result__inspector .json-inspector__leaf_composite:before{color:var(--g-color-text-secondary);font-size:9px;left:20px;position:absolute}.ydb-query-execute-result__inspector .json-inspector__leaf_composite.json-inspector__leaf_root:before{left:0}.ydb-query-execute-result__inspector :not(.json-inspector__leaf_expanded).json-inspector__leaf_composite:before{content:"[+]"}.ydb-query-execute-result__inspector .json-inspector__leaf_expanded.json-inspector__leaf_composite:before{content:"[-]"}.ydb-query-execute-result__inspector .json-inspector__key{color:var(--g-color-text-misc)}.ydb-query-execute-result__inspector .json-inspector__leaf{padding-left:20px;position:relative}.ydb-query-execute-result__inspector .json-inspector__leaf_root{padding-left:0}.ydb-query-execute-result__inspector .json-inspector__line{padding-left:20px}.ydb-query-execute-result__inspector .json-inspector__toolbar{border:1px solid var(--g-color-line-generic);border-radius:4px;margin-bottom:10px;width:300px}.ydb-query-execute-result__inspector .json-inspector__search{background:none;border:0 solid #0000;border-width:0 22px 0 8px;box-sizing:border-box;color:var(--g-color-text-primary);font-family:var(--g-text-body-font-family);font-size:13px;height:28px;margin:0;outline:0;padding:0;vertical-align:top;width:300px}.ydb-query-execute-result__inspector .json-inspector__value_helper{color:var(--g-color-text-secondary)}.ydb-query-execute-result__inspector .json-inspector__line:hover:after{background:var(--g-color-base-simple-hover)}.ydb-query-execute-result__inspector .json-inspector__show-original:before{color:var(--g-color-text-secondary)}.ydb-query-execute-result__inspector .json-inspector__show-original:hover:after,.ydb-query-execute-result__inspector .json-inspector__show-original:hover:before{color:var(--g-color-text-primary)}.ydb-query-execute-result__inspector .json-inspector__leaf.json-inspector__leaf_root.json-inspector__leaf_composite{max-width:calc(100% - 50px)}.ydb-query-execute-result__explain-canvas-container{height:100%;overflow-y:auto;width:100%}.ydb-query-execute-result__elapsed-label{margin-left:var(--g-spacing-3)}.ydb-query-explain-ast{height:100%;overflow:hidden;white-space:pre-wrap;width:100%}.ydb-query-explain-graph__canvas-container{height:100%;overflow-y:auto;width:100%}.ydb-query-explain-graph__canvas-container_hidden{display:none}.ydb-query-explain-graph__text-message{padding:15px 20px}.ydb-query-explain-text__inspector{word-wrap:break-word;font-family:var(--g-font-family-monospace)!important;font-size:var(--g-text-code-1-font-size)!important;line-height:var(--g-text-code-1-line-height)!important;overflow-y:auto;padding:15px 20px;width:100%}.ydb-query-explain-text__inspector .json-inspector__leaf_composite:before{color:var(--g-color-text-secondary);font-size:9px;left:20px;position:absolute}.ydb-query-explain-text__inspector .json-inspector__leaf_composite.json-inspector__leaf_root:before{left:0}.ydb-query-explain-text__inspector :not(.json-inspector__leaf_expanded).json-inspector__leaf_composite:before{content:"[+]"}.ydb-query-explain-text__inspector .json-inspector__leaf_expanded.json-inspector__leaf_composite:before{content:"[-]"}.ydb-query-explain-text__inspector .json-inspector__key{color:var(--g-color-text-misc)}.ydb-query-explain-text__inspector .json-inspector__leaf{padding-left:20px;position:relative}.ydb-query-explain-text__inspector .json-inspector__leaf_root{padding-left:0}.ydb-query-explain-text__inspector .json-inspector__line{padding-left:20px}.ydb-query-explain-text__inspector .json-inspector__toolbar{border:1px solid var(--g-color-line-generic);border-radius:4px;margin-bottom:10px;width:300px}.ydb-query-explain-text__inspector .json-inspector__search{background:none;border:0 solid #0000;border-width:0 22px 0 8px;box-sizing:border-box;color:var(--g-color-text-primary);font-family:var(--g-text-body-font-family);font-size:13px;height:28px;margin:0;outline:0;padding:0;vertical-align:top;width:300px}.ydb-query-explain-text__inspector .json-inspector__value_helper{color:var(--g-color-text-secondary)}.ydb-query-explain-text__inspector .json-inspector__line:hover:after{background:var(--g-color-base-simple-hover)}.ydb-query-explain-text__inspector .json-inspector__show-original:before{color:var(--g-color-text-secondary)}.ydb-query-explain-text__inspector .json-inspector__show-original:hover:after,.ydb-query-explain-text__inspector .json-inspector__show-original:hover:before{color:var(--g-color-text-primary)}.ydb-query-explain-text__inspector .json-inspector__leaf.json-inspector__leaf_root.json-inspector__leaf_composite{max-width:calc(100% - 50px)}.ydb-query-explain-text__inspector_fullscreen{padding:10px}.ydb-query-explain-result__result{display:flex;flex-direction:column;flex-grow:1;overflow:auto}.ydb-query-explain-result__text-message{padding:15px 20px}.ydb-query-explain-result__controls{align-items:center;background-color:var(--g-color-base-background);border-bottom:1px solid var(--g-color-line-generic);display:flex;height:53px;justify-content:space-between;padding:12px 20px;position:sticky;top:0;z-index:2}.ydb-query-explain-result__controls-right{align-items:center;display:flex;gap:12px;height:100%}.ydb-query-explain-result__controls-left{display:flex;gap:4px}.ydb-query-explain-result__elapsed-label{margin-left:var(--g-spacing-3)}.kv-preview{display:flex;flex:1 1 auto;flex-direction:column;height:100%}.kv-preview .data-table__box .data-table__table-wrapper{padding-bottom:20px}.kv-preview .data-table__th{box-shadow:inset 0 -1px 0 0 var(--g-tabs-color-divider)}.kv-preview__header{align-items:center;background-color:var(--g-color-base-background);border-bottom:1px solid var(--g-color-line-generic);display:flex;height:53px;justify-content:space-between;padding:0 20px;position:sticky;top:0}.kv-preview__title{display:flex}.kv-preview__table-name{color:var(--g-color-text-complementary);margin-left:4px}.kv-preview__controls-left{display:flex;gap:5px}.kv-preview__message-container{padding:15px 20px}.kv-preview__loader-container{align-items:center;display:flex;height:100%;justify-content:center}.kv-preview__result{overflow:auto;padding-left:10px;width:100%}.ydb-save-query__dialog-row{align-items:flex-start;display:flex}.ydb-save-query__dialog-row+.ydb-save-query__dialog-row{margin-top:var(--g-text-body-1-line-height)}.ydb-save-query__field-title{font-weight:500;line-height:28px;margin-right:12px;white-space:nowrap}.ydb-save-query__field-title.required:after{color:var(--g-color-text-danger);content:"*"}.ydb-save-query__control-wrapper{display:flex;flex-grow:1;min-height:48px}.ydb-query-editor-controls{align-items:flex-end;display:flex;flex:0 0 40px;gap:24px;justify-content:space-between;min-height:40px;padding:5px 0}.ydb-query-editor-controls__left{display:flex;gap:12px}.ydb-query-editor-controls__mode-selector__button{margin-left:2px;width:241px}.ydb-query-editor-controls__mode-selector__button-content{align-items:center;display:flex;justify-content:space-between;width:215px}.ydb-query-editor-controls__mode-selector__popup{width:241px}.ydb-query-editor-controls__item-with-popover{align-items:center;display:flex;height:24px;line-height:normal}.ydb-query-editor-controls__popover{max-width:420px;white-space:pre-wrap}.ydb-query-settings-select__selector{width:100%}.ydb-query-settings-select__popup{max-width:320px}.ydb-query-settings-select__item-description{color:var(--g-color-text-secondary);white-space:pre-wrap}.ydb-query-settings-select__item{padding:var(--g-spacing-1) 0}.ydb-query-settings-dialog__dialog-row+.ydb-query-settings-dialog__dialog-row{margin-top:var(--g-text-body-1-line-height)}.ydb-query-settings-dialog__field-title{flex:4 1;font-weight:500;line-height:var(--g-text-header-2-line-height);margin-right:var(--g-spacing-3);white-space:nowrap}.ydb-query-settings-dialog .g-dialog-footer__bts-wrapper{width:100%}.ydb-query-settings-dialog__dialog-body{padding-top:var(--g-spacing-6)}.ydb-query-settings-dialog__control-wrapper{display:flex;flex:6 1}.ydb-query-settings-dialog__limit-rows,.ydb-query-settings-dialog__timeout{margin-right:var(--g-spacing-2);width:33.3%}.ydb-query-settings-dialog__documentation-link,.ydb-query-settings-dialog__timeout-suffix{align-items:center;color:var(--g-color-text-secondary);display:flex}.ydb-query-settings-dialog__documentation-link{margin-left:var(--g-spacing-4)}.ydb-query-settings-dialog__buttons-container{display:flex;justify-content:space-between;width:100%}.ydb-query-settings-dialog__main-buttons{display:flex;gap:10px}.query-editor{display:flex;flex:1 1 auto;flex-direction:column;height:100%;position:relative}.query-editor .data-table__box .data-table__table-wrapper{padding-bottom:20px}.query-editor .data-table__th{box-shadow:inset 0 -1px 0 0 var(--g-tabs-color-divider)}.query-editor__monaco{border:1px solid var(--g-color-line-generic);display:flex;height:100%;position:relative;width:100%}.query-editor__monaco-wrapper{height:calc(100% - 49px);min-height:0;width:100%}.query-editor__pane-wrapper{background-color:var(--g-color-base-background);display:flex;flex-direction:column;z-index:2}.query-editor__pane-wrapper_top{border-bottom:1px solid var(--g-color-line-generic);padding:0 16px}.ydb-saved-queries{display:flex;flex:1 1 auto;flex-direction:column;height:100%;overflow:auto;padding:0 20px}.ydb-saved-queries .ydb-table-with-controls-layout__controls{height:46px;padding-top:0}.ydb-saved-queries.ydb-table-with-controls-layout .data-table__sticky_moving{top:46px!important}.ydb-saved-queries__search{width:238px}.ydb-saved-queries__row{cursor:pointer}.ydb-saved-queries__row :hover .ydb-saved-queries__controls{display:flex}.ydb-saved-queries__query-name{overflow:hidden;text-overflow:ellipsis;white-space:pre-wrap}.ydb-saved-queries__query{align-items:center;display:flex;flex-direction:row;justify-content:space-between}.ydb-saved-queries__query-body{flex-grow:1;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:pre}.ydb-saved-queries__controls{display:none}.ydb-saved-queries__dialog-query-name{font-weight:500}.ydb-query{display:flex;flex:1 1 auto;flex-direction:column;max-height:calc(100% - 56px)}.ydb-query__tabs{padding:0 20px 16px}.ydb-query__content{height:100%;overflow:hidden}.ydb-tenant-navigation{padding:12px 16px 8px}.ydb-tenant-navigation__item{align-items:center;display:flex;gap:5px}.ydb-tenant-navigation__icon{flex-shrink:0}.ydb-tenant-navigation__text{overflow:hidden;text-overflow:ellipsis}.object-general{display:flex;flex-direction:column;flex-grow:1;height:100%;max-height:100%;width:100%}.object-general__loader{display:flex}.ydb-acl{width:100%}.ydb-acl__result{padding-bottom:var(--g-spacing-4);padding-left:var(--g-spacing-2)}.ydb-acl__result_no-title{margin-top:var(--g-spacing-3)}.ydb-acl__definition-content{align-items:flex-end;display:flex;flex-direction:column}.ydb-acl__list-title{font-weight:600;margin:var(--g-spacing-3) 0 var(--g-spacing-5)}.ydb-acl__group-label,.ydb-acl__list-title{font-size:var(--g-text-subheader-2-font-size);font-weight:var(--g-text-subheader-font-weight);line-height:var(--g-text-subheader-2-line-height)}.ydb-schema-create-directory-dialog__label{display:flex;flex-direction:column;margin-bottom:8px}.ydb-schema-create-directory-dialog__description{color:var(--g-color-text-secondary)}.ydb-schema-create-directory-dialog__input-wrapper{min-height:48px}.ydb-object-summary{height:100%;max-height:100%;overflow:hidden;width:100%}.ydb-object-summary,.ydb-object-summary__overview-wrapper{display:flex;flex-direction:column;flex-grow:1;position:relative}.ydb-object-summary__overview-wrapper{overflow:auto;padding:0 12px 16px}.ydb-object-summary_hidden{visibility:hidden}.ydb-object-summary__action-button{background-color:var(--g-color-base-background);position:absolute;right:5px;top:19px}.ydb-object-summary__action-button_hidden{visibility:hidden}.ydb-object-summary__tree-wrapper{display:flex;flex-direction:column}.ydb-object-summary__tree{flex:1 1 auto;height:100%;overflow-y:scroll;padding:0 12px 12px 16px}.ydb-object-summary__tree-header{padding:23px 12px 17px 20px}.ydb-object-summary__sticky-top{background-color:var(--g-color-base-background);left:0;position:sticky;top:0;z-index:5}.ydb-object-summary__tabs{padding:8px 12px 16px}.ydb-object-summary__tabs-inner{--g-tabs-border-width:0;box-shadow:inset 0 -1px 0 0 var(--g-color-line-generic)}.ydb-object-summary__tab{text-decoration:none}.ydb-object-summary__info{display:flex;flex-direction:column;overflow:hidden}.ydb-object-summary__info-controls{display:flex;gap:4px}.ydb-object-summary__info-action-button{background-color:var(--g-color-base-background)}.ydb-object-summary__info-action-button_hidden{display:none}.ydb-object-summary__rotated90{transform:rotate(-90deg)}.ydb-object-summary__rotated180{transform:rotate(180deg)}.ydb-object-summary__rotated270{transform:rotate(90deg)}.ydb-object-summary__info-header{align-items:center;border-bottom:1px solid var(--g-color-line-generic);display:flex;justify-content:space-between;padding:12px 12px 10px}.ydb-object-summary__info-title{align-items:center;display:flex;font-weight:600;overflow:hidden}.ydb-object-summary__path-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ydb-object-summary__entity-type{background-color:var(--g-color-base-generic);border-radius:3px;display:inline-block;font-weight:400;margin-right:5px;padding:3px 8px;text-transform:lowercase}.ydb-object-summary__entity-type_error{background-color:#0000;padding:3px 0}.link{color:var(--g-color-text-link);text-decoration:none}.link_external{margin-right:10px}.link:hover{color:var(--g-color-text-link-hover)}.tenant-page{display:flex;flex:1 1 auto;flex-direction:column;font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height);overflow:hidden}.tenant-page__main{flex-grow:1} \ No newline at end of file
diff --git a/ydb/core/viewer/monitoring/static/css/5616.346fc972.chunk.css b/ydb/core/viewer/monitoring/static/css/5616.346fc972.chunk.css
deleted file mode 100644
index c39104cf25..0000000000
--- a/ydb/core/viewer/monitoring/static/css/5616.346fc972.chunk.css
+++ /dev/null
@@ -1 +0,0 @@
-@charset "UTF-8";.auto-refresh-control{align-items:center;display:flex;gap:var(--g-spacing-1)}.g-tooltip[class]{--g-popup-border-width:0}.g-tooltip[class]>div{animation-duration:1ms;box-shadow:0 1px 5px 0 #00000026;box-sizing:border-box;max-width:360px;padding:4px 8px}.g-tooltip__content{-webkit-box-orient:vertical;-ms-box-orient:vertical;-webkit-line-clamp:20;-moz-line-clamp:20;-ms-line-clamp:20;display:-webkit-box;overflow:hidden;text-overflow:ellipsis}.ydb-status-icon__status-color_state_green{background-color:var(--ydb-color-status-green)}.ydb-status-icon__status-color_state_yellow{background-color:var(--ydb-color-status-yellow)}.ydb-status-icon__status-color_state_blue{background-color:var(--ydb-color-status-blue)}.ydb-status-icon__status-color_state_red{background-color:var(--ydb-color-status-red)}.ydb-status-icon__status-color_state_grey{background-color:var(--ydb-color-status-grey)}.ydb-status-icon__status-color_state_orange{background-color:var(--ydb-color-status-orange)}.ydb-status-icon__status-icon_state_blue{color:var(--ydb-color-status-blue)}.ydb-status-icon__status-icon_state_yellow{color:var(--ydb-color-status-yellow)}.ydb-status-icon__status-icon_state_orange{color:var(--ydb-color-status-orange)}.ydb-status-icon__status-icon_state_red{color:var(--ydb-color-status-red)}.ydb-status-icon__status-color,.ydb-status-icon__status-icon{border-radius:3px;flex-shrink:0}.ydb-status-icon__status-color_size_xs,.ydb-status-icon__status-icon_size_xs{aspect-ratio:1;height:12px;width:12px}.ydb-status-icon__status-color_size_s,.ydb-status-icon__status-icon_size_s{aspect-ratio:1;height:16px;width:16px}.ydb-status-icon__status-color_size_m,.ydb-status-icon__status-icon_size_m{aspect-ratio:1;height:18px;width:18px}.ydb-status-icon__status-color_size_l,.ydb-status-icon__status-icon_size_l{height:24px;width:24px}.entity-status{align-items:center;display:inline-flex;font-size:var(--g-text-body-2-font-size);height:100%;line-height:var(--g-text-body-2-line-height);max-width:100%}.entity-status__icon{margin-right:var(--g-spacing-2)}.entity-status__clipboard-button{color:var(--g-color-text-secondary);display:flex;flex-shrink:0;margin-left:var(--g-spacing-2);opacity:0}.entity-status__clipboard-button:focus-visible,.entity-status__clipboard-button_visible{opacity:1}.entity-status__additional-controls{margin-left:var(--g-spacing-1)}.entity-status__label{color:var(--g-color-text-complementary);font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height);margin-right:2px}.entity-status__label_size_l{font-size:var(--g-text-header-2-font-size)}.entity-status__link{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.entity-status__link_with-left-trim{direction:rtl}.entity-status__link_with-left-trim .entity-status__name{unicode-bidi:plaintext}.entity-status__label_state_blue{color:var(--ydb-color-status-blue)}.entity-status__label_state_yellow{color:var(--ydb-color-status-yellow)}.entity-status__label_state_orange{color:var(--ydb-color-status-orange)}.entity-status__label_state_red{color:var(--ydb-color-status-red)}.progress-viewer{align-items:center;background:var(--g-color-base-generic);border-radius:2px;color:var(--g-color-text-complementary);display:flex;font-size:var(--g-text-body-2-font-size);height:23px;justify-content:center;min-width:120px;overflow:hidden;padding:0 4px;position:relative;white-space:nowrap;z-index:0}.progress-viewer_theme_dark{color:var(--g-color-text-light-primary)}.progress-viewer_theme_dark .progress-viewer__line{opacity:.75}.progress-viewer_status_good{background-color:var(--g-color-base-positive-light)}.progress-viewer_status_good .progress-viewer__line{background-color:var(--ydb-color-status-green)}.progress-viewer_status_warning{background-color:var(--g-color-base-yellow-light)}.progress-viewer_status_warning .progress-viewer__line{background-color:var(--ydb-color-status-yellow)}.progress-viewer_status_danger{background-color:var(--g-color-base-danger-light)}.progress-viewer_status_danger .progress-viewer__line{background-color:var(--ydb-color-status-red)}.progress-viewer__line{height:100%;left:0;position:absolute;top:0}.progress-viewer__text{position:relative;z-index:1}.progress-viewer_size_xs{font-size:var(--g-text-body-2-font-size);height:20px;line-height:var(--g-text-body-2-line-height)}.progress-viewer_size_s{font-size:var(--g-text-body-1-font-size);height:28px;line-height:28px}.progress-viewer_size_m{font-size:var(--g-text-body-2-font-size);height:32px;line-height:32px}.progress-viewer_size_ns{font-size:13px;height:24px;line-height:var(--g-text-subheader-3-line-height)}.progress-viewer_size_n{font-size:var(--g-text-body-1-font-size);height:36px;line-height:36px}.progress-viewer_size_l{font-size:var(--g-text-subheader-3-font-size);height:38px;line-height:38px}.progress-viewer_size_head{font-size:var(--g-text-body-1-font-size);line-height:36px}.usage-filter,.ydb-search{min-width:100px}.usage-filter__option{flex-grow:1}.usage-filter__option-title{font-size:var(--g-text-body-1-font-size);height:var(--g-text-body-1-line-height);line-height:var(--g-text-body-1-line-height)}.usage-filter__option-meta{border-radius:3px;font-size:var(--g-text-caption-2-font-size);line-height:var(--g-text-caption-2-line-height);padding:0 5px;position:relative;z-index:0}.usage-filter__option-bar{background-color:var(--g-color-base-info-medium);border-radius:3px;bottom:0;left:0;position:absolute;top:0;z-index:-1}.g-table-column-setup__status{color:var(--g-color-text-secondary);margin-inline-start:5px}.g-inner-table-column-setup{display:inline-block}.g-inner-table-column-setup__controls{margin:var(--g-spacing-1) var(--g-spacing-1) 0}.g-inner-table-column-setup__filter-input{border-block-end:1px solid var(--g-color-line-generic);box-sizing:border-box;padding:0 var(--g-spacing-2) var(--g-spacing-1)}.g-inner-table-column-setup__empty-placeholder{padding:var(--g-spacing-2)}.g-list-container-view{box-sizing:border-box;outline:none;width:100%}.g-list-container-view_fixed-height{height:300px;height:var(--g-list-container-height,300px)}.g-list-container-view:not(.g-list-container-view_fixed-height){overflow:auto}.g-list-item-view{flex-shrink:0}.g-list-item-view__main-content{grid-gap:2px;grid-gap:var(--g-spacing-half,2px);display:grid;gap:2px;gap:var(--g-spacing-half,2px);width:100%}.g-list-item-view:hover.g-list-item-view_activeOnHover,.g-list-item-view_active{background:var(--g-color-base-simple-hover)}.g-list-item-view_clickable{cursor:pointer}.g-list-item-view_selected,.g-list-item-view_selected.g-list-item-view_active,.g-list-item-view_selected:hover.g-list-item-view_activeOnHover{background:var(--g-color-base-selection)}.g-list-item-view_dragging,.g-list-item-view_dragging.g-list-item-view_active,.g-list-item-view_dragging.g-list-item-view_selected{background:var(--g-color-base-simple-hover-solid);z-index:100001!important}.g-list-item-view_radius_s{border-radius:3px;border-radius:var(--g-list-item-border-radius,3px)}.g-list-item-view_radius_m{border-radius:5px;border-radius:var(--g-list-item-border-radius,5px)}.g-list-item-view_radius_l{border-radius:6px;border-radius:var(--g-list-item-border-radius,6px)}.g-list-item-view_radius_xl{border-radius:8px;border-radius:var(--g-list-item-border-radius,8px)}.g-list-item-view__icon,.g-list-item-view__slot{flex-shrink:0}.g-tree-select{display:inline-block;max-width:100%}.g-tree-select_width_max{width:100%}.g-tree-select__popup{overflow:hidden;padding:4px 0}.g-tree-select__popup_size_s{border-radius:5px;border-radius:var(--g-list-container-border-radius,5px)}.g-tree-select__popup_size_m{border-radius:6px;border-radius:var(--g-list-container-border-radius,6px)}.g-tree-select__popup_size_l{border-radius:8px;border-radius:var(--g-list-container-border-radius,8px)}.g-tree-select__popup_size_xl{border-radius:10px;border-radius:var(--g-list-container-border-radius,10px)}.g-tree-select__list{padding:0 4px}.g-list-recursive-renderer{margin:0;padding:0}.table-skeleton{width:100%}.table-skeleton__row{align-items:center;display:flex;height:var(--data-table-row-height)}.table-skeleton__row .g-skeleton{height:var(--g-text-body-2-line-height)}.table-skeleton__col-1{margin-right:5%;width:10%}.table-skeleton__col-2{margin-right:5%;width:7%}.table-skeleton__col-3,.table-skeleton__col-4{margin-right:5%;width:5%}.table-skeleton__col-5{width:20%}.table-skeleton__col-full{width:100%}.g-skeleton{--_--animation-from:calc(-100%*var(--g-flow-direction));--_--animation-to:calc(100%*var(--g-flow-direction));--_--gradient-deg:calc(90deg*var(--g-flow-direction));background-color:var(--g-color-base-generic);border-radius:5px;display:inline-block;overflow:hidden;position:relative;width:100%;z-index:0}.g-skeleton:after{animation:g-skeleton 1.2s ease-out infinite;background-image:linear-gradient(var(--_--gradient-deg),#0000,var(--g-color-base-generic));content:"";inset:0;position:absolute}@keyframes g-skeleton{0%{transform:translateX(var(--_--animation-from))}to{transform:translateX(var(--_--animation-to))}}.ydb-table-with-controls-layout{box-sizing:border-box;display:inline-block;min-width:100%}.ydb-table-with-controls-layout__controls-wrapper{background-color:var(--g-color-base-background);box-sizing:border-box;left:0;position:sticky;top:0;width:100%;z-index:3}.ydb-table-with-controls-layout__controls{align-items:center;background-color:var(--g-color-base-background);display:flex;gap:12px;height:62px;left:0;padding:16px 0 18px;position:sticky;top:0;width:max-content;z-index:3}.ydb-table-with-controls-layout__table{position:relative;z-index:2}.ydb-table-with-controls-layout .ydb-paginated-table__head{top:62px}.ydb-table-with-controls-layout .data-table__sticky_moving{top:62px!important}.ydb-cell-with-popover{display:flex;max-width:100%}.ydb-cell-with-popover__popover{display:inline-block;max-width:100%;overflow:hidden;text-overflow:ellipsis;vertical-align:middle;white-space:nowrap}.ydb-cell-with-popover__popover .g-popover__handler{display:inline}.ydb-usage-label_overload{background-color:var(--ydb-color-status-red);color:var(--g-color-text-light-primary)}.stack{--ydb-stack-base-z-index:100;--ydb-stack-offset-x:4px;--ydb-stack-offset-y:4px;--ydb-stack-offset-x-hover:4px;--ydb-stack-offset-y-hover:8px;position:relative}.stack__layer{background:var(--g-color-base-background);transition:transform .1s ease-out}.stack__layer:first-child{position:relative;z-index:var(--ydb-stack-base-z-index)}.stack__layer+.stack__layer{height:100%;left:0;position:absolute;top:0;transform:translate(calc(var(--ydb-stack-level)*var(--ydb-stack-offset-x)),calc(var(--ydb-stack-level)*var(--ydb-stack-offset-y)));width:100%;z-index:calc(var(--ydb-stack-base-z-index) - var(--ydb-stack-level))}.stack:hover .stack__layer:first-child{transform:translate(calc(var(--ydb-stack-offset-x-hover)*-1),calc(var(--ydb-stack-offset-y-hover)*-1))}.stack:hover .stack__layer+.stack__layer{transform:translate(calc(var(--ydb-stack-level)*var(--ydb-stack-offset-x-hover)*2 - var(--ydb-stack-offset-x-hover)),calc(var(--ydb-stack-level)*var(--ydb-stack-offset-y-hover)*2 - var(--ydb-stack-offset-y-hover)))}.storage-disk-progress-bar{--progress-bar-full-height:var(--g-text-body-3-line-height);--progress-bar-compact-height:12px;--entity-state-border-color:var(--g-color-base-misc-heavy);--entity-state-background-color:var(--g-color-base-misc-light);--entity-state-fill-color:var(--g-color-base-misc-medium);--entity-state-font-color:var(--g-color-text-primary);background-color:var(--entity-state-background-color);border:1px solid var(--entity-state-border-color);border-radius:4px;color:var(--g-color-text-primary);height:var(--progress-bar-full-height);min-width:50px;position:relative;text-align:center;z-index:0}.storage-disk-progress-bar_green{--entity-state-font-color:var(--g-color-text-positive);--entity-state-border-color:var(--g-color-base-positive-heavy);--entity-state-background-color:var(--g-color-base-positive-light);--entity-state-fill-color:var(--g-color-base-positive-medium)}.storage-disk-progress-bar_blue{--entity-state-font-color:var(--g-color-text-info);--entity-state-border-color:var(--g-color-base-info-heavy);--entity-state-background-color:var(--g-color-base-info-light);--entity-state-fill-color:var(--g-color-base-info-medium)}.storage-disk-progress-bar_yellow{--entity-state-font-color:var(--g-color-text-warning);--entity-state-border-color:var(--g-color-base-warning-heavy);--entity-state-background-color:var(--g-color-base-yellow-light);--entity-state-fill-color:var(--g-color-base-yellow-medium)}.storage-disk-progress-bar_orange{--entity-state-font-color:var(--g-color-private-orange-500);--entity-state-border-color:var(--ydb-color-status-orange);--entity-state-background-color:var(--g-color-private-orange-100);--entity-state-fill-color:var(--g-color-private-orange-300)}.storage-disk-progress-bar_red{--entity-state-font-color:var(--g-color-text-danger);--entity-state-border-color:var(--g-color-base-danger-heavy);--entity-state-background-color:var(--g-color-base-danger-light);--entity-state-fill-color:var(--g-color-base-danger-medium)}.storage-disk-progress-bar__grey{--entity-state-font-color:var(--g-color-text-secondary);--entity-state-border-color:var(--g-color-line-generic-hover)}.storage-disk-progress-bar_compact{border-radius:2px;height:var(--progress-bar-compact-height);min-width:0}.storage-disk-progress-bar_faded{background-color:initial}.storage-disk-progress-bar_inactive{opacity:.5}.storage-disk-progress-bar_empty{background-color:initial;border-style:dashed;color:var(--g-color-text-hint)}.storage-disk-progress-bar__fill-bar{background-color:var(--entity-state-fill-color);border-radius:3px 0 0 3px;height:100%;left:0;position:absolute;top:0}.storage-disk-progress-bar__fill-bar_faded{background-color:var(--entity-state-background-color)}.storage-disk-progress-bar__fill-bar_compact{border-radius:1px}.storage-disk-progress-bar__fill-bar_inverted{border-radius:0 3px 3px 0;left:auto;right:0}.storage-disk-progress-bar__title{color:inherit;font-size:var(--g-text-body-1-font-size);line-height:calc(var(--progress-bar-full-height) - 2px);position:relative;z-index:2}.ydb-critical-dialog{padding-top:var(--g-spacing-3)}.ydb-critical-dialog__warning-icon{color:var(--ydb-color-status-yellow);margin-right:16px}.ydb-critical-dialog__error-icon{color:var(--ydb-color-status-red);height:24px;margin-right:16px}.ydb-critical-dialog__body{display:flex;flex-direction:column;gap:var(--g-spacing-6)}.ydb-critical-dialog__body-message{align-items:center;display:flex}.ydb-critical-dialog__body-message_error,.ydb-critical-dialog__body-message_warning{border:1px solid;border-radius:5px;border-radius:var(--g-modal-border-radius,5px);padding:var(--g-spacing-4) var(--g-spacing-5)}.ydb-critical-dialog__body-message_warning{border-color:var(--ydb-color-status-yellow)}.ydb-critical-dialog__body-message_error{border-color:var(--ydb-color-status-red)}.pdisk-storage-popup{padding:12px}.g-checkbox__indicator{cursor:inherit;display:inline-block;position:relative}.g-checkbox__indicator:before{background-color:initial;border:1px solid var(--g-color-line-generic-accent);border-radius:4px;content:"";inset:0;position:absolute;transition:background .1s linear}.g-checkbox__indicator:after{content:" ";visibility:hidden}.g-checkbox__icon{align-items:center;color:#0000;display:flex;inset:0;justify-content:center;pointer-events:none;position:absolute;transform:translateY(-5px);transition:color .1s,transform .2s;visibility:hidden}.g-checkbox__control{border:none;cursor:inherit;margin:0;opacity:0;outline:none;padding:0}.g-checkbox__control,.g-checkbox__outline{background:none;height:100%;inset-block-start:0;inset-inline-start:0;position:absolute;width:100%}.g-checkbox__outline{border-radius:4px;pointer-events:none}.g-checkbox__control:focus-visible+.g-checkbox__outline{outline:2px solid var(--g-color-line-focus)}.g-checkbox_size_m .g-checkbox__icon-svg_type_tick{height:10px;width:8px}.g-checkbox_size_m .g-checkbox__icon-svg_type_dash{height:12px;width:12px}.g-checkbox_size_m .g-checkbox__indicator{height:14px;width:14px}.g-checkbox_size_l .g-checkbox__icon-svg_type_tick{height:9px;width:11px}.g-checkbox_size_l .g-checkbox__icon-svg_type_dash{height:15px;width:15px}.g-checkbox_size_l .g-checkbox__indicator{height:17px;width:17px}.g-checkbox:hover .g-checkbox__indicator:before{border-color:var(--g-color-line-generic-accent-hover)}.g-checkbox_checked .g-checkbox__indicator:before,.g-checkbox_indeterminate .g-checkbox__indicator:before{background-color:var(--g-color-base-brand);border:#0000}.g-checkbox_checked .g-checkbox__icon,.g-checkbox_indeterminate .g-checkbox__icon{color:var(--g-color-text-brand-contrast);transform:translateX(0);visibility:visible}.g-checkbox_disabled .g-checkbox__indicator:before{background-color:var(--g-color-base-generic-accent-disabled);border:#0000}.g-checkbox_disabled.g-checkbox_checked .g-checkbox__indicator:before,.g-checkbox_disabled.g-checkbox_indeterminate .g-checkbox__indicator:before{background-color:var(--g-color-base-brand);opacity:.5}.vdisk-storage-popup{padding:12px}.vdisk-storage-popup .info-viewer+.info-viewer{border-top:1px solid var(--g-color-line-generic);margin-top:8px;padding-top:8px}.vdisk-storage-popup__donor-label{margin-bottom:8px}.g-dialog{--_--side-padding:32px;--_--close-button-space:0px;display:flex;flex-direction:column;position:relative;width:var(--_--width);width:var(--g-dialog-width,var(--_--width))}.g-dialog_has-scroll{max-height:calc(100vh - 40px);max-height:calc(100vh - var(--g-modal-margin, 20px)*2);overflow-y:auto}.g-dialog_size_s{--_--width:480px}.g-dialog_size_m{--_--width:720px}.g-dialog_size_l{--_--width:900px}.g-dialog_has-close{--_--close-button-space:24px}.ydb-vdisk-component,.ydb-vdisk-component__content{border-radius:4px}.g-modal{-webkit-overflow-scrolling:touch;-webkit-tap-highlight-color:rgba(0,0,0,0);background-color:var(--g-color-sfx-veil);display:none;inset:0;margin:-9999px 0 0 -9999px;overflow:auto;position:fixed;visibility:hidden;z-index:1000}.g-modal__content-aligner{align-items:center;display:inline-flex;justify-content:center;min-height:100%;min-width:100%}.g-modal__content-wrapper{margin:20px;margin:var(--g-modal-margin,20px);overflow-x:hidden}.g-modal__content,.g-modal__content-wrapper{border-radius:5px;border-radius:var(--g-modal-border-radius,5px)}.g-modal__content{background-color:var(--g-color-base-modal)}.g-modal__content_has-scroll{max-height:calc(100vh - 40px);max-height:calc(100vh - var(--g-modal-margin, 20px)*2);overflow-y:auto}.g-modal,.g-modal__content{animation-fill-mode:forwards;animation-timing-function:ease-out;outline:none}.g-modal_exit_active,.g-modal_open{display:block;margin:0;visibility:visible}.g-modal_appear_active,.g-modal_enter_active{animation-duration:.15s;animation-name:g-modal-open}.g-modal_appear_active .g-modal__content,.g-modal_enter_active .g-modal__content{animation-duration:.15s;animation-name:g-modal-content-open}.g-modal_exit_active{animation-duration:.2s;animation-name:g-modal}@keyframes g-modal{0%{opacity:1}to{opacity:0}}@keyframes g-modal-open{0%{opacity:0}to{opacity:1}}@keyframes g-modal-content-open{0%{transform:scale(.75)}to{transform:scale(1)}}.pdisk-storage{position:relative;width:120px}.pdisk-storage__content{border-radius:4px;display:block;position:relative}.pdisk-storage__vdisks{display:flex;flex-wrap:wrap;gap:2px;margin-bottom:4px}.pdisk-storage__vdisks-item{flex-basis:5px;flex-shrink:0}.data-table__row:hover .pdisk-storage__vdisks-item .stack__layer{background:var(--ydb-data-table-color-hover)}.pdisk-storage__donors-stack{--ydb-stack-offset-x:0px;--ydb-stack-offset-y:-2px;--ydb-stack-offset-x-hover:0px;--ydb-stack-offset-y-hover:-7px}.pdisk-storage__media-type{color:var(--g-color-text-secondary);font-size:var(--g-text-body-1-font-size);line-height:var(--g-text-body-1-line-height);position:absolute;right:4px;top:50%;transform:translateY(-50%)}.g-dialog-btn-close{inset-block-start:14px;inset-inline-end:14px;position:absolute;z-index:1}.ydb-storage-disks{align-items:center;display:flex;flex-direction:row;gap:20px;width:max-content}.ydb-storage-disks__vdisks-wrapper{display:flex;flex-direction:row;flex-grow:1;gap:4px;width:300px}.ydb-storage-disks__pdisks-wrapper{display:flex;flex-direction:row;gap:6px;justify-content:left;width:max-content}.ydb-storage-disks__vdisk-item{flex-basis:8px;flex-shrink:0}.ydb-storage-disks__vdisk-progress-bar{--progress-bar-compact-height:18px;border-radius:4px}.ydb-storage-disks__pdisk-item{width:80px}.ydb-storage-disks__pdisk-progress-bar{--progress-bar-full-height:20px;padding-left:var(--g-spacing-2);text-align:left}.g-dialog-footer{align-items:center;display:flex;padding:28px var(--_--side-padding)}.g-dialog-footer__bts-wrapper{display:flex;gap:10px}.g-dialog-footer__children{align-items:center;display:flex;flex-grow:1;height:100%}.g-dialog-footer__button{min-width:128px;position:relative}.g-dialog-footer__error{color:var(--g-color-text-danger);padding:10px}.ydb-storage-groups-columns__disks-column,.ydb-storage-groups-columns__vdisks-column{overflow:visible}.ydb-storage-groups-columns__vdisks-wrapper{display:flex;gap:10px;justify-content:center;min-width:500px}.ydb-storage-groups-columns__vdisks-item{flex-grow:1;max-width:200px}.data-table__row:hover .ydb-storage-groups-columns__vdisks-item .stack__layer{background:var(--ydb-data-table-color-hover)}.ydb-storage-groups-columns__pool-name-wrapper{width:230px}.ydb-storage-groups-columns__group-id{font-weight:500}.g-dialog-header{align-items:center;color:var(--g-color-text-primary);display:flex;justify-content:flex-start;line-height:24px;padding-block:20px 10px;padding-inline:var(--_--side-padding) calc(var(--_--side-padding) + var(--_--close-button-space)*var(--g-flow-is-ltr) + var(--_--close-button-space)*var(--g-flow-is-rtl))}.g-dialog-header__caption{font-size:var(--g-text-subheader-3-font-size);font-weight:var(--g-text-subheader-font-weight);line-height:var(--g-text-subheader-3-line-height)}.developer-ui-link-button{display:none}.data-table__row:hover .developer-ui-link-button,.developer-ui-link-button_visible,.ydb-paginated-table__row:hover .developer-ui-link-button{display:inline-block}.g-dialog-body{flex:1 1 auto;overflow-y:auto;padding:10px var(--_--side-padding)}.g-dialog-body_has-borders{border-block-end:1px solid var(--g-color-line-generic);border-block-start:1px solid var(--g-color-line-generic)}.ydb-storage-nodes-columns__pdisks-column{overflow:visible}.ydb-storage-nodes-columns__pdisks-wrapper{align-items:flex-end;display:flex;justify-content:left;width:max-content}.ydb-storage-nodes-columns__pdisks-item{flex-grow:1;margin-right:10px;max-width:200px}.ydb-storage-nodes-columns__pdisks-item:last-child{margin-right:0}.ydb-resizeable-data-table{display:flex;padding-right:20px;width:max-content}.g-dialog-divider{border-block-start:1px solid var(--g-color-line-generic);margin:0 calc(var(--_--side-padding)*-1)}.link{color:var(--g-color-text-link);text-decoration:none}.link_external{margin-right:10px}.link:hover{color:var(--g-color-text-link-hover)}.global-storage__search{width:238px}.global-storage__table .g-tooltip{height:var(--g-text-body-2-line-height)!important}.global-storage .entity-status{justify-content:center}.ydb-vdisk-info__links{display:flex;flex-flow:row wrap;gap:var(--g-spacing-2)}.ydb-vdisk-info__title{display:flex;flex-direction:row;gap:var(--g-spacing-2)} \ No newline at end of file
diff --git a/ydb/core/viewer/monitoring/static/css/6123.8f81c527.chunk.css b/ydb/core/viewer/monitoring/static/css/6123.8f81c527.chunk.css
new file mode 100644
index 0000000000..0ff7fe34de
--- /dev/null
+++ b/ydb/core/viewer/monitoring/static/css/6123.8f81c527.chunk.css
@@ -0,0 +1 @@
+.ydb-status-icon__status-color_state_green{background-color:var(--ydb-color-status-green)}.ydb-status-icon__status-color_state_yellow{background-color:var(--ydb-color-status-yellow)}.ydb-status-icon__status-color_state_blue{background-color:var(--ydb-color-status-blue)}.ydb-status-icon__status-color_state_red{background-color:var(--ydb-color-status-red)}.ydb-status-icon__status-color_state_grey{background-color:var(--ydb-color-status-grey)}.ydb-status-icon__status-color_state_orange{background-color:var(--ydb-color-status-orange)}.ydb-status-icon__status-icon_state_blue{color:var(--ydb-color-status-blue)}.ydb-status-icon__status-icon_state_yellow{color:var(--ydb-color-status-yellow)}.ydb-status-icon__status-icon_state_orange{color:var(--ydb-color-status-orange)}.ydb-status-icon__status-icon_state_red{color:var(--ydb-color-status-red)}.ydb-status-icon__status-color,.ydb-status-icon__status-icon{border-radius:3px;flex-shrink:0}.ydb-status-icon__status-color_size_xs,.ydb-status-icon__status-icon_size_xs{aspect-ratio:1;height:12px;width:12px}.ydb-status-icon__status-color_size_s,.ydb-status-icon__status-icon_size_s{aspect-ratio:1;height:16px;width:16px}.ydb-status-icon__status-color_size_m,.ydb-status-icon__status-icon_size_m{aspect-ratio:1;height:18px;width:18px}.ydb-status-icon__status-color_size_l,.ydb-status-icon__status-icon_size_l{height:24px;width:24px}.ydb-entity-page-title{text-wrap:nowrap;align-items:baseline;display:flex;flex-flow:row nowrap;font-size:var(--g-text-header-2-font-size);line-height:var(--g-text-header-2-line-height)}.ydb-entity-page-title__prefix{color:var(--g-color-text-secondary);margin-right:6px}.ydb-entity-page-title__icon{margin-right:8px}.ydb-info-viewer-skeleton{display:flex;flex-direction:column;gap:16px}.ydb-info-viewer-skeleton__row{align-items:flex-start;display:flex}.ydb-info-viewer-skeleton__row,.ydb-info-viewer-skeleton__row .g-skeleton{min-height:var(--g-text-body-2-font-size)}.ydb-info-viewer-skeleton__label{align-items:baseline;display:flex;flex:0 1 auto;width:200px}.ydb-info-viewer-skeleton__label__text{width:100px}.ydb-info-viewer-skeleton__label__dots{border-bottom:1px dotted var(--g-color-text-secondary);margin:0 2px;width:100px}.ydb-info-viewer-skeleton__value{max-width:20%;min-width:200px}.g-skeleton{--_--animation-from:calc(-100%*var(--g-flow-direction));--_--animation-to:calc(100%*var(--g-flow-direction));--_--gradient-deg:calc(90deg*var(--g-flow-direction));background-color:var(--g-color-base-generic);border-radius:5px;display:inline-block;overflow:hidden;position:relative;width:100%;z-index:0}.g-skeleton:after{animation:g-skeleton 1.2s ease-out infinite;background-image:linear-gradient(var(--_--gradient-deg),#0000,var(--g-color-base-generic));content:"";inset:0;position:absolute}@keyframes g-skeleton{0%{transform:translateX(var(--_--animation-from))}to{transform:translateX(var(--_--animation-to))}}.auto-refresh-control{align-items:center;display:flex;gap:var(--g-spacing-1)}.ydb-page-meta__info{text-wrap:nowrap;color:var(--g-color-text-primary);display:flex;flex-flow:row nowrap;flex-grow:1;font-size:var(--g-text-body-2-font-size);height:var(--g-text-body-2-line-height);line-height:var(--g-text-body-2-line-height)}.ydb-page-meta__skeleton{height:80%;width:80%}.g-tooltip[class]{--g-popup-border-width:0}.g-tooltip[class]>div{animation-duration:1ms;box-shadow:0 1px 5px 0 #00000026;box-sizing:border-box;max-width:360px;padding:4px 8px}.g-tooltip__content{-webkit-box-orient:vertical;-ms-box-orient:vertical;-webkit-line-clamp:20;-moz-line-clamp:20;-ms-line-clamp:20;display:-webkit-box;overflow:hidden;text-overflow:ellipsis}.entity-status{align-items:center;display:inline-flex;font-size:var(--g-text-body-2-font-size);height:100%;line-height:var(--g-text-body-2-line-height);max-width:100%}.entity-status__icon{margin-right:var(--g-spacing-2)}.entity-status__clipboard-button{color:var(--g-color-text-secondary);display:flex;flex-shrink:0;margin-left:var(--g-spacing-2);opacity:0}.entity-status__clipboard-button:focus-visible,.entity-status__clipboard-button_visible{opacity:1}.entity-status__additional-controls{margin-left:var(--g-spacing-1)}.entity-status__label{color:var(--g-color-text-complementary);font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height);margin-right:2px}.entity-status__label_size_l{font-size:var(--g-text-header-2-font-size)}.entity-status__link{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.entity-status__link_with-left-trim{direction:rtl}.entity-status__link_with-left-trim .entity-status__name{unicode-bidi:plaintext}.entity-status__label_state_blue{color:var(--ydb-color-status-blue)}.entity-status__label_state_yellow{color:var(--ydb-color-status-yellow)}.entity-status__label_state_orange{color:var(--ydb-color-status-orange)}.entity-status__label_state_red{color:var(--ydb-color-status-red)}.progress-viewer{align-items:center;background:var(--g-color-base-generic);border-radius:2px;color:var(--g-color-text-complementary);display:flex;font-size:var(--g-text-body-2-font-size);height:23px;justify-content:center;min-width:120px;overflow:hidden;padding:0 4px;position:relative;white-space:nowrap;z-index:0}.progress-viewer_theme_dark{color:var(--g-color-text-light-primary)}.progress-viewer_theme_dark .progress-viewer__line{opacity:.75}.progress-viewer_status_good{background-color:var(--g-color-base-positive-light)}.progress-viewer_status_good .progress-viewer__line{background-color:var(--ydb-color-status-green)}.progress-viewer_status_warning{background-color:var(--g-color-base-yellow-light)}.progress-viewer_status_warning .progress-viewer__line{background-color:var(--ydb-color-status-yellow)}.progress-viewer_status_danger{background-color:var(--g-color-base-danger-light)}.progress-viewer_status_danger .progress-viewer__line{background-color:var(--ydb-color-status-red)}.progress-viewer__line{height:100%;left:0;position:absolute;top:0}.progress-viewer__text{position:relative;z-index:1}.progress-viewer_size_xs{font-size:var(--g-text-body-2-font-size);height:20px;line-height:var(--g-text-body-2-line-height)}.progress-viewer_size_s{font-size:var(--g-text-body-1-font-size);height:28px;line-height:28px}.progress-viewer_size_m{font-size:var(--g-text-body-2-font-size);height:32px;line-height:32px}.progress-viewer_size_ns{font-size:13px;height:24px;line-height:var(--g-text-subheader-3-line-height)}.progress-viewer_size_n{font-size:var(--g-text-body-1-font-size);height:36px;line-height:36px}.progress-viewer_size_l{font-size:var(--g-text-subheader-3-font-size);height:38px;line-height:38px}.progress-viewer_size_head{font-size:var(--g-text-body-1-font-size);line-height:36px}.table-skeleton__wrapper{width:100%}.table-skeleton__wrapper_hidden{visibility:hidden}.table-skeleton__row{align-items:center;display:flex;height:var(--data-table-row-height)}.table-skeleton__row .g-skeleton{height:var(--g-text-body-2-line-height)}.table-skeleton__col-1{margin-right:5%;width:10%}.table-skeleton__col-2{margin-right:5%;width:7%}.table-skeleton__col-3,.table-skeleton__col-4{margin-right:5%;width:5%}.table-skeleton__col-5{width:20%}.table-skeleton__col-full{width:100%}.ydb-table-with-controls-layout{box-sizing:border-box;display:inline-block;min-width:100%}.ydb-table-with-controls-layout__controls-wrapper{background-color:var(--g-color-base-background);box-sizing:border-box;left:0;position:sticky;top:0;width:100%;z-index:3}.ydb-table-with-controls-layout__controls{align-items:center;background-color:var(--g-color-base-background);display:flex;gap:12px;height:62px;left:0;padding:16px 0 18px;position:sticky;top:0;width:max-content;z-index:3}.ydb-table-with-controls-layout__table{position:relative;z-index:2}.ydb-table-with-controls-layout .ydb-paginated-table__head{top:62px}.ydb-table-with-controls-layout .data-table__sticky_moving{top:62px!important}.ydb-search{min-width:100px}.g-table-column-setup__status{color:var(--g-color-text-secondary);margin-inline-start:5px}.g-inner-table-column-setup{display:inline-block}.g-inner-table-column-setup__controls{margin:var(--g-spacing-1) var(--g-spacing-1) 0}.g-inner-table-column-setup__filter-input{border-block-end:1px solid var(--g-color-line-generic);box-sizing:border-box;padding:0 var(--g-spacing-2) var(--g-spacing-1)}.g-inner-table-column-setup__empty-placeholder{padding:var(--g-spacing-2)}.g-list-container-view{box-sizing:border-box;outline:none;width:100%}.g-list-container-view_fixed-height{height:300px;height:var(--g-list-container-height,300px)}.g-list-container-view:not(.g-list-container-view_fixed-height){overflow:auto}.g-list-item-view{flex-shrink:0}.g-list-item-view__main-content{grid-gap:2px;grid-gap:var(--g-spacing-half,2px);display:grid;gap:2px;gap:var(--g-spacing-half,2px);width:100%}.g-list-item-view:hover.g-list-item-view_activeOnHover,.g-list-item-view_active{background:var(--g-color-base-simple-hover)}.g-list-item-view_clickable{cursor:pointer}.g-list-item-view_selected,.g-list-item-view_selected.g-list-item-view_active,.g-list-item-view_selected:hover.g-list-item-view_activeOnHover{background:var(--g-color-base-selection)}.g-list-item-view_dragging,.g-list-item-view_dragging.g-list-item-view_active,.g-list-item-view_dragging.g-list-item-view_selected{background:var(--g-color-base-simple-hover-solid);z-index:100001!important}.g-list-item-view_radius_s{border-radius:3px;border-radius:var(--g-list-item-border-radius,3px)}.g-list-item-view_radius_m{border-radius:5px;border-radius:var(--g-list-item-border-radius,5px)}.g-list-item-view_radius_l{border-radius:6px;border-radius:var(--g-list-item-border-radius,6px)}.g-list-item-view_radius_xl{border-radius:8px;border-radius:var(--g-list-item-border-radius,8px)}.g-list-item-view__icon,.g-list-item-view__slot{flex-shrink:0}.g-tree-select{display:inline-block;max-width:100%}.g-tree-select_width_max{width:100%}.g-tree-select__popup{overflow:hidden;padding:4px 0}.g-tree-select__popup_size_s{border-radius:5px;border-radius:var(--g-list-container-border-radius,5px)}.g-tree-select__popup_size_m{border-radius:6px;border-radius:var(--g-list-container-border-radius,6px)}.g-tree-select__popup_size_l{border-radius:8px;border-radius:var(--g-list-container-border-radius,8px)}.g-tree-select__popup_size_xl{border-radius:10px;border-radius:var(--g-list-container-border-radius,10px)}.g-tree-select__list{padding:0 4px}.g-list-recursive-renderer{margin:0;padding:0}.ydb-resizeable-data-table{display:flex;padding-right:20px;width:max-content}.ydb-cell-with-popover{display:flex;max-width:100%}.ydb-cell-with-popover__popover{display:inline-block;max-width:100%;overflow:hidden;text-overflow:ellipsis;vertical-align:middle;white-space:nowrap}.ydb-cell-with-popover__popover .g-popover__handler{display:inline}.ydb-usage-label_overload{background-color:var(--ydb-color-status-red);color:var(--g-color-text-light-primary)}.stack{--ydb-stack-base-z-index:100;--ydb-stack-offset-x:4px;--ydb-stack-offset-y:4px;--ydb-stack-offset-x-hover:4px;--ydb-stack-offset-y-hover:8px;position:relative}.stack__layer{background:var(--g-color-base-background);transition:transform .1s ease-out}.stack__layer:first-child{position:relative;z-index:var(--ydb-stack-base-z-index)}.stack__layer+.stack__layer{height:100%;left:0;position:absolute;top:0;transform:translate(calc(var(--ydb-stack-level)*var(--ydb-stack-offset-x)),calc(var(--ydb-stack-level)*var(--ydb-stack-offset-y)));width:100%;z-index:calc(var(--ydb-stack-base-z-index) - var(--ydb-stack-level))}.stack:hover .stack__layer:first-child{transform:translate(calc(var(--ydb-stack-offset-x-hover)*-1),calc(var(--ydb-stack-offset-y-hover)*-1))}.stack:hover .stack__layer+.stack__layer{transform:translate(calc(var(--ydb-stack-level)*var(--ydb-stack-offset-x-hover)*2 - var(--ydb-stack-offset-x-hover)),calc(var(--ydb-stack-level)*var(--ydb-stack-offset-y-hover)*2 - var(--ydb-stack-offset-y-hover)))}.storage-disk-progress-bar{--progress-bar-full-height:var(--g-text-body-3-line-height);--progress-bar-compact-height:12px;--entity-state-border-color:var(--g-color-base-misc-heavy);--entity-state-background-color:var(--g-color-base-misc-light);--entity-state-fill-color:var(--g-color-base-misc-medium);--entity-state-font-color:var(--g-color-text-primary);background-color:var(--entity-state-background-color);border:1px solid var(--entity-state-border-color);border-radius:4px;color:var(--g-color-text-primary);height:var(--progress-bar-full-height);min-width:50px;position:relative;text-align:center;z-index:0}.storage-disk-progress-bar_green{--entity-state-font-color:var(--g-color-text-positive);--entity-state-border-color:var(--g-color-base-positive-heavy);--entity-state-background-color:var(--g-color-base-positive-light);--entity-state-fill-color:var(--g-color-base-positive-medium)}.storage-disk-progress-bar_blue{--entity-state-font-color:var(--g-color-text-info);--entity-state-border-color:var(--g-color-base-info-heavy);--entity-state-background-color:var(--g-color-base-info-light);--entity-state-fill-color:var(--g-color-base-info-medium)}.storage-disk-progress-bar_yellow{--entity-state-font-color:var(--g-color-text-warning);--entity-state-border-color:var(--g-color-base-warning-heavy);--entity-state-background-color:var(--g-color-base-yellow-light);--entity-state-fill-color:var(--g-color-base-yellow-medium)}.storage-disk-progress-bar_orange{--entity-state-font-color:var(--g-color-private-orange-500);--entity-state-border-color:var(--ydb-color-status-orange);--entity-state-background-color:var(--g-color-private-orange-100);--entity-state-fill-color:var(--g-color-private-orange-300)}.storage-disk-progress-bar_red{--entity-state-font-color:var(--g-color-text-danger);--entity-state-border-color:var(--g-color-base-danger-heavy);--entity-state-background-color:var(--g-color-base-danger-light);--entity-state-fill-color:var(--g-color-base-danger-medium)}.storage-disk-progress-bar__grey{--entity-state-font-color:var(--g-color-text-secondary);--entity-state-border-color:var(--g-color-line-generic-hover)}.storage-disk-progress-bar_compact{border-radius:2px;height:var(--progress-bar-compact-height);min-width:0}.storage-disk-progress-bar_faded{background-color:initial}.storage-disk-progress-bar_inactive{opacity:.5}.storage-disk-progress-bar_empty{background-color:initial;border-style:dashed;color:var(--g-color-text-hint)}.storage-disk-progress-bar__fill-bar{background-color:var(--entity-state-fill-color);border-radius:3px 0 0 3px;height:100%;left:0;position:absolute;top:0}.storage-disk-progress-bar__fill-bar_faded{background-color:var(--entity-state-background-color)}.storage-disk-progress-bar__fill-bar_compact{border-radius:1px}.storage-disk-progress-bar__fill-bar_inverted{border-radius:0 3px 3px 0;left:auto;right:0}.storage-disk-progress-bar__title{color:inherit;font-size:var(--g-text-body-1-font-size);line-height:calc(var(--progress-bar-full-height) - 2px);position:relative;z-index:2}.pdisk-storage-popup,.vdisk-storage-popup{padding:12px}.vdisk-storage-popup .info-viewer+.info-viewer{border-top:1px solid var(--g-color-line-generic);margin-top:8px;padding-top:8px}.vdisk-storage-popup__donor-label{margin-bottom:8px}.ydb-vdisk-component,.ydb-vdisk-component__content{border-radius:4px}.pdisk-storage{position:relative;width:120px}.pdisk-storage__content{border-radius:4px;display:block;position:relative}.pdisk-storage__vdisks{display:flex;flex-wrap:wrap;gap:2px;margin-bottom:4px}.pdisk-storage__vdisks-item{flex-basis:3px;flex-shrink:0}.data-table__row:hover .pdisk-storage__vdisks-item .stack__layer{background:var(--ydb-data-table-color-hover)}.pdisk-storage__donors-stack{--ydb-stack-offset-x:0px;--ydb-stack-offset-y:-2px;--ydb-stack-offset-x-hover:0px;--ydb-stack-offset-y-hover:-7px}.pdisk-storage__media-type{color:var(--g-color-text-secondary);font-size:var(--g-text-body-1-font-size);line-height:var(--g-text-body-1-line-height);position:absolute;right:4px;top:50%;transform:translateY(-50%)}.ydb-storage-disks{align-items:center;display:flex;flex-direction:row;gap:20px;width:max-content}.ydb-storage-disks__vdisks-wrapper{display:flex;flex-direction:row;flex-grow:1;gap:4px;width:300px}.ydb-storage-disks__pdisks-wrapper{display:flex;flex-direction:row;gap:6px;justify-content:left;width:max-content}.ydb-storage-disks__vdisk-item{flex-basis:8px;flex-shrink:0}.ydb-storage-disks__vdisk-progress-bar{--progress-bar-compact-height:18px;border-radius:4px}.ydb-storage-disks__pdisk-item{width:80px}.ydb-storage-disks__pdisk-progress-bar{--progress-bar-full-height:20px;padding-left:var(--g-spacing-2);text-align:left}.ydb-storage-groups-columns__disks-column,.ydb-storage-groups-columns__vdisks-column{overflow:visible}.ydb-storage-groups-columns__vdisks-wrapper{display:flex;gap:10px;justify-content:center;min-width:500px}.ydb-storage-groups-columns__vdisks-item{flex-grow:1;max-width:200px}.data-table__row:hover .ydb-storage-groups-columns__vdisks-item .stack__layer{background:var(--ydb-data-table-color-hover)}.ydb-storage-groups-columns__pool-name-wrapper{width:230px}.ydb-storage-groups-columns__group-id{font-weight:500}.developer-ui-link-button{display:none}.data-table__row:hover .developer-ui-link-button,.developer-ui-link-button_visible,.ydb-paginated-table__row:hover .developer-ui-link-button{display:inline-block}.ydb-storage-nodes-columns__pdisks-column{overflow:visible}.ydb-storage-nodes-columns__pdisks-wrapper{align-items:flex-end;display:flex;height:40px;justify-content:left;width:max-content}.ydb-storage-nodes-columns__pdisks-item{flex-grow:1;margin-right:10px;max-width:200px}.ydb-storage-nodes-columns__pdisks-item:last-child{margin-right:0}.global-storage__search{width:238px}.global-storage__table .g-tooltip{height:var(--g-text-body-2-line-height)!important}.global-storage .entity-status{justify-content:center}.global-storage__groups-wrapper{padding-right:20px}.link{color:var(--g-color-text-link);text-decoration:none}.link_external{margin-right:10px}.link:hover{color:var(--g-color-text-link-hover)}.ydb-storage-group-page{height:100%;overflow:auto;padding:0 20px;position:relative}.ydb-storage-group-page__info,.ydb-storage-group-page__meta,.ydb-storage-group-page__storage-title,.ydb-storage-group-page__title{left:0;margin-bottom:20px;position:sticky}.ydb-storage-group-page__meta{margin-top:20px}.ydb-storage-group-page__title{margin-bottom:60px}.ydb-storage-group-page__storage-title{font-size:var(--g-text-header-1-font-size);line-height:var(--g-text-header-1-line-height);margin-bottom:0}.ydb-storage-group-page__info{margin-top:var(--g-spacing-10)} \ No newline at end of file
diff --git a/ydb/core/viewer/monitoring/static/css/6194.566eff0a.chunk.css b/ydb/core/viewer/monitoring/static/css/6194.566eff0a.chunk.css
new file mode 100644
index 0000000000..7a329a9457
--- /dev/null
+++ b/ydb/core/viewer/monitoring/static/css/6194.566eff0a.chunk.css
@@ -0,0 +1 @@
+.kv-split{display:flex;height:100%;outline:none;-webkit-user-select:text;user-select:text;z-index:0}.kv-split.horizontal{flex-direction:row}.kv-split.vertical{flex-direction:column;min-height:100%;width:100%}.kv-split .gutter{background:var(--g-color-base-background);position:relative;z-index:10}.kv-split .gutter:after{background-color:var(--g-color-base-generic-ultralight);content:"";inset:0;position:absolute}.kv-split .gutter.active:after,.kv-split .gutter:hover:after{background-color:var(--g-color-line-generic-hover);transition:background-color 1s ease}.kv-split .gutter.disabled{display:none}.kv-split .gutter.gutter-vertical{cursor:row-resize;height:8px;width:100%}.kv-split .gutter.gutter-vertical:before{border-color:var(--g-color-base-generic-hover);border-style:solid;border-width:1px 0;content:"";height:4px;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);width:16px}.kv-split .gutter.gutter-horizontal{cursor:col-resize;height:100%;width:8px}.kv-split .gutter.gutter-horizontal:before{border-color:var(--g-color-base-generic-hover);border-style:solid;border-width:0 1px;content:"";height:16px;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);width:4px}.auto-refresh-control{align-items:center;display:flex;gap:var(--g-spacing-1)}.histogram{display:flex;flex:1 1 auto}.histogram__chart{align-items:baseline;border-bottom:1px solid var(--g-color-base-generic);border-left:1px solid var(--g-color-base-generic);display:flex;height:300px;margin-left:50px;margin-top:30px;position:relative;width:800px}.histogram__x-min{left:-3px}.histogram__x-max,.histogram__x-min{bottom:-25px;color:var(--g-color-text-secondary);position:absolute}.histogram__x-max{right:0}.histogram__y-min{bottom:-7px;left:-30px;width:20px}.histogram__y-max,.histogram__y-min{color:var(--g-color-text-secondary);position:absolute;text-align:right}.histogram__y-max{left:-60px;top:-5px;width:50px}.histogram__item{cursor:pointer;margin-right:.5%;width:1.5%}.heatmap{display:flex;flex:1 1 auto;flex-direction:column;height:100%;overflow:auto}.heatmap__limits{align-items:center;display:flex;margin-left:20px}.heatmap__limits-block{display:flex;margin-right:10px}.heatmap__limits-title{color:var(--g-color-text-secondary);margin-right:5px}.heatmap__row{align-items:center}.heatmap__row_overall{margin:15px 20px}.heatmap__row_overall .g-progress{margin:0;width:300px}.heatmap__label{font-size:var(--g-text-body-2-font-size);font-weight:500;line-height:var(--g-text-body-2-line-height);margin-right:16px;text-transform:uppercase}.heatmap__label_overall{margin-right:15px}.heatmap__items{overflow:auto}.heatmap__canvas-container{cursor:pointer;overflow:auto}.heatmap__filters{align-items:center;display:flex;margin:0 0 10px}.heatmap__filter-control{margin-right:10px;max-width:200px;min-width:100px}.heatmap__filter-control:last-child{margin-right:0}.heatmap__histogram-checkbox,.heatmap__sort-checkbox{margin-left:10px}.heatmap__row{display:flex}.heatmap .tablet,.heatmap__row{margin-bottom:2px}.ydb-resizeable-data-table{display:flex;padding-right:20px;width:max-content}.ydb-search{min-width:100px}.table-skeleton__wrapper{width:100%}.table-skeleton__wrapper_hidden{visibility:hidden}.table-skeleton__row{align-items:center;display:flex;height:var(--data-table-row-height)}.table-skeleton__row .g-skeleton{height:var(--g-text-body-2-line-height)}.table-skeleton__col-1{margin-right:5%;width:10%}.table-skeleton__col-2{margin-right:5%;width:7%}.table-skeleton__col-3,.table-skeleton__col-4{margin-right:5%;width:5%}.table-skeleton__col-5{width:20%}.table-skeleton__col-full{width:100%}.ydb-table-with-controls-layout{box-sizing:border-box;display:inline-block;min-width:100%}.ydb-table-with-controls-layout__controls-wrapper{background-color:var(--g-color-base-background);box-sizing:border-box;left:0;position:sticky;top:0;width:100%;z-index:3}.ydb-table-with-controls-layout__controls{align-items:center;background-color:var(--g-color-base-background);display:flex;gap:12px;height:62px;left:0;padding:16px 0 18px;position:sticky;top:0;width:max-content;z-index:3}.ydb-table-with-controls-layout__table{position:relative;z-index:2}.ydb-table-with-controls-layout .ydb-paginated-table__head{top:62px}.ydb-table-with-controls-layout .data-table__sticky_moving{top:62px!important}.ydb-cell-with-popover{display:flex;max-width:100%}.ydb-cell-with-popover__popover{display:inline-block;max-width:100%;overflow:hidden;text-overflow:ellipsis;vertical-align:middle;white-space:nowrap}.ydb-cell-with-popover__popover .g-popover__handler{display:inline}.developer-ui-link-button{display:none}.data-table__row:hover .developer-ui-link-button,.developer-ui-link-button_visible,.ydb-paginated-table__row:hover .developer-ui-link-button{display:inline-block}.ydb-status-icon__status-color_state_green{background-color:var(--ydb-color-status-green)}.ydb-status-icon__status-color_state_yellow{background-color:var(--ydb-color-status-yellow)}.ydb-status-icon__status-color_state_blue{background-color:var(--ydb-color-status-blue)}.ydb-status-icon__status-color_state_red{background-color:var(--ydb-color-status-red)}.ydb-status-icon__status-color_state_grey{background-color:var(--ydb-color-status-grey)}.ydb-status-icon__status-color_state_orange{background-color:var(--ydb-color-status-orange)}.ydb-status-icon__status-icon_state_blue{color:var(--ydb-color-status-blue)}.ydb-status-icon__status-icon_state_yellow{color:var(--ydb-color-status-yellow)}.ydb-status-icon__status-icon_state_orange{color:var(--ydb-color-status-orange)}.ydb-status-icon__status-icon_state_red{color:var(--ydb-color-status-red)}.ydb-status-icon__status-color,.ydb-status-icon__status-icon{border-radius:3px;flex-shrink:0}.ydb-status-icon__status-color_size_xs,.ydb-status-icon__status-icon_size_xs{aspect-ratio:1;height:12px;width:12px}.ydb-status-icon__status-color_size_s,.ydb-status-icon__status-icon_size_s{aspect-ratio:1;height:16px;width:16px}.ydb-status-icon__status-color_size_m,.ydb-status-icon__status-icon_size_m{aspect-ratio:1;height:18px;width:18px}.ydb-status-icon__status-color_size_l,.ydb-status-icon__status-icon_size_l{height:24px;width:24px}.entity-status{align-items:center;display:inline-flex;font-size:var(--g-text-body-2-font-size);height:100%;line-height:var(--g-text-body-2-line-height);max-width:100%}.entity-status__icon{margin-right:var(--g-spacing-2)}.entity-status__clipboard-button{color:var(--g-color-text-secondary);display:flex;flex-shrink:0;margin-left:var(--g-spacing-2);opacity:0}.entity-status__clipboard-button:focus-visible,.entity-status__clipboard-button_visible{opacity:1}.entity-status__additional-controls{margin-left:var(--g-spacing-1)}.entity-status__label{color:var(--g-color-text-complementary);font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height);margin-right:2px}.entity-status__label_size_l{font-size:var(--g-text-header-2-font-size)}.entity-status__link{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.entity-status__link_with-left-trim{direction:rtl}.entity-status__link_with-left-trim .entity-status__name{unicode-bidi:plaintext}.entity-status__label_state_blue{color:var(--ydb-color-status-blue)}.entity-status__label_state_yellow{color:var(--ydb-color-status-yellow)}.entity-status__label_state_orange{color:var(--ydb-color-status-orange)}.entity-status__label_state_red{color:var(--ydb-color-status-red)}.ydb-pool-bar{border:1px solid;border-radius:1px;cursor:pointer;height:20px;margin-right:2px;position:relative;width:6px}.ydb-pool-bar__popup-content{padding:10px;width:170px}.ydb-pool-bar:last-child{margin-right:0}.ydb-pool-bar_type_normal{border-color:var(--ydb-color-status-green)}.ydb-pool-bar_type_warning{border-color:var(--ydb-color-status-yellow)}.ydb-pool-bar_type_danger{border-color:var(--ydb-color-status-red)}.ydb-pool-bar__value{bottom:0;min-height:1px;position:absolute;width:100%}.ydb-pool-bar__value_type_normal{background-color:var(--ydb-color-status-green)}.ydb-pool-bar__value_type_warning{background-color:var(--ydb-color-status-yellow)}.ydb-pool-bar__value_type_danger{background-color:var(--ydb-color-status-red)}.ydb-pools-graph{display:flex}.progress-viewer{align-items:center;background:var(--g-color-base-generic);border-radius:2px;color:var(--g-color-text-complementary);display:flex;font-size:var(--g-text-body-2-font-size);height:23px;justify-content:center;min-width:120px;overflow:hidden;padding:0 4px;position:relative;white-space:nowrap;z-index:0}.progress-viewer_theme_dark{color:var(--g-color-text-light-primary)}.progress-viewer_theme_dark .progress-viewer__line{opacity:.75}.progress-viewer_status_good{background-color:var(--g-color-base-positive-light)}.progress-viewer_status_good .progress-viewer__line{background-color:var(--ydb-color-status-green)}.progress-viewer_status_warning{background-color:var(--g-color-base-yellow-light)}.progress-viewer_status_warning .progress-viewer__line{background-color:var(--ydb-color-status-yellow)}.progress-viewer_status_danger{background-color:var(--g-color-base-danger-light)}.progress-viewer_status_danger .progress-viewer__line{background-color:var(--ydb-color-status-red)}.progress-viewer__line{height:100%;left:0;position:absolute;top:0}.progress-viewer__text{position:relative;z-index:1}.progress-viewer_size_xs{font-size:var(--g-text-body-2-font-size);height:20px;line-height:var(--g-text-body-2-line-height)}.progress-viewer_size_s{font-size:var(--g-text-body-1-font-size);height:28px;line-height:28px}.progress-viewer_size_m{font-size:var(--g-text-body-2-font-size);height:32px;line-height:32px}.progress-viewer_size_ns{font-size:13px;height:24px;line-height:var(--g-text-subheader-3-line-height)}.progress-viewer_size_n{font-size:var(--g-text-body-1-font-size);height:36px;line-height:36px}.progress-viewer_size_l{font-size:var(--g-text-subheader-3-font-size);height:38px;line-height:38px}.progress-viewer_size_head{font-size:var(--g-text-body-1-font-size);line-height:36px}.tablets-statistic{align-items:center;display:flex;gap:2px}.tablets-statistic__tablet{border:1px solid;border-radius:2px;color:var(--g-color-text-secondary);display:inline-block;font-size:11px;height:20px;line-height:20px;padding:0 4px;text-align:center;text-decoration:none;text-transform:uppercase}.tablets-statistic__tablet_state_green{background-color:var(--g-color-base-positive-light);color:var(--g-color-text-positive)}.tablets-statistic__tablet_state_yellow{background-color:var(--g-color-base-warning-light);color:var(--g-color-text-warning)}.tablets-statistic__tablet_state_blue{background-color:var(--g-color-base-info-light);color:var(--g-color-text-info)}.tablets-statistic__tablet_state_orange{background-color:var(--g-color-base-warning-light);color:var(--g-color-text-warning-heavy)}.tablets-statistic__tablet_state_red{background:var(--g-color-base-danger-light);color:var(--g-color-text-danger)}.tablets-statistic__tablet_state_grey{border:1px solid var(--g-color-line-generic-hover);color:var(--g-color-text-secondary)}.ydb-usage-label_overload{background-color:var(--ydb-color-status-red);color:var(--g-color-text-light-primary)}.ydb-nodes__search{width:238px}.ydb-nodes__show-all-wrapper{left:0;margin-bottom:15px;position:sticky}.ydb-nodes__node_unavailable{opacity:.6}.ydb-paginated-table{--paginated-table-cell-vertical-padding:5px;--paginated-table-cell-horizontal-padding:10px;--paginated-table-border-color:var(--g-color-base-generic-hover);--paginated-table-hover-color:var(--g-color-base-float-hover);font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height);width:100%}.ydb-paginated-table__table{border-collapse:initial;border-spacing:0;max-width:100%;table-layout:fixed;width:max-content}.ydb-paginated-table__table th{padding:0}.ydb-paginated-table__row{position:relative;z-index:1}.ydb-paginated-table__row:hover{background:var(--paginated-table-hover-color)}.ydb-paginated-table__row_empty:hover{background-color:initial}.ydb-paginated-table__head{background-color:var(--g-color-base-background);left:0;position:sticky;top:0;z-index:2}.ydb-paginated-table__sort-icon-container{color:inherit;display:flex;justify-content:center}.ydb-paginated-table__sort-icon-container_shadow{opacity:.15}.ydb-paginated-table__sort-icon_desc{transform:rotate(180deg)}.ydb-paginated-table__head-cell-wrapper{border-bottom:1px solid var(--paginated-table-border-color);display:table-cell;overflow-x:hidden;position:relative}.ydb-paginated-table__head-cell{align-items:center;display:flex;flex-direction:row;max-width:100%;padding:var(--paginated-table-cell-vertical-padding) var(--paginated-table-cell-horizontal-padding);width:100%}.ydb-paginated-table__head-cell_align_left{justify-content:left}.ydb-paginated-table__head-cell_align_center{justify-content:center}.ydb-paginated-table__head-cell_align_right{justify-content:right}.ydb-paginated-table__head-cell{cursor:default;font-weight:700;gap:8px}.ydb-paginated-table__head-cell_sortable{cursor:pointer}.ydb-paginated-table__head-cell_sortable.ydb-paginated-table__head-cell_align_right{flex-direction:row-reverse}.ydb-paginated-table__head-cell-content{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:min-content}.ydb-paginated-table__row-cell{border-bottom:1px solid var(--paginated-table-border-color);display:table-cell;max-width:100%;overflow-x:hidden;padding:var(--paginated-table-cell-vertical-padding) var(--paginated-table-cell-horizontal-padding);text-overflow:ellipsis;vertical-align:middle;white-space:nowrap;width:100%}.ydb-paginated-table__row-cell_align_left{text-align:left}.ydb-paginated-table__row-cell_align_center{text-align:center}.ydb-paginated-table__row-cell_align_right{text-align:right}.ydb-paginated-table__resize-handler{background-color:var(--g-color-base-generic);cursor:col-resize;height:100%;position:absolute;right:0;top:0;visibility:hidden;width:6px}.ydb-paginated-table__head-cell-wrapper:hover>.ydb-paginated-table__resize-handler,.ydb-paginated-table__resize-handler_resizing{visibility:visible}.ydb-paginated-table__resizeable-table-container{padding-right:20px;width:max-content}.ydb-paginated-table__row-skeleton:after{animation-delay:.2s}.stack{--ydb-stack-base-z-index:100;--ydb-stack-offset-x:4px;--ydb-stack-offset-y:4px;--ydb-stack-offset-x-hover:4px;--ydb-stack-offset-y-hover:8px;position:relative}.stack__layer{background:var(--g-color-base-background);transition:transform .1s ease-out}.stack__layer:first-child{position:relative;z-index:var(--ydb-stack-base-z-index)}.stack__layer+.stack__layer{height:100%;left:0;position:absolute;top:0;transform:translate(calc(var(--ydb-stack-level)*var(--ydb-stack-offset-x)),calc(var(--ydb-stack-level)*var(--ydb-stack-offset-y)));width:100%;z-index:calc(var(--ydb-stack-base-z-index) - var(--ydb-stack-level))}.stack:hover .stack__layer:first-child{transform:translate(calc(var(--ydb-stack-offset-x-hover)*-1),calc(var(--ydb-stack-offset-y-hover)*-1))}.stack:hover .stack__layer+.stack__layer{transform:translate(calc(var(--ydb-stack-level)*var(--ydb-stack-offset-x-hover)*2 - var(--ydb-stack-offset-x-hover)),calc(var(--ydb-stack-level)*var(--ydb-stack-offset-y-hover)*2 - var(--ydb-stack-offset-y-hover)))}.storage-disk-progress-bar{--progress-bar-full-height:var(--g-text-body-3-line-height);--progress-bar-compact-height:12px;--entity-state-border-color:var(--g-color-base-misc-heavy);--entity-state-background-color:var(--g-color-base-misc-light);--entity-state-fill-color:var(--g-color-base-misc-medium);--entity-state-font-color:var(--g-color-text-primary);background-color:var(--entity-state-background-color);border:1px solid var(--entity-state-border-color);border-radius:4px;color:var(--g-color-text-primary);height:var(--progress-bar-full-height);min-width:50px;position:relative;text-align:center;z-index:0}.storage-disk-progress-bar_green{--entity-state-font-color:var(--g-color-text-positive);--entity-state-border-color:var(--g-color-base-positive-heavy);--entity-state-background-color:var(--g-color-base-positive-light);--entity-state-fill-color:var(--g-color-base-positive-medium)}.storage-disk-progress-bar_blue{--entity-state-font-color:var(--g-color-text-info);--entity-state-border-color:var(--g-color-base-info-heavy);--entity-state-background-color:var(--g-color-base-info-light);--entity-state-fill-color:var(--g-color-base-info-medium)}.storage-disk-progress-bar_yellow{--entity-state-font-color:var(--g-color-text-warning);--entity-state-border-color:var(--g-color-base-warning-heavy);--entity-state-background-color:var(--g-color-base-yellow-light);--entity-state-fill-color:var(--g-color-base-yellow-medium)}.storage-disk-progress-bar_orange{--entity-state-font-color:var(--g-color-private-orange-500);--entity-state-border-color:var(--ydb-color-status-orange);--entity-state-background-color:var(--g-color-private-orange-100);--entity-state-fill-color:var(--g-color-private-orange-300)}.storage-disk-progress-bar_red{--entity-state-font-color:var(--g-color-text-danger);--entity-state-border-color:var(--g-color-base-danger-heavy);--entity-state-background-color:var(--g-color-base-danger-light);--entity-state-fill-color:var(--g-color-base-danger-medium)}.storage-disk-progress-bar__grey{--entity-state-font-color:var(--g-color-text-secondary);--entity-state-border-color:var(--g-color-line-generic-hover)}.storage-disk-progress-bar_compact{border-radius:2px;height:var(--progress-bar-compact-height);min-width:0}.storage-disk-progress-bar_faded{background-color:initial}.storage-disk-progress-bar_inactive{opacity:.5}.storage-disk-progress-bar_empty{background-color:initial;border-style:dashed;color:var(--g-color-text-hint)}.storage-disk-progress-bar__fill-bar{background-color:var(--entity-state-fill-color);border-radius:3px 0 0 3px;height:100%;left:0;position:absolute;top:0}.storage-disk-progress-bar__fill-bar_faded{background-color:var(--entity-state-background-color)}.storage-disk-progress-bar__fill-bar_compact{border-radius:1px}.storage-disk-progress-bar__fill-bar_inverted{border-radius:0 3px 3px 0;left:auto;right:0}.storage-disk-progress-bar__title{color:inherit;font-size:var(--g-text-body-1-font-size);line-height:calc(var(--progress-bar-full-height) - 2px);position:relative;z-index:2}.pdisk-storage-popup,.vdisk-storage-popup{padding:12px}.vdisk-storage-popup .info-viewer+.info-viewer{border-top:1px solid var(--g-color-line-generic);margin-top:8px;padding-top:8px}.vdisk-storage-popup__donor-label{margin-bottom:8px}.ydb-vdisk-component,.ydb-vdisk-component__content{border-radius:4px}.pdisk-storage{position:relative;width:120px}.pdisk-storage__content{border-radius:4px;display:block;position:relative}.pdisk-storage__vdisks{display:flex;flex-wrap:wrap;gap:2px;margin-bottom:4px}.pdisk-storage__vdisks-item{flex-basis:3px;flex-shrink:0}.data-table__row:hover .pdisk-storage__vdisks-item .stack__layer{background:var(--ydb-data-table-color-hover)}.pdisk-storage__donors-stack{--ydb-stack-offset-x:0px;--ydb-stack-offset-y:-2px;--ydb-stack-offset-x-hover:0px;--ydb-stack-offset-y-hover:-7px}.pdisk-storage__media-type{color:var(--g-color-text-secondary);font-size:var(--g-text-body-1-font-size);line-height:var(--g-text-body-1-line-height);position:absolute;right:4px;top:50%;transform:translateY(-50%)}.ydb-storage-disks{align-items:center;display:flex;flex-direction:row;gap:20px;width:max-content}.ydb-storage-disks__vdisks-wrapper{display:flex;flex-direction:row;flex-grow:1;gap:4px;width:300px}.ydb-storage-disks__pdisks-wrapper{display:flex;flex-direction:row;gap:6px;justify-content:left;width:max-content}.ydb-storage-disks__vdisk-item{flex-basis:8px;flex-shrink:0}.ydb-storage-disks__vdisk-progress-bar{--progress-bar-compact-height:18px;border-radius:4px}.ydb-storage-disks__pdisk-item{width:80px}.ydb-storage-disks__pdisk-progress-bar{--progress-bar-full-height:20px;padding-left:var(--g-spacing-2);text-align:left}.ydb-storage-groups-columns__disks-column,.ydb-storage-groups-columns__vdisks-column{overflow:visible}.ydb-storage-groups-columns__vdisks-wrapper{display:flex;gap:10px;justify-content:center;min-width:500px}.ydb-storage-groups-columns__vdisks-item{flex-grow:1;max-width:200px}.data-table__row:hover .ydb-storage-groups-columns__vdisks-item .stack__layer{background:var(--ydb-data-table-color-hover)}.ydb-storage-groups-columns__pool-name-wrapper{width:230px}.ydb-storage-groups-columns__group-id{font-weight:500}.ydb-table-group{border:1px solid var(--g-color-line-generic);border-radius:var(--g-spacing-2);display:flex;flex-direction:column;margin-bottom:20px;width:100%}.ydb-table-group__button{background:#0000 none repeat 0 0/auto auto padding-box border-box scroll;background:initial;border:initial;cursor:pointer;padding:8px 0}.ydb-table-group__title-wrapper{align-items:center;display:flex;flex-direction:row;gap:var(--g-spacing-2);justify-content:flex-start;left:0;padding-left:20px;position:sticky;width:max-content}.ydb-table-group__title{display:flex;flex-direction:row;gap:var(--g-spacing-4)}.ydb-table-group__count{display:flex;flex-direction:row;gap:var(--g-spacing-3)}.ydb-table-group__content{padding:12px 0 20px 20px}.global-storage__search{width:238px}.global-storage__table .g-tooltip{height:var(--g-text-body-2-line-height)!important}.global-storage .entity-status{justify-content:center}.global-storage__groups-wrapper{padding-right:20px}.ydb-storage-nodes-columns__pdisks-column{overflow:visible}.ydb-storage-nodes-columns__pdisks-wrapper{align-items:flex-end;display:flex;height:40px;justify-content:left;width:max-content}.ydb-storage-nodes-columns__pdisks-item{flex-grow:1;margin-right:10px;max-width:200px}.ydb-storage-nodes-columns__pdisks-item:last-child{margin-right:0}.ydb-critical-dialog{padding-top:var(--g-spacing-3)}.ydb-critical-dialog__warning-icon{color:var(--ydb-color-status-yellow);margin-right:16px}.ydb-critical-dialog__error-icon{color:var(--ydb-color-status-red);height:24px;margin-right:16px}.ydb-critical-dialog__body{display:flex;flex-direction:column;gap:var(--g-spacing-6)}.ydb-critical-dialog__body-message{align-items:center;display:flex}.ydb-critical-dialog__body-message_error,.ydb-critical-dialog__body-message_warning{border:1px solid;border-radius:5px;border-radius:var(--g-modal-border-radius,5px);padding:var(--g-spacing-4) var(--g-spacing-5)}.ydb-critical-dialog__body-message_warning{border-color:var(--ydb-color-status-yellow)}.ydb-critical-dialog__body-message_error{border-color:var(--ydb-color-status-red)}.schema-viewer__keys{display:inline-block;padding-bottom:var(--g-spacing-4);padding-left:10px}.schema-viewer__keys-values{color:var(--g-color-text-complementary);display:inline;font-size:var(--g-text-body-1-font-size);line-height:var(--g-text-body-1-line-height)}.schema-viewer__keys-header{color:var(--g-color-text-primary);display:inline;font-size:var(--g-text-subheader-1-font-size);font-weight:700;line-height:var(--g-text-subheader-1-line-height);white-space:nowrap}.schema-viewer__keys-label{cursor:pointer}.schema-viewer__keys-wrapper{left:0;position:sticky;width:100%;z-index:1}.schema-viewer__keys+.schema-viewer__keys{margin-left:var(--g-spacing-8)}.schema-viewer__keys_summary+.schema-viewer__keys_summary{margin-left:0}.schema-viewer__popup-content{padding:var(--g-spacing-2) var(--g-spacing-4)}.schema-viewer__popup-item{padding-bottom:var(--g-spacing-2)}.schema-viewer__popup-item:last-child{padding-bottom:0}.schema-viewer__more-badge{margin-left:var(--g-spacing-1)}.ydb-diagnostics-configs__icon-touched{color:var(--g-color-text-secondary);cursor:default!important;line-height:1}.speed-multimeter{display:flex;width:100%}.speed-multimeter__content{display:flex;flex-direction:row;flex-grow:1;justify-content:flex-end;line-height:22px}.speed-multimeter__displayed-value{display:flex;flex-direction:row;justify-content:flex-end;margin-right:10px}.speed-multimeter__bars{align-items:flex-start;display:flex;flex-direction:column;margin-right:5px;overflow:hidden;width:32px}.speed-multimeter__bar-container{height:6px;width:100%}.speed-multimeter__bar-container_highlighted{background:var(--g-color-line-generic)}.speed-multimeter__bar{height:100%;min-width:2px}.speed-multimeter__bar_color_light{background:var(--g-color-base-info-medium)}.speed-multimeter__bar_color_dark{background:var(--g-color-base-info-heavy)}.speed-multimeter__bar-container+.speed-multimeter__bar-container{margin-top:2px}.speed-multimeter__popover-container{align-items:center;display:flex;justify-content:center}.speed-multimeter__popover-content{padding:10px}.speed-multimeter__popover-header{display:block;font-size:18px;line-height:24px;margin-bottom:7px}.speed-multimeter__popover-row{display:block;font-size:13px;line-height:18px}.speed-multimeter__popover-row_color_primary{color:var(--g-color-text-primary)}.speed-multimeter__popover-row_color_secondary{color:var(--g-color-text-secondary)}.ydb-diagnostics-consumers-topic-stats{font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height)}.ydb-diagnostics-consumers-topic-stats__wrapper{border-left:1px solid var(--g-color-line-generic);display:flex;flex-direction:row;padding-left:16px}.ydb-diagnostics-consumers-topic-stats__item{display:flex;flex-direction:column;margin-right:20px}.ydb-diagnostics-consumers-topic-stats__label{color:var(--g-color-text-secondary);margin-bottom:4px}.ydb-diagnostics-consumers-topic-stats__value{align-items:center;display:flex;height:30px;justify-content:flex-start}.ydb-lag-popover-content__text{margin-bottom:10px}.ydb-lag-popover-content_type_read{max-width:280px}.ydb-lag-popover-content_type_write{max-width:220px}.ydb-diagnostics-consumers-columns-header__lags{white-space:nowrap}.ydb-diagnostics-consumers-columns__lags-header{text-align:center}.ydb-diagnostics-consumers{display:flex;flex-grow:1;flex:1 1 auto;flex-direction:column;height:100%;overflow:auto}.ydb-diagnostics-consumers__controls{align-items:center;display:flex;gap:12px;padding:16px 0 18px}.ydb-diagnostics-consumers__search{width:238px}.ydb-diagnostics-consumers__table-wrapper{display:flex;flex:1 1 auto;flex-direction:column;overflow:auto}.ydb-diagnostics-consumers__table-content{height:100%;overflow:auto}.ydb-diagnostics-consumers__table .data-table__head-row:first-child .data-table__th:first-child,.ydb-diagnostics-consumers__table .data-table__td:first-child{background-color:var(--g-color-base-background);border-right:1px solid var(--g-color-line-generic);left:0;position:sticky;z-index:2000}.ydb-diagnostics-consumers__table .data-table__row:hover .data-table__td:first-child{background-color:var(--ydb-data-table-color-hover)!important}.ydb-diagnostics-consumers__table .data-table__head-row:first-child .data-table__th:nth-child(0),.ydb-diagnostics-consumers__table .data-table__td:nth-child(0){border-right:initial;box-shadow:none}.ydb-diagnostics-consumers__table .data-table__head-row:first-child .data-table__th:first-child,.ydb-diagnostics-consumers__table .data-table__td:first-child{box-shadow:none}.ydb-describe__message-container{padding:15px 0}.ydb-describe__result{display:flex;flex:0 0 auto;overflow:auto;padding:0 20px 20px 0;position:relative}.ydb-describe__tree{word-wrap:break-word;font-family:var(--g-font-family-monospace)!important;font-size:var(--g-text-code-1-font-size)!important;line-height:var(--g-text-code-1-line-height)!important;width:100%}.ydb-describe__tree .json-inspector__leaf_composite:before{color:var(--g-color-text-secondary);font-size:9px;left:20px;position:absolute}.ydb-describe__tree .json-inspector__leaf_composite.json-inspector__leaf_root:before{left:0}.ydb-describe__tree :not(.json-inspector__leaf_expanded).json-inspector__leaf_composite:before{content:"[+]"}.ydb-describe__tree .json-inspector__leaf_expanded.json-inspector__leaf_composite:before{content:"[-]"}.ydb-describe__tree .json-inspector__key{color:var(--g-color-text-misc)}.ydb-describe__tree .json-inspector__leaf{padding-left:20px;position:relative}.ydb-describe__tree .json-inspector__leaf_root{padding-left:0}.ydb-describe__tree .json-inspector__line{padding-left:20px}.ydb-describe__tree .json-inspector__toolbar{border:1px solid var(--g-color-line-generic);border-radius:4px;margin-bottom:10px;width:300px}.ydb-describe__tree .json-inspector__search{background:none;border:0 solid #0000;border-width:0 22px 0 8px;box-sizing:border-box;color:var(--g-color-text-primary);font-family:var(--g-text-body-font-family);font-size:13px;height:28px;margin:0;outline:0;padding:0;vertical-align:top;width:300px}.ydb-describe__tree .json-inspector__value_helper{color:var(--g-color-text-secondary)}.ydb-describe__tree .json-inspector__line:hover:after{background:var(--g-color-base-simple-hover)}.ydb-describe__tree .json-inspector__show-original:before{color:var(--g-color-text-secondary)}.ydb-describe__tree .json-inspector__show-original:hover:after,.ydb-describe__tree .json-inspector__show-original:hover:before{color:var(--g-color-text-primary)}.ydb-describe__tree .json-inspector__leaf.json-inspector__leaf_root.json-inspector__leaf_composite{max-width:calc(100% - 50px)}.ydb-describe__copy{left:308px;position:absolute}.ydb-describe .json-inspector__search{height:26px}.ydb-external-data-source-info__location,.ydb-external-table-info__location{max-width:var(--tenant-object-info-max-value-width)}.ydb-definition-list{display:flex;flex:1 1 auto;flex-direction:column}.ydb-definition-list__title{font-size:var(--g-text-body-2-font-size);font-weight:600;line-height:var(--g-text-body-2-line-height);margin:15px 0 10px}.ydb-definition-list__properties-list{max-width:calc(100% - 40px)}.ydb-async-replication-paths__title,.ydb-overview-topic-stats__title{font-size:var(--g-text-body-2-font-size);font-weight:600;line-height:var(--g-text-body-2-line-height);margin:15px 0 10px}.ydb-overview-topic-stats .ydb-loader{margin-top:50px}.ydb-overview-topic-stats .info-viewer__row{align-items:flex-start}.ydb-overview-topic-stats .speed-multimeter{margin-top:-5px}.ydb-overview-topic-stats .speed-multimeter__content{justify-content:flex-start}.ydb-overview-topic-stats__info .info-viewer__label-text_multiline{max-width:150px}.ydb-overview-topic-stats__bytes-written{margin-top:7px;padding-left:20px}.ydb-overview-topic-stats__bytes-written .info-viewer__label{min-width:180px}.ydb-diagnostics-table-info__title{font-size:var(--g-text-body-2-font-size);font-weight:600;line-height:var(--g-text-body-2-line-height);margin:15px 0 10px}.ydb-diagnostics-table-info__row{align-items:flex-start;display:flex;flex-wrap:wrap;justify-content:flex-start}.ydb-diagnostics-table-info__col{align-items:flex-start;display:flex;flex-direction:column;justify-content:flex-start}.ydb-diagnostics-table-info__col:not(:last-child){margin-right:50px}.ydb-diagnostics-table-info__info-block{margin-bottom:20px}.ydb-diagnostics-table-info__info-block .info-viewer__items{grid-template-columns:minmax(max-content,280px)}.ydb-metric-chart{border:1px solid var(--g-color-line-generic);border-radius:8px;display:flex;flex-direction:column;padding:16px 16px 8px}.ydb-metric-chart__title{margin-bottom:10px}.ydb-metric-chart__chart{display:flex;height:100%;overflow:hidden;position:relative;width:100%}.ydb-metric-chart__error{left:50%;position:absolute;text-align:center;top:10%;transform:translateX(-50%);z-index:1}.ydb-timeframe-selector{display:flex;gap:2px}.ydb-tenant-dashboard{margin-bottom:var(--diagnostics-section-margin);width:var(--diagnostics-section-table-width)}.ydb-tenant-dashboard__controls{margin-bottom:10px}.ydb-tenant-dashboard__charts{display:flex;flex-flow:row wrap;gap:16px}.issue-tree-item{align-items:center;cursor:pointer;display:flex;height:40px;justify-content:space-between}.issue-tree-item__field{display:flex;overflow:hidden}.issue-tree-item__field_status{display:flex;white-space:nowrap}.issue-tree-item__field_additional{color:var(--g-color-text-link);cursor:pointer;width:max-content}.issue-tree-item__field_additional:hover{color:var(--g-color-text-link-hover)}.issue-tree-item__field_message{flex-shrink:0;overflow:hidden;white-space:normal;width:300px}.issue-tree-item__field-tooltip.issue-tree-item__field-tooltip{max-width:500px;min-width:500px}.issue-tree-item__field-label{color:var(--g-color-text-secondary)}.issue-tree{display:flex}.issue-tree__block{width:100%}.issue-tree__checkbox{margin:5px 0 10px}.issue-tree__info-panel{background:var(--g-color-base-generic);border-radius:4px;height:100%;margin:11px 0;padding:8px 20px;position:sticky}.issue-tree__inspector{word-wrap:break-word;font-family:var(--g-font-family-monospace)!important;font-size:var(--g-text-code-1-font-size)!important;line-height:var(--g-text-code-1-line-height)!important;width:100%}.issue-tree__inspector .json-inspector__leaf_composite:before{color:var(--g-color-text-secondary);font-size:9px;left:20px;position:absolute}.issue-tree__inspector .json-inspector__leaf_composite.json-inspector__leaf_root:before{left:0}.issue-tree__inspector :not(.json-inspector__leaf_expanded).json-inspector__leaf_composite:before{content:"[+]"}.issue-tree__inspector .json-inspector__leaf_expanded.json-inspector__leaf_composite:before{content:"[-]"}.issue-tree__inspector .json-inspector__key{color:var(--g-color-text-misc)}.issue-tree__inspector .json-inspector__leaf{padding-left:20px;position:relative}.issue-tree__inspector .json-inspector__leaf_root{padding-left:0}.issue-tree__inspector .json-inspector__line{padding-left:20px}.issue-tree__inspector .json-inspector__toolbar{border:1px solid var(--g-color-line-generic);border-radius:4px;margin-bottom:10px;width:300px}.issue-tree__inspector .json-inspector__search{background:none;border:0 solid #0000;border-width:0 22px 0 8px;box-sizing:border-box;color:var(--g-color-text-primary);font-family:var(--g-text-body-font-family);font-size:13px;height:28px;margin:0;outline:0;padding:0;vertical-align:top;width:300px}.issue-tree__inspector .json-inspector__value_helper{color:var(--g-color-text-secondary)}.issue-tree__inspector .json-inspector__line:hover:after{background:var(--g-color-base-simple-hover)}.issue-tree__inspector .json-inspector__show-original:before{color:var(--g-color-text-secondary)}.issue-tree__inspector .json-inspector__show-original:hover:after,.issue-tree__inspector .json-inspector__show-original:hover:before{color:var(--g-color-text-primary)}.issue-tree__inspector .json-inspector__leaf.json-inspector__leaf_root.json-inspector__leaf_composite{max-width:calc(100% - 50px)}.issue-tree__inspector .json-inspector__leaf_expanded.json-inspector__leaf_composite:before,.issue-tree__inspector :not(.json-inspector__leaf_expanded).json-inspector__leaf_composite:before{content:""}.issue-tree__inspector .json-inspector__line:hover:after{background:#0000}.issue-tree__inspector .json-inspector__show-original:hover:after,.issue-tree__inspector .json-inspector__show-original:hover:before{color:#0000}.issue-tree__inspector .json-inspector__value_helper{display:none}.issue-tree__inspector .json-inspector__value{overflow:hidden;word-break:break-all}.issue-tree__inspector .json-inspector__value>span{-webkit-user-select:all;user-select:all}.issue-tree .ydb-tree-view__item{height:40px}.issue-tree .ydb-tree-view .tree-view_arrow{height:40px;width:40px}.issue-tree .ydb-tree-view .ydb-tree-view__item{margin-left:calc(24px*var(--ydb-tree-view-level))!important;padding-left:0!important}.issue-tree .ydb-tree-view .issue-tree__info-panel{margin-left:calc(24px*var(--ydb-tree-view-level))}.healthcheck__details{width:872px}.healthcheck__details-content-wrapper{overflow-x:hidden}.healthcheck__preview{display:flex;flex-direction:column;height:100%}.healthcheck__preview-title{color:var(--g-color-text-link);font-size:var(--g-text-subheader-3-font-size);font-weight:600;line-height:var(--g-text-subheader-3-line-height)}.healthcheck__preview-content{line-height:24px;margin:auto}.healthcheck__preview-status-icon{height:64px;width:64px}.healthcheck__preview-title-wrapper{align-items:center;display:flex;gap:8px;margin-bottom:4px}.healthcheck__preview-issue{align-items:center;display:flex;flex-direction:column;gap:4px;position:relative;top:-8px}.healthcheck__preview-issue_good{color:var(--g-color-text-positive)}.healthcheck__preview-issue_good .healthcheck__self-check-status-indicator{background-color:var(--g-color-base-positive-light)}.healthcheck__preview-issue_degraded{color:var(--g-color-text-info)}.healthcheck__preview-issue_degraded .healthcheck__self-check-status-indicator{background-color:var(--g-color-base-info-light)}.healthcheck__preview-issue_emergency{color:var(--g-color-text-danger)}.healthcheck__preview-issue_emergency .healthcheck__self-check-status-indicator{background-color:var(--g-color-base-danger-light)}.healthcheck__preview-issue_unspecified{color:var(--g-color-text-misc)}.healthcheck__preview-issue_unspecified .healthcheck__self-check-status-indicator{background-color:var(--g-color-base-misc-light)}.healthcheck__preview-issue_maintenance_required{color:var(--g-color-text-warning-heavy)}.healthcheck__preview-issue_maintenance_required .healthcheck__self-check-status-indicator{background-color:var(--g-color-base-warning-light)}.healthcheck__self-check-status-indicator{text-wrap:nowrap;border-radius:4px;display:inline-block;font-size:13px;line-height:24px;padding:0 8px}.ydb-diagnostic-card{background-color:#0000;border:1px solid var(--g-color-line-generic);border-radius:8px;flex-shrink:0;padding:16px 16px 28px;width:206px}.ydb-diagnostic-card_active{background-color:var(--g-color-base-selection);border-color:var(--g-color-base-info-medium)}.ydb-diagnostic-card:hover{box-shadow:0 1px 5px var(--g-color-sfx-shadow);cursor:pointer}.ydb-metrics-card{min-height:252px}.ydb-metrics-card__header{align-items:center;display:flex;gap:8px;justify-content:space-between;margin-bottom:10px}.ydb-metrics-card__label{color:var(--g-color-text-link);font-size:var(--g-text-subheader-3-font-size);font-weight:600;line-height:var(--g-text-subheader-3-line-height)}.ydb-metrics-card__content{color:var(--g-color-text-secondary);display:flex;flex-direction:column;gap:10px}.ydb-metrics-card__metric-title{height:var(--g-text-body-2-line-height)}.ydb-metrics-card_active .ydb-metrics-card__content{color:var(--g-color-text-complementary)}.metrics-cards{display:flex;gap:16px;margin-bottom:32px}.metrics-cards__tab{color:inherit;text-decoration:none}.kv-truncated-query{max-width:100%;vertical-align:top;white-space:pre;word-break:break-word}.kv-truncated-query__message{white-space:pre-wrap}.kv-truncated-query__message_color_secondary{color:var(--g-color-text-secondary)}.kv-truncated-query__popover-content{max-width:600px;overflow:hidden;white-space:pre}.kv-top-queries{display:flex;flex-direction:column;height:100%}.kv-top-queries .data-table__box .data-table__table-wrapper{padding-bottom:20px}.kv-top-queries .data-table__th{box-shadow:inset 0 -1px 0 0 var(--g-tabs-color-divider)}.kv-top-queries__search{width:238px}.kv-top-queries__row{cursor:pointer}.kv-top-queries__query{overflow:hidden;text-overflow:ellipsis;vertical-align:top;white-space:pre-wrap;word-break:break-word}.kv-top-queries__user-sid{max-width:200px;overflow:hidden;text-overflow:ellipsis}.tenant-overview{height:100%;overflow:auto;padding-bottom:20px}.tenant-overview__loader{display:flex;justify-content:center}.tenant-overview__tenant-name-wrapper{align-items:center;display:flex;overflow:hidden}.tenant-overview__top{align-items:center;display:flex;gap:4px;line-height:24px;margin-bottom:10px}.tenant-overview__top-label{font-weight:600;gap:10px;line-height:24px;margin-bottom:var(--diagnostics-section-title-margin)}.tenant-overview__info{left:0;position:sticky;width:max-content}.tenant-overview__title{font-size:var(--g-text-body-2-font-size);font-weight:700;line-height:var(--g-text-body-2-line-height);margin-bottom:10px}.tenant-overview__table:not(:last-child){margin-bottom:var(--diagnostics-section-margin)}.tenant-overview__top-queries-row{cursor:pointer}.tenant-overview__storage-info{margin-bottom:36px}.kv-detailed-overview{display:flex;flex-direction:column;gap:20px;height:100%;width:100%}.kv-detailed-overview__section{display:flex;flex-basis:calc(50% - 10px);flex-direction:column;flex-grow:1;flex-shrink:0;min-width:300px}.kv-detailed-overview__modal .g-modal__content{position:relative}.kv-detailed-overview__close-modal-button{position:absolute;right:13px;top:23px}.ydb-hot-keys__primary-key-column{align-items:center;display:flex;gap:5px}.ydb-hot-keys__help-card{left:0;margin-bottom:20px;padding:20px 40px 20px 20px;position:sticky}.ydb-hot-keys__help-card__close-button{position:absolute;right:5px;top:5px}.node-network{border:1px solid #0000;border-radius:4px;box-sizing:border-box;color:var(--g-color-text-complementary);cursor:pointer;display:inline-block;font-size:12px;height:14px;line-height:14px;margin-bottom:5px;margin-right:5px;padding:0 5px;text-align:center;text-transform:uppercase;width:14px}.node-network_id{height:14px;width:42px}.node-network_blur{opacity:.25}.node-network_grey{background:var(--ydb-color-status-grey)}.node-network_black{background-color:var(--ydb-color-status-black);color:var(--g-color-text-light-primary)}.node-network_green{background-color:var(--ydb-color-status-green)}.node-network_yellow{background-color:var(--ydb-color-status-yellow)}.node-network_red{background-color:var(--ydb-color-status-red)}.node-network:hover{border:1px solid var(--g-color-text-primary)}.network{flex-direction:column;font-size:var(--g-text-body-2-font-size);justify-content:space-between;line-height:var(--g-text-body-2-line-height);max-width:1305px}.network,.network__nodes-row{display:flex;flex-grow:1;height:100%;overflow:auto}.network__nodes-row{align-items:flex-start;flex-direction:row}.network__inner{display:flex;flex:1 1 auto;flex-direction:column;overflow:auto}.network__right{height:100%;padding-left:20px;width:100%}.network__left{border-right:1px solid var(--g-color-base-generic-accent);height:100%}.network__placeholder{align-items:center;display:flex;flex-direction:column;flex-grow:1;height:100%;justify-content:center;width:100%}.network__placeholder-text{margin-top:15px}.network__placeholder-img{color:#0000}.network__nodes{display:flex;flex-wrap:wrap}.network__nodes-container{min-width:325px}.network__nodes-container_right{margin-right:60px}.network__nodes-title{border-bottom:1px solid var(--g-color-base-generic-accent);color:var(--g-color-text-secondary);font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height);margin:0 0 15px}.network__link{color:var(--g-color-base-brand);text-decoration:none}.network__title{font-size:var(--g-text-body-1-font-size);font-weight:500;line-height:var(--g-text-body-1-line-height);margin:20px 0}.network__checkbox-wrapper{align-items:center;display:flex}.network__checkbox-wrapper label{white-space:nowrap}.network__label{margin-bottom:16px}.network__controls{display:flex;gap:12px;margin:0 16px 16px 0}.network__controls-wrapper{display:flex;flex:1 1 auto;flex-direction:row;flex-direction:column}.network__select{margin:0 15px;max-width:115px}.network__rack-column{align-items:center;background-color:#00000012;border-radius:4px;display:flex;flex-direction:column;margin-bottom:5px;margin-right:5px;padding:2px}.network__rack-column .node-network{margin-right:0}.ydb-diagnostics-partitions-columns-header__multiline{white-space:normal}.ydb-diagnostics-partitions-columns-header__read-session{white-space:normal;width:80px}.ydb-diagnostics-partitions-columns-header__lags{white-space:nowrap}.ydb-diagnostics-partitions-columns-header__messages{white-space:normal;width:90px}.ydb-diagnostics-partitions-columns-header__messages-popover-content{max-width:200px}.ydb-diagnostics-partitions-columns__lags-header{text-align:center}.ydb-diagnostics-partitions{display:flex;flex-grow:1;flex:1 1 auto;flex-direction:column;height:100%;overflow:auto}.ydb-diagnostics-partitions__controls{align-items:center;display:flex;gap:12px;padding:16px 0 18px}.ydb-diagnostics-partitions__consumer-select{width:220px}.ydb-diagnostics-partitions__select-option_empty{color:var(--g-color-text-hint)}.ydb-diagnostics-partitions__search{width:238px}.ydb-diagnostics-partitions__search_partition{width:100px}.ydb-diagnostics-partitions__search_general{width:280px}.ydb-diagnostics-partitions__table-wrapper{display:flex;flex:1 1 auto;flex-direction:column;overflow:auto}.ydb-diagnostics-partitions__table-content{height:100%;overflow:auto}.ydb-diagnostics-partitions__table .data-table__head-row:first-child .data-table__th:first-child,.ydb-diagnostics-partitions__table .data-table__td:first-child{background-color:var(--g-color-base-background);border-right:1px solid var(--g-color-line-generic);left:0;position:sticky;z-index:2000}.ydb-diagnostics-partitions__table .data-table__row:hover .data-table__td:first-child{background-color:var(--ydb-data-table-color-hover)!important}.ydb-diagnostics-partitions__table .data-table__head-row:first-child .data-table__th:nth-child(0),.ydb-diagnostics-partitions__table .data-table__td:nth-child(0){border-right:initial;box-shadow:none}.ydb-diagnostics-partitions__table .data-table__head-row:first-child .data-table__th:first-child,.ydb-diagnostics-partitions__table .data-table__td:first-child{box-shadow:none}.date-range__range-input_s{width:200px}.date-range__range-input_m{width:300px}.date-range__range-input_l{width:350px}.date-range__range-input input{cursor:pointer}.top-shards__hint{left:0;position:sticky;width:max-content}.kv-tenant-diagnostics{display:flex;flex-direction:column;height:100%;overflow:hidden}.kv-tenant-diagnostics__header-wrapper{background-color:var(--g-color-base-background);padding:0 20px 16px}.kv-tenant-diagnostics__tabs{--g-tabs-border-width:0;align-items:center;box-shadow:inset 0 -1px 0 0 var(--g-color-line-generic);display:flex;justify-content:space-between}.kv-tenant-diagnostics__tabs .g-tabs_direction_horizontal{box-shadow:none}.kv-tenant-diagnostics__tab{margin-right:40px;text-decoration:none}.kv-tenant-diagnostics__tab:first-letter{text-transform:uppercase}.kv-tenant-diagnostics__page-wrapper{flex-grow:1;overflow:auto;padding:0 20px;width:100%}.kv-tenant-diagnostics__page-wrapper .ydb-table-with-controls-layout__controls{height:46px;padding-top:0}.kv-tenant-diagnostics__page-wrapper .ydb-table-with-controls-layout .data-table__sticky_moving,.kv-tenant-diagnostics__page-wrapper .ydb-table-with-controls-layout .ydb-paginated-table__head{top:46px!important}.ydb-queries-history{display:flex;flex:1 1 auto;flex-direction:column;height:100%;overflow:auto;padding:0 20px}.ydb-queries-history .ydb-table-with-controls-layout__controls{height:46px;padding-top:0}.ydb-queries-history.ydb-table-with-controls-layout .data-table__sticky_moving{top:46px!important}.ydb-queries-history__search{width:238px}.ydb-queries-history__table-row{cursor:pointer}.ydb-queries-history__query{flex-grow:1;overflow:hidden;text-overflow:ellipsis;white-space:pre}.kv-pane-visibility-button_hidden{display:none}.kv-pane-visibility-button_bottom{transform:rotate(180deg)}.kv-pane-visibility-button_bottom.rotate{transform:rotate(0)}.kv-pane-visibility-button_left{transform:rotate(-90deg)}.kv-pane-visibility-button_left.rotate{transform:rotate(90deg)}.kv-pane-visibility-button_top.rotate{transform:rotate(180deg)}.kv-divider{background-color:var(--g-color-line-generic);height:100%;margin:0 4px;width:1px}.ydb-fullscreen{display:flex;flex-grow:1;overflow:hidden}.ydb-fullscreen_fullscreen{background-color:var(--g-color-base-background);inset:0;position:absolute;z-index:10}.ydb-fullscreen__close-button{display:none;position:fixed;right:20px;top:8px;z-index:11}.ydb-fullscreen_fullscreen .ydb-fullscreen__close-button{display:block}.ydb-query-settings-description__message{display:flex;flex-wrap:wrap;white-space:pre}.kv-query-execution-status{align-items:center;color:var(--g-color-text-complementary);display:flex;gap:4px}.kv-query-execution-status__result-status-icon{color:var(--g-color-text-positive)}.kv-query-execution-status__result-status-icon_error{color:var(--g-color-text-danger)}.kv-query-execution-status__query-settings-icon{color:var(--g-color-text-hint)}.ydb-query-result-table__cell{cursor:pointer;display:inline-block;max-width:600px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.ydb-query-result-table__message{padding:15px 10px}.cancel-query-button__stop-button_error{animation:errorAnimation .5s linear}@keyframes errorAnimation{41%,8%{transform:translateX(-2px)}25%,58%{transform:translateX(2px)}75%{transform:translateX(-1px)}92%{transform:translateX(1px)}0%,to{transform:translateX(0)}}.ydb-query-explain-simplified-plan{height:100%;overflow:auto;padding:0 0 15px}.ydb-query-explain-simplified-plan__table{border-collapse:collapse;border-spacing:0;max-width:100%;table-layout:fixed;width:100%}.ydb-query-explain-simplified-plan__table tr:hover{background-color:var(--g-color-base-generic-hover)!important}.ydb-query-explain-simplified-plan__table tr:nth-of-type(odd){background-color:var(--g-color-base-generic-ultralight)}.ydb-query-explain-simplified-plan__name{align-items:center;display:flex;gap:var(--g-spacing-1);max-width:100%}.ydb-query-explain-simplified-plan__table-header-cell{background-color:var(--g-color-base-background);font-size:var(--g-text-subheader-2-font-size);font-weight:var(--g-text-subheader-font-weight);height:40px;line-height:var(--g-text-subheader-2-line-height);padding:0;text-align:left}.ydb-query-explain-simplified-plan__table-header-cell_align_right{text-align:right}.ydb-query-explain-simplified-plan__table-header-content{border-bottom:1px solid var(--g-color-line-generic);height:100%;line-height:40px;padding:0 var(--g-spacing-2)}.ydb-query-explain-simplified-plan__metrics-cell{padding:var(--g-spacing-1) var(--g-spacing-2)}.ydb-query-explain-simplified-plan__table-cell{font-size:var(--g-text-body-2-font-size);font-weight:var(--g-text-body-font-weight);height:30px;line-height:var(--g-text-body-2-line-height);padding:0}.ydb-query-explain-simplified-plan__table-cell_align_right{text-align:right}.ydb-query-explain-simplified-plan__table-cell_vertical-align_top{vertical-align:top}.ydb-query-explain-simplified-plan__operation-params{color:var(--g-color-text-secondary)}.ydb-query-explain-simplified-plan__operation-name{height:100%;max-width:100%;position:relative}.ydb-query-explain-simplified-plan__divider{bottom:0;box-shadow:1px 0 0 0 var(--g-color-line-generic) inset;height:100%;position:absolute;width:12px}.ydb-query-explain-simplified-plan__divider_last{border-radius:0 0 0 1px;bottom:auto;box-shadow:1px -1px 0 0 var(--g-color-line-generic) inset;height:14px;top:0;width:12px}.ydb-query-explain-simplified-plan__divider_horizontal{bottom:auto;box-shadow:0 -1px 0 0 var(--g-color-line-generic) inset;height:14px;top:0;width:12px}.ydb-query-explain-simplified-plan__divider_first{height:calc(100% - 24px)}.ydb-query-explain-simplified-plan__operation-content{align-items:baseline;height:100%;max-width:100%;padding:var(--g-spacing-1) 0;word-break:break-word}.ydb-query-explain-simplified-plan__operation-name-content{display:flex;flex-grow:1;height:100%}.ydb-query-explain-simplified-plan .gt-table__cell_id_name{border:initial}.kv-shorty-string__toggle{font-size:.85em;margin-left:2em}.kv-result-issues{padding:0 10px}.kv-result-issues__error-message{align-items:center;background-color:var(--g-color-base-background);display:flex;left:0;padding:10px 0;position:sticky;top:0;z-index:2}.kv-result-issues__error-message-text{margin:0 10px}.kv-issues{position:relative}.kv-issue_leaf{margin-left:31px}.kv-issue__issues{padding-left:24px}.kv-issue__line{align-items:flex-start;display:flex;margin:0 0 10px;padding:0 10px 0 0}.kv-issue__place-text{color:var(--g-color-text-secondary);display:inline-block;padding-right:10px;text-align:left}.kv-issue__message{display:flex;font-family:var(--g-font-family-monospace);font-size:var(--g-text-code-2-font-size);line-height:var(--g-text-header-2-line-height);margin-left:10px;margin-right:auto}.kv-issue__message-text{flex:1 1 auto;min-width:240px;white-space:pre-wrap;word-break:break-word}.kv-issue__code{color:var(--g-color-text-complementary);flex:0 0 auto;font-size:12px;margin-left:1.5em;padding:3px 0}.kv-issue__arrow-toggle{margin-right:5px}.yql-issue-severity{align-items:center;display:flex;line-height:28px;white-space:nowrap}.yql-issue-severity_severity_error .yql-issue-severity__icon,.yql-issue-severity_severity_fatal .yql-issue-severity__icon{color:var(--g-color-text-danger)}.yql-issue-severity_severity_warning .yql-issue-severity__icon{color:var(--g-color-text-warning)}.yql-issue-severity_severity_info .yql-issue-severity__icon{color:var(--g-color-text-info)}.yql-issue-severity__title{color:var(--g-color-text-complementary);margin-left:4px;text-transform:capitalize}.ydb-query-duration{align-items:center;color:var(--g-color-text-complementary);display:flex;margin-left:10px}.ydb-query-duration__item-with-popover{display:flex;white-space:nowrap}.ydb-query-duration__popover{align-items:center;display:flex}.ydb-query-duration__popover-content{max-width:300px}.ydb-query-duration__popover-button{display:flex}.ydb-query-settings-banner{margin:var(--g-spacing-1) var(--g-spacing-5)}.ydb-query-execute-result__result{display:flex;flex-direction:column;flex-grow:1;overflow:auto;padding-left:10px}.ydb-query-execute-result__result .data-table__box .data-table__table-wrapper{padding-bottom:20px}.ydb-query-execute-result__result .data-table__th{box-shadow:inset 0 -1px 0 0 var(--g-tabs-color-divider)}.ydb-query-execute-result__result .data-table__table-wrapper{padding-bottom:0}.ydb-query-execute-result__row-count{margin-left:var(--g-spacing-1)}.ydb-query-execute-result__result-head{margin-top:var(--g-spacing-4)}.ydb-query-execute-result__result-wrapper{display:flex;flex-direction:column;width:100%}.ydb-query-execute-result__result-tabs{padding-left:10px}.ydb-query-execute-result__error{padding:15px 10px}.ydb-query-execute-result__controls{align-items:center;background-color:var(--g-color-base-background);border-bottom:1px solid var(--g-color-line-generic);display:flex;height:53px;justify-content:space-between;padding:12px 20px;position:sticky;top:0;z-index:2}.ydb-query-execute-result__controls-right{align-items:center;display:flex;gap:12px;height:100%}.ydb-query-execute-result__controls-left{display:flex;gap:4px}.ydb-query-execute-result__inspector{word-wrap:break-word;font-family:var(--g-font-family-monospace)!important;font-size:var(--g-text-code-1-font-size)!important;height:100%;line-height:var(--g-text-code-1-line-height)!important;overflow:auto;padding:15px 10px;width:100%}.ydb-query-execute-result__inspector .json-inspector__leaf_composite:before{color:var(--g-color-text-secondary);font-size:9px;left:20px;position:absolute}.ydb-query-execute-result__inspector .json-inspector__leaf_composite.json-inspector__leaf_root:before{left:0}.ydb-query-execute-result__inspector :not(.json-inspector__leaf_expanded).json-inspector__leaf_composite:before{content:"[+]"}.ydb-query-execute-result__inspector .json-inspector__leaf_expanded.json-inspector__leaf_composite:before{content:"[-]"}.ydb-query-execute-result__inspector .json-inspector__key{color:var(--g-color-text-misc)}.ydb-query-execute-result__inspector .json-inspector__leaf{padding-left:20px;position:relative}.ydb-query-execute-result__inspector .json-inspector__leaf_root{padding-left:0}.ydb-query-execute-result__inspector .json-inspector__line{padding-left:20px}.ydb-query-execute-result__inspector .json-inspector__toolbar{border:1px solid var(--g-color-line-generic);border-radius:4px;margin-bottom:10px;width:300px}.ydb-query-execute-result__inspector .json-inspector__search{background:none;border:0 solid #0000;border-width:0 22px 0 8px;box-sizing:border-box;color:var(--g-color-text-primary);font-family:var(--g-text-body-font-family);font-size:13px;height:28px;margin:0;outline:0;padding:0;vertical-align:top;width:300px}.ydb-query-execute-result__inspector .json-inspector__value_helper{color:var(--g-color-text-secondary)}.ydb-query-execute-result__inspector .json-inspector__line:hover:after{background:var(--g-color-base-simple-hover)}.ydb-query-execute-result__inspector .json-inspector__show-original:before{color:var(--g-color-text-secondary)}.ydb-query-execute-result__inspector .json-inspector__show-original:hover:after,.ydb-query-execute-result__inspector .json-inspector__show-original:hover:before{color:var(--g-color-text-primary)}.ydb-query-execute-result__inspector .json-inspector__leaf.json-inspector__leaf_root.json-inspector__leaf_composite{max-width:calc(100% - 50px)}.ydb-query-execute-result__explain-canvas-container{height:100%;overflow-y:auto;width:100%}.ydb-query-execute-result__elapsed-label{margin-left:var(--g-spacing-3)}.ydb-query-explain-ast{height:100%;overflow:hidden;white-space:pre-wrap;width:100%}.ydb-query-explain-graph__canvas-container{height:100%;overflow-y:auto;width:100%}.ydb-query-explain-graph__canvas-container_hidden{display:none}.ydb-query-explain-graph__text-message{padding:15px 20px}.ydb-query-explain-text__inspector{word-wrap:break-word;font-family:var(--g-font-family-monospace)!important;font-size:var(--g-text-code-1-font-size)!important;line-height:var(--g-text-code-1-line-height)!important;overflow-y:auto;padding:15px 20px;width:100%}.ydb-query-explain-text__inspector .json-inspector__leaf_composite:before{color:var(--g-color-text-secondary);font-size:9px;left:20px;position:absolute}.ydb-query-explain-text__inspector .json-inspector__leaf_composite.json-inspector__leaf_root:before{left:0}.ydb-query-explain-text__inspector :not(.json-inspector__leaf_expanded).json-inspector__leaf_composite:before{content:"[+]"}.ydb-query-explain-text__inspector .json-inspector__leaf_expanded.json-inspector__leaf_composite:before{content:"[-]"}.ydb-query-explain-text__inspector .json-inspector__key{color:var(--g-color-text-misc)}.ydb-query-explain-text__inspector .json-inspector__leaf{padding-left:20px;position:relative}.ydb-query-explain-text__inspector .json-inspector__leaf_root{padding-left:0}.ydb-query-explain-text__inspector .json-inspector__line{padding-left:20px}.ydb-query-explain-text__inspector .json-inspector__toolbar{border:1px solid var(--g-color-line-generic);border-radius:4px;margin-bottom:10px;width:300px}.ydb-query-explain-text__inspector .json-inspector__search{background:none;border:0 solid #0000;border-width:0 22px 0 8px;box-sizing:border-box;color:var(--g-color-text-primary);font-family:var(--g-text-body-font-family);font-size:13px;height:28px;margin:0;outline:0;padding:0;vertical-align:top;width:300px}.ydb-query-explain-text__inspector .json-inspector__value_helper{color:var(--g-color-text-secondary)}.ydb-query-explain-text__inspector .json-inspector__line:hover:after{background:var(--g-color-base-simple-hover)}.ydb-query-explain-text__inspector .json-inspector__show-original:before{color:var(--g-color-text-secondary)}.ydb-query-explain-text__inspector .json-inspector__show-original:hover:after,.ydb-query-explain-text__inspector .json-inspector__show-original:hover:before{color:var(--g-color-text-primary)}.ydb-query-explain-text__inspector .json-inspector__leaf.json-inspector__leaf_root.json-inspector__leaf_composite{max-width:calc(100% - 50px)}.ydb-query-explain-text__inspector_fullscreen{padding:10px}.ydb-query-explain-result__result{display:flex;flex-direction:column;flex-grow:1;overflow:auto}.ydb-query-explain-result__text-message{padding:15px 20px}.ydb-query-explain-result__controls{align-items:center;background-color:var(--g-color-base-background);border-bottom:1px solid var(--g-color-line-generic);display:flex;height:53px;justify-content:space-between;padding:12px 20px;position:sticky;top:0;z-index:2}.ydb-query-explain-result__controls-right{align-items:center;display:flex;gap:12px;height:100%}.ydb-query-explain-result__controls-left{display:flex;gap:4px}.ydb-query-explain-result__elapsed-label{margin-left:var(--g-spacing-3)}.kv-preview{display:flex;flex:1 1 auto;flex-direction:column;height:100%}.kv-preview .data-table__box .data-table__table-wrapper{padding-bottom:20px}.kv-preview .data-table__th{box-shadow:inset 0 -1px 0 0 var(--g-tabs-color-divider)}.kv-preview__header{align-items:center;background-color:var(--g-color-base-background);border-bottom:1px solid var(--g-color-line-generic);display:flex;height:53px;justify-content:space-between;padding:0 20px;position:sticky;top:0}.kv-preview__title{display:flex}.kv-preview__table-name{color:var(--g-color-text-complementary);margin-left:4px}.kv-preview__controls-left{display:flex;gap:5px}.kv-preview__message-container{padding:15px 20px}.kv-preview__loader-container{align-items:center;display:flex;height:100%;justify-content:center}.kv-preview__result{overflow:auto;padding-left:10px;width:100%}.ydb-save-query__dialog-row{align-items:flex-start;display:flex}.ydb-save-query__dialog-row+.ydb-save-query__dialog-row{margin-top:var(--g-text-body-1-line-height)}.ydb-save-query__field-title{font-weight:500;line-height:28px;margin-right:12px;white-space:nowrap}.ydb-save-query__field-title.required:after{color:var(--g-color-text-danger);content:"*"}.ydb-save-query__control-wrapper{display:flex;flex-grow:1;min-height:48px}.ydb-query-editor-controls{align-items:flex-end;display:flex;flex:0 0 40px;gap:24px;justify-content:space-between;min-height:40px;padding:5px 0}.ydb-query-editor-controls__left,.ydb-query-editor-controls__right{display:flex;gap:12px}.ydb-query-editor-controls__mode-selector__button{margin-left:2px;width:241px}.ydb-query-editor-controls__mode-selector__button-content{align-items:center;display:flex;justify-content:space-between;width:215px}.ydb-query-editor-controls__mode-selector__popup{width:241px}.ydb-query-editor-controls__item-with-popover{align-items:center;display:flex;height:24px;line-height:normal}.ydb-query-editor-controls__popover{max-width:420px;white-space:pre-wrap}.ydb-query-settings-select__selector{width:100%}.ydb-query-settings-select__popup{max-width:320px}.ydb-query-settings-select__item-description{color:var(--g-color-text-secondary);white-space:pre-wrap}.ydb-query-settings-select__item{padding:var(--g-spacing-1) 0}.ydb-query-settings-dialog__dialog-row+.ydb-query-settings-dialog__dialog-row{margin-top:var(--g-text-body-1-line-height)}.ydb-query-settings-dialog__field-title{flex:4 1;font-weight:500;line-height:var(--g-text-header-2-line-height);margin-right:var(--g-spacing-3);white-space:nowrap}.ydb-query-settings-dialog .g-dialog-footer__bts-wrapper{width:100%}.ydb-query-settings-dialog__dialog-body{padding-top:var(--g-spacing-6)}.ydb-query-settings-dialog__control-wrapper{display:flex;flex:6 1}.ydb-query-settings-dialog__limit-rows,.ydb-query-settings-dialog__timeout{margin-right:var(--g-spacing-2);width:33.3%}.ydb-query-settings-dialog__documentation-link,.ydb-query-settings-dialog__timeout-suffix{align-items:center;color:var(--g-color-text-secondary);display:flex}.ydb-query-settings-dialog__documentation-link{margin-left:var(--g-spacing-4)}.ydb-query-settings-dialog__buttons-container{display:flex;justify-content:space-between;width:100%}.ydb-query-settings-dialog__main-buttons{display:flex;gap:10px}.query-editor{display:flex;flex:1 1 auto;flex-direction:column;height:100%;position:relative}.query-editor .data-table__box .data-table__table-wrapper{padding-bottom:20px}.query-editor .data-table__th{box-shadow:inset 0 -1px 0 0 var(--g-tabs-color-divider)}.query-editor__monaco{border:1px solid var(--g-color-line-generic);display:flex;height:100%;position:relative;width:100%}.query-editor__monaco-wrapper{height:calc(100% - 49px);min-height:0;width:100%}.query-editor__pane-wrapper{background-color:var(--g-color-base-background);display:flex;flex-direction:column;z-index:2}.query-editor__pane-wrapper_top{border-bottom:1px solid var(--g-color-line-generic);padding:0 16px}.ydb-saved-queries{display:flex;flex:1 1 auto;flex-direction:column;height:100%;overflow:auto;padding:0 20px}.ydb-saved-queries .ydb-table-with-controls-layout__controls{height:46px;padding-top:0}.ydb-saved-queries.ydb-table-with-controls-layout .data-table__sticky_moving{top:46px!important}.ydb-saved-queries__search{width:238px}.ydb-saved-queries__row{cursor:pointer}.ydb-saved-queries__row :hover .ydb-saved-queries__controls{display:flex}.ydb-saved-queries__query-name{overflow:hidden;text-overflow:ellipsis;white-space:pre-wrap}.ydb-saved-queries__query{align-items:center;display:flex;flex-direction:row;justify-content:space-between}.ydb-saved-queries__query-body{flex-grow:1;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:pre}.ydb-saved-queries__controls{display:none}.ydb-saved-queries__dialog-query-name{font-weight:500}.ydb-query{display:flex;flex:1 1 auto;flex-direction:column;max-height:calc(100% - 56px)}.ydb-query__tabs{padding:0 20px 16px}.ydb-query__content{height:100%;overflow:hidden}.ydb-tenant-navigation{padding:12px 16px 8px}.ydb-tenant-navigation__item{align-items:center;display:flex;gap:5px}.ydb-tenant-navigation__icon{flex-shrink:0}.ydb-tenant-navigation__text{overflow:hidden;text-overflow:ellipsis}.object-general{display:flex;flex-direction:column;flex-grow:1;height:100%;max-height:100%;width:100%}.object-general__loader{display:flex}.ydb-acl{width:100%}.ydb-acl__result{padding-bottom:var(--g-spacing-4);padding-left:var(--g-spacing-2)}.ydb-acl__result_no-title{margin-top:var(--g-spacing-3)}.ydb-acl__definition-content{align-items:flex-end;display:flex;flex-direction:column}.ydb-acl__list-title{font-weight:600;margin:var(--g-spacing-3) 0 var(--g-spacing-5)}.ydb-acl__group-label,.ydb-acl__list-title{font-size:var(--g-text-subheader-2-font-size);font-weight:var(--g-text-subheader-font-weight);line-height:var(--g-text-subheader-2-line-height)}.ydb-schema-create-directory-dialog__label{display:flex;flex-direction:column;margin-bottom:8px}.ydb-schema-create-directory-dialog__description{color:var(--g-color-text-secondary)}.ydb-schema-create-directory-dialog__input-wrapper{min-height:48px}.ydb-object-summary{height:100%;max-height:100%;overflow:hidden;width:100%}.ydb-object-summary,.ydb-object-summary__overview-wrapper{display:flex;flex-direction:column;flex-grow:1;position:relative}.ydb-object-summary__overview-wrapper{overflow:auto;padding:0 12px 16px}.ydb-object-summary_hidden{visibility:hidden}.ydb-object-summary__action-button{background-color:var(--g-color-base-background);position:absolute;right:5px;top:19px}.ydb-object-summary__action-button_hidden{visibility:hidden}.ydb-object-summary__tree-wrapper{display:flex;flex-direction:column}.ydb-object-summary__tree{flex:1 1 auto;height:100%;overflow-y:scroll;padding:0 12px 12px 16px}.ydb-object-summary__tree-header{padding:23px 12px 17px 20px}.ydb-object-summary__sticky-top{background-color:var(--g-color-base-background);left:0;position:sticky;top:0;z-index:5}.ydb-object-summary__tabs{padding:8px 12px 16px}.ydb-object-summary__tabs-inner{--g-tabs-border-width:0;box-shadow:inset 0 -1px 0 0 var(--g-color-line-generic)}.ydb-object-summary__tab{text-decoration:none}.ydb-object-summary__info{display:flex;flex-direction:column;overflow:hidden}.ydb-object-summary__info-controls{display:flex;gap:4px}.ydb-object-summary__info-action-button{background-color:var(--g-color-base-background)}.ydb-object-summary__info-action-button_hidden{display:none}.ydb-object-summary__rotated90{transform:rotate(-90deg)}.ydb-object-summary__rotated180{transform:rotate(180deg)}.ydb-object-summary__rotated270{transform:rotate(90deg)}.ydb-object-summary__info-header{align-items:center;border-bottom:1px solid var(--g-color-line-generic);display:flex;justify-content:space-between;padding:12px 12px 10px}.ydb-object-summary__info-title{align-items:center;display:flex;font-weight:600;overflow:hidden}.ydb-object-summary__path-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ydb-object-summary__entity-type{background-color:var(--g-color-base-generic);border-radius:3px;display:inline-block;font-weight:400;margin-right:5px;padding:3px 8px;text-transform:lowercase}.ydb-object-summary__entity-type_error{background-color:#0000;padding:3px 0}.link{color:var(--g-color-text-link);text-decoration:none}.link_external{margin-right:10px}.link:hover{color:var(--g-color-text-link-hover)}.tenant-page{display:flex;flex:1 1 auto;flex-direction:column;font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height);overflow:hidden}.tenant-page__main{flex-grow:1} \ No newline at end of file
diff --git a/ydb/core/viewer/monitoring/static/css/7074.c6e4f322.chunk.css b/ydb/core/viewer/monitoring/static/css/7074.c6e4f322.chunk.css
new file mode 100644
index 0000000000..fe164246e4
--- /dev/null
+++ b/ydb/core/viewer/monitoring/static/css/7074.c6e4f322.chunk.css
@@ -0,0 +1 @@
+@charset "UTF-8";.auto-refresh-control{align-items:center;display:flex;gap:var(--g-spacing-1)}.g-tooltip[class]{--g-popup-border-width:0}.g-tooltip[class]>div{animation-duration:1ms;box-shadow:0 1px 5px 0 #00000026;box-sizing:border-box;max-width:360px;padding:4px 8px}.g-tooltip__content{-webkit-box-orient:vertical;-ms-box-orient:vertical;-webkit-line-clamp:20;-moz-line-clamp:20;-ms-line-clamp:20;display:-webkit-box;overflow:hidden;text-overflow:ellipsis}.ydb-status-icon__status-color_state_green{background-color:var(--ydb-color-status-green)}.ydb-status-icon__status-color_state_yellow{background-color:var(--ydb-color-status-yellow)}.ydb-status-icon__status-color_state_blue{background-color:var(--ydb-color-status-blue)}.ydb-status-icon__status-color_state_red{background-color:var(--ydb-color-status-red)}.ydb-status-icon__status-color_state_grey{background-color:var(--ydb-color-status-grey)}.ydb-status-icon__status-color_state_orange{background-color:var(--ydb-color-status-orange)}.ydb-status-icon__status-icon_state_blue{color:var(--ydb-color-status-blue)}.ydb-status-icon__status-icon_state_yellow{color:var(--ydb-color-status-yellow)}.ydb-status-icon__status-icon_state_orange{color:var(--ydb-color-status-orange)}.ydb-status-icon__status-icon_state_red{color:var(--ydb-color-status-red)}.ydb-status-icon__status-color,.ydb-status-icon__status-icon{border-radius:3px;flex-shrink:0}.ydb-status-icon__status-color_size_xs,.ydb-status-icon__status-icon_size_xs{aspect-ratio:1;height:12px;width:12px}.ydb-status-icon__status-color_size_s,.ydb-status-icon__status-icon_size_s{aspect-ratio:1;height:16px;width:16px}.ydb-status-icon__status-color_size_m,.ydb-status-icon__status-icon_size_m{aspect-ratio:1;height:18px;width:18px}.ydb-status-icon__status-color_size_l,.ydb-status-icon__status-icon_size_l{height:24px;width:24px}.entity-status{align-items:center;display:inline-flex;font-size:var(--g-text-body-2-font-size);height:100%;line-height:var(--g-text-body-2-line-height);max-width:100%}.entity-status__icon{margin-right:var(--g-spacing-2)}.entity-status__clipboard-button{color:var(--g-color-text-secondary);display:flex;flex-shrink:0;margin-left:var(--g-spacing-2);opacity:0}.entity-status__clipboard-button:focus-visible,.entity-status__clipboard-button_visible{opacity:1}.entity-status__additional-controls{margin-left:var(--g-spacing-1)}.entity-status__label{color:var(--g-color-text-complementary);font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height);margin-right:2px}.entity-status__label_size_l{font-size:var(--g-text-header-2-font-size)}.entity-status__link{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.entity-status__link_with-left-trim{direction:rtl}.entity-status__link_with-left-trim .entity-status__name{unicode-bidi:plaintext}.entity-status__label_state_blue{color:var(--ydb-color-status-blue)}.entity-status__label_state_yellow{color:var(--ydb-color-status-yellow)}.entity-status__label_state_orange{color:var(--ydb-color-status-orange)}.entity-status__label_state_red{color:var(--ydb-color-status-red)}.progress-viewer{align-items:center;background:var(--g-color-base-generic);border-radius:2px;color:var(--g-color-text-complementary);display:flex;font-size:var(--g-text-body-2-font-size);height:23px;justify-content:center;min-width:120px;overflow:hidden;padding:0 4px;position:relative;white-space:nowrap;z-index:0}.progress-viewer_theme_dark{color:var(--g-color-text-light-primary)}.progress-viewer_theme_dark .progress-viewer__line{opacity:.75}.progress-viewer_status_good{background-color:var(--g-color-base-positive-light)}.progress-viewer_status_good .progress-viewer__line{background-color:var(--ydb-color-status-green)}.progress-viewer_status_warning{background-color:var(--g-color-base-yellow-light)}.progress-viewer_status_warning .progress-viewer__line{background-color:var(--ydb-color-status-yellow)}.progress-viewer_status_danger{background-color:var(--g-color-base-danger-light)}.progress-viewer_status_danger .progress-viewer__line{background-color:var(--ydb-color-status-red)}.progress-viewer__line{height:100%;left:0;position:absolute;top:0}.progress-viewer__text{position:relative;z-index:1}.progress-viewer_size_xs{font-size:var(--g-text-body-2-font-size);height:20px;line-height:var(--g-text-body-2-line-height)}.progress-viewer_size_s{font-size:var(--g-text-body-1-font-size);height:28px;line-height:28px}.progress-viewer_size_m{font-size:var(--g-text-body-2-font-size);height:32px;line-height:32px}.progress-viewer_size_ns{font-size:13px;height:24px;line-height:var(--g-text-subheader-3-line-height)}.progress-viewer_size_n{font-size:var(--g-text-body-1-font-size);height:36px;line-height:36px}.progress-viewer_size_l{font-size:var(--g-text-subheader-3-font-size);height:38px;line-height:38px}.progress-viewer_size_head{font-size:var(--g-text-body-1-font-size);line-height:36px}.table-skeleton__wrapper{width:100%}.table-skeleton__wrapper_hidden{visibility:hidden}.table-skeleton__row{align-items:center;display:flex;height:var(--data-table-row-height)}.table-skeleton__row .g-skeleton{height:var(--g-text-body-2-line-height)}.table-skeleton__col-1{margin-right:5%;width:10%}.table-skeleton__col-2{margin-right:5%;width:7%}.table-skeleton__col-3,.table-skeleton__col-4{margin-right:5%;width:5%}.table-skeleton__col-5{width:20%}.table-skeleton__col-full{width:100%}.g-skeleton{--_--animation-from:calc(-100%*var(--g-flow-direction));--_--animation-to:calc(100%*var(--g-flow-direction));--_--gradient-deg:calc(90deg*var(--g-flow-direction));background-color:var(--g-color-base-generic);border-radius:5px;display:inline-block;overflow:hidden;position:relative;width:100%;z-index:0}.g-skeleton:after{animation:g-skeleton 1.2s ease-out infinite;background-image:linear-gradient(var(--_--gradient-deg),#0000,var(--g-color-base-generic));content:"";inset:0;position:absolute}@keyframes g-skeleton{0%{transform:translateX(var(--_--animation-from))}to{transform:translateX(var(--_--animation-to))}}.ydb-table-with-controls-layout{box-sizing:border-box;display:inline-block;min-width:100%}.ydb-table-with-controls-layout__controls-wrapper{background-color:var(--g-color-base-background);box-sizing:border-box;left:0;position:sticky;top:0;width:100%;z-index:3}.ydb-table-with-controls-layout__controls{align-items:center;background-color:var(--g-color-base-background);display:flex;gap:12px;height:62px;left:0;padding:16px 0 18px;position:sticky;top:0;width:max-content;z-index:3}.ydb-table-with-controls-layout__table{position:relative;z-index:2}.ydb-table-with-controls-layout .ydb-paginated-table__head{top:62px}.ydb-table-with-controls-layout .data-table__sticky_moving{top:62px!important}.ydb-search{min-width:100px}.g-table-column-setup__status{color:var(--g-color-text-secondary);margin-inline-start:5px}.g-inner-table-column-setup{display:inline-block}.g-inner-table-column-setup__controls{margin:var(--g-spacing-1) var(--g-spacing-1) 0}.g-inner-table-column-setup__filter-input{border-block-end:1px solid var(--g-color-line-generic);box-sizing:border-box;padding:0 var(--g-spacing-2) var(--g-spacing-1)}.g-inner-table-column-setup__empty-placeholder{padding:var(--g-spacing-2)}.g-list-container-view{box-sizing:border-box;outline:none;width:100%}.g-list-container-view_fixed-height{height:300px;height:var(--g-list-container-height,300px)}.g-list-container-view:not(.g-list-container-view_fixed-height){overflow:auto}.g-list-item-view{flex-shrink:0}.g-list-item-view__main-content{grid-gap:2px;grid-gap:var(--g-spacing-half,2px);display:grid;gap:2px;gap:var(--g-spacing-half,2px);width:100%}.g-list-item-view:hover.g-list-item-view_activeOnHover,.g-list-item-view_active{background:var(--g-color-base-simple-hover)}.g-list-item-view_clickable{cursor:pointer}.g-list-item-view_selected,.g-list-item-view_selected.g-list-item-view_active,.g-list-item-view_selected:hover.g-list-item-view_activeOnHover{background:var(--g-color-base-selection)}.g-list-item-view_dragging,.g-list-item-view_dragging.g-list-item-view_active,.g-list-item-view_dragging.g-list-item-view_selected{background:var(--g-color-base-simple-hover-solid);z-index:100001!important}.g-list-item-view_radius_s{border-radius:3px;border-radius:var(--g-list-item-border-radius,3px)}.g-list-item-view_radius_m{border-radius:5px;border-radius:var(--g-list-item-border-radius,5px)}.g-list-item-view_radius_l{border-radius:6px;border-radius:var(--g-list-item-border-radius,6px)}.g-list-item-view_radius_xl{border-radius:8px;border-radius:var(--g-list-item-border-radius,8px)}.g-list-item-view__icon,.g-list-item-view__slot{flex-shrink:0}.g-tree-select{display:inline-block;max-width:100%}.g-tree-select_width_max{width:100%}.g-tree-select__popup{overflow:hidden;padding:4px 0}.g-tree-select__popup_size_s{border-radius:5px;border-radius:var(--g-list-container-border-radius,5px)}.g-tree-select__popup_size_m{border-radius:6px;border-radius:var(--g-list-container-border-radius,6px)}.g-tree-select__popup_size_l{border-radius:8px;border-radius:var(--g-list-container-border-radius,8px)}.g-tree-select__popup_size_xl{border-radius:10px;border-radius:var(--g-list-container-border-radius,10px)}.g-tree-select__list{padding:0 4px}.g-list-recursive-renderer{margin:0;padding:0}.ydb-cell-with-popover{display:flex;max-width:100%}.ydb-cell-with-popover__popover{display:inline-block;max-width:100%;overflow:hidden;text-overflow:ellipsis;vertical-align:middle;white-space:nowrap}.ydb-cell-with-popover__popover .g-popover__handler{display:inline}.ydb-usage-label_overload{background-color:var(--ydb-color-status-red);color:var(--g-color-text-light-primary)}.stack{--ydb-stack-base-z-index:100;--ydb-stack-offset-x:4px;--ydb-stack-offset-y:4px;--ydb-stack-offset-x-hover:4px;--ydb-stack-offset-y-hover:8px;position:relative}.stack__layer{background:var(--g-color-base-background);transition:transform .1s ease-out}.stack__layer:first-child{position:relative;z-index:var(--ydb-stack-base-z-index)}.stack__layer+.stack__layer{height:100%;left:0;position:absolute;top:0;transform:translate(calc(var(--ydb-stack-level)*var(--ydb-stack-offset-x)),calc(var(--ydb-stack-level)*var(--ydb-stack-offset-y)));width:100%;z-index:calc(var(--ydb-stack-base-z-index) - var(--ydb-stack-level))}.stack:hover .stack__layer:first-child{transform:translate(calc(var(--ydb-stack-offset-x-hover)*-1),calc(var(--ydb-stack-offset-y-hover)*-1))}.stack:hover .stack__layer+.stack__layer{transform:translate(calc(var(--ydb-stack-level)*var(--ydb-stack-offset-x-hover)*2 - var(--ydb-stack-offset-x-hover)),calc(var(--ydb-stack-level)*var(--ydb-stack-offset-y-hover)*2 - var(--ydb-stack-offset-y-hover)))}.storage-disk-progress-bar{--progress-bar-full-height:var(--g-text-body-3-line-height);--progress-bar-compact-height:12px;--entity-state-border-color:var(--g-color-base-misc-heavy);--entity-state-background-color:var(--g-color-base-misc-light);--entity-state-fill-color:var(--g-color-base-misc-medium);--entity-state-font-color:var(--g-color-text-primary);background-color:var(--entity-state-background-color);border:1px solid var(--entity-state-border-color);border-radius:4px;color:var(--g-color-text-primary);height:var(--progress-bar-full-height);min-width:50px;position:relative;text-align:center;z-index:0}.storage-disk-progress-bar_green{--entity-state-font-color:var(--g-color-text-positive);--entity-state-border-color:var(--g-color-base-positive-heavy);--entity-state-background-color:var(--g-color-base-positive-light);--entity-state-fill-color:var(--g-color-base-positive-medium)}.storage-disk-progress-bar_blue{--entity-state-font-color:var(--g-color-text-info);--entity-state-border-color:var(--g-color-base-info-heavy);--entity-state-background-color:var(--g-color-base-info-light);--entity-state-fill-color:var(--g-color-base-info-medium)}.storage-disk-progress-bar_yellow{--entity-state-font-color:var(--g-color-text-warning);--entity-state-border-color:var(--g-color-base-warning-heavy);--entity-state-background-color:var(--g-color-base-yellow-light);--entity-state-fill-color:var(--g-color-base-yellow-medium)}.storage-disk-progress-bar_orange{--entity-state-font-color:var(--g-color-private-orange-500);--entity-state-border-color:var(--ydb-color-status-orange);--entity-state-background-color:var(--g-color-private-orange-100);--entity-state-fill-color:var(--g-color-private-orange-300)}.storage-disk-progress-bar_red{--entity-state-font-color:var(--g-color-text-danger);--entity-state-border-color:var(--g-color-base-danger-heavy);--entity-state-background-color:var(--g-color-base-danger-light);--entity-state-fill-color:var(--g-color-base-danger-medium)}.storage-disk-progress-bar__grey{--entity-state-font-color:var(--g-color-text-secondary);--entity-state-border-color:var(--g-color-line-generic-hover)}.storage-disk-progress-bar_compact{border-radius:2px;height:var(--progress-bar-compact-height);min-width:0}.storage-disk-progress-bar_faded{background-color:initial}.storage-disk-progress-bar_inactive{opacity:.5}.storage-disk-progress-bar_empty{background-color:initial;border-style:dashed;color:var(--g-color-text-hint)}.storage-disk-progress-bar__fill-bar{background-color:var(--entity-state-fill-color);border-radius:3px 0 0 3px;height:100%;left:0;position:absolute;top:0}.storage-disk-progress-bar__fill-bar_faded{background-color:var(--entity-state-background-color)}.storage-disk-progress-bar__fill-bar_compact{border-radius:1px}.storage-disk-progress-bar__fill-bar_inverted{border-radius:0 3px 3px 0;left:auto;right:0}.storage-disk-progress-bar__title{color:inherit;font-size:var(--g-text-body-1-font-size);line-height:calc(var(--progress-bar-full-height) - 2px);position:relative;z-index:2}.ydb-critical-dialog{padding-top:var(--g-spacing-3)}.ydb-critical-dialog__warning-icon{color:var(--ydb-color-status-yellow);margin-right:16px}.ydb-critical-dialog__error-icon{color:var(--ydb-color-status-red);height:24px;margin-right:16px}.ydb-critical-dialog__body{display:flex;flex-direction:column;gap:var(--g-spacing-6)}.ydb-critical-dialog__body-message{align-items:center;display:flex}.ydb-critical-dialog__body-message_error,.ydb-critical-dialog__body-message_warning{border:1px solid;border-radius:5px;border-radius:var(--g-modal-border-radius,5px);padding:var(--g-spacing-4) var(--g-spacing-5)}.ydb-critical-dialog__body-message_warning{border-color:var(--ydb-color-status-yellow)}.ydb-critical-dialog__body-message_error{border-color:var(--ydb-color-status-red)}.pdisk-storage-popup{padding:12px}.g-checkbox__indicator{cursor:inherit;display:inline-block;position:relative}.g-checkbox__indicator:before{background-color:initial;border:1px solid var(--g-color-line-generic-accent);border-radius:4px;content:"";inset:0;position:absolute;transition:background .1s linear}.g-checkbox__indicator:after{content:" ";visibility:hidden}.g-checkbox__icon{align-items:center;color:#0000;display:flex;inset:0;justify-content:center;pointer-events:none;position:absolute;transform:translateY(-5px);transition:color .1s,transform .2s;visibility:hidden}.g-checkbox__control{border:none;cursor:inherit;margin:0;opacity:0;outline:none;padding:0}.g-checkbox__control,.g-checkbox__outline{background:none;height:100%;inset-block-start:0;inset-inline-start:0;position:absolute;width:100%}.g-checkbox__outline{border-radius:4px;pointer-events:none}.g-checkbox__control:focus-visible+.g-checkbox__outline{outline:2px solid var(--g-color-line-focus)}.g-checkbox_size_m .g-checkbox__icon-svg_type_tick{height:10px;width:8px}.g-checkbox_size_m .g-checkbox__icon-svg_type_dash{height:12px;width:12px}.g-checkbox_size_m .g-checkbox__indicator{height:14px;width:14px}.g-checkbox_size_l .g-checkbox__icon-svg_type_tick{height:9px;width:11px}.g-checkbox_size_l .g-checkbox__icon-svg_type_dash{height:15px;width:15px}.g-checkbox_size_l .g-checkbox__indicator{height:17px;width:17px}.g-checkbox:hover .g-checkbox__indicator:before{border-color:var(--g-color-line-generic-accent-hover)}.g-checkbox_checked .g-checkbox__indicator:before,.g-checkbox_indeterminate .g-checkbox__indicator:before{background-color:var(--g-color-base-brand);border:#0000}.g-checkbox_checked .g-checkbox__icon,.g-checkbox_indeterminate .g-checkbox__icon{color:var(--g-color-text-brand-contrast);transform:translateX(0);visibility:visible}.g-checkbox_disabled .g-checkbox__indicator:before{background-color:var(--g-color-base-generic-accent-disabled);border:#0000}.g-checkbox_disabled.g-checkbox_checked .g-checkbox__indicator:before,.g-checkbox_disabled.g-checkbox_indeterminate .g-checkbox__indicator:before{background-color:var(--g-color-base-brand);opacity:.5}.vdisk-storage-popup{padding:12px}.vdisk-storage-popup .info-viewer+.info-viewer{border-top:1px solid var(--g-color-line-generic);margin-top:8px;padding-top:8px}.vdisk-storage-popup__donor-label{margin-bottom:8px}.g-dialog{--_--side-padding:32px;--_--close-button-space:0px;display:flex;flex-direction:column;position:relative;width:var(--_--width);width:var(--g-dialog-width,var(--_--width))}.g-dialog_has-scroll{max-height:calc(100vh - 40px);max-height:calc(100vh - var(--g-modal-margin, 20px)*2);overflow-y:auto}.g-dialog_size_s{--_--width:480px}.g-dialog_size_m{--_--width:720px}.g-dialog_size_l{--_--width:900px}.g-dialog_has-close{--_--close-button-space:24px}.ydb-vdisk-component,.ydb-vdisk-component__content{border-radius:4px}.g-modal{-webkit-overflow-scrolling:touch;-webkit-tap-highlight-color:rgba(0,0,0,0);background-color:var(--g-color-sfx-veil);display:none;inset:0;margin:-9999px 0 0 -9999px;overflow:auto;position:fixed;visibility:hidden;z-index:1000}.g-modal__content-aligner{align-items:center;display:inline-flex;justify-content:center;min-height:100%;min-width:100%}.g-modal__content-wrapper{margin:20px;margin:var(--g-modal-margin,20px);overflow-x:hidden}.g-modal__content,.g-modal__content-wrapper{border-radius:5px;border-radius:var(--g-modal-border-radius,5px)}.g-modal__content{background-color:var(--g-color-base-modal)}.g-modal__content_has-scroll{max-height:calc(100vh - 40px);max-height:calc(100vh - var(--g-modal-margin, 20px)*2);overflow-y:auto}.g-modal,.g-modal__content{animation-fill-mode:forwards;animation-timing-function:ease-out;outline:none}.g-modal_exit_active,.g-modal_open{display:block;margin:0;visibility:visible}.g-modal_appear_active,.g-modal_enter_active{animation-duration:.15s;animation-name:g-modal-open}.g-modal_appear_active .g-modal__content,.g-modal_enter_active .g-modal__content{animation-duration:.15s;animation-name:g-modal-content-open}.g-modal_exit_active{animation-duration:.2s;animation-name:g-modal}@keyframes g-modal{0%{opacity:1}to{opacity:0}}@keyframes g-modal-open{0%{opacity:0}to{opacity:1}}@keyframes g-modal-content-open{0%{transform:scale(.75)}to{transform:scale(1)}}.pdisk-storage{position:relative;width:120px}.pdisk-storage__content{border-radius:4px;display:block;position:relative}.pdisk-storage__vdisks{display:flex;flex-wrap:wrap;gap:2px;margin-bottom:4px}.pdisk-storage__vdisks-item{flex-basis:3px;flex-shrink:0}.data-table__row:hover .pdisk-storage__vdisks-item .stack__layer{background:var(--ydb-data-table-color-hover)}.pdisk-storage__donors-stack{--ydb-stack-offset-x:0px;--ydb-stack-offset-y:-2px;--ydb-stack-offset-x-hover:0px;--ydb-stack-offset-y-hover:-7px}.pdisk-storage__media-type{color:var(--g-color-text-secondary);font-size:var(--g-text-body-1-font-size);line-height:var(--g-text-body-1-line-height);position:absolute;right:4px;top:50%;transform:translateY(-50%)}.g-dialog-btn-close{inset-block-start:14px;inset-inline-end:14px;position:absolute;z-index:1}.ydb-storage-disks{align-items:center;display:flex;flex-direction:row;gap:20px;width:max-content}.ydb-storage-disks__vdisks-wrapper{display:flex;flex-direction:row;flex-grow:1;gap:4px;width:300px}.ydb-storage-disks__pdisks-wrapper{display:flex;flex-direction:row;gap:6px;justify-content:left;width:max-content}.ydb-storage-disks__vdisk-item{flex-basis:8px;flex-shrink:0}.ydb-storage-disks__vdisk-progress-bar{--progress-bar-compact-height:18px;border-radius:4px}.ydb-storage-disks__pdisk-item{width:80px}.ydb-storage-disks__pdisk-progress-bar{--progress-bar-full-height:20px;padding-left:var(--g-spacing-2);text-align:left}.g-dialog-footer{align-items:center;display:flex;padding:28px var(--_--side-padding)}.g-dialog-footer__bts-wrapper{display:flex;gap:10px}.g-dialog-footer__children{align-items:center;display:flex;flex-grow:1;height:100%}.g-dialog-footer__button{min-width:128px;position:relative}.g-dialog-footer__error{color:var(--g-color-text-danger);padding:10px}.ydb-storage-groups-columns__disks-column,.ydb-storage-groups-columns__vdisks-column{overflow:visible}.ydb-storage-groups-columns__vdisks-wrapper{display:flex;gap:10px;justify-content:center;min-width:500px}.ydb-storage-groups-columns__vdisks-item{flex-grow:1;max-width:200px}.data-table__row:hover .ydb-storage-groups-columns__vdisks-item .stack__layer{background:var(--ydb-data-table-color-hover)}.ydb-storage-groups-columns__pool-name-wrapper{width:230px}.ydb-storage-groups-columns__group-id{font-weight:500}.g-dialog-header{align-items:center;color:var(--g-color-text-primary);display:flex;justify-content:flex-start;line-height:24px;padding-block:20px 10px;padding-inline:var(--_--side-padding) calc(var(--_--side-padding) + var(--_--close-button-space)*var(--g-flow-is-ltr) + var(--_--close-button-space)*var(--g-flow-is-rtl))}.g-dialog-header__caption{font-size:var(--g-text-subheader-3-font-size);font-weight:var(--g-text-subheader-font-weight);line-height:var(--g-text-subheader-3-line-height)}.g-dialog-body{flex:1 1 auto;overflow-y:auto;padding:10px var(--_--side-padding)}.g-dialog-body_has-borders{border-block-end:1px solid var(--g-color-line-generic)}.g-dialog-body_has-borders,.g-dialog-divider{border-block-start:1px solid var(--g-color-line-generic)}.g-dialog-divider{margin:0 calc(var(--_--side-padding)*-1)}.link{color:var(--g-color-text-link);text-decoration:none}.link_external{margin-right:10px}.link:hover{color:var(--g-color-text-link-hover)}.global-storage__search{width:238px}.global-storage__table .g-tooltip{height:var(--g-text-body-2-line-height)!important}.global-storage .entity-status{justify-content:center}.global-storage__groups-wrapper{padding-right:20px}.developer-ui-link-button{display:none}.data-table__row:hover .developer-ui-link-button,.developer-ui-link-button_visible,.ydb-paginated-table__row:hover .developer-ui-link-button{display:inline-block}.ydb-storage-nodes-columns__pdisks-column{overflow:visible}.ydb-storage-nodes-columns__pdisks-wrapper{align-items:flex-end;display:flex;height:40px;justify-content:left;width:max-content}.ydb-storage-nodes-columns__pdisks-item{flex-grow:1;margin-right:10px;max-width:200px}.ydb-storage-nodes-columns__pdisks-item:last-child{margin-right:0}.ydb-resizeable-data-table{display:flex;padding-right:20px;width:max-content}.ydb-vdisk-info__links{display:flex;flex-flow:row wrap;gap:var(--g-spacing-2)}.ydb-vdisk-info__title{display:flex;flex-direction:row;gap:var(--g-spacing-2)} \ No newline at end of file
diff --git a/ydb/core/viewer/monitoring/static/css/5384.3206aeb6.chunk.css b/ydb/core/viewer/monitoring/static/css/7963.dd2b9fe2.chunk.css
index 34cf2d3ce4..5c88db036c 100644
--- a/ydb/core/viewer/monitoring/static/css/5384.3206aeb6.chunk.css
+++ b/ydb/core/viewer/monitoring/static/css/7963.dd2b9fe2.chunk.css
@@ -1 +1 @@
-.tag{background:var(--g-color-base-generic);border-radius:3px;color:var(--g-color-text-primary);font-size:12px;margin-right:5px;padding:2px 5px;text-transform:uppercase}.tag:last-child{margin-right:0}.tag_type_blue{background-color:var(--g-color-celestial-thunder)}.tags{align-items:center;display:flex;flex-wrap:wrap}.basic-node-viewer__link,.link{color:var(--g-color-text-link);text-decoration:none}.basic-node-viewer__link:hover,.link:hover{color:var(--g-color-text-link-hover)}.basic-node-viewer{align-items:center;display:flex;font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height);margin:15px 0}.basic-node-viewer__title{font-weight:600;margin:0 20px 0 0;text-transform:uppercase}.basic-node-viewer__id{margin:0 15px 0 24px}.basic-node-viewer__label{color:var(--g-color-text-hint);line-height:18px;margin-right:10px;white-space:nowrap}.basic-node-viewer__link{margin-left:5px}.ydb-pool-usage{font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height)}.ydb-pool-usage__info{align-items:center;display:flex;justify-content:space-between}.ydb-pool-usage__pool-name{color:var(--g-color-text-primary)}.ydb-pool-usage__value{align-items:center;display:flex}.ydb-pool-usage__threads{color:var(--g-color-text-hint);font-size:var(--g-text-body-1-font-size)}.ydb-pool-usage__percents{color:var(--g-color-text-primary);font-size:var(--g-text-body-1-font-size);margin-right:2px}.ydb-pool-usage__visual{align-items:center;background-color:var(--g-color-base-generic-accent);border-radius:4px;display:flex;font-size:var(--g-text-body-2-font-size);height:6px;justify-content:center;overflow:hidden;position:relative}.ydb-pool-usage__usage-line{height:100%;left:0;position:absolute;top:0}.ydb-pool-usage__usage-line_type_green{background-color:var(--ydb-color-status-green)}.ydb-pool-usage__usage-line_type_blue{background-color:var(--ydb-color-status-blue)}.ydb-pool-usage__usage-line_type_yellow{background-color:var(--ydb-color-status-yellow)}.ydb-pool-usage__usage-line_type_red{background-color:var(--ydb-color-status-red)}.full-node-viewer{font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height)}.full-node-viewer__common-info{align-items:stretch;display:flex;flex-direction:column;justify-content:flex-start}.full-node-viewer__section{border-radius:10px}.full-node-viewer__section_pools{grid-gap:7px 20px;display:grid;grid-template-columns:110px 110px}.full-node-viewer .info-viewer__label{min-width:100px}.full-node-viewer__section-title{font-weight:600;margin:15px 0 10px}.ydb-paginated-table{--paginated-table-cell-vertical-padding:5px;--paginated-table-cell-horizontal-padding:10px;--paginated-table-border-color:var(--g-color-base-generic-hover);--paginated-table-hover-color:var(--g-color-base-float-hover);font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height);width:100%}.ydb-paginated-table__table{border-collapse:initial;border-spacing:0;max-width:100%;table-layout:fixed;width:max-content}.ydb-paginated-table__table th{padding:0}.ydb-paginated-table__row{position:relative;z-index:1}.ydb-paginated-table__row:hover{background:var(--paginated-table-hover-color)}.ydb-paginated-table__row_empty:hover{background-color:initial}.ydb-paginated-table__head{background-color:var(--g-color-base-background);left:0;position:sticky;top:0;z-index:2}.ydb-paginated-table__sort-icon-container{color:inherit;display:flex;justify-content:center}.ydb-paginated-table__sort-icon-container_shadow{opacity:.15}.ydb-paginated-table__sort-icon_desc{transform:rotate(180deg)}.ydb-paginated-table__head-cell-wrapper{border-bottom:1px solid var(--paginated-table-border-color);display:table-cell;overflow-x:hidden;position:relative}.ydb-paginated-table__head-cell{align-items:center;display:flex;flex-direction:row;max-width:100%;padding:var(--paginated-table-cell-vertical-padding) var(--paginated-table-cell-horizontal-padding);width:100%}.ydb-paginated-table__head-cell_align_left{justify-content:left}.ydb-paginated-table__head-cell_align_center{justify-content:center}.ydb-paginated-table__head-cell_align_right{justify-content:right}.ydb-paginated-table__head-cell{cursor:default;font-weight:700;gap:8px}.ydb-paginated-table__head-cell_sortable{cursor:pointer}.ydb-paginated-table__head-cell_sortable.ydb-paginated-table__head-cell_align_right{flex-direction:row-reverse}.ydb-paginated-table__head-cell-content{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:min-content}.ydb-paginated-table__row-cell{border-bottom:1px solid var(--paginated-table-border-color);display:table-cell;max-width:100%;overflow-x:hidden;padding:var(--paginated-table-cell-vertical-padding) var(--paginated-table-cell-horizontal-padding);text-overflow:ellipsis;vertical-align:middle;white-space:nowrap;width:100%}.ydb-paginated-table__row-cell_align_left{text-align:left}.ydb-paginated-table__row-cell_align_center{text-align:center}.ydb-paginated-table__row-cell_align_right{text-align:right}.ydb-paginated-table__resize-handler{background-color:var(--g-color-base-generic);cursor:col-resize;height:100%;position:absolute;right:0;top:0;visibility:hidden;width:6px}.ydb-paginated-table__head-cell-wrapper:hover>.ydb-paginated-table__resize-handler,.ydb-paginated-table__resize-handler_resizing{visibility:visible}.ydb-paginated-table__resizeable-table-container{padding-right:20px;width:max-content}.ydb-paginated-table__row-skeleton:after{animation-delay:.2s}.ydb-pdisk-info__links{display:flex;flex-flow:row wrap;gap:var(--g-spacing-2)}.kv-node-structure{display:flex;flex-shrink:0;flex:1 1 auto;flex-direction:column;font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height);overflow:auto;position:relative}.kv-node-structure__error{padding:20px 20px 0}.kv-node-structure__pdisk{border:1px solid var(--g-color-line-generic);border-radius:5px;display:flex;flex-direction:column;margin-bottom:8px;padding:0 10px 0 20px;width:573px}.kv-node-structure__pdisk-id{align-items:flex-end;display:flex}.kv-node-structure__pdisk-header{align-items:center;display:flex;height:48px;justify-content:space-between}.kv-node-structure__pdisk-title-wrapper{align-items:center;display:flex;font-weight:600;gap:16px}.kv-node-structure__pdisk-title-wrapper .entity-status__status-icon{margin-right:0}.kv-node-structure__pdisk-title-item{display:flex;gap:4px}.kv-node-structure__pdisk-title-item-label{color:var(--g-color-text-secondary);font-weight:400}.kv-node-structure__pdisk-title-id{min-width:110px}.kv-node-structure__pdisk-title-type{justify-content:flex-end;min-width:50px}.kv-node-structure__pdisk-title-size{min-width:150px}.kv-node-structure__pdisk-details{margin-bottom:20px}.kv-node-structure__link{color:var(--g-color-base-brand);text-decoration:none}.kv-node-structure__vdisks-header{font-weight:600}.kv-node-structure__vdisks-container{margin-bottom:42px}.kv-node-structure__vdisk-details{max-height:90vh;max-width:none;min-width:200px;overflow:auto}.kv-node-structure__vdisk-details .vdisk-pdisk-node__column{margin-bottom:0}.kv-node-structure__vdisk-details .vdisk-pdisk-node__section{padding-bottom:0}.kv-node-structure__vdisk-id{align-items:center;display:flex}.kv-node-structure__vdisk-details-button_selected,.kv-node-structure__vdisk-id_selected{color:var(--g-color-text-info)}.kv-node-structure__external-button{align-items:center;display:inline-flex;margin-left:4px;transform:translateY(-1px)}.kv-node-structure__external-button_hidden{visibility:hidden}.kv-node-structure .data-table__row:hover .kv-node-structure__external-button_hidden{visibility:visible}.kv-node-structure__selected-vdisk{animation:onSelectedVdiskAnimation 4s}@keyframes onSelectedVdiskAnimation{0%{background-color:var(--g-color-base-info-light-hover)}}.link{color:var(--g-color-text-link);text-decoration:none}.link_external{margin-right:10px}.link:hover{color:var(--g-color-text-link-hover)}.node{display:flex;flex:1 1 auto;flex-direction:column;overflow:auto}.node__header{margin:16px 20px}.node__content{display:flex;flex:1 1 auto;flex-direction:column;overflow:auto;position:relative}.node__storage{height:100%;overflow:auto;padding:0 20px}.node__tabs{--g-tabs-border-width:0;align-items:center;box-shadow:inset 0 -1px 0 0 var(--g-color-line-generic);display:flex;justify-content:space-between;padding:0 20px}.node__tab{margin-right:40px;text-decoration:none}.node__tab:last-child{margin-right:0}.node__tab:first-letter{text-transform:uppercase}.node__overview-wrapper{padding:0 20px 20px}.node__node-page-wrapper{height:100%;padding:20px}.node__error{padding:0 20px} \ No newline at end of file
+.tag{background:var(--g-color-base-generic);border-radius:3px;color:var(--g-color-text-primary);font-size:12px;margin-right:5px;padding:2px 5px;text-transform:uppercase}.tag:last-child{margin-right:0}.tag_type_blue{background-color:var(--g-color-celestial-thunder)}.tags{align-items:center;display:flex;flex-wrap:wrap}.basic-node-viewer__link,.link{color:var(--g-color-text-link);text-decoration:none}.basic-node-viewer__link:hover,.link:hover{color:var(--g-color-text-link-hover)}.basic-node-viewer{align-items:center;display:flex;font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height);margin:15px 0}.basic-node-viewer__title{font-weight:600;margin:0 20px 0 0;text-transform:uppercase}.basic-node-viewer__id{margin:0 15px 0 24px}.basic-node-viewer__label{color:var(--g-color-text-hint);line-height:18px;margin-right:10px;white-space:nowrap}.basic-node-viewer__link{margin-left:5px}.ydb-pool-usage{font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height)}.ydb-pool-usage__info{align-items:center;display:flex;justify-content:space-between}.ydb-pool-usage__pool-name{color:var(--g-color-text-primary)}.ydb-pool-usage__value{align-items:center;display:flex}.ydb-pool-usage__threads{color:var(--g-color-text-hint);font-size:var(--g-text-body-1-font-size)}.ydb-pool-usage__percents{color:var(--g-color-text-primary);font-size:var(--g-text-body-1-font-size);margin-right:2px}.ydb-pool-usage__visual{align-items:center;background-color:var(--g-color-base-generic-accent);border-radius:4px;display:flex;font-size:var(--g-text-body-2-font-size);height:6px;justify-content:center;overflow:hidden;position:relative}.ydb-pool-usage__usage-line{height:100%;left:0;position:absolute;top:0}.ydb-pool-usage__usage-line_type_green{background-color:var(--ydb-color-status-green)}.ydb-pool-usage__usage-line_type_blue{background-color:var(--ydb-color-status-blue)}.ydb-pool-usage__usage-line_type_yellow{background-color:var(--ydb-color-status-yellow)}.ydb-pool-usage__usage-line_type_red{background-color:var(--ydb-color-status-red)}.full-node-viewer{font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height)}.full-node-viewer__common-info{align-items:stretch;display:flex;flex-direction:column;justify-content:flex-start}.full-node-viewer__section{border-radius:10px}.full-node-viewer__section_pools{grid-gap:7px 20px;display:grid;grid-template-columns:110px 110px}.full-node-viewer .info-viewer__label{min-width:100px}.full-node-viewer__section-title{font-weight:600;margin:15px 0 10px}.ydb-paginated-table{--paginated-table-cell-vertical-padding:5px;--paginated-table-cell-horizontal-padding:10px;--paginated-table-border-color:var(--g-color-base-generic-hover);--paginated-table-hover-color:var(--g-color-base-float-hover);font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height);width:100%}.ydb-paginated-table__table{border-collapse:initial;border-spacing:0;max-width:100%;table-layout:fixed;width:max-content}.ydb-paginated-table__table th{padding:0}.ydb-paginated-table__row{position:relative;z-index:1}.ydb-paginated-table__row:hover{background:var(--paginated-table-hover-color)}.ydb-paginated-table__row_empty:hover{background-color:initial}.ydb-paginated-table__head{background-color:var(--g-color-base-background);left:0;position:sticky;top:0;z-index:2}.ydb-paginated-table__sort-icon-container{color:inherit;display:flex;justify-content:center}.ydb-paginated-table__sort-icon-container_shadow{opacity:.15}.ydb-paginated-table__sort-icon_desc{transform:rotate(180deg)}.ydb-paginated-table__head-cell-wrapper{border-bottom:1px solid var(--paginated-table-border-color);display:table-cell;overflow-x:hidden;position:relative}.ydb-paginated-table__head-cell{align-items:center;display:flex;flex-direction:row;max-width:100%;padding:var(--paginated-table-cell-vertical-padding) var(--paginated-table-cell-horizontal-padding);width:100%}.ydb-paginated-table__head-cell_align_left{justify-content:left}.ydb-paginated-table__head-cell_align_center{justify-content:center}.ydb-paginated-table__head-cell_align_right{justify-content:right}.ydb-paginated-table__head-cell{cursor:default;font-weight:700;gap:8px}.ydb-paginated-table__head-cell_sortable{cursor:pointer}.ydb-paginated-table__head-cell_sortable.ydb-paginated-table__head-cell_align_right{flex-direction:row-reverse}.ydb-paginated-table__head-cell-content{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:min-content}.ydb-paginated-table__row-cell{border-bottom:1px solid var(--paginated-table-border-color);display:table-cell;max-width:100%;overflow-x:hidden;padding:var(--paginated-table-cell-vertical-padding) var(--paginated-table-cell-horizontal-padding);text-overflow:ellipsis;vertical-align:middle;white-space:nowrap;width:100%}.ydb-paginated-table__row-cell_align_left{text-align:left}.ydb-paginated-table__row-cell_align_center{text-align:center}.ydb-paginated-table__row-cell_align_right{text-align:right}.ydb-paginated-table__resize-handler{background-color:var(--g-color-base-generic);cursor:col-resize;height:100%;position:absolute;right:0;top:0;visibility:hidden;width:6px}.ydb-paginated-table__head-cell-wrapper:hover>.ydb-paginated-table__resize-handler,.ydb-paginated-table__resize-handler_resizing{visibility:visible}.ydb-paginated-table__resizeable-table-container{padding-right:20px;width:max-content}.ydb-paginated-table__row-skeleton:after{animation-delay:.2s}.ydb-table-group{border:1px solid var(--g-color-line-generic);border-radius:var(--g-spacing-2);display:flex;flex-direction:column;margin-bottom:20px;width:100%}.ydb-table-group__button{background:#0000 none repeat 0 0/auto auto padding-box border-box scroll;background:initial;border:initial;cursor:pointer;padding:8px 0}.ydb-table-group__title-wrapper{align-items:center;display:flex;flex-direction:row;gap:var(--g-spacing-2);justify-content:flex-start;left:0;padding-left:20px;position:sticky;width:max-content}.ydb-table-group__title{display:flex;flex-direction:row;gap:var(--g-spacing-4)}.ydb-table-group__count{display:flex;flex-direction:row;gap:var(--g-spacing-3)}.ydb-table-group__content{padding:12px 0 20px 20px}.ydb-pdisk-info__links{display:flex;flex-flow:row wrap;gap:var(--g-spacing-2)}.kv-node-structure{display:flex;flex-shrink:0;flex:1 1 auto;flex-direction:column;font-size:var(--g-text-body-2-font-size);line-height:var(--g-text-body-2-line-height);overflow:auto;position:relative}.kv-node-structure__error{padding:20px 20px 0}.kv-node-structure__pdisk{border:1px solid var(--g-color-line-generic);border-radius:5px;display:flex;flex-direction:column;margin-bottom:8px;padding:0 10px 0 20px;width:573px}.kv-node-structure__pdisk-id{align-items:flex-end;display:flex}.kv-node-structure__pdisk-header{align-items:center;display:flex;height:48px;justify-content:space-between}.kv-node-structure__pdisk-title-wrapper{align-items:center;display:flex;font-weight:600;gap:16px}.kv-node-structure__pdisk-title-wrapper .entity-status__status-icon{margin-right:0}.kv-node-structure__pdisk-title-item{display:flex;gap:4px}.kv-node-structure__pdisk-title-item-label{color:var(--g-color-text-secondary);font-weight:400}.kv-node-structure__pdisk-title-id{min-width:110px}.kv-node-structure__pdisk-title-type{justify-content:flex-end;min-width:50px}.kv-node-structure__pdisk-title-size{min-width:150px}.kv-node-structure__pdisk-details{margin-bottom:20px}.kv-node-structure__link{color:var(--g-color-base-brand);text-decoration:none}.kv-node-structure__vdisks-header{font-weight:600}.kv-node-structure__vdisks-container{margin-bottom:42px}.kv-node-structure__vdisk-details{max-height:90vh;max-width:none;min-width:200px;overflow:auto}.kv-node-structure__vdisk-details .vdisk-pdisk-node__column{margin-bottom:0}.kv-node-structure__vdisk-details .vdisk-pdisk-node__section{padding-bottom:0}.kv-node-structure__vdisk-id{align-items:center;display:flex}.kv-node-structure__vdisk-details-button_selected,.kv-node-structure__vdisk-id_selected{color:var(--g-color-text-info)}.kv-node-structure__external-button{align-items:center;display:inline-flex;margin-left:4px;transform:translateY(-1px)}.kv-node-structure__external-button_hidden{visibility:hidden}.kv-node-structure .data-table__row:hover .kv-node-structure__external-button_hidden{visibility:visible}.kv-node-structure__selected-vdisk{animation:onSelectedVdiskAnimation 4s}@keyframes onSelectedVdiskAnimation{0%{background-color:var(--g-color-base-info-light-hover)}}.link{color:var(--g-color-text-link);text-decoration:none}.link_external{margin-right:10px}.link:hover{color:var(--g-color-text-link-hover)}.node{display:flex;flex:1 1 auto;flex-direction:column;overflow:auto}.node__header{margin:16px 20px}.node__content{display:flex;flex:1 1 auto;flex-direction:column;overflow:auto;position:relative}.node__storage{height:100%;overflow:auto;padding:0 20px}.node__tabs{--g-tabs-border-width:0;align-items:center;box-shadow:inset 0 -1px 0 0 var(--g-color-line-generic);display:flex;justify-content:space-between;padding:0 20px}.node__tab{margin-right:40px;text-decoration:none}.node__tab:last-child{margin-right:0}.node__tab:first-letter{text-transform:uppercase}.node__overview-wrapper{padding:0 20px 20px}.node__node-page-wrapper{height:100%;padding:20px}.node__error{padding:0 20px} \ No newline at end of file
diff --git a/ydb/core/viewer/monitoring/static/js/1878.bfc449c6.chunk.js b/ydb/core/viewer/monitoring/static/js/1878.b8595333.chunk.js
index 947d9de91d..8da8829031 100644
--- a/ydb/core/viewer/monitoring/static/js/1878.bfc449c6.chunk.js
+++ b/ydb/core/viewer/monitoring/static/js/1878.b8595333.chunk.js
@@ -1 +1 @@
-"use strict";(self.webpackChunkydb_embedded_ui=self.webpackChunkydb_embedded_ui||[]).push([[1878],{50422:(e,t,n)=>{n.d(t,{q:()=>p});var a=n(84317),l=n(17176),o=n(2418),s=n(905),r=n(24362),i=n(17096),d=n(30817);const c=JSON.parse('{"None":"None","15 sec":"15 sec","1 min":"1 min","2 min":"2 min","5 min":"5 min","Refresh":"Refresh"}'),u=(0,d.wZ)("ydb-diagnostics-autorefresh-control",{en:c});var h=n(75859);const m=(0,r.cn)("auto-refresh-control");function p(e){let{className:t}=e;const n=(0,i.zL)(),[r,d]=(0,i.Rj)();return(0,h.jsxs)("div",{className:m(null,t),children:[(0,h.jsx)(l.z,{view:"flat",onClick:()=>{n(s.h.util.invalidateTags(["All"]))},extraProps:{"aria-label":u("Refresh")},children:(0,h.jsx)(l.z.Icon,{children:(0,h.jsx)(a.Z,{})})}),(0,h.jsxs)(o.P,{value:[String(r)],onUpdate:e=>{d(Number(e))},width:85,children:[(0,h.jsx)(o.P.Option,{value:"0",children:u("None")}),(0,h.jsx)(o.P.Option,{value:"15000",children:u("15 sec")}),(0,h.jsx)(o.P.Option,{value:"60000",children:u("1 min")}),(0,h.jsx)(o.P.Option,{value:"120000",children:u("2 min")}),(0,h.jsx)(o.P.Option,{value:"300000",children:u("5 min")})]})]})}},65070:(e,t,n)=>{n.d(t,{U:()=>d});var a=n(68963),l=n(17176),o=n(68330),s=n(86793),r=n(45743),i=n(75859);function d(e){let{children:t,onConfirmAction:n,onConfirmActionSuccess:d,dialogHeader:c,dialogText:u,retryButtonText:h,buttonDisabled:m=!1,buttonView:p="action",buttonClassName:g,withPopover:b=!1,popoverContent:v,popoverPlacement:x="right",popoverDisabled:f=!0}=e;const[w,j]=a.useState(!1),[y,N]=a.useState(!1),[T,I]=a.useState(!1),S=()=>(0,i.jsx)(l.z,{onClick:()=>j(!0),view:p,disabled:m,loading:!m&&y,className:g,children:t});return(0,i.jsxs)(a.Fragment,{children:[(0,i.jsx)(s.g,{visible:w,header:c,text:u,withRetry:T,retryButtonText:h,onConfirm:async e=>{N(!0),await n(e)},onConfirmActionSuccess:async()=>{I(!1);try{await(null===d||void 0===d?void 0:d())}finally{N(!1)}},onConfirmActionError:e=>{I((0,r.q)(e)),N(!1)},onClose:()=>{j(!1)}}),b?(0,i.jsx)(o.J,{content:v,placement:x,disabled:f,children:S()}):S()]})}},90861:(e,t,n)=>{n.d(t,{m:()=>u});var a=n(27320),l=n(17176),o=n(11050),s=n(81434),r=n(24362),i=n(75859);const d=(0,r.cn)("clipboard-button");function c(e){let{className:t,status:n,title:s,...r}=e;return(0,i.jsx)(a.u,{content:"success"===n?"Copied!":s||"Copy",placement:"bottom-start",children:(0,i.jsx)(l.z,{...r,className:d(null,t),children:(0,i.jsx)(l.z.Icon,{children:(0,i.jsx)(o.K,{status:n,size:16})})})})}function u(e){let{text:t,...n}=e;return(0,i.jsx)(s.h,{text:t,timeout:1e3,children:e=>(0,i.jsx)(c,{...n,status:e})})}},86793:(e,t,n)=>{n.d(t,{g:()=>b});var a=n(68963),l=n(76506),o=n(71586),s=n(48897),r=n(25822),i=n(88776),d=n(24362),c=n(30817);const u=JSON.parse('{"default-error":"Something went wrong, action cannot be completed","no-rights-error":"You don\'t have enough rights to complete the operation","button-confirm":"Confirm","button-retry":"Retry","button-cancel":"Cancel","button-close":"Close","checkbox-text":"I understand what I\'m doing"}'),h=(0,c.wZ)("ydb-critical-action-dialog",{en:u});var m=n(75859);const p=(0,d.cn)("ydb-critical-dialog"),g=e=>403===e.status?h("no-rights-error"):e.statusText?e.statusText:h("default-error");function b(e){let{visible:t,header:n,text:d,withRetry:c,retryButtonText:u,withCheckBox:b,onClose:v,onConfirm:x,onConfirmActionSuccess:f,onConfirmActionError:w}=e;const[j,y]=a.useState(!1),[N,T]=a.useState(),[I,S]=a.useState(!1),C=async e=>(y(!0),x(e).then((()=>{f(),v()})).catch((e=>{w(e),T(e)})).finally((()=>{y(!1)})));return(0,m.jsx)(r.V,{open:t,hasCloseButton:!1,className:p(),size:"s",onClose:v,onTransitionExited:()=>{T(void 0),S(!1)},children:N?(0,m.jsxs)(a.Fragment,{children:[(0,m.jsx)(r.V.Header,{caption:n}),(0,m.jsx)(r.V.Body,{className:p("body"),children:(0,m.jsxs)("div",{className:p("body-message",{error:!0}),children:[(0,m.jsx)("span",{className:p("error-icon"),children:(0,m.jsx)(l.Z,{width:"24",height:"22"})}),g(N)]})}),(0,m.jsx)(r.V.Footer,{loading:!1,preset:"default",textButtonApply:c?u||h("button-retry"):void 0,textButtonCancel:h("button-close"),onClickButtonApply:()=>C(!0),onClickButtonCancel:v})]}):(0,m.jsxs)(a.Fragment,{children:[(0,m.jsx)(r.V.Header,{caption:n}),(0,m.jsxs)(r.V.Body,{className:p("body"),children:[(0,m.jsxs)("div",{className:p("body-message",{warning:!0}),children:[(0,m.jsx)("span",{className:p("warning-icon"),children:(0,m.jsx)(i.J,{data:o.Z,size:24})}),d]}),b?(0,m.jsx)(s.X,{checked:I,onUpdate:S,children:h("checkbox-text")}):null]}),(0,m.jsx)(r.V.Footer,{loading:j,preset:"default",textButtonApply:h("button-confirm"),textButtonCancel:h("button-cancel"),propsButtonApply:{type:"submit",disabled:b&&!I},onClickButtonCancel:v,onClickButtonApply:()=>C()})]})})}},45743:(e,t,n)=>{n.d(t,{q:()=>a});const a=e=>Boolean(e&&"object"===typeof e&&"retryPossible"in e&&e.retryPossible)},30832:(e,t,n)=>{n.d(t,{a:()=>r});var a=n(24362),l=n(98366),o=n(75859);const s=(0,a.cn)("ydb-entity-page-title");function r(e){let{entityName:t,status:n,id:a,className:r}=e;return(0,o.jsxs)("div",{className:s(null,r),children:[(0,o.jsx)("span",{className:s("prefix"),children:t}),(0,o.jsx)(l.J,{className:s("icon"),status:n,size:"s"}),a]})}},69214:(e,t,n)=>{n.d(t,{A:()=>u});var a=n(86017),l=n(75850),o=n(24362),s=n(90861),r=n(68036),i=n(98366),d=n(75859);const c=(0,o.cn)("entity-status");function u(e){let{status:t=l.K.Grey,name:n="",label:o,path:u,iconPath:h,size:m="s",mode:p="color",showStatus:g=!0,externalLink:b=!1,withLeftTrim:v=!1,hasClipboardButton:x,clipboardButtonAlwaysVisible:f=!1,className:w,additionalControls:j}=e;const y=()=>g?(0,d.jsx)(i.J,{className:c("icon"),status:t,size:m,mode:p}):null;return(0,d.jsxs)("div",{className:c(null,w),title:n,children:[h?(N=h,(0,d.jsx)(a.r,{target:"_blank",href:N,children:y()})):y(),o&&(0,d.jsx)("span",{title:o,className:c("label",{size:m,state:t.toLowerCase()}),children:o}),(0,d.jsx)("span",{className:c("link",{"with-left-trim":v}),children:u?b?(0,d.jsx)(a.r,{className:c("name"),href:u,children:n}):(0,d.jsx)(r.h,{className:c("name"),to:u,children:n}):n&&(0,d.jsx)("span",{className:c("name"),children:n})}),x&&(0,d.jsx)(s.m,{text:n,size:"s",className:c("clipboard-button",{visible:f})}),j&&(0,d.jsx)("span",{className:c("additional-controls "),children:j})]});var N}},27174:(e,t,n)=>{n.d(t,{B:()=>h});var a=n(77796),l=n(24362),o=n(50422),s=n(56711),r=n(42587),i=n(75859);const d=e=>{let{delay:t=600,className:n}=e;const[a]=(0,r.$)(t);return a?(0,i.jsx)(s.O,{className:n}):null},c=(0,l.cn)("ydb-page-meta");function u(e){let{items:t,loading:n}=e;return(0,i.jsx)("div",{className:c("info"),children:n?(0,i.jsx)(d,{className:c("skeleton")}):t.filter((e=>Boolean(e))).join("\xa0\xa0\xb7\xa0\xa0")})}function h(e){let{className:t,...n}=e;return(0,i.jsxs)(a.k,{gap:1,alignItems:"center",justifyContent:"space-between",className:c(null,t),children:[(0,i.jsx)(u,{...n}),(0,i.jsx)(o.q,{})]})}},2098:(e,t,n)=>{n.d(t,{G:()=>d});var a=n(2639),l=n(19812),o=n(24362),s=n(89712),r=n(75859);const i=(0,o.cn)("ydb-resizeable-data-table");function d(e){let{columnsWidthLSKey:t,columns:n,settings:o,wrapperClassName:d,...c}=e;const[u,h]=(0,s.M)(t),m=(0,a.B)(n,u),p={...o,defaultResizeable:!0};return(0,r.jsx)("div",{className:i(null,d),children:(0,r.jsx)(l.ZP,{theme:"yandex-cloud",columns:m,onResize:h,settings:p,...c})})}},98366:(e,t,n)=>{n.d(t,{J:()=>h});var a=n(67585),l=n(57225),o=n(71586),s=n(88776),r=n(75850),i=n(24362),d=n(75859);const c=(0,i.cn)("ydb-status-icon"),u={[r.K.Blue]:a.Z,[r.K.Yellow]:l.Z,[r.K.Orange]:o.Z,[r.K.Red]:l.Z};function h(e){let{status:t=r.K.Grey,size:n="s",mode:a="color",className:l}=e;const o={state:t.toLowerCase(),size:n};return"icons"===a&&t in u?(0,d.jsx)(s.J,{className:c("status-icon",o,l),data:u[t]}):(0,d.jsx)("div",{className:c("status-color",o,l)})}},97482:(e,t,n)=>{n.d(t,{f:()=>s});var a=n(14979),l=n(83496),o=n(75859);function s(e){let{state:t}=e;return(0,o.jsx)(a._,{theme:(0,l.KR)(t),children:t})}},4259:(e,t,n)=>{n.r(t),n.d(t,{Tablet:()=>fe,b:()=>me});var a=n(68963),l=n(77796),o=n(8179),s=n(17095),r=n(49352),i=n(86974),d=n(52846),c=n(95408),u=n(79023),h=n(30832),m=n(26688),p=n(74170),g=n(96409),b=n(27174),v=n(54665),x=n(14146),f=n(79061),w=n(71698),j=n(76386),y=n(75850),N=n(28164),T=n(24362),I=n(52317),S=n(17096),C=n(3475),_=n(77936);const k=e=>a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),a.createElement("path",{fill:"currentColor",d:"M13.756 10.164c1.665-.962 1.665-3.366 0-4.328L5.251.919C3.584-.045 1.5 1.158 1.5 3.083v9.834c0 1.925 2.084 3.128 3.751 2.164l8.505-4.917Z"}));var z=n(88776),D=n(65070),P=n(30817);const K=JSON.parse('{"tablet.header":"Tablet","tablet.meta-database":"Database","tablet.meta-follower":"Follower","controls.kill":"Restart","controls.stop":"Stop","controls.resume":"Resume","controls.kill-not-allowed":"You don\'t have enough rights to restart tablet","controls.stop-not-allowed":"You don\'t have enough rights to stop tablet","controls.resume-not-allowed":"You don\'t have enough rights to resume tablet","dialog.kill-header":"Restart tablet","dialog.stop-header":"Stop tablet","dialog.resume-header":"Resume tablet","dialog.kill-text":"The tablet will be restarted. Do you want to proceed?","dialog.stop-text":"The tablet will be stopped. Do you want to proceed?","dialog.resume-text":"The tablet will be resumed. Do you want to proceed?","emptyState":"The tablet was not found","label_tablet-history":"Tablets","label_tablet-channels":"Storage"}'),A=(0,P.wZ)("ydb-tablet-page",{en:K});function B(e){return Boolean(e&&"0"!==e)}var R=n(75859);const F=e=>{let{tablet:t}=e;const{TabletId:n,HiveId:o}=t,s=(0,S.ix)(x.VH),[r]=j._.useKillTabletMutation(),[i]=j._.useStopTabletMutation(),[d]=j._.useResumeTabletMutation();if(!n)return null;const c=B(o),u=t.State===N.g.Stopped,h=t.State!==N.g.Stopped&&t.State!==N.g.Dead,m=t.State===N.g.Stopped||t.State===N.g.Deleted;return(0,R.jsxs)(l.k,{gap:2,wrap:"nowrap",children:[(0,R.jsxs)(D.U,{dialogHeader:A("dialog.kill-header"),dialogText:A("dialog.kill-text"),onConfirmAction:()=>r({id:n}).unwrap(),buttonDisabled:u||!s,withPopover:!0,buttonView:"normal",popoverContent:A("controls.kill-not-allowed"),popoverPlacement:"bottom",popoverDisabled:s,children:[(0,R.jsx)(z.J,{data:C.Z}),A("controls.kill")]}),c&&(0,R.jsxs)(a.Fragment,{children:[(0,R.jsxs)(D.U,{dialogHeader:A("dialog.stop-header"),dialogText:A("dialog.stop-text"),onConfirmAction:()=>i({id:n,hiveId:o}).unwrap(),buttonDisabled:m||!s,withPopover:!0,buttonView:"normal",popoverContent:A("controls.stop-not-allowed"),popoverPlacement:"bottom",popoverDisabled:s,children:[(0,R.jsx)(z.J,{data:_.Z}),A("controls.stop")]}),(0,R.jsxs)(D.U,{dialogHeader:A("dialog.resume-header"),dialogText:A("dialog.resume-text"),onConfirmAction:()=>d({id:n,hiveId:o}).unwrap(),buttonDisabled:h||!s,withPopover:!0,buttonView:"normal",popoverContent:A("controls.resume-not-allowed"),popoverPlacement:"bottom",popoverDisabled:s,children:[(0,R.jsx)(z.J,{data:k}),A("controls.resume")]})]})]})};var E=n(83203),G=n(62206),O=n(32270),Z=n(97482),q=n(34301),V=n(48169),H=n(92398);const L=JSON.parse('{"field_scheme-shard":"SchemeShard","field_follower":"Follower","field_generation":"Generation","field_hive":"HiveId","field_state":"State","field_uptime":"Uptime","field_node":"Node","field_links":"Links","field_developer-ui-app":"App","field_developer-ui-counters":"Counters","field_developer-ui-executor":"Executor DB internals","field_developer-ui-state":"State Storage","title_info":"Info","title_links":"Links"}'),Y=(0,P.wZ)("ydb-tablet-info",{en:L}),J=(0,T.cn)("ydb-tablet-info"),U=e=>{let{tablet:t}=e;const n=(0,S.ix)(x.VH),{ChangeTime:a,Generation:o,FollowerId:s,NodeId:r,HiveId:i,State:d,TenantId:{SchemeShard:c}={},TabletId:u}=t,h=B(i),m=d===N.g.Active,p=[];h&&p.push({label:Y("field_hive"),value:(0,R.jsx)(E.rU,{to:(0,v.fK)(i),className:J("link"),children:i})}),c&&p.push({label:Y("field_scheme-shard"),value:(0,R.jsx)(E.rU,{to:(0,v.fK)(c),className:J("link"),children:c})}),p.push({label:Y("field_state"),value:(0,R.jsx)(Z.f,{state:d})}),m&&p.push({label:Y("field_uptime"),value:(0,q.fG)(a)}),p.push({label:Y("field_generation"),value:o},{label:Y("field_node"),value:(0,R.jsx)(E.rU,{className:J("link"),to:(0,H.a3)(String(r)),children:r})}),s&&p.push({label:Y("field_follower"),value:s});return(0,R.jsxs)(l.k,{gap:10,wrap:"nowrap",children:[(0,R.jsxs)("div",{children:[(0,R.jsx)("div",{className:J("section-title"),children:Y("title_info")}),(0,R.jsx)(G._P,{info:p})]}),n&&u?(0,R.jsxs)("div",{children:[(0,R.jsx)("div",{className:J("section-title"),children:Y("title_links")}),(0,R.jsxs)(l.k,{direction:"column",gap:3,children:[(0,R.jsx)(O.j,{title:Y("field_developer-ui-app"),url:(0,V.wz)(u,"app")}),(0,R.jsx)(O.j,{title:Y("field_developer-ui-counters"),url:(0,V.wz)(u,"counters")}),(0,R.jsx)(O.j,{title:Y("field_developer-ui-executor"),url:(0,V.wz)(u,"executorInternals")}),(0,R.jsx)(O.j,{title:Y("field_developer-ui-state"),url:(0,V.wz)(u,void 0,"SsId")})]})]}):null]})};var M=n(34147),$=n(89799),Q=n(17176),W=n(33569);const X=JSON.parse('{"label_channel-index":"Channel","label_storage-pool":"Storage Pool Name","label_group-id":"Group ID","label_generation":"From generation","label_timestamp":"Timestamp"}'),ee=(0,P.wZ)("ydb-tablet-storage-info",{en:X}),te=(0,T.cn)("ydb-tablet-storage-info");function ne(e){let{name:t,className:n}=e;return(0,R.jsx)("div",{className:te("table-header-content",n),children:t})}function ae(e,t){const n=e.getValue(),a="function"===typeof t?t(n):n;return(0,R.jsx)("div",{className:te("metrics-cell"),children:a})}function le(e){let{row:t,name:n,hasExpand:a}=e;const o=t.getCanExpand();return(0,R.jsxs)(l.k,{gap:1,alignItems:"flex-start",className:te("name-wrapper"),children:[o&&(0,R.jsx)(Q.z,{view:"flat",size:"xs",onClick:t.getToggleExpandedHandler(),children:(0,R.jsx)(Q.z.Icon,{children:(0,R.jsx)(W.F,{direction:t.getIsExpanded()?"bottom":"right",size:14})})}),(0,R.jsx)("div",{className:te("name-content",{"no-control":a&&!o}),children:n})]})}function oe(e){let{data:t}=e;const[n,l]=a.useState({}),o=a.useMemo((()=>function(e){var t;if(!e)return[];const{BoundChannels:n,TabletStorageInfo:a={}}=e,l=null!==(t=a.Channels)&&void 0!==t?t:[],o=[];for(const r of l){var s;const e=r.Channel,t=r.History;if(!e||!t||!t.length)continue;const a=[...t];a.reverse();const[l,...i]=a,d={...l,storagePoolName:null===n||void 0===n||null===(s=n[e])||void 0===s?void 0:s.StoragePoolName,channelIndex:e,children:i};o.push(d)}return o}(t)),[t]),s=a.useMemo((()=>o.some((e=>{var t;return null===(t=e.children)||void 0===t?void 0:t.length}))),[o]),r=a.useMemo((()=>{return e=s,[{accessorKey:"channelIndex",header:()=>(0,R.jsx)(ne,{name:ee("label_channel-index")}),size:50,cell:ae,meta:{align:"right"}},{accessorKey:"storagePoolName",header:()=>(0,R.jsx)(ne,{name:ee("label_storage-pool")}),size:200,cell:ae},{accessorKey:"GroupID",header:()=>(0,R.jsx)(ne,{name:ee("label_group-id"),className:e?te("with-padding"):void 0}),size:100,cell:t=>(0,R.jsx)(le,{row:t.row,name:t.getValue(),hasExpand:e})},{accessorKey:"FromGeneration",header:()=>(0,R.jsx)(ne,{name:ee("label_generation")}),size:100,cell:ae,meta:{align:"right"}},{accessorKey:"Timestamp",header:()=>(0,R.jsx)(ne,{name:ee("label_timestamp")}),size:200,cell:e=>ae(e,q.i$),meta:{align:"right"}}];var e}),[s]),i=(0,M.x)({columns:r,data:o,getSubRows:e=>e.children,enableExpanding:!0,onExpandedChange:l,state:{expanded:n}});return(0,R.jsx)("div",{children:(0,R.jsx)($.i,{table:i,headerCellClassName:e=>{var t;let{column:n}=e;const a=null===(t=n.columnDef.meta)||void 0===t?void 0:t.align;return te("table-header-cell",{align:a})},cellClassName:e=>{var t,n;const a=null===e||void 0===e||null===(t=e.column.columnDef.meta)||void 0===t?void 0:t.align,l=null===e||void 0===e||null===(n=e.column.columnDef.meta)||void 0===n?void 0:n.verticalAlign;return te("table-cell",{align:a,"vertical-align":l})},className:te("table")})})}var se=n(19812),re=n(69214),ie=n(68036),de=n(2098);const ce=[{name:"Generation",align:se.ZP.RIGHT,render:e=>{let{row:t}=e;return t.generation}},{name:"Change time",align:se.ZP.RIGHT,sortable:!1,render:e=>{let{row:t}=e;return(0,q.fG)(t.changeTime)}},{name:"State",sortable:!1,render:e=>{let{row:t}=e;return(0,R.jsx)(Z.f,{state:t.state})}},{name:"Follower ID",sortable:!1,render:e=>{let{row:t}=e;return t.leader?"leader":t.followerId}},{name:"Node ID",align:se.ZP.RIGHT,sortable:!1,render:e=>{let{row:t}=e;return(0,R.jsx)(ie.h,{to:(0,H.a3)(t.nodeId),children:t.nodeId})}},{name:"Node FQDN",sortable:!1,width:300,render:e=>{let{row:t}=e;return t.fqdn?(0,R.jsx)(re.A,{name:t.fqdn,showStatus:!1,hasClipboardButton:!0}):(0,R.jsx)("span",{children:"\u2014"})}}],ue={displayIndices:!1},he=e=>{let{history:t}=e;return(0,R.jsx)(de.G,{columnsWidthLSKey:"tabletTableColumnsWidth",data:t,columns:ce,settings:ue,initialSortOrder:{columnId:"Generation",order:se.ZP.DESCENDING}})},me=(0,T.cn)("ydb-tablet-page"),pe={history:"history",channels:"channels"},ge=[{id:pe.history,get title(){return A("label_tablet-history")}},{id:pe.channels,get title(){return A("label_tablet-channels")},isAdvanced:!0}],be=c.z.nativeEnum(pe).catch(pe.history),ve=c.z.nativeEnum(N.F).or(c.z.undefined()).catch(void 0),xe={nodeId:d.StringParam,tenantName:d.StringParam,type:d.StringParam,clusterName:d.StringParam,activeTab:d.StringParam};function fe(){var e,t,n;const o=(0,S.zL)(),{id:c}=(0,i.UO)(),[{nodeId:u,tenantName:h,type:p,clusterName:v}]=(0,d.useQueryParams)(xe),[x]=(0,S.Rj)(),{currentData:y,isFetching:N,error:T}=j._.useGetTabletQuery({id:c,database:null!==h&&void 0!==h?h:void 0,nodeId:null!==u&&void 0!==u?u:void 0},{pollingInterval:x}),C=N&&void 0===y,{data:_={},history:k=[]}=y||{},{currentData:z}=j._.useGetTabletDescribeQuery(_.TenantId?{tenantId:_.TenantId}:s.CN),D=null!==(e=null!==(t=_.NodeId)&&void 0!==t?t:u)&&void 0!==e?e:void 0,P=null!==(n=z||h)&&void 0!==n?n:void 0,K=function(e){const{currentData:t}=w.N.useGetNodeInfoQuery(e?{nodeId:e}:s.CN);let n;if(t){var a;n=!(null!==t&&void 0!==t&&null!==(a=t.Tenants)&&void 0!==a&&a[0])?"Storage":"Compute"}return n}(null===D||void 0===D?void 0:D.toString()),B=_.Type||ve.parse(p);a.useEffect((()=>{o((0,f.J)("tablet",{nodeId:D,nodeRole:K,tenantName:null!==h&&void 0!==h?h:void 0,tabletId:c,tabletType:B}))}),[o,h,c,D,K,B]);const{Leader:F,Type:E}=_,G=[];return P&&G.push(`${A("tablet.meta-database")}: ${P}`),E&&G.push(E),!1===F&&G.push(A("tablet.meta-follower").toUpperCase()),(0,R.jsxs)(l.k,{gap:5,direction:"column",className:me(),children:[(0,R.jsx)(r.ql,{children:(0,R.jsx)("title",{children:`${c} \u2014 ${A("tablet.header")} \u2014 ${P||v||I.DO}`})}),(0,R.jsx)(b.B,{items:G}),(0,R.jsxs)(g.s,{loading:C,size:"l",children:[T?(0,R.jsx)(m.V,{error:T}):null,y?(0,R.jsx)(we,{id:c,tablet:_,history:k}):null]})]})}function we(e){let{id:t,tablet:n,history:a}=e;const o=!Object.keys(n).length,{Overall:s,HiveId:r}=n;return(0,R.jsxs)(u.$,{title:A("emptyState"),className:me("placeholder"),isEmpty:o,children:[(0,R.jsxs)(l.k,{gap:5,direction:"column",children:[(0,R.jsx)(h.a,{entityName:A("tablet.header"),status:null!==s&&void 0!==s?s:y.K.Grey,id:t}),(0,R.jsx)(F,{tablet:n}),(0,R.jsx)(U,{tablet:n})]}),(0,R.jsx)(je,{id:t,hiveId:r,history:a})]})}function je(e){var t;let{id:n,hiveId:s,history:r}=e;const[{activeTab:i,...c},u]=(0,d.useQueryParams)(xe),h=!(0,S.ix)(x.VH)||!B(s);let m=be.parse(i);return h&&null!==(t=ge.find((e=>e.id===m)))&&void 0!==t&&t.isAdvanced&&(m=pe.history),a.useEffect((()=>{i!==m&&u({activeTab:m},"replaceIn")}),[i,m,u]),(0,R.jsxs)(l.k,{gap:5,direction:"column",children:[(0,R.jsx)("div",{children:(0,R.jsx)(o.m,{size:"l",items:ge.filter((e=>{let{isAdvanced:t}=e;return!t||!h})),activeTab:m,wrapTo:(e,t)=>{const a=(0,v.fK)(n,{...c,activeTab:e.id});return(0,R.jsx)(p.h,{to:a,children:t},e.id)}})}),"history"===m?(0,R.jsx)(he,{history:r}):null,"channels"!==m||h?null:(0,R.jsx)(ye,{id:n,hiveId:s})]})}function ye(e){let{id:t,hiveId:n}=e;const[a]=(0,S.Rj)(),{currentData:l,error:o,isFetching:s}=j._.useGetAdvancedTableInfoQuery({id:t,hiveId:n},{pollingInterval:a}),r=s&&void 0===l;return(0,R.jsxs)(g.s,{loading:r,size:"l",children:[o?(0,R.jsx)(m.V,{error:o}):null,l?(0,R.jsx)(oe,{data:l}):null]})}},71698:(e,t,n)=>{n.d(t,{N:()=>s});var a=n(905),l=n(51688);const o=e=>{var t;if(null===(t=e.SystemStateInfo)||void 0===t||!t.length)return{};const n=e.SystemStateInfo[0];return(0,l.Ns)(n)},s=a.h.injectEndpoints({endpoints:e=>({getNodeInfo:e.query({queryFn:async(e,t)=>{let{nodeId:n}=e,{signal:a}=t;try{const e=await window.api.getNodeInfo(n,{signal:a});return{data:o(e)}}catch(l){return{error:l}}},providesTags:["All"]}),getNodeStructure:e.query({queryFn:async(e,t)=>{let{nodeId:n}=e,{signal:a}=t;try{return{data:await window.api.getStorageInfo({nodeId:n},{signal:a})}}catch(l){return{error:l}}},providesTags:["All"]})}),overrideExisting:"throw"})},76386:(e,t,n)=>{n.d(t,{_:()=>l});var a=n(51688);const l=n(905).h.injectEndpoints({endpoints:e=>({getTablet:e.query({queryFn:async(e,t)=>{let{id:n,database:l,nodeId:o}=e,{signal:s}=t;try{const[e,t,r]=await Promise.all([window.api.getTablet({id:n,database:l,nodeId:o},{signal:s}),window.api.getTabletHistory({id:n,database:l,nodeId:o},{signal:s}),window.api.getNodesList({signal:s})]),i=(0,a.dn)(r),d=Object.keys(t).reduce(((e,n)=>{var a;const l=null===(a=t[n])||void 0===a?void 0:a.TabletStateInfo;if(l&&l.length){const t=l.find((e=>e.Leader))||l[0],{ChangeTime:a,Generation:o,State:s,Leader:r,FollowerId:d}=t,c=i&&n?i.get(Number(n)):void 0;"Dead"!==s&&e.push({nodeId:n,generation:o,changeTime:a,state:s,leader:r,followerId:d,fqdn:c})}return e}),[]),{TabletStateInfo:c=[]}=e,[u={}]=c,{TabletId:h}=u;return{data:{id:h,data:u,history:d}}}catch(r){return{error:r}}},providesTags:(e,t,n)=>["All",{type:"Tablet",id:n.id}]}),getTabletDescribe:e.query({queryFn:async(e,t)=>{let{tenantId:n}=e,{signal:a}=t;try{const e=await window.api.getTabletDescribe(n,{signal:a}),{SchemeShard:t,PathId:l}=n;return{data:(null===e||void 0===e?void 0:e.Path)||`${t}:${l}`}}catch(l){return{error:l}}},providesTags:["All"]}),getAdvancedTableInfo:e.query({queryFn:async(e,t)=>{let{id:n,hiveId:a}=e,{signal:l}=t;try{return{data:await window.api.getTabletFromHive({id:n,hiveId:a},{signal:l})}}catch(o){return{error:o}}},providesTags:(e,t,n)=>["All",{type:"Tablet",id:n.id}]}),killTablet:e.mutation({queryFn:async e=>{let{id:t}=e;try{return{data:await window.api.killTablet(t)}}catch(n){return{error:n}}},invalidatesTags:(e,t,n)=>[{type:"Tablet",id:n.id},{type:"Tablet",id:"LIST"}]}),stopTablet:e.mutation({queryFn:async e=>{let{id:t,hiveId:n}=e;try{return{data:await window.api.stopTablet(t,n)}}catch(a){return{error:a}}},invalidatesTags:(e,t,n)=>[{type:"Tablet",id:n.id},{type:"Tablet",id:"LIST"}]}),resumeTablet:e.mutation({queryFn:async e=>{let{id:t,hiveId:n}=e;try{return{data:await window.api.resumeTablet(t,n)}}catch(a){return{error:a}}},invalidatesTags:(e,t,n)=>[{type:"Tablet",id:n.id},{type:"Tablet",id:"LIST"}]})}),overrideExisting:"throw"})},89712:(e,t,n)=>{n.d(t,{M:()=>s});var a=n(68963),l=n(2639),o=n(18193);const s=e=>{const t=a.useCallback((()=>e?o.r.readUserSettingsValue(e,{}):{}),[e]),n=a.useCallback((t=>{e&&o.r.setUserSettingsValue(e,t)}),[e]);return(0,l.M)({saveSizes:n,getSizes:t})}},83496:(e,t,n)=>{n.d(t,{FW:()=>s,KR:()=>r});var a=n(75850),l=n(28164);const o={[l.g.Dead]:a.K.Red,[l.g.Created]:a.K.Yellow,[l.g.ResolveStateStorage]:a.K.Yellow,[l.g.Candidate]:a.K.Yellow,[l.g.BlockBlobStorage]:a.K.Yellow,[l.g.WriteZeroEntry]:a.K.Yellow,[l.g.Restored]:a.K.Yellow,[l.g.Discover]:a.K.Yellow,[l.g.Lock]:a.K.Yellow,[l.g.Stopped]:a.K.Yellow,[l.g.ResolveLeader]:a.K.Yellow,[l.g.RebuildGraph]:a.K.Yellow,[l.g.Deleted]:a.K.Green,[l.g.Active]:a.K.Green},s=(Object.keys(l.g),Object.entries(o).reduce(((e,t)=>{let[n,a]=t;return e[a]?e[a].push(n):e[a]=[n],e}),{}),e=>{if(!e)return a.K.Grey;return t=e,Object.values(a.K).includes(t)?e:o[e];var t});function r(e){if(!e)return"unknown";switch(e){case l.g.Dead:return"danger";case l.g.Active:case l.g.Deleted:return"success";default:return"warning"}}},3475:(e,t,n)=>{n.d(t,{Z:()=>l});var a=n(68963);const l=e=>a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),a.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 1.5a6.5 6.5 0 1 1-6.445 7.348.75.75 0 1 1 1.487-.194A5.001 5.001 0 1 0 4.43 4.5h1.32a.75.75 0 0 1 0 1.5h-3A.75.75 0 0 1 2 5.25v-3a.75.75 0 0 1 1.5 0v1.06A6.48 6.48 0 0 1 8 1.5Z",clipRule:"evenodd"}))}}]); \ No newline at end of file
+"use strict";(self.webpackChunkydb_embedded_ui=self.webpackChunkydb_embedded_ui||[]).push([[1878],{50422:(e,t,n)=>{n.d(t,{q:()=>p});var a=n(84317),l=n(17176),o=n(2418),s=n(905),r=n(24362),i=n(17096),d=n(30817);const c=JSON.parse('{"None":"None","15 sec":"15 sec","1 min":"1 min","2 min":"2 min","5 min":"5 min","Refresh":"Refresh"}'),u=(0,d.wZ)("ydb-diagnostics-autorefresh-control",{en:c});var h=n(75859);const m=(0,r.cn)("auto-refresh-control");function p(e){let{className:t}=e;const n=(0,i.zL)(),[r,d]=(0,i.Rj)();return(0,h.jsxs)("div",{className:m(null,t),children:[(0,h.jsx)(l.z,{view:"flat",onClick:()=>{n(s.h.util.invalidateTags(["All"]))},extraProps:{"aria-label":u("Refresh")},children:(0,h.jsx)(l.z.Icon,{children:(0,h.jsx)(a.Z,{})})}),(0,h.jsxs)(o.P,{value:[String(r)],onUpdate:e=>{d(Number(e))},width:85,children:[(0,h.jsx)(o.P.Option,{value:"0",children:u("None")}),(0,h.jsx)(o.P.Option,{value:"15000",children:u("15 sec")}),(0,h.jsx)(o.P.Option,{value:"60000",children:u("1 min")}),(0,h.jsx)(o.P.Option,{value:"120000",children:u("2 min")}),(0,h.jsx)(o.P.Option,{value:"300000",children:u("5 min")})]})]})}},65070:(e,t,n)=>{n.d(t,{U:()=>d});var a=n(68963),l=n(17176),o=n(68330),s=n(86793),r=n(45743),i=n(75859);function d(e){let{children:t,onConfirmAction:n,onConfirmActionSuccess:d,dialogHeader:c,dialogText:u,retryButtonText:h,buttonDisabled:m=!1,buttonView:p="action",buttonClassName:g,withPopover:b=!1,popoverContent:v,popoverPlacement:x="right",popoverDisabled:f=!0}=e;const[w,j]=a.useState(!1),[y,N]=a.useState(!1),[T,I]=a.useState(!1),S=()=>(0,i.jsx)(l.z,{onClick:()=>j(!0),view:p,disabled:m,loading:!m&&y,className:g,children:t});return(0,i.jsxs)(a.Fragment,{children:[(0,i.jsx)(s.g,{visible:w,header:c,text:u,withRetry:T,retryButtonText:h,onConfirm:async e=>{N(!0),await n(e)},onConfirmActionSuccess:async()=>{I(!1);try{await(null===d||void 0===d?void 0:d())}finally{N(!1)}},onConfirmActionError:e=>{I((0,r.q)(e)),N(!1)},onClose:()=>{j(!1)}}),b?(0,i.jsx)(o.J,{content:v,placement:x,disabled:f,children:S()}):S()]})}},90861:(e,t,n)=>{n.d(t,{m:()=>u});var a=n(27320),l=n(17176),o=n(11050),s=n(81434),r=n(24362),i=n(75859);const d=(0,r.cn)("clipboard-button");function c(e){let{className:t,status:n,title:s,...r}=e;return(0,i.jsx)(a.u,{content:"success"===n?"Copied!":s||"Copy",placement:"bottom-start",children:(0,i.jsx)(l.z,{...r,className:d(null,t),children:(0,i.jsx)(l.z.Icon,{children:(0,i.jsx)(o.K,{status:n,size:16})})})})}function u(e){let{text:t,...n}=e;return(0,i.jsx)(s.h,{text:t,timeout:1e3,children:e=>(0,i.jsx)(c,{...n,status:e})})}},86793:(e,t,n)=>{n.d(t,{g:()=>b});var a=n(68963),l=n(76506),o=n(71586),s=n(48897),r=n(25822),i=n(88776),d=n(24362),c=n(30817);const u=JSON.parse('{"default-error":"Something went wrong, action cannot be completed","no-rights-error":"You don\'t have enough rights to complete the operation","button-confirm":"Confirm","button-retry":"Retry","button-cancel":"Cancel","button-close":"Close","checkbox-text":"I understand what I\'m doing"}'),h=(0,c.wZ)("ydb-critical-action-dialog",{en:u});var m=n(75859);const p=(0,d.cn)("ydb-critical-dialog"),g=e=>403===e.status?h("no-rights-error"):e.statusText?e.statusText:h("default-error");function b(e){let{visible:t,header:n,text:d,withRetry:c,retryButtonText:u,withCheckBox:b,onClose:v,onConfirm:x,onConfirmActionSuccess:f,onConfirmActionError:w}=e;const[j,y]=a.useState(!1),[N,T]=a.useState(),[I,S]=a.useState(!1),C=async e=>(y(!0),x(e).then((()=>{f(),v()})).catch((e=>{w(e),T(e)})).finally((()=>{y(!1)})));return(0,m.jsx)(r.V,{open:t,hasCloseButton:!1,className:p(),size:"s",onClose:v,onTransitionExited:()=>{T(void 0),S(!1)},children:N?(0,m.jsxs)(a.Fragment,{children:[(0,m.jsx)(r.V.Header,{caption:n}),(0,m.jsx)(r.V.Body,{className:p("body"),children:(0,m.jsxs)("div",{className:p("body-message",{error:!0}),children:[(0,m.jsx)("span",{className:p("error-icon"),children:(0,m.jsx)(l.Z,{width:"24",height:"22"})}),g(N)]})}),(0,m.jsx)(r.V.Footer,{loading:!1,preset:"default",textButtonApply:c?u||h("button-retry"):void 0,textButtonCancel:h("button-close"),onClickButtonApply:()=>C(!0),onClickButtonCancel:v})]}):(0,m.jsxs)(a.Fragment,{children:[(0,m.jsx)(r.V.Header,{caption:n}),(0,m.jsxs)(r.V.Body,{className:p("body"),children:[(0,m.jsxs)("div",{className:p("body-message",{warning:!0}),children:[(0,m.jsx)("span",{className:p("warning-icon"),children:(0,m.jsx)(i.J,{data:o.Z,size:24})}),d]}),b?(0,m.jsx)(s.X,{checked:I,onUpdate:S,children:h("checkbox-text")}):null]}),(0,m.jsx)(r.V.Footer,{loading:j,preset:"default",textButtonApply:h("button-confirm"),textButtonCancel:h("button-cancel"),propsButtonApply:{type:"submit",disabled:b&&!I},onClickButtonCancel:v,onClickButtonApply:()=>C()})]})})}},45743:(e,t,n)=>{n.d(t,{q:()=>a});const a=e=>Boolean(e&&"object"===typeof e&&"retryPossible"in e&&e.retryPossible)},30832:(e,t,n)=>{n.d(t,{a:()=>r});var a=n(24362),l=n(98366),o=n(75859);const s=(0,a.cn)("ydb-entity-page-title");function r(e){let{entityName:t,status:n,id:a,className:r}=e;return(0,o.jsxs)("div",{className:s(null,r),children:[(0,o.jsx)("span",{className:s("prefix"),children:t}),(0,o.jsx)(l.J,{className:s("icon"),status:n,size:"s"}),a]})}},69214:(e,t,n)=>{n.d(t,{A:()=>u});var a=n(86017),l=n(75850),o=n(24362),s=n(90861),r=n(68036),i=n(98366),d=n(75859);const c=(0,o.cn)("entity-status");function u(e){let{status:t=l.K.Grey,name:n="",label:o,path:u,iconPath:h,size:m="s",mode:p="color",showStatus:g=!0,externalLink:b=!1,withLeftTrim:v=!1,hasClipboardButton:x,clipboardButtonAlwaysVisible:f=!1,className:w,additionalControls:j}=e;const y=()=>g?(0,d.jsx)(i.J,{className:c("icon"),status:t,size:m,mode:p}):null;return(0,d.jsxs)("div",{className:c(null,w),title:n,children:[h?(N=h,(0,d.jsx)(a.r,{target:"_blank",href:N,children:y()})):y(),o&&(0,d.jsx)("span",{title:o,className:c("label",{size:m,state:t.toLowerCase()}),children:o}),(0,d.jsx)("span",{className:c("link",{"with-left-trim":v}),children:u?b?(0,d.jsx)(a.r,{className:c("name"),href:u,children:n}):(0,d.jsx)(r.h,{className:c("name"),to:u,children:n}):n&&(0,d.jsx)("span",{className:c("name"),children:n})}),x&&(0,d.jsx)(s.m,{text:n,size:"s",className:c("clipboard-button",{visible:f})}),j&&(0,d.jsx)("span",{className:c("additional-controls "),children:j})]});var N}},27174:(e,t,n)=>{n.d(t,{B:()=>h});var a=n(77796),l=n(24362),o=n(50422),s=n(56711),r=n(42587),i=n(75859);const d=e=>{let{delay:t=600,className:n}=e;const[a]=(0,r.$)(t);return a?(0,i.jsx)(s.O,{className:n}):null},c=(0,l.cn)("ydb-page-meta");function u(e){let{items:t,loading:n}=e;return(0,i.jsx)("div",{className:c("info"),children:n?(0,i.jsx)(d,{className:c("skeleton")}):t.filter((e=>Boolean(e))).join("\xa0\xa0\xb7\xa0\xa0")})}function h(e){let{className:t,...n}=e;return(0,i.jsxs)(a.k,{gap:1,alignItems:"center",justifyContent:"space-between",className:c(null,t),children:[(0,i.jsx)(u,{...n}),(0,i.jsx)(o.q,{})]})}},2098:(e,t,n)=>{n.d(t,{G:()=>d});var a=n(2639),l=n(19812),o=n(24362),s=n(89712),r=n(75859);const i=(0,o.cn)("ydb-resizeable-data-table");function d(e){let{columnsWidthLSKey:t,columns:n,settings:o,wrapperClassName:d,...c}=e;const[u,h]=(0,s.M)(t),m=(0,a.B)(n,u),p={...o,defaultResizeable:!0};return(0,r.jsx)("div",{className:i(null,d),children:(0,r.jsx)(l.ZP,{theme:"yandex-cloud",columns:m,onResize:h,settings:p,...c})})}},98366:(e,t,n)=>{n.d(t,{J:()=>h});var a=n(67585),l=n(57225),o=n(71586),s=n(88776),r=n(75850),i=n(24362),d=n(75859);const c=(0,i.cn)("ydb-status-icon"),u={[r.K.Blue]:a.Z,[r.K.Yellow]:l.Z,[r.K.Orange]:o.Z,[r.K.Red]:l.Z};function h(e){let{status:t=r.K.Grey,size:n="s",mode:a="color",className:l}=e;const o={state:t.toLowerCase(),size:n};return"icons"===a&&t in u?(0,d.jsx)(s.J,{className:c("status-icon",o,l),data:u[t]}):(0,d.jsx)("div",{className:c("status-color",o,l)})}},97482:(e,t,n)=>{n.d(t,{f:()=>s});var a=n(14979),l=n(83496),o=n(75859);function s(e){let{state:t}=e;return(0,o.jsx)(a._,{theme:(0,l.KR)(t),children:t})}},4259:(e,t,n)=>{n.r(t),n.d(t,{Tablet:()=>fe,b:()=>me});var a=n(68963),l=n(77796),o=n(8179),s=n(17095),r=n(49352),i=n(86974),d=n(98994),c=n(95408),u=n(79023),h=n(30832),m=n(26688),p=n(74170),g=n(96409),b=n(27174),v=n(54665),x=n(14146),f=n(79061),w=n(71698),j=n(76386),y=n(75850),N=n(28164),T=n(24362),I=n(52317),S=n(17096),C=n(3475),_=n(77936);const k=e=>a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),a.createElement("path",{fill:"currentColor",d:"M13.756 10.164c1.665-.962 1.665-3.366 0-4.328L5.251.919C3.584-.045 1.5 1.158 1.5 3.083v9.834c0 1.925 2.084 3.128 3.751 2.164l8.505-4.917Z"}));var z=n(88776),D=n(65070),P=n(30817);const K=JSON.parse('{"tablet.header":"Tablet","tablet.meta-database":"Database","tablet.meta-follower":"Follower","controls.kill":"Restart","controls.stop":"Stop","controls.resume":"Resume","controls.kill-not-allowed":"You don\'t have enough rights to restart tablet","controls.stop-not-allowed":"You don\'t have enough rights to stop tablet","controls.resume-not-allowed":"You don\'t have enough rights to resume tablet","dialog.kill-header":"Restart tablet","dialog.stop-header":"Stop tablet","dialog.resume-header":"Resume tablet","dialog.kill-text":"The tablet will be restarted. Do you want to proceed?","dialog.stop-text":"The tablet will be stopped. Do you want to proceed?","dialog.resume-text":"The tablet will be resumed. Do you want to proceed?","emptyState":"The tablet was not found","label_tablet-history":"Tablets","label_tablet-channels":"Storage"}'),A=(0,P.wZ)("ydb-tablet-page",{en:K});function B(e){return Boolean(e&&"0"!==e)}var R=n(75859);const F=e=>{let{tablet:t}=e;const{TabletId:n,HiveId:o}=t,s=(0,S.ix)(x.VH),[r]=j._.useKillTabletMutation(),[i]=j._.useStopTabletMutation(),[d]=j._.useResumeTabletMutation();if(!n)return null;const c=B(o),u=t.State===N.g.Stopped,h=t.State!==N.g.Stopped&&t.State!==N.g.Dead,m=t.State===N.g.Stopped||t.State===N.g.Deleted;return(0,R.jsxs)(l.k,{gap:2,wrap:"nowrap",children:[(0,R.jsxs)(D.U,{dialogHeader:A("dialog.kill-header"),dialogText:A("dialog.kill-text"),onConfirmAction:()=>r({id:n}).unwrap(),buttonDisabled:u||!s,withPopover:!0,buttonView:"normal",popoverContent:A("controls.kill-not-allowed"),popoverPlacement:"bottom",popoverDisabled:s,children:[(0,R.jsx)(z.J,{data:C.Z}),A("controls.kill")]}),c&&(0,R.jsxs)(a.Fragment,{children:[(0,R.jsxs)(D.U,{dialogHeader:A("dialog.stop-header"),dialogText:A("dialog.stop-text"),onConfirmAction:()=>i({id:n,hiveId:o}).unwrap(),buttonDisabled:m||!s,withPopover:!0,buttonView:"normal",popoverContent:A("controls.stop-not-allowed"),popoverPlacement:"bottom",popoverDisabled:s,children:[(0,R.jsx)(z.J,{data:_.Z}),A("controls.stop")]}),(0,R.jsxs)(D.U,{dialogHeader:A("dialog.resume-header"),dialogText:A("dialog.resume-text"),onConfirmAction:()=>d({id:n,hiveId:o}).unwrap(),buttonDisabled:h||!s,withPopover:!0,buttonView:"normal",popoverContent:A("controls.resume-not-allowed"),popoverPlacement:"bottom",popoverDisabled:s,children:[(0,R.jsx)(z.J,{data:k}),A("controls.resume")]})]})]})};var E=n(83203),G=n(62206),O=n(32270),Z=n(97482),q=n(34301),V=n(48169),H=n(92398);const L=JSON.parse('{"field_scheme-shard":"SchemeShard","field_follower":"Follower","field_generation":"Generation","field_hive":"HiveId","field_state":"State","field_uptime":"Uptime","field_node":"Node","field_links":"Links","field_developer-ui-app":"App","field_developer-ui-counters":"Counters","field_developer-ui-executor":"Executor DB internals","field_developer-ui-state":"State Storage","title_info":"Info","title_links":"Links"}'),Y=(0,P.wZ)("ydb-tablet-info",{en:L}),J=(0,T.cn)("ydb-tablet-info"),U=e=>{let{tablet:t}=e;const n=(0,S.ix)(x.VH),{ChangeTime:a,Generation:o,FollowerId:s,NodeId:r,HiveId:i,State:d,TenantId:{SchemeShard:c}={},TabletId:u}=t,h=B(i),m=d===N.g.Active,p=[];h&&p.push({label:Y("field_hive"),value:(0,R.jsx)(E.rU,{to:(0,v.fK)(i),className:J("link"),children:i})}),c&&p.push({label:Y("field_scheme-shard"),value:(0,R.jsx)(E.rU,{to:(0,v.fK)(c),className:J("link"),children:c})}),p.push({label:Y("field_state"),value:(0,R.jsx)(Z.f,{state:d})}),m&&p.push({label:Y("field_uptime"),value:(0,q.fG)(a)}),p.push({label:Y("field_generation"),value:o},{label:Y("field_node"),value:(0,R.jsx)(E.rU,{className:J("link"),to:(0,H.a3)(String(r)),children:r})}),s&&p.push({label:Y("field_follower"),value:s});return(0,R.jsxs)(l.k,{gap:10,wrap:"nowrap",children:[(0,R.jsxs)("div",{children:[(0,R.jsx)("div",{className:J("section-title"),children:Y("title_info")}),(0,R.jsx)(G._P,{info:p})]}),n&&u?(0,R.jsxs)("div",{children:[(0,R.jsx)("div",{className:J("section-title"),children:Y("title_links")}),(0,R.jsxs)(l.k,{direction:"column",gap:3,children:[(0,R.jsx)(O.j,{title:Y("field_developer-ui-app"),url:(0,V.wz)(u,"app")}),(0,R.jsx)(O.j,{title:Y("field_developer-ui-counters"),url:(0,V.wz)(u,"counters")}),(0,R.jsx)(O.j,{title:Y("field_developer-ui-executor"),url:(0,V.wz)(u,"executorInternals")}),(0,R.jsx)(O.j,{title:Y("field_developer-ui-state"),url:(0,V.wz)(u,void 0,"SsId")})]})]}):null]})};var M=n(34147),$=n(89799),Q=n(17176),W=n(33569);const X=JSON.parse('{"label_channel-index":"Channel","label_storage-pool":"Storage Pool Name","label_group-id":"Group ID","label_generation":"From generation","label_timestamp":"Timestamp"}'),ee=(0,P.wZ)("ydb-tablet-storage-info",{en:X}),te=(0,T.cn)("ydb-tablet-storage-info");function ne(e){let{name:t,className:n}=e;return(0,R.jsx)("div",{className:te("table-header-content",n),children:t})}function ae(e,t){const n=e.getValue(),a="function"===typeof t?t(n):n;return(0,R.jsx)("div",{className:te("metrics-cell"),children:a})}function le(e){let{row:t,name:n,hasExpand:a}=e;const o=t.getCanExpand();return(0,R.jsxs)(l.k,{gap:1,alignItems:"flex-start",className:te("name-wrapper"),children:[o&&(0,R.jsx)(Q.z,{view:"flat",size:"xs",onClick:t.getToggleExpandedHandler(),children:(0,R.jsx)(Q.z.Icon,{children:(0,R.jsx)(W.F,{direction:t.getIsExpanded()?"bottom":"right",size:14})})}),(0,R.jsx)("div",{className:te("name-content",{"no-control":a&&!o}),children:n})]})}function oe(e){let{data:t}=e;const[n,l]=a.useState({}),o=a.useMemo((()=>function(e){var t;if(!e)return[];const{BoundChannels:n,TabletStorageInfo:a={}}=e,l=null!==(t=a.Channels)&&void 0!==t?t:[],o=[];for(const r of l){var s;const e=r.Channel,t=r.History;if(!e||!t||!t.length)continue;const a=[...t];a.reverse();const[l,...i]=a,d={...l,storagePoolName:null===n||void 0===n||null===(s=n[e])||void 0===s?void 0:s.StoragePoolName,channelIndex:e,children:i};o.push(d)}return o}(t)),[t]),s=a.useMemo((()=>o.some((e=>{var t;return null===(t=e.children)||void 0===t?void 0:t.length}))),[o]),r=a.useMemo((()=>{return e=s,[{accessorKey:"channelIndex",header:()=>(0,R.jsx)(ne,{name:ee("label_channel-index")}),size:50,cell:ae,meta:{align:"right"}},{accessorKey:"storagePoolName",header:()=>(0,R.jsx)(ne,{name:ee("label_storage-pool")}),size:200,cell:ae},{accessorKey:"GroupID",header:()=>(0,R.jsx)(ne,{name:ee("label_group-id"),className:e?te("with-padding"):void 0}),size:100,cell:t=>(0,R.jsx)(le,{row:t.row,name:t.getValue(),hasExpand:e})},{accessorKey:"FromGeneration",header:()=>(0,R.jsx)(ne,{name:ee("label_generation")}),size:100,cell:ae,meta:{align:"right"}},{accessorKey:"Timestamp",header:()=>(0,R.jsx)(ne,{name:ee("label_timestamp")}),size:200,cell:e=>ae(e,q.i$),meta:{align:"right"}}];var e}),[s]),i=(0,M.x)({columns:r,data:o,getSubRows:e=>e.children,enableExpanding:!0,onExpandedChange:l,state:{expanded:n}});return(0,R.jsx)("div",{children:(0,R.jsx)($.i,{table:i,headerCellClassName:e=>{var t;let{column:n}=e;const a=null===(t=n.columnDef.meta)||void 0===t?void 0:t.align;return te("table-header-cell",{align:a})},cellClassName:e=>{var t,n;const a=null===e||void 0===e||null===(t=e.column.columnDef.meta)||void 0===t?void 0:t.align,l=null===e||void 0===e||null===(n=e.column.columnDef.meta)||void 0===n?void 0:n.verticalAlign;return te("table-cell",{align:a,"vertical-align":l})},className:te("table")})})}var se=n(19812),re=n(69214),ie=n(68036),de=n(2098);const ce=[{name:"Generation",align:se.ZP.RIGHT,render:e=>{let{row:t}=e;return t.generation}},{name:"Change time",align:se.ZP.RIGHT,sortable:!1,render:e=>{let{row:t}=e;return(0,q.fG)(t.changeTime)}},{name:"State",sortable:!1,render:e=>{let{row:t}=e;return(0,R.jsx)(Z.f,{state:t.state})}},{name:"Follower ID",sortable:!1,render:e=>{let{row:t}=e;return t.leader?"leader":t.followerId}},{name:"Node ID",align:se.ZP.RIGHT,sortable:!1,render:e=>{let{row:t}=e;return(0,R.jsx)(ie.h,{to:(0,H.a3)(t.nodeId),children:t.nodeId})}},{name:"Node FQDN",sortable:!1,width:300,render:e=>{let{row:t}=e;return t.fqdn?(0,R.jsx)(re.A,{name:t.fqdn,showStatus:!1,hasClipboardButton:!0}):(0,R.jsx)("span",{children:"\u2014"})}}],ue={displayIndices:!1},he=e=>{let{history:t}=e;return(0,R.jsx)(de.G,{columnsWidthLSKey:"tabletTableColumnsWidth",data:t,columns:ce,settings:ue,initialSortOrder:{columnId:"Generation",order:se.ZP.DESCENDING}})},me=(0,T.cn)("ydb-tablet-page"),pe={history:"history",channels:"channels"},ge=[{id:pe.history,get title(){return A("label_tablet-history")}},{id:pe.channels,get title(){return A("label_tablet-channels")},isAdvanced:!0}],be=c.z.nativeEnum(pe).catch(pe.history),ve=c.z.nativeEnum(N.F).or(c.z.undefined()).catch(void 0),xe={nodeId:d.StringParam,tenantName:d.StringParam,type:d.StringParam,clusterName:d.StringParam,activeTab:d.StringParam};function fe(){var e,t,n;const o=(0,S.zL)(),{id:c}=(0,i.UO)(),[{nodeId:u,tenantName:h,type:p,clusterName:v}]=(0,d.useQueryParams)(xe),[x]=(0,S.Rj)(),{currentData:y,isFetching:N,error:T}=j._.useGetTabletQuery({id:c,database:null!==h&&void 0!==h?h:void 0,nodeId:null!==u&&void 0!==u?u:void 0},{pollingInterval:x}),C=N&&void 0===y,{data:_={},history:k=[]}=y||{},{currentData:z}=j._.useGetTabletDescribeQuery(_.TenantId?{tenantId:_.TenantId}:s.CN),D=null!==(e=null!==(t=_.NodeId)&&void 0!==t?t:u)&&void 0!==e?e:void 0,P=null!==(n=z||h)&&void 0!==n?n:void 0,K=function(e){const{currentData:t}=w.N.useGetNodeInfoQuery(e?{nodeId:e}:s.CN);let n;if(t){var a;n=!(null!==t&&void 0!==t&&null!==(a=t.Tenants)&&void 0!==a&&a[0])?"Storage":"Compute"}return n}(null===D||void 0===D?void 0:D.toString()),B=_.Type||ve.parse(p);a.useEffect((()=>{o((0,f.J)("tablet",{nodeId:D,nodeRole:K,tenantName:null!==h&&void 0!==h?h:void 0,tabletId:c,tabletType:B}))}),[o,h,c,D,K,B]);const{Leader:F,Type:E}=_,G=[];return P&&G.push(`${A("tablet.meta-database")}: ${P}`),E&&G.push(E),!1===F&&G.push(A("tablet.meta-follower").toUpperCase()),(0,R.jsxs)(l.k,{gap:5,direction:"column",className:me(),children:[(0,R.jsx)(r.ql,{children:(0,R.jsx)("title",{children:`${c} \u2014 ${A("tablet.header")} \u2014 ${P||v||I.DO}`})}),(0,R.jsx)(b.B,{items:G}),(0,R.jsxs)(g.s,{loading:C,size:"l",children:[T?(0,R.jsx)(m.V,{error:T}):null,y?(0,R.jsx)(we,{id:c,tablet:_,history:k}):null]})]})}function we(e){let{id:t,tablet:n,history:a}=e;const o=!Object.keys(n).length,{Overall:s,HiveId:r}=n;return(0,R.jsxs)(u.$,{title:A("emptyState"),className:me("placeholder"),isEmpty:o,children:[(0,R.jsxs)(l.k,{gap:5,direction:"column",children:[(0,R.jsx)(h.a,{entityName:A("tablet.header"),status:null!==s&&void 0!==s?s:y.K.Grey,id:t}),(0,R.jsx)(F,{tablet:n}),(0,R.jsx)(U,{tablet:n})]}),(0,R.jsx)(je,{id:t,hiveId:r,history:a})]})}function je(e){var t;let{id:n,hiveId:s,history:r}=e;const[{activeTab:i,...c},u]=(0,d.useQueryParams)(xe),h=!(0,S.ix)(x.VH)||!B(s);let m=be.parse(i);return h&&null!==(t=ge.find((e=>e.id===m)))&&void 0!==t&&t.isAdvanced&&(m=pe.history),a.useEffect((()=>{i!==m&&u({activeTab:m},"replaceIn")}),[i,m,u]),(0,R.jsxs)(l.k,{gap:5,direction:"column",children:[(0,R.jsx)("div",{children:(0,R.jsx)(o.m,{size:"l",items:ge.filter((e=>{let{isAdvanced:t}=e;return!t||!h})),activeTab:m,wrapTo:(e,t)=>{const a=(0,v.fK)(n,{...c,activeTab:e.id});return(0,R.jsx)(p.h,{to:a,children:t},e.id)}})}),"history"===m?(0,R.jsx)(he,{history:r}):null,"channels"!==m||h?null:(0,R.jsx)(ye,{id:n,hiveId:s})]})}function ye(e){let{id:t,hiveId:n}=e;const[a]=(0,S.Rj)(),{currentData:l,error:o,isFetching:s}=j._.useGetAdvancedTableInfoQuery({id:t,hiveId:n},{pollingInterval:a}),r=s&&void 0===l;return(0,R.jsxs)(g.s,{loading:r,size:"l",children:[o?(0,R.jsx)(m.V,{error:o}):null,l?(0,R.jsx)(oe,{data:l}):null]})}},71698:(e,t,n)=>{n.d(t,{N:()=>s});var a=n(905),l=n(51688);const o=e=>{var t;if(null===(t=e.SystemStateInfo)||void 0===t||!t.length)return{};const n=e.SystemStateInfo[0];return(0,l.Ns)(n)},s=a.h.injectEndpoints({endpoints:e=>({getNodeInfo:e.query({queryFn:async(e,t)=>{let{nodeId:n}=e,{signal:a}=t;try{const e=await window.api.getNodeInfo(n,{signal:a});return{data:o(e)}}catch(l){return{error:l}}},providesTags:["All"]}),getNodeStructure:e.query({queryFn:async(e,t)=>{let{nodeId:n}=e,{signal:a}=t;try{return{data:await window.api.getStorageInfo({nodeId:n},{signal:a})}}catch(l){return{error:l}}},providesTags:["All"]})}),overrideExisting:"throw"})},76386:(e,t,n)=>{n.d(t,{_:()=>l});var a=n(51688);const l=n(905).h.injectEndpoints({endpoints:e=>({getTablet:e.query({queryFn:async(e,t)=>{let{id:n,database:l,nodeId:o}=e,{signal:s}=t;try{const[e,t,r]=await Promise.all([window.api.getTablet({id:n,database:l,nodeId:o},{signal:s}),window.api.getTabletHistory({id:n,database:l,nodeId:o},{signal:s}),window.api.getNodesList({signal:s})]),i=(0,a.Xs)(r),d=Object.keys(t).reduce(((e,n)=>{var a;const l=null===(a=t[n])||void 0===a?void 0:a.TabletStateInfo;if(l&&l.length){const t=l.find((e=>e.Leader))||l[0],{ChangeTime:a,Generation:o,State:s,Leader:r,FollowerId:d}=t,c=i&&n?i.get(Number(n)):void 0;"Dead"!==s&&e.push({nodeId:n,generation:o,changeTime:a,state:s,leader:r,followerId:d,fqdn:c})}return e}),[]),{TabletStateInfo:c=[]}=e,[u={}]=c,{TabletId:h}=u;return{data:{id:h,data:u,history:d}}}catch(r){return{error:r}}},providesTags:(e,t,n)=>["All",{type:"Tablet",id:n.id}]}),getTabletDescribe:e.query({queryFn:async(e,t)=>{let{tenantId:n}=e,{signal:a}=t;try{const e=await window.api.getTabletDescribe(n,{signal:a}),{SchemeShard:t,PathId:l}=n;return{data:(null===e||void 0===e?void 0:e.Path)||`${t}:${l}`}}catch(l){return{error:l}}},providesTags:["All"]}),getAdvancedTableInfo:e.query({queryFn:async(e,t)=>{let{id:n,hiveId:a}=e,{signal:l}=t;try{return{data:await window.api.getTabletFromHive({id:n,hiveId:a},{signal:l})}}catch(o){return{error:o}}},providesTags:(e,t,n)=>["All",{type:"Tablet",id:n.id}]}),killTablet:e.mutation({queryFn:async e=>{let{id:t}=e;try{return{data:await window.api.killTablet(t)}}catch(n){return{error:n}}},invalidatesTags:(e,t,n)=>[{type:"Tablet",id:n.id},{type:"Tablet",id:"LIST"}]}),stopTablet:e.mutation({queryFn:async e=>{let{id:t,hiveId:n}=e;try{return{data:await window.api.stopTablet(t,n)}}catch(a){return{error:a}}},invalidatesTags:(e,t,n)=>[{type:"Tablet",id:n.id},{type:"Tablet",id:"LIST"}]}),resumeTablet:e.mutation({queryFn:async e=>{let{id:t,hiveId:n}=e;try{return{data:await window.api.resumeTablet(t,n)}}catch(a){return{error:a}}},invalidatesTags:(e,t,n)=>[{type:"Tablet",id:n.id},{type:"Tablet",id:"LIST"}]})}),overrideExisting:"throw"})},89712:(e,t,n)=>{n.d(t,{M:()=>s});var a=n(68963),l=n(2639),o=n(18193);const s=e=>{const t=a.useCallback((()=>e?o.r.readUserSettingsValue(e,{}):{}),[e]),n=a.useCallback((t=>{e&&o.r.setUserSettingsValue(e,t)}),[e]);return(0,l.M)({saveSizes:n,getSizes:t})}},83496:(e,t,n)=>{n.d(t,{FW:()=>s,KR:()=>r});var a=n(75850),l=n(28164);const o={[l.g.Dead]:a.K.Red,[l.g.Created]:a.K.Yellow,[l.g.ResolveStateStorage]:a.K.Yellow,[l.g.Candidate]:a.K.Yellow,[l.g.BlockBlobStorage]:a.K.Yellow,[l.g.WriteZeroEntry]:a.K.Yellow,[l.g.Restored]:a.K.Yellow,[l.g.Discover]:a.K.Yellow,[l.g.Lock]:a.K.Yellow,[l.g.Stopped]:a.K.Yellow,[l.g.ResolveLeader]:a.K.Yellow,[l.g.RebuildGraph]:a.K.Yellow,[l.g.Deleted]:a.K.Green,[l.g.Active]:a.K.Green},s=(Object.keys(l.g),Object.entries(o).reduce(((e,t)=>{let[n,a]=t;return e[a]?e[a].push(n):e[a]=[n],e}),{}),e=>{if(!e)return a.K.Grey;return t=e,Object.values(a.K).includes(t)?e:o[e];var t});function r(e){if(!e)return"unknown";switch(e){case l.g.Dead:return"danger";case l.g.Active:case l.g.Deleted:return"success";default:return"warning"}}},3475:(e,t,n)=>{n.d(t,{Z:()=>l});var a=n(68963);const l=e=>a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),a.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 1.5a6.5 6.5 0 1 1-6.445 7.348.75.75 0 1 1 1.487-.194A5.001 5.001 0 1 0 4.43 4.5h1.32a.75.75 0 0 1 0 1.5h-3A.75.75 0 0 1 2 5.25v-3a.75.75 0 0 1 1.5 0v1.06A6.48 6.48 0 0 1 8 1.5Z",clipRule:"evenodd"}))}}]); \ No newline at end of file
diff --git a/ydb/core/viewer/monitoring/static/js/2244.54ce68fe.chunk.js b/ydb/core/viewer/monitoring/static/js/2244.a7bd228d.chunk.js
index 012c75df51..89c6ccfef5 100644
--- a/ydb/core/viewer/monitoring/static/js/2244.54ce68fe.chunk.js
+++ b/ydb/core/viewer/monitoring/static/js/2244.a7bd228d.chunk.js
@@ -1 +1 @@
-"use strict";(self.webpackChunkydb_embedded_ui=self.webpackChunkydb_embedded_ui||[]).push([[2244],{50422:(e,s,t)=>{t.d(s,{q:()=>h});var r=t(84317),a=t(17176),l=t(2418),n=t(905),o=t(24362),i=t(17096),c=t(30817);const d=JSON.parse('{"None":"None","15 sec":"15 sec","1 min":"1 min","2 min":"2 min","5 min":"5 min","Refresh":"Refresh"}'),u=(0,c.wZ)("ydb-diagnostics-autorefresh-control",{en:d});var v=t(75859);const m=(0,o.cn)("auto-refresh-control");function h(e){let{className:s}=e;const t=(0,i.zL)(),[o,c]=(0,i.Rj)();return(0,v.jsxs)("div",{className:m(null,s),children:[(0,v.jsx)(a.z,{view:"flat",onClick:()=>{t(n.h.util.invalidateTags(["All"]))},extraProps:{"aria-label":u("Refresh")},children:(0,v.jsx)(a.z.Icon,{children:(0,v.jsx)(r.Z,{})})}),(0,v.jsxs)(l.P,{value:[String(o)],onUpdate:e=>{c(Number(e))},width:85,children:[(0,v.jsx)(l.P.Option,{value:"0",children:u("None")}),(0,v.jsx)(l.P.Option,{value:"15000",children:u("15 sec")}),(0,v.jsx)(l.P.Option,{value:"60000",children:u("1 min")}),(0,v.jsx)(l.P.Option,{value:"120000",children:u("2 min")}),(0,v.jsx)(l.P.Option,{value:"300000",children:u("5 min")})]})]})}},62776:(e,s,t)=>{t.d(s,{a:()=>r.a});var r=t(91173)},67359:(e,s,t)=>{t.d(s,{y:()=>u});var r=t(56829),a=t(24362),l=t(34301),n=t(55850),o=t(75859);const i=(0,a.cn)("progress-viewer"),c=e=>(0,l.uf)((0,l.W0)(Number(e),2)),d=(e,s)=>[c(e),c(s)];function u(e){let{value:s,capacity:t,formatValues:a=d,percents:l,className:c,size:u="xs",colorizeProgress:v,inverseColorize:m,warningThreshold:h=60,dangerThreshold:N=80}=e;const g=(0,r.F)();let p=Math.round(parseFloat(String(s))/parseFloat(String(t))*100)||0;p=p>100?100:p;let S=s,x=t,f="/";l?(S=p+"%",x="",f=""):a&&([S,x]=a(Number(s),Number(t)));let b=m?"danger":"good";v&&(p>h&&p<=N?b="warning":p>N&&(b=m?"good":"danger"),(0,n.kE)(t)||(p=100));const E={width:p+"%"};return(0,n.kE)(s)?(0,o.jsxs)("div",{className:i({size:u,theme:g,status:b},c),children:[(0,o.jsx)("div",{className:i("line"),style:E}),(0,o.jsx)("span",{className:i("text"),children:(0,n.kE)(t)?`${S} ${f} ${x}`:S})]}):(0,o.jsx)("div",{className:`${i({size:u})} ${c} error`,children:"no data"})}},2098:(e,s,t)=>{t.d(s,{G:()=>c});var r=t(2639),a=t(19812),l=t(24362),n=t(89712),o=t(75859);const i=(0,l.cn)("ydb-resizeable-data-table");function c(e){let{columnsWidthLSKey:s,columns:t,settings:l,wrapperClassName:c,...d}=e;const[u,v]=(0,n.M)(s),m=(0,r.B)(t,u),h={...l,defaultResizeable:!0};return(0,o.jsx)("div",{className:i(null,c),children:(0,o.jsx)(a.ZP,{theme:"yandex-cloud",columns:m,onResize:v,settings:h,...d})})}},30629:(e,s,t)=>{t.d(s,{o:()=>i});var r=t(68963),a=t(77264),l=t(24362),n=t(75859);const o=(0,l.cn)("ydb-search"),i=e=>{let{onChange:s,value:t="",className:l,debounce:i=200,placeholder:c}=e;const[d,u]=r.useState(t),v=r.useRef();r.useEffect((()=>{u((e=>e!==t?t:e))}),[t]);return(0,n.jsx)(a.o,{hasClear:!0,autoFocus:!0,className:o(null,l),placeholder:c,value:d,onUpdate:e=>{u(e),window.clearTimeout(v.current),v.current=window.setTimeout((()=>{null===s||void 0===s||s(e)}),i)}})}},11551:(e,s,t)=>{t.d(s,{o:()=>r.o});var r=t(30629)},17851:(e,s,t)=>{t.r(s),t.d(s,{Clusters:()=>ee});var r=t(68963),a=t(19812),l=t(2418),n=t(48857),o=t(49352),i=t(50422),c=t(26688),d=t(62776),u=t(2098),v=t(11551),m=t(20163),h=t(43680),N=t.n(h);const g=e=>e.clusters.clusterName,p=e=>e.clusters.status,S=e=>e.clusters.service,x=e=>e.clusters.version,f=(e,s)=>0===s.length||e.status&&s.includes(e.status),b=(e,s)=>0===s.length||e.service&&s.includes(e.service),E=(e,s)=>0===s.length||s.some((s=>{var t,r;return null===(t=e.cluster)||void 0===t||null===(r=t.Versions)||void 0===r?void 0:r.some((e=>e.startsWith(s)))})),j=function(e){var s;let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(!t)return!0;const r=t.toLowerCase(),a=r.split(" "),l=(null===(s=e.title)||void 0===s?void 0:s.toLowerCase().match(/[^\d\s]+|\d+|[^-\s]+|[^_\s]+/g))||[],n=a.every((s=>{const t=N()(s),r=new RegExp(`^${t}|[\\s\\-_]${t}`,"i");return e.title&&r.test(e.title)||l.some((e=>e.startsWith(s)))})),o=e.preparedVersions.some((e=>e.version.includes(r))),i=Boolean(e.hosts&&e.hosts[r]);return n||o||i};var T=t(52317),C=t(17096),O=t(57344),w=t(30601),_=t(67359),A=t(34301),y=t(30817);const R=JSON.parse('{"controls_status-select-label":"Status:","controls_service-select-label":"Service:","controls_version-select-label":"Version:","controls_search-placeholder":"Cluster name, version, host","controls_select-placeholder":"All","statistics_clusters":"Clusters","statistics_hosts":"Hosts","statistics_tenants":"Tenants","statistics_nodes":"Nodes","statistics_load":"Load","statistics_storage":"Storage","tooltip_no-cluster-data":"No cluster data","page_title":"Clusters"}'),I=JSON.parse('{"controls_status-select-label":"\u0421\u0442\u0430\u0442\u0443\u0441:","controls_service-select-label":"\u0421\u0435\u0440\u0432\u0438\u0441:","controls_version-select-label":"\u0412\u0435\u0440\u0441\u0438\u044f:","controls_search-placeholder":"\u0418\u043c\u044f \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0430, \u0432\u0435\u0440\u0441\u0438\u044f \u0438\u043b\u0438 \u0445\u043e\u0441\u0442","controls_select-placeholder":"\u0412\u0441\u0435","statistics_clusters":"\u041a\u043b\u0430\u0441\u0442\u0435\u0440\u044b","statistics_hosts":"\u0425\u043e\u0441\u0442\u044b","statistics_tenants":"\u0411\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445","statistics_nodes":"\u0423\u0437\u043b\u044b","statistics_load":"\u041d\u0430\u0433\u0440\u0443\u0437\u043a\u0430","statistics_storage":"\u0425\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435","tooltip_no-cluster-data":"\u041d\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0445 \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0430","page_title":"\u041a\u043b\u0430\u0441\u0442\u0435\u0440\u044b"}'),D=(0,y.wZ)("ydb-clusters-page",{ru:I,en:R});var L=t(24362);const z=(0,L.cn)("clusters");var P=t(75859);const V=e=>{let{count:s,stats:t}=e;const{NodesTotal:r,NodesAlive:a,Hosts:l,Tenants:n,LoadAverage:o,NumberOfCpus:i,StorageUsed:c,StorageTotal:d}=t;return(0,P.jsxs)("div",{className:z("aggregation"),children:[(0,P.jsxs)("div",{className:z("aggregation-value-container"),children:[(0,P.jsx)("span",{className:z("aggregation-label"),children:D("statistics_clusters")}),s]}),(0,P.jsxs)("div",{className:z("aggregation-value-container"),children:[(0,P.jsx)("span",{className:z("aggregation-label"),children:D("statistics_hosts")}),l]}),(0,P.jsxs)("div",{className:z("aggregation-value-container"),children:[(0,P.jsx)("span",{className:z("aggregation-label"),children:D("statistics_tenants")}),n]}),(0,P.jsxs)("div",{className:z("aggregation-value-container"),children:[(0,P.jsx)("span",{className:z("aggregation-label"),children:D("statistics_nodes")}),(0,P.jsx)(_.y,{size:"ns",value:a,capacity:r,colorizeProgress:!0,inverseColorize:!0})]}),(0,P.jsxs)("div",{className:z("aggregation-value-container"),children:[(0,P.jsx)("span",{className:z("aggregation-label"),children:D("statistics_load")}),(0,P.jsx)(_.y,{size:"ns",value:o,capacity:i,colorizeProgress:!0})]}),(0,P.jsxs)("div",{className:z("aggregation-value-container"),children:[(0,P.jsx)("span",{className:z("aggregation-label"),children:D("statistics_storage")}),(0,P.jsx)(_.y,{size:"ns",value:c,capacity:d,formatValues:A.QO,colorizeProgress:!0})]})]})};var k=t(21986),U=t(86017),G=t(84893),M=t(19797),W=t(40726);const Z=(0,L.cn)("kv-user");function H(e){let{login:s,className:t}=e;const r=(0,W.C)("StaffCard");return(0,P.jsx)("div",{className:Z(null,t),children:(0,P.jsx)(r,{login:s,children:(0,P.jsx)("div",{className:Z("name"),children:s})})})}var B=t(45535),$=t(81003);const J="selectedColumns",q={TITLE:"title",VERSIONS:"versions",DC:"dc",SERVICE:"service",STATUS:"status",NODES:"nodes",LOAD:"load",STORAGE:"storage",HOSTS:"hosts",TENANTS:"tenants",OWNER:"owner",DESCRIPTION:"description",BALANCER:"balancer"},F=[q.TITLE,q.VERSIONS,q.SERVICE,q.STATUS,q.NODES,q.LOAD,q.STORAGE,q.HOSTS,q.TENANTS,q.OWNER,q.BALANCER],X={[q.TITLE]:"Cluster",[q.VERSIONS]:"Versions",[q.DC]:"DC",[q.SERVICE]:"Service",[q.STATUS]:"Status",[q.NODES]:"Nodes",[q.LOAD]:"Load",[q.STORAGE]:"Storage",[q.HOSTS]:"Hosts",[q.TENANTS]:"Tenants",[q.OWNER]:"Owner",[q.DESCRIPTION]:"Description",[q.BALANCER]:"Balancer"},K="clustersTableColumnsWidth",Q=(0,P.jsx)("span",{className:z("empty-cell"),children:"\u2014"}),Y=[{name:q.TITLE,header:X[q.TITLE],width:230,render:e=>{var s,t;let{row:r}=e;const{balancer:a,name:l}=r,n=a&&(0,B.M2)(a),o=(0,$.B7)(void 0,{backend:n,clusterName:l}),i=null===(s=r.cluster)||void 0===s?void 0:s.Overall;return(0,P.jsxs)("div",{className:z("cluster"),children:[i?(0,P.jsx)(U.r,{href:o,children:(0,P.jsx)("div",{className:z("cluster-status",{type:i&&i.toLowerCase()})})}):(0,P.jsx)("div",{className:z("cluster-status"),children:(0,P.jsx)(k.J,{content:(0,P.jsx)("span",{className:z("tooltip-content"),children:(null===(t=r.cluster)||void 0===t?void 0:t.error)||D("tooltip_no-cluster-data")}),offset:{left:0}})}),(0,P.jsx)("div",{className:z("cluster-name"),children:(0,P.jsx)(U.r,{href:o,children:r.title})})]})},defaultOrder:a.ZP.ASCENDING},{name:q.VERSIONS,header:X[q.VERSIONS],width:300,defaultOrder:a.ZP.DESCENDING,sortAccessor:e=>{let{preparedVersions:s}=e;return s.map((e=>e.version.replace(/^[0-9]\+\./g,""))).sort(((e,s)=>e.localeCompare(s)))[0]||void 0},render:e=>{let{row:s}=e;const{preparedVersions:t,versions:a=[],balancer:l,name:n}=s;if(!a.length||a.some((e=>!e.version)))return Q;const o=a.reduce(((e,s)=>e+s.count),0),i=a.map((e=>{var s;return{value:e.count/o*100,color:null===(s=t.find((s=>s.version===e.version)))||void 0===s?void 0:s.color}})),c=l&&(0,B.M2)(l);return t.length>0&&(0,P.jsx)(U.r,{className:z("cluster-versions"),href:(0,$.B7)($.xu.versions,{backend:c,clusterName:n}),children:(0,P.jsxs)(r.Fragment,{children:[t.map(((e,s)=>(0,P.jsx)("div",{className:z("cluster-version"),style:{color:e.color},title:e.version,children:e.version},s))),(0,P.jsx)(G.E,{size:"s",value:100,stack:i})]})})}},{name:q.DC,header:X[q.DC],width:120,sortable:!1,render:e=>{let{row:s}=e;const t=s.cluster&&s.cluster.DataCenters||[];return(0,P.jsx)("div",{className:z("cluster-dc"),children:t.join(", ")||Q})}},{name:q.SERVICE,header:X[q.SERVICE],width:100,sortable:!0},{name:q.STATUS,header:X[q.STATUS],width:150,sortable:!0},{name:q.NODES,header:X[q.NODES],resizeMinWidth:140,defaultOrder:a.ZP.DESCENDING,sortAccessor:e=>{let{cluster:s={}}=e;const{NodesTotal:t=0}=s;return t},render:e=>{let{row:s}=e;const{NodesAlive:t=0,NodesTotal:r=0,Overall:a}=s.cluster||{};return a?(0,P.jsx)(_.y,{value:t,capacity:r}):Q}},{name:q.LOAD,header:X[q.LOAD],resizeMinWidth:140,defaultOrder:a.ZP.DESCENDING,sortAccessor:e=>{let{cluster:s}=e;return null===s||void 0===s?void 0:s.NumberOfCpus},render:e=>{let{row:s}=e;const{LoadAverage:t=0,NumberOfCpus:r=0,Overall:a}=s.cluster||{};return a?(0,P.jsx)(_.y,{value:t,capacity:r}):Q}},{name:q.STORAGE,header:X[q.STORAGE],resizeMinWidth:140,defaultOrder:a.ZP.DESCENDING,sortAccessor:e=>{let{cluster:s}=e;return Number(null===s||void 0===s?void 0:s.StorageTotal)},render:e=>{let{row:s}=e;const{StorageUsed:t=0,StorageTotal:r=0,Overall:a}=s.cluster||{};return a?(0,P.jsx)(_.y,{value:t,capacity:r,formatValues:A.JD}):Q}},{name:q.HOSTS,header:X[q.HOSTS],width:80,defaultOrder:a.ZP.DESCENDING,sortAccessor:e=>{let{cluster:s}=e;return Number(null===s||void 0===s?void 0:s.Hosts)||0},render:e=>{var s;let{row:t}=e;return Number(null===(s=t.cluster)||void 0===s?void 0:s.Hosts)||Q}},{name:q.TENANTS,header:X[q.TENANTS],width:80,defaultOrder:a.ZP.DESCENDING,sortAccessor:e=>{let{cluster:s}=e;return Number(null===s||void 0===s?void 0:s.Tenants)||0},render:e=>{var s;let{row:t}=e;return Number(null===(s=t.cluster)||void 0===s?void 0:s.Tenants)||Q}},{name:q.OWNER,header:X[q.OWNER],sortable:!1,width:120,render:e=>{var s;let{row:t}=e;const r=null===(s=t.owner)||void 0===s?void 0:s.split(", ");return null!==r&&void 0!==r&&r.length?r.map((e=>(0,P.jsx)(H,{login:e},e))):Q}},{name:q.DESCRIPTION,header:X[q.DESCRIPTION],sortable:!1,width:150,render:e=>{let{row:s}=e;return s.description?(0,P.jsx)("div",{className:z("description"),children:s.description}):Q}},{name:q.BALANCER,header:X[q.BALANCER],sortable:!1,width:290,render:e=>{let{row:s}=e;if(!s.balancer)return Q;const t=(0,B.q)(s.balancer);return(0,P.jsxs)("div",{className:z("balancer-cell"),children:[(0,P.jsx)("div",{className:z("balancer-text"),children:t}),(0,P.jsx)(M.m,{size:"s",text:t,className:z("balancer-icon")})]})}}];function ee(){const[e]=(0,C.Rj)(),s=m.W1.useGetClustersListQuery(void 0,{pollingInterval:e}),t=(0,C.zL)(),h=(0,C.ix)(g),N=(0,C.ix)(p),_=(0,C.ix)(S),A=(0,C.ix)(x),{columnsToShow:y,columnsToSelect:R,setColumns:I}=(0,O.N)(Y,J,X,F,[q.TITLE]),L=s.data,{servicesToSelect:k,versions:U}=r.useMemo((()=>{const e=new Set,s=new Set;return(null!==L&&void 0!==L?L:[]).forEach((t=>{var r,a;t.service&&e.add(t.service),null===(r=t.cluster)||void 0===r||null===(a=r.Versions)||void 0===a||a.forEach((e=>{s.add((0,w.H)(e))}))})),{servicesToSelect:Array.from(e).map((e=>({value:e,content:e}))),versions:Array.from(s).map((e=>({value:e,content:e})))}}),[L]),G=r.useMemo((()=>function(e,s){return e.filter((e=>f(e,s.status)&&b(e,s.service)&&E(e,s.version)&&j(e,s.clusterName)))}(null!==L&&void 0!==L?L:[],{clusterName:h,status:N,service:_,version:A})),[h,L,_,N,A]),M=r.useMemo((()=>function(e){let s=0,t=0,r=0,a=0,l=0,n=0,o=0;const i=new Set;return e.filter((e=>{let{cluster:s}=e;return!(null!==s&&void 0!==s&&s.error)})).forEach((e=>{let{cluster:c,hosts:d={}}=e;s+=(null===c||void 0===c?void 0:c.NodesTotal)||0,t+=(null===c||void 0===c?void 0:c.NodesAlive)||0,Object.keys(d).forEach((e=>i.add(e))),o+=Number(null===c||void 0===c?void 0:c.Tenants)||0,r+=Number(null===c||void 0===c?void 0:c.LoadAverage)||0,a+=(null===c||void 0===c?void 0:c.NumberOfCpus)||0,l+=null!==c&&void 0!==c&&c.StorageUsed?Math.floor(parseInt(c.StorageUsed,10)):0,n+=null!==c&&void 0!==c&&c.StorageTotal?Math.floor(parseInt(c.StorageTotal,10)):0})),{NodesTotal:s,NodesAlive:t,Hosts:i.size,Tenants:o,LoadAverage:r,NumberOfCpus:a,StorageUsed:l,StorageTotal:n}}(G)),[G]),W=r.useMemo((()=>Array.from(new Set((null!==L&&void 0!==L?L:[]).map((e=>e.status)).filter(Boolean))).sort().map((e=>({value:e,content:e})))),[L]);return(0,P.jsxs)("div",{className:z(),children:[(0,P.jsx)(o.ql,{children:(0,P.jsx)("title",{children:D("page_title")})}),(0,P.jsx)(V,{stats:M,count:G.length}),(0,P.jsxs)("div",{className:z("controls"),children:[(0,P.jsx)("div",{className:z("control",{wide:!0}),children:(0,P.jsx)(v.o,{placeholder:D("controls_search-placeholder"),onChange:e=>{t((0,m.g_)({clusterName:e}))},value:h})}),(0,P.jsx)("div",{className:z("control"),children:(0,P.jsx)(l.P,{multiple:!0,filterable:!0,hasClear:!0,placeholder:D("controls_select-placeholder"),label:D("controls_status-select-label"),value:N,options:W,onUpdate:e=>{t((0,m.g_)({status:e}))},width:"max"})}),(0,P.jsx)("div",{className:z("control"),children:(0,P.jsx)(l.P,{multiple:!0,filterable:!0,hasClear:!0,placeholder:D("controls_select-placeholder"),label:D("controls_service-select-label"),value:_,options:k,onUpdate:e=>{t((0,m.g_)({service:e}))},width:"max"})}),(0,P.jsx)("div",{className:z("control"),children:(0,P.jsx)(l.P,{multiple:!0,filterable:!0,hasClear:!0,placeholder:D("controls_select-placeholder"),label:D("controls_version-select-label"),value:A,options:U,onUpdate:e=>{t((0,m.g_)({version:e}))},width:"max"})}),(0,P.jsx)("div",{className:z("control"),children:(0,P.jsx)(n.N,{popupWidth:242,items:R,showStatus:!0,onUpdate:I,sortable:!1},"TableColumnSetup")}),(0,P.jsx)(i.q,{})]}),s.isError?(0,P.jsx)(c.V,{error:s.error,className:z("error")}):null,s.isLoading?(0,P.jsx)(d.a,{size:"l"}):null,s.fulfilledTimeStamp?(0,P.jsx)("div",{className:z("table-wrapper"),children:(0,P.jsx)("div",{className:z("table-content"),children:(0,P.jsx)(u.G,{columnsWidthLSKey:K,wrapperClassName:z("table"),data:G,columns:y,settings:{...T.LE,dynamicRender:!1},initialSortOrder:{columnId:q.TITLE,order:a.ZP.ASCENDING}})})}):null]})}},57344:(e,s,t)=>{t.d(s,{N:()=>l});var r=t(68963),a=t(18193);const l=(e,s,t,l,n)=>{const[o,i]=r.useState((()=>a.r.readUserSettingsValue(s,l)));return{columnsToShow:r.useMemo((()=>e.filter((e=>o.find((s=>s===e.name))))),[e,o]),columnsToSelect:r.useMemo((()=>e.map((e=>e.name)).map((e=>{const s=null===n||void 0===n?void 0:n.includes(e),r=o.includes(e);return{id:e,title:t[e],selected:s||r,required:s,sticky:s?"start":void 0}}))),[e,t,n,o]),setColumns:r.useCallback((e=>{const t=e.filter((e=>e.selected)).map((e=>e.id));a.r.setUserSettingsValue(s,t),i(t)}),[s])}}},89712:(e,s,t)=>{t.d(s,{M:()=>n});var r=t(68963),a=t(2639),l=t(18193);const n=e=>{const s=r.useCallback((()=>e?l.r.readUserSettingsValue(e,{}):{}),[e]),t=r.useCallback((s=>{e&&l.r.setUserSettingsValue(e,s)}),[e]);return(0,a.M)({saveSizes:t,getSizes:s})}},21986:(e,s,t)=>{t.d(s,{J:()=>c});var r=t(68963),a=t(32257),l=t(68330),n=t(88776);const o=(0,t(31580).G)("help-popover"),i=16;function c(e){var s;return r.createElement(l.J,Object.assign({},e,{className:o(null,e.className)}),r.createElement("button",Object.assign({ref:e.buttonRef,type:"button"},e.buttonProps,{className:o("button",null===(s=e.buttonProps)||void 0===s?void 0:s.className)}),r.createElement(n.J,{data:a.Z,size:i})))}},31580:(e,s,t)=>{t.d(s,{G:()=>a});var r=t(5247);(0,r.withNaming)({e:"__",m:"_",v:"_"});const a=(0,r.withNaming)({n:"gc-",e:"__",m:"_",v:"_"})},84893:(e,s,t)=>{t.d(s,{E:()=>u});var r=t(68963);const a=(0,t(36951).Ge)("progress");function l(e){const{text:s,offset:t=0}=e;return s?r.createElement("div",{className:a("text-inner"),style:{transform:`translateX(calc(var(--g-flow-direction) * ${-t}%))`}},s):null}function n(e){let{item:s}=e;const{value:t,color:l,className:n,theme:o,title:i,content:c,loading:d}=s,u={loading:d};return"undefined"===typeof l&&(u.theme=o||"default"),Number.isFinite(t)?r.createElement("div",{className:a("item",u,n),style:{width:`${t}%`,backgroundColor:l},title:i},c):null}function o(e){return e<100?e-100:0}function i(e){const{theme:s,colorStops:t,colorStopsValue:r,value:a}=e;if(t){const e=t.find(((e,s)=>{const l="number"===typeof r?r:a,n=s>1?t[s-1].stop:0,o=s<t.length-1?e.stop:100;return l>=n&&l<=o}));return e?e.theme:s}return s}function c(e){const{stack:s,stackClassName:t,value:i,text:c}=e,d=o(i||function(e){return e.reduce(((e,s)=>{let{value:t}=s;return e+t}),0)}(s));return r.createElement("div",{className:a("stack",t),style:{transform:`translateX(calc(var(--g-flow-direction) * ${d}%))`}},r.createElement("div",{className:a("item"),style:{width:-d+"%"}}),s.map(((e,s)=>r.createElement(n,{key:s,item:e}))),r.createElement(l,{offset:d,text:c}))}function d(e){const{value:s,loading:t,text:n}=e,c=o(s);return Number.isFinite(s)?r.createElement("div",{className:a("item",{theme:i(e),loading:t}),style:{transform:`translateX(calc(var(--g-flow-direction) * ${c}%))`}},r.createElement(l,{offset:c,text:n})):null}const u=r.forwardRef((function(e,s){const{text:t="",theme:l="default",size:n="m",loading:o=!1,className:i,qa:u}=e,v=Object.assign(Object.assign({},e),{text:t,theme:l,size:n,loading:o});return r.createElement("div",{ref:s,className:a({size:n},i),"data-qa":u},r.createElement("div",{className:a("text")},t),function(e){return void 0!==e.stack}(v)?r.createElement(c,Object.assign({},v)):r.createElement(d,Object.assign({},v)))}))}}]); \ No newline at end of file
+"use strict";(self.webpackChunkydb_embedded_ui=self.webpackChunkydb_embedded_ui||[]).push([[2244],{50422:(e,s,t)=>{t.d(s,{q:()=>h});var r=t(84317),l=t(17176),a=t(2418),n=t(905),o=t(24362),i=t(17096),c=t(30817);const d=JSON.parse('{"None":"None","15 sec":"15 sec","1 min":"1 min","2 min":"2 min","5 min":"5 min","Refresh":"Refresh"}'),u=(0,c.wZ)("ydb-diagnostics-autorefresh-control",{en:d});var v=t(75859);const m=(0,o.cn)("auto-refresh-control");function h(e){let{className:s}=e;const t=(0,i.zL)(),[o,c]=(0,i.Rj)();return(0,v.jsxs)("div",{className:m(null,s),children:[(0,v.jsx)(l.z,{view:"flat",onClick:()=>{t(n.h.util.invalidateTags(["All"]))},extraProps:{"aria-label":u("Refresh")},children:(0,v.jsx)(l.z.Icon,{children:(0,v.jsx)(r.Z,{})})}),(0,v.jsxs)(a.P,{value:[String(o)],onUpdate:e=>{c(Number(e))},width:85,children:[(0,v.jsx)(a.P.Option,{value:"0",children:u("None")}),(0,v.jsx)(a.P.Option,{value:"15000",children:u("15 sec")}),(0,v.jsx)(a.P.Option,{value:"60000",children:u("1 min")}),(0,v.jsx)(a.P.Option,{value:"120000",children:u("2 min")}),(0,v.jsx)(a.P.Option,{value:"300000",children:u("5 min")})]})]})}},62776:(e,s,t)=>{t.d(s,{a:()=>r.a});var r=t(91173)},67359:(e,s,t)=>{t.d(s,{y:()=>u});var r=t(56829),l=t(24362),a=t(34301),n=t(55850),o=t(75859);const i=(0,l.cn)("progress-viewer"),c=e=>(0,a.uf)((0,a.W0)(Number(e),2)),d=(e,s)=>[c(e),c(s)];function u(e){let{value:s,capacity:t,formatValues:l=d,percents:a,className:c,size:u="xs",colorizeProgress:v,inverseColorize:m,warningThreshold:h=60,dangerThreshold:N=80}=e;const g=(0,r.F)();let p=Math.round(parseFloat(String(s))/parseFloat(String(t))*100)||0;p=p>100?100:p;let S=s,x=t,f="/";a?(S=p+"%",x="",f=""):l&&([S,x]=l(Number(s),Number(t)));let b=m?"danger":"good";v&&(p>h&&p<=N?b="warning":p>N&&(b=m?"good":"danger"),(0,n.kE)(t)||(p=100));const E={width:p+"%"};return(0,n.kE)(s)?(0,o.jsxs)("div",{className:i({size:u,theme:g,status:b},c),children:[(0,o.jsx)("div",{className:i("line"),style:E}),(0,o.jsx)("span",{className:i("text"),children:(0,n.kE)(t)?`${S} ${f} ${x}`:S})]}):(0,o.jsx)("div",{className:`${i({size:u})} ${c} error`,children:"no data"})}},2098:(e,s,t)=>{t.d(s,{G:()=>c});var r=t(2639),l=t(19812),a=t(24362),n=t(89712),o=t(75859);const i=(0,a.cn)("ydb-resizeable-data-table");function c(e){let{columnsWidthLSKey:s,columns:t,settings:a,wrapperClassName:c,...d}=e;const[u,v]=(0,n.M)(s),m=(0,r.B)(t,u),h={...a,defaultResizeable:!0};return(0,o.jsx)("div",{className:i(null,c),children:(0,o.jsx)(l.ZP,{theme:"yandex-cloud",columns:m,onResize:v,settings:h,...d})})}},30629:(e,s,t)=>{t.d(s,{o:()=>i});var r=t(68963),l=t(77264),a=t(24362),n=t(75859);const o=(0,a.cn)("ydb-search"),i=e=>{let{onChange:s,value:t="",className:a,debounce:i=200,placeholder:c}=e;const[d,u]=r.useState(t),v=r.useRef();r.useEffect((()=>{u((e=>e!==t?t:e))}),[t]);return(0,n.jsx)(l.o,{hasClear:!0,autoFocus:!0,className:o(null,a),placeholder:c,value:d,onUpdate:e=>{u(e),window.clearTimeout(v.current),v.current=window.setTimeout((()=>{null===s||void 0===s||s(e)}),i)}})}},11551:(e,s,t)=>{t.d(s,{o:()=>r.o});var r=t(30629)},17851:(e,s,t)=>{t.r(s),t.d(s,{Clusters:()=>ee});var r=t(68963),l=t(19812),a=t(2418),n=t(48857),o=t(49352),i=t(50422),c=t(26688),d=t(62776),u=t(2098),v=t(11551),m=t(20163),h=t(43680),N=t.n(h);const g=e=>e.clusters.clusterName,p=e=>e.clusters.status,S=e=>e.clusters.service,x=e=>e.clusters.version,f=(e,s)=>0===s.length||e.status&&s.includes(e.status),b=(e,s)=>0===s.length||e.service&&s.includes(e.service),E=(e,s)=>0===s.length||s.some((s=>{var t,r;return null===(t=e.cluster)||void 0===t||null===(r=t.Versions)||void 0===r?void 0:r.some((e=>e.startsWith(s)))})),j=function(e){var s;let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(!t)return!0;const r=t.toLowerCase(),l=r.split(" "),a=(null===(s=e.title)||void 0===s?void 0:s.toLowerCase().match(/[^\d\s]+|\d+|[^-\s]+|[^_\s]+/g))||[],n=l.every((s=>{const t=N()(s),r=new RegExp(`^${t}|[\\s\\-_]${t}`,"i");return e.title&&r.test(e.title)||a.some((e=>e.startsWith(s)))})),o=e.preparedVersions.some((e=>e.version.includes(r))),i=Boolean(e.hosts&&e.hosts[r]);return n||o||i};var T=t(52317),C=t(17096),O=t(57344),w=t(30601),_=t(67359),A=t(34301),y=t(30817);const R=JSON.parse('{"controls_status-select-label":"Status:","controls_service-select-label":"Service:","controls_version-select-label":"Version:","controls_search-placeholder":"Cluster name, version, host","controls_select-placeholder":"All","statistics_clusters":"Clusters","statistics_hosts":"Hosts","statistics_tenants":"Tenants","statistics_nodes":"Nodes","statistics_load":"Load","statistics_storage":"Storage","tooltip_no-cluster-data":"No cluster data","page_title":"Clusters"}'),I=JSON.parse('{"controls_status-select-label":"\u0421\u0442\u0430\u0442\u0443\u0441:","controls_service-select-label":"\u0421\u0435\u0440\u0432\u0438\u0441:","controls_version-select-label":"\u0412\u0435\u0440\u0441\u0438\u044f:","controls_search-placeholder":"\u0418\u043c\u044f \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0430, \u0432\u0435\u0440\u0441\u0438\u044f \u0438\u043b\u0438 \u0445\u043e\u0441\u0442","controls_select-placeholder":"\u0412\u0441\u0435","statistics_clusters":"\u041a\u043b\u0430\u0441\u0442\u0435\u0440\u044b","statistics_hosts":"\u0425\u043e\u0441\u0442\u044b","statistics_tenants":"\u0411\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445","statistics_nodes":"\u0423\u0437\u043b\u044b","statistics_load":"\u041d\u0430\u0433\u0440\u0443\u0437\u043a\u0430","statistics_storage":"\u0425\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435","tooltip_no-cluster-data":"\u041d\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0445 \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0430","page_title":"\u041a\u043b\u0430\u0441\u0442\u0435\u0440\u044b"}'),D=(0,y.wZ)("ydb-clusters-page",{ru:I,en:R});var L=t(24362);const z=(0,L.cn)("clusters");var P=t(75859);const V=e=>{let{count:s,stats:t}=e;const{NodesTotal:r,NodesAlive:l,Hosts:a,Tenants:n,LoadAverage:o,NumberOfCpus:i,StorageUsed:c,StorageTotal:d}=t;return(0,P.jsxs)("div",{className:z("aggregation"),children:[(0,P.jsxs)("div",{className:z("aggregation-value-container"),children:[(0,P.jsx)("span",{className:z("aggregation-label"),children:D("statistics_clusters")}),s]}),(0,P.jsxs)("div",{className:z("aggregation-value-container"),children:[(0,P.jsx)("span",{className:z("aggregation-label"),children:D("statistics_hosts")}),a]}),(0,P.jsxs)("div",{className:z("aggregation-value-container"),children:[(0,P.jsx)("span",{className:z("aggregation-label"),children:D("statistics_tenants")}),n]}),(0,P.jsxs)("div",{className:z("aggregation-value-container"),children:[(0,P.jsx)("span",{className:z("aggregation-label"),children:D("statistics_nodes")}),(0,P.jsx)(_.y,{size:"ns",value:l,capacity:r,colorizeProgress:!0,inverseColorize:!0})]}),(0,P.jsxs)("div",{className:z("aggregation-value-container"),children:[(0,P.jsx)("span",{className:z("aggregation-label"),children:D("statistics_load")}),(0,P.jsx)(_.y,{size:"ns",value:o,capacity:i,colorizeProgress:!0})]}),(0,P.jsxs)("div",{className:z("aggregation-value-container"),children:[(0,P.jsx)("span",{className:z("aggregation-label"),children:D("statistics_storage")}),(0,P.jsx)(_.y,{size:"ns",value:c,capacity:d,formatValues:A.QO,colorizeProgress:!0})]})]})};var k=t(21986),U=t(86017),G=t(84893),M=t(19797),W=t(40726);const Z=(0,L.cn)("kv-user");function H(e){let{login:s,className:t}=e;const r=(0,W.C)("StaffCard");return(0,P.jsx)("div",{className:Z(null,t),children:(0,P.jsx)(r,{login:s,children:(0,P.jsx)("div",{className:Z("name"),children:s})})})}var B=t(45535),$=t(81003);const J="selectedColumns",q={TITLE:"title",VERSIONS:"versions",DC:"dc",SERVICE:"service",STATUS:"status",NODES:"nodes",LOAD:"load",STORAGE:"storage",HOSTS:"hosts",TENANTS:"tenants",OWNER:"owner",DESCRIPTION:"description",BALANCER:"balancer"},F=[q.TITLE,q.VERSIONS,q.SERVICE,q.STATUS,q.NODES,q.LOAD,q.STORAGE,q.HOSTS,q.TENANTS,q.OWNER,q.BALANCER],X={[q.TITLE]:"Cluster",[q.VERSIONS]:"Versions",[q.DC]:"DC",[q.SERVICE]:"Service",[q.STATUS]:"Status",[q.NODES]:"Nodes",[q.LOAD]:"Load",[q.STORAGE]:"Storage",[q.HOSTS]:"Hosts",[q.TENANTS]:"Tenants",[q.OWNER]:"Owner",[q.DESCRIPTION]:"Description",[q.BALANCER]:"Balancer"},K="clustersTableColumnsWidth",Q=(0,P.jsx)("span",{className:z("empty-cell"),children:"\u2014"}),Y=[{name:q.TITLE,header:X[q.TITLE],width:230,render:e=>{var s,t;let{row:r}=e;const{balancer:l,name:a}=r,n=l&&(0,B.M2)(l),o=(0,$.B7)(void 0,{backend:n,clusterName:a}),i=null===(s=r.cluster)||void 0===s?void 0:s.Overall;return(0,P.jsxs)("div",{className:z("cluster"),children:[i?(0,P.jsx)(U.r,{href:o,children:(0,P.jsx)("div",{className:z("cluster-status",{type:i&&i.toLowerCase()})})}):(0,P.jsx)("div",{className:z("cluster-status"),children:(0,P.jsx)(k.J,{content:(0,P.jsx)("span",{className:z("tooltip-content"),children:(null===(t=r.cluster)||void 0===t?void 0:t.error)||D("tooltip_no-cluster-data")}),offset:{left:0}})}),(0,P.jsx)("div",{className:z("cluster-name"),children:(0,P.jsx)(U.r,{href:o,children:r.title})})]})},defaultOrder:l.ZP.ASCENDING},{name:q.VERSIONS,header:X[q.VERSIONS],width:300,defaultOrder:l.ZP.DESCENDING,sortAccessor:e=>{let{preparedVersions:s}=e;return s.map((e=>e.version.replace(/^[0-9]\+\./g,""))).sort(((e,s)=>e.localeCompare(s)))[0]||void 0},render:e=>{let{row:s}=e;const{preparedVersions:t,versions:l=[],balancer:a,name:n}=s;if(!l.length||l.some((e=>!e.version)))return Q;const o=l.reduce(((e,s)=>e+s.count),0),i=l.map((e=>{var s;return{value:e.count/o*100,color:null===(s=t.find((s=>s.version===e.version)))||void 0===s?void 0:s.color}})),c=a&&(0,B.M2)(a);return t.length>0&&(0,P.jsx)(U.r,{className:z("cluster-versions"),href:(0,$.B7)($.xu.versions,{backend:c,clusterName:n}),children:(0,P.jsxs)(r.Fragment,{children:[t.map(((e,s)=>(0,P.jsx)("div",{className:z("cluster-version"),style:{color:e.color},title:e.version,children:e.version},s))),(0,P.jsx)(G.E,{size:"s",value:100,stack:i})]})})}},{name:q.DC,header:X[q.DC],width:120,sortable:!1,render:e=>{let{row:s}=e;const t=s.cluster&&s.cluster.DataCenters||[];return(0,P.jsx)("div",{className:z("cluster-dc"),children:t.join(", ")||Q})}},{name:q.SERVICE,header:X[q.SERVICE],width:100,sortable:!0},{name:q.STATUS,header:X[q.STATUS],width:150,sortable:!0},{name:q.NODES,header:X[q.NODES],resizeMinWidth:140,defaultOrder:l.ZP.DESCENDING,sortAccessor:e=>{let{cluster:s={}}=e;const{NodesTotal:t=0}=s;return t},render:e=>{let{row:s}=e;const{NodesAlive:t=0,NodesTotal:r=0,Overall:l}=s.cluster||{};return l?(0,P.jsx)(_.y,{value:t,capacity:r}):Q}},{name:q.LOAD,header:X[q.LOAD],resizeMinWidth:140,defaultOrder:l.ZP.DESCENDING,sortAccessor:e=>{let{cluster:s}=e;return null===s||void 0===s?void 0:s.NumberOfCpus},render:e=>{let{row:s}=e;const{LoadAverage:t=0,NumberOfCpus:r=0,Overall:l}=s.cluster||{};return l?(0,P.jsx)(_.y,{value:t,capacity:r}):Q}},{name:q.STORAGE,header:X[q.STORAGE],resizeMinWidth:140,defaultOrder:l.ZP.DESCENDING,sortAccessor:e=>{let{cluster:s}=e;return Number(null===s||void 0===s?void 0:s.StorageTotal)},render:e=>{let{row:s}=e;const{StorageUsed:t=0,StorageTotal:r=0,Overall:l}=s.cluster||{};return l?(0,P.jsx)(_.y,{value:t,capacity:r,formatValues:A.JD}):Q}},{name:q.HOSTS,header:X[q.HOSTS],width:80,defaultOrder:l.ZP.DESCENDING,sortAccessor:e=>{let{cluster:s}=e;return Number(null===s||void 0===s?void 0:s.Hosts)||0},render:e=>{var s;let{row:t}=e;return Number(null===(s=t.cluster)||void 0===s?void 0:s.Hosts)||Q}},{name:q.TENANTS,header:X[q.TENANTS],width:80,defaultOrder:l.ZP.DESCENDING,sortAccessor:e=>{let{cluster:s}=e;return Number(null===s||void 0===s?void 0:s.Tenants)||0},render:e=>{var s;let{row:t}=e;return Number(null===(s=t.cluster)||void 0===s?void 0:s.Tenants)||Q}},{name:q.OWNER,header:X[q.OWNER],sortable:!1,width:120,render:e=>{var s;let{row:t}=e;const r=null===(s=t.owner)||void 0===s?void 0:s.split(", ");return null!==r&&void 0!==r&&r.length?r.map((e=>(0,P.jsx)(H,{login:e},e))):Q}},{name:q.DESCRIPTION,header:X[q.DESCRIPTION],sortable:!1,width:150,render:e=>{let{row:s}=e;return s.description?(0,P.jsx)("div",{className:z("description"),children:s.description}):Q}},{name:q.BALANCER,header:X[q.BALANCER],sortable:!1,width:290,render:e=>{let{row:s}=e;if(!s.balancer)return Q;const t=(0,B.q)(s.balancer);return(0,P.jsxs)("div",{className:z("balancer-cell"),children:[(0,P.jsx)("div",{className:z("balancer-text"),children:t}),(0,P.jsx)(M.m,{size:"s",text:t,className:z("balancer-icon")})]})}}];function ee(){const[e]=(0,C.Rj)(),s=m.W1.useGetClustersListQuery(void 0,{pollingInterval:e}),t=(0,C.zL)(),h=(0,C.ix)(g),N=(0,C.ix)(p),_=(0,C.ix)(S),A=(0,C.ix)(x),{columnsToShow:y,columnsToSelect:R,setColumns:I}=(0,O.N)(Y,J,X,F,[q.TITLE]),L=s.data,{servicesToSelect:k,versions:U}=r.useMemo((()=>{const e=new Set,s=new Set;return(null!==L&&void 0!==L?L:[]).forEach((t=>{var r,l;t.service&&e.add(t.service),null===(r=t.cluster)||void 0===r||null===(l=r.Versions)||void 0===l||l.forEach((e=>{s.add((0,w.H)(e))}))})),{servicesToSelect:Array.from(e).map((e=>({value:e,content:e}))),versions:Array.from(s).map((e=>({value:e,content:e})))}}),[L]),G=r.useMemo((()=>function(e,s){return e.filter((e=>f(e,s.status)&&b(e,s.service)&&E(e,s.version)&&j(e,s.clusterName)))}(null!==L&&void 0!==L?L:[],{clusterName:h,status:N,service:_,version:A})),[h,L,_,N,A]),M=r.useMemo((()=>function(e){let s=0,t=0,r=0,l=0,a=0,n=0,o=0;const i=new Set;return e.filter((e=>{let{cluster:s}=e;return!(null!==s&&void 0!==s&&s.error)})).forEach((e=>{let{cluster:c,hosts:d={}}=e;s+=(null===c||void 0===c?void 0:c.NodesTotal)||0,t+=(null===c||void 0===c?void 0:c.NodesAlive)||0,Object.keys(d).forEach((e=>i.add(e))),o+=Number(null===c||void 0===c?void 0:c.Tenants)||0,r+=Number(null===c||void 0===c?void 0:c.LoadAverage)||0,l+=(null===c||void 0===c?void 0:c.NumberOfCpus)||0,a+=null!==c&&void 0!==c&&c.StorageUsed?Math.floor(parseInt(c.StorageUsed,10)):0,n+=null!==c&&void 0!==c&&c.StorageTotal?Math.floor(parseInt(c.StorageTotal,10)):0})),{NodesTotal:s,NodesAlive:t,Hosts:i.size,Tenants:o,LoadAverage:r,NumberOfCpus:l,StorageUsed:a,StorageTotal:n}}(G)),[G]),W=r.useMemo((()=>Array.from(new Set((null!==L&&void 0!==L?L:[]).map((e=>e.status)).filter(Boolean))).sort().map((e=>({value:e,content:e})))),[L]);return(0,P.jsxs)("div",{className:z(),children:[(0,P.jsx)(o.ql,{children:(0,P.jsx)("title",{children:D("page_title")})}),(0,P.jsx)(V,{stats:M,count:G.length}),(0,P.jsxs)("div",{className:z("controls"),children:[(0,P.jsx)("div",{className:z("control",{wide:!0}),children:(0,P.jsx)(v.o,{placeholder:D("controls_search-placeholder"),onChange:e=>{t((0,m.g_)({clusterName:e}))},value:h})}),(0,P.jsx)("div",{className:z("control"),children:(0,P.jsx)(a.P,{multiple:!0,filterable:!0,hasClear:!0,placeholder:D("controls_select-placeholder"),label:D("controls_status-select-label"),value:N,options:W,onUpdate:e=>{t((0,m.g_)({status:e}))},width:"max"})}),(0,P.jsx)("div",{className:z("control"),children:(0,P.jsx)(a.P,{multiple:!0,filterable:!0,hasClear:!0,placeholder:D("controls_select-placeholder"),label:D("controls_service-select-label"),value:_,options:k,onUpdate:e=>{t((0,m.g_)({service:e}))},width:"max"})}),(0,P.jsx)("div",{className:z("control"),children:(0,P.jsx)(a.P,{multiple:!0,filterable:!0,hasClear:!0,placeholder:D("controls_select-placeholder"),label:D("controls_version-select-label"),value:A,options:U,onUpdate:e=>{t((0,m.g_)({version:e}))},width:"max"})}),(0,P.jsx)("div",{className:z("control"),children:(0,P.jsx)(n.N,{popupWidth:242,items:R,showStatus:!0,onUpdate:I,sortable:!1},"TableColumnSetup")}),(0,P.jsx)(i.q,{})]}),s.isError?(0,P.jsx)(c.V,{error:s.error,className:z("error")}):null,s.isLoading?(0,P.jsx)(d.a,{size:"l"}):null,s.fulfilledTimeStamp?(0,P.jsx)("div",{className:z("table-wrapper"),children:(0,P.jsx)("div",{className:z("table-content"),children:(0,P.jsx)(u.G,{columnsWidthLSKey:K,wrapperClassName:z("table"),data:G,columns:y,settings:{...T.LE,dynamicRender:!1},initialSortOrder:{columnId:q.TITLE,order:l.ZP.ASCENDING}})})}):null]})}},57344:(e,s,t)=>{t.d(s,{N:()=>a});var r=t(68963),l=t(18193);const a=(e,s,t,a,n)=>{const[o,i]=r.useState((()=>l.r.readUserSettingsValue(s,a)));return{columnsToShow:r.useMemo((()=>e.filter((e=>{const s=e.name,t=o.includes(s),r=null===n||void 0===n?void 0:n.includes(s);return t||r}))),[e,n,o]),columnsToSelect:r.useMemo((()=>e.map((e=>e.name)).map((e=>{const s=null===n||void 0===n?void 0:n.includes(e),r=o.includes(e);return{id:e,title:t[e],selected:s||r,required:s,sticky:s?"start":void 0}}))),[e,t,n,o]),setColumns:r.useCallback((e=>{const t=e.filter((e=>e.selected)).map((e=>e.id));l.r.setUserSettingsValue(s,t),i(t)}),[s])}}},89712:(e,s,t)=>{t.d(s,{M:()=>n});var r=t(68963),l=t(2639),a=t(18193);const n=e=>{const s=r.useCallback((()=>e?a.r.readUserSettingsValue(e,{}):{}),[e]),t=r.useCallback((s=>{e&&a.r.setUserSettingsValue(e,s)}),[e]);return(0,l.M)({saveSizes:t,getSizes:s})}},21986:(e,s,t)=>{t.d(s,{J:()=>c});var r=t(68963),l=t(32257),a=t(68330),n=t(88776);const o=(0,t(31580).G)("help-popover"),i=16;function c(e){var s;return r.createElement(a.J,Object.assign({},e,{className:o(null,e.className)}),r.createElement("button",Object.assign({ref:e.buttonRef,type:"button"},e.buttonProps,{className:o("button",null===(s=e.buttonProps)||void 0===s?void 0:s.className)}),r.createElement(n.J,{data:l.Z,size:i})))}},31580:(e,s,t)=>{t.d(s,{G:()=>l});var r=t(5247);(0,r.withNaming)({e:"__",m:"_",v:"_"});const l=(0,r.withNaming)({n:"gc-",e:"__",m:"_",v:"_"})},84893:(e,s,t)=>{t.d(s,{E:()=>u});var r=t(68963);const l=(0,t(36951).Ge)("progress");function a(e){const{text:s,offset:t=0}=e;return s?r.createElement("div",{className:l("text-inner"),style:{transform:`translateX(calc(var(--g-flow-direction) * ${-t}%))`}},s):null}function n(e){let{item:s}=e;const{value:t,color:a,className:n,theme:o,title:i,content:c,loading:d}=s,u={loading:d};return"undefined"===typeof a&&(u.theme=o||"default"),Number.isFinite(t)?r.createElement("div",{className:l("item",u,n),style:{width:`${t}%`,backgroundColor:a},title:i},c):null}function o(e){return e<100?e-100:0}function i(e){const{theme:s,colorStops:t,colorStopsValue:r,value:l}=e;if(t){const e=t.find(((e,s)=>{const a="number"===typeof r?r:l,n=s>1?t[s-1].stop:0,o=s<t.length-1?e.stop:100;return a>=n&&a<=o}));return e?e.theme:s}return s}function c(e){const{stack:s,stackClassName:t,value:i,text:c}=e,d=o(i||function(e){return e.reduce(((e,s)=>{let{value:t}=s;return e+t}),0)}(s));return r.createElement("div",{className:l("stack",t),style:{transform:`translateX(calc(var(--g-flow-direction) * ${d}%))`}},r.createElement("div",{className:l("item"),style:{width:-d+"%"}}),s.map(((e,s)=>r.createElement(n,{key:s,item:e}))),r.createElement(a,{offset:d,text:c}))}function d(e){const{value:s,loading:t,text:n}=e,c=o(s);return Number.isFinite(s)?r.createElement("div",{className:l("item",{theme:i(e),loading:t}),style:{transform:`translateX(calc(var(--g-flow-direction) * ${c}%))`}},r.createElement(a,{offset:c,text:n})):null}const u=r.forwardRef((function(e,s){const{text:t="",theme:a="default",size:n="m",loading:o=!1,className:i,qa:u}=e,v=Object.assign(Object.assign({},e),{text:t,theme:a,size:n,loading:o});return r.createElement("div",{ref:s,className:l({size:n},i),"data-qa":u},r.createElement("div",{className:l("text")},t),function(e){return void 0!==e.stack}(v)?r.createElement(c,Object.assign({},v)):r.createElement(d,Object.assign({},v)))}))}}]); \ No newline at end of file
diff --git a/ydb/core/viewer/monitoring/static/js/2775.ae79e944.chunk.js b/ydb/core/viewer/monitoring/static/js/2775.ae79e944.chunk.js
deleted file mode 100644
index a854626dc8..0000000000
--- a/ydb/core/viewer/monitoring/static/js/2775.ae79e944.chunk.js
+++ /dev/null
@@ -1 +0,0 @@
-"use strict";(self.webpackChunkydb_embedded_ui=self.webpackChunkydb_embedded_ui||[]).push([[2775],{30832:(e,a,l)=>{l.d(a,{a:()=>o});var t=l(24362),s=l(98366),n=l(75859);const r=(0,t.cn)("ydb-entity-page-title");function o(e){let{entityName:a,status:l,id:t,className:o}=e;return(0,n.jsxs)("div",{className:r(null,o),children:[(0,n.jsx)("span",{className:r("prefix"),children:a}),(0,n.jsx)(s.J,{className:r("icon"),status:l,size:"s"}),t]})}},91816:(e,a,l)=>{l.d(a,{b:()=>c});var t=l(68963),s=l(56711),n=l(24362),r=l(42587),o=l(75859);const i=(0,n.cn)("ydb-info-viewer-skeleton"),u=()=>(0,o.jsxs)("div",{className:i("label"),children:[(0,o.jsx)(s.O,{className:i("label__text")}),(0,o.jsx)("div",{className:i("label__dots")})]}),c=e=>{let{rows:a=8,className:l,delay:n=600}=e;const[c]=(0,r.$)(n);let d=(0,o.jsxs)(t.Fragment,{children:[(0,o.jsx)(u,{}),(0,o.jsx)(s.O,{className:i("value")})]});return c||(d=null),(0,o.jsx)("div",{className:i(null,l),children:[...new Array(a)].map(((e,a)=>(0,o.jsx)("div",{className:i("row"),children:d},`skeleton-row-${a}`)))})}},27174:(e,a,l)=>{l.d(a,{B:()=>p});var t=l(77796),s=l(24362),n=l(50422),r=l(56711),o=l(42587),i=l(75859);const u=e=>{let{delay:a=600,className:l}=e;const[t]=(0,o.$)(a);return t?(0,i.jsx)(r.O,{className:l}):null},c=(0,s.cn)("ydb-page-meta");function d(e){let{items:a,loading:l}=e;return(0,i.jsx)("div",{className:c("info"),children:l?(0,i.jsx)(u,{className:c("skeleton")}):a.filter((e=>Boolean(e))).join("\xa0\xa0\xb7\xa0\xa0")})}function p(e){let{className:a,...l}=e;return(0,i.jsxs)(t.k,{gap:1,alignItems:"center",justifyContent:"space-between",className:c(null,a),children:[(0,i.jsx)(d,{...l}),(0,i.jsx)(n.q,{})]})}},35953:(e,a,l)=>{l.r(a),l.d(a,{StorageGroupPage:()=>M});var t=l(68963),s=l(17095),n=l(49352),r=l(52846),o=l(30832),i=l(26688),u=l(91816),c=l(27174),d=l(77796),p=l(5922),g=l(34301),m=l(1504),v=l(55850),h=l(69214),b=l(62206),y=l(67359),x=l(30817);const N=JSON.parse('{"encryption":"Encryption","overall":"Overall","disk-space":"Disk Space","media-type":"Media Type","erasure-species":"Erasure Species","used-space":"Used Space","usage":"Usage","read-throughput":"Read Throughput","write-throughput":"Write Throughput","yes":"Yes","no":"No","group-generation":"Group Generation","latency":"Latency","allocation-units":"Units","state":"State","missing-disks":"Missing Disks","available":"Available Space","latency-put-tablet-log":"Latency (Put Tablet Log)","latency-put-user-data":"Latency (Put User Data)","latency-get-fast":"Latency (Get Fast)"}'),f=(0,x.wZ)("storage-group-info",{en:N});var j=l(75859);function w(e){let{data:a,className:l,...t}=e;const{Encryption:s,Overall:n,DiskSpace:r,MediaType:o,ErasureSpecies:i,Used:u,Limit:c,Usage:x,Read:N,Write:w,GroupGeneration:D,Latency:k,AllocationUnits:E,State:Z,MissingDisks:S,Available:G,LatencyPutTabletLog:A,LatencyPutUserData:O,LatencyGetFast:L}=a||{},P=[];(0,p.D)(D)&&P.push({label:f("group-generation"),value:D}),(0,p.D)(i)&&P.push({label:f("erasure-species"),value:i}),(0,p.D)(o)&&P.push({label:f("media-type"),value:o}),(0,p.D)(s)&&P.push({label:f("encryption"),value:f(s?"yes":"no")}),(0,p.D)(n)&&P.push({label:f("overall"),value:(0,j.jsx)(h.A,{status:n})}),(0,p.D)(Z)&&P.push({label:f("state"),value:Z}),(0,p.D)(S)&&P.push({label:f("missing-disks"),value:S});const M=[];return(0,p.D)(u)&&(0,p.D)(c)&&M.push({label:f("used-space"),value:(0,j.jsx)(y.y,{value:Number(u),capacity:Number(c),formatValues:g.q3,colorizeProgress:!0})}),(0,p.D)(G)&&M.push({label:f("available"),value:(0,g.q3)(Number(G))}),(0,p.D)(x)&&M.push({label:f("usage"),value:`${x.toFixed(2)}%`}),(0,p.D)(r)&&M.push({label:f("disk-space"),value:(0,j.jsx)(h.A,{status:r})}),(0,p.D)(k)&&M.push({label:f("latency"),value:(0,j.jsx)(h.A,{status:k})}),(0,p.D)(A)&&M.push({label:f("latency-put-tablet-log"),value:(0,m.zm)(A)}),(0,p.D)(O)&&M.push({label:f("latency-put-user-data"),value:(0,m.zm)(O)}),(0,p.D)(L)&&M.push({label:f("latency-get-fast"),value:(0,m.zm)(L)}),(0,p.D)(E)&&M.push({label:f("allocation-units"),value:E}),(0,p.D)(N)&&M.push({label:f("read-throughput"),value:(0,v.Qt)(Number(N))}),(0,p.D)(w)&&M.push({label:f("write-throughput"),value:(0,v.Qt)(Number(w))}),(0,j.jsxs)(d.k,{className:l,gap:2,direction:"row",wrap:!0,children:[(0,j.jsx)(b._P,{info:P,...t}),(0,j.jsx)(b._P,{info:M,...t})]})}var D=l(17880),k=l(79061),E=l(33058),Z=l(75850),S=l(24362),G=l(17096),A=l(45578);const O=JSON.parse('{"storage-group":"Storage Group","storage":"Storage","pool-name":"Pool Name"}'),L=(0,x.wZ)("ydb-storage-group-page",{en:O}),P=(0,S.cn)("ydb-storage-group-page");function M(){var e,a;const l=(0,G.zL)(),[{groupId:d}]=(0,r.useQueryParams)({groupId:r.StringParam});t.useEffect((()=>{l((0,k.J)("storageGroup",{groupId:d}))}),[l,d]);const[g]=(0,G.Rj)(),m=(0,D.tS)(),v=(0,D.rU)(),h=E.y.useGetStorageGroupsInfoQuery((0,p.D)(d)?{groupId:d,shouldUseGroupsHandler:m,with:"all"}:s.CN,{pollingInterval:g,skip:!v}),b=null===(e=h.data)||void 0===e||null===(a=e.groups)||void 0===a?void 0:a[0],y=h.isFetching&&void 0===b;return(0,j.jsxs)("div",{className:P(null),children:[(()=>{const e=d?`${L("storage-group")} ${d}`:L("storage-group");return(0,j.jsx)(n.ql,{titleTemplate:`%s - ${e} \u2014 YDB Monitoring`,defaultTitle:`${e} \u2014 YDB Monitoring`})})(),(()=>{if(!d)return null;const e=[`${L("pool-name")}: ${null===b||void 0===b?void 0:b.PoolName}`];return(0,j.jsx)(c.B,{className:P("meta"),loading:y,items:e})})(),(0,j.jsx)(o.a,{className:P("title"),entityName:L("storage-group"),status:(null===b||void 0===b?void 0:b.Overall)||Z.K.Grey,id:d}),h.error?(0,j.jsx)(i.V,{error:h.error}):null,y?(0,j.jsx)(u.b,{className:P("info"),rows:10}):(0,j.jsx)(w,{data:b,className:P("info")}),d?(0,j.jsxs)(t.Fragment,{children:[(0,j.jsx)("div",{className:P("storage-title"),children:L("storage")}),(0,j.jsx)(A.K,{groupId:d})]}):null]})}},57225:(e,a,l)=>{l.d(a,{Z:()=>s});var t=l(68963);const s=e=>t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),t.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M15 8A7 7 0 1 1 1 8a7 7 0 0 1 14 0Zm-6 2.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM8.75 5a.75.75 0 0 0-1.5 0v2.5a.75.75 0 0 0 1.5 0V5Z",clipRule:"evenodd"}))},67585:(e,a,l)=>{l.d(a,{Z:()=>s});var t=l(68963);const s=e=>t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),t.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14Zm1-9.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM8 7.75a.75.75 0 0 1 .75.75V11a.75.75 0 0 1-1.5 0V8.5A.75.75 0 0 1 8 7.75Z",clipRule:"evenodd"}))},71549:(e,a,l)=>{l.d(a,{Z:()=>s});var t=l(68963);const s=e=>t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),t.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"m3.003 4.702 4.22-2.025a1.796 1.796 0 0 1 1.554 0l4.22 2.025a.886.886 0 0 1 .503.8V6a8.55 8.55 0 0 1-3.941 7.201l-.986.631a1.063 1.063 0 0 1-1.146 0l-.986-.63A8.55 8.55 0 0 1 2.5 6v-.498c0-.341.196-.652.503-.8Zm3.57-3.377L2.354 3.35A2.387 2.387 0 0 0 1 5.502V6a10.05 10.05 0 0 0 4.632 8.465l.986.63a2.563 2.563 0 0 0 2.764 0l.986-.63A10.05 10.05 0 0 0 15 6v-.498c0-.918-.526-1.755-1.354-2.152l-4.22-2.025a3.296 3.296 0 0 0-2.852 0ZM9.5 7a1.5 1.5 0 0 1-.75 1.3v1.95a.75.75 0 0 1-1.5 0V8.3A1.5 1.5 0 1 1 9.5 7Z",clipRule:"evenodd"}))},71586:(e,a,l)=>{l.d(a,{Z:()=>s});var t=l(68963);const s=e=>t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),t.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M5.836 2.244c.962-1.665 3.366-1.665 4.328 0l4.917 8.505c.964 1.666-.239 3.751-2.164 3.751H3.083c-1.925 0-3.128-2.085-2.164-3.751l4.917-8.505ZM8 5a.75.75 0 0 1 .75.75v2a.75.75 0 1 1-1.5 0v-2A.75.75 0 0 1 8 5Zm1 5.75a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z",clipRule:"evenodd"}))},56711:(e,a,l)=>{l.d(a,{O:()=>n});var t=l(68963);const s=(0,l(36951).Ge)("skeleton");function n(e){let{className:a,style:l,qa:n}=e;return t.createElement("div",{className:s(null,a),style:l,"data-qa":n})}},27320:(e,a,l)=>{l.d(a,{u:()=>c});var t=l(68963),s=l(48027),n=l(79004),r=l(44920),o=l(10288);const i=(0,l(36951).Ge)("tooltip"),u=["bottom","top"],c=e=>{const{children:a,content:l,disabled:c,placement:d=u,qa:p,id:g,className:m,style:v,disablePortal:h,contentClassName:b,openDelay:y=1e3,closeDelay:x}=e,[N,f]=t.useState(null),j=(0,n.p)(N,{openDelay:y,closeDelay:x,preventTriggerOnFocus:!0}),w=t.Children.only(a),D=w.ref,k=(0,s.c)(f,D);return t.createElement(t.Fragment,null,t.cloneElement(w,{ref:k}),N?t.createElement(r.G,{id:g,role:"tooltip",className:i(null,m),style:v,open:j&&!c,placement:d,anchorRef:{current:N},disablePortal:h,disableEscapeKeyDown:!0,disableOutsideClick:!0,disableLayer:!0,qa:p},t.createElement("div",{className:i("content",b)},t.createElement(o.x,{variant:"body-short",color:"complementary"},l))):null)}}}]); \ No newline at end of file
diff --git a/ydb/core/viewer/monitoring/static/js/2283.6b21fbf1.chunk.js b/ydb/core/viewer/monitoring/static/js/3862.041343ca.chunk.js
index c22025dce6..b8772ad5e4 100644
--- a/ydb/core/viewer/monitoring/static/js/2283.6b21fbf1.chunk.js
+++ b/ydb/core/viewer/monitoring/static/js/3862.041343ca.chunk.js
@@ -1 +1 @@
-(self.webpackChunkydb_embedded_ui=self.webpackChunkydb_embedded_ui||[]).push([[2283],{91816:(e,t,s)=>{"use strict";s.d(t,{b:()=>c});var n=s(68963),l=s(56711),a=s(24362),r=s(42587),o=s(75859);const i=(0,a.cn)("ydb-info-viewer-skeleton"),d=()=>(0,o.jsxs)("div",{className:i("label"),children:[(0,o.jsx)(l.O,{className:i("label__text")}),(0,o.jsx)("div",{className:i("label__dots")})]}),c=e=>{let{rows:t=8,className:s,delay:a=600}=e;const[c]=(0,r.$)(a);let u=(0,o.jsxs)(n.Fragment,{children:[(0,o.jsx)(d,{}),(0,o.jsx)(l.O,{className:i("value")})]});return c||(u=null),(0,o.jsx)("div",{className:i(null,s),children:[...new Array(t)].map(((e,t)=>(0,o.jsx)("div",{className:i("row"),children:u},`skeleton-row-${t}`)))})}},12199:(e,t,s)=>{"use strict";s.d(t,{$:()=>i});s(68963);var n=s(24362),l=s(75859);const a=(0,n.cn)("tag"),r=e=>{let{text:t,type:s}=e;return(0,l.jsx)("div",{className:a({type:s}),children:t})},o=(0,n.cn)("tags"),i=e=>{let{tags:t,tagsType:s,className:n=""}=e;return(0,l.jsx)("div",{className:o(null,n),children:t&&t.map(((e,t)=>(0,l.jsx)(r,{text:e,type:s},t)))})}},37070:(e,t,s)=>{"use strict";s.r(t),s.d(t,{Cluster:()=>Qe});var n=s(68963),l=s(56711),a=s(8179),r=s(49352),o=s(86974),i=s(52846),d=s(50422),c=s(69214),u=s(74170),v=s(54665),m=s(77915),h=s(79061),p=s(24362),x=s(17096),g=s(94076),N=s(9870),j=s(39724),b=s(19812),f=s(17176),w=s(36985),y=s(26688),E=s(56350),C=s(68242),T=s(74221),k=s(2098),O=s(11551),P=s(47101),S=s(27102),A=s(80839),L=s(36313),M=s(43680),D=s.n(M),V=s(75850),Z=s(52317),z=s(53809);const G=(0,L.P1)((e=>e),(e=>z.Xv.endpoints.getTenantsInfo.select({clusterName:e}))),I=(0,L.P1)((e=>e),((e,t)=>G(t)),(e=>(0,A.Cx)(e,Z.Zy)),((e,t,s)=>{var n;const l=null!==(n=t(e).data)&&void 0!==n?n:[];return!s&&l.length>1?l.filter((e=>"Domain"!==e.Type)):l})),R=e=>e.tenants.searchValue,B=(0,L.P1)([I,A.qz,R],((e,t,s)=>{let n=((e,t)=>t===A.pu.ALL?e:e.filter((e=>e.Overall&&e.Overall!==V.K.Green)))(e,t);return n=((e,t)=>e.filter((e=>{const s=new RegExp(D()(t),"i");return s.test(e.Name||"")||s.test(e.controlPlaneName)})))(n,s),n}));var F=s(34301),$=s(95478),_=s(75859);const q=(0,p.cn)("tenants"),H=e=>{let{additionalTenantsProps:t}=e;const s=(0,x.zL)(),[l]=(0,x.Rj)(),{currentData:a,isFetching:r,error:o}=z.Xv.useGetTenantsInfoQuery({clusterName:S.qw},{pollingInterval:l}),i=r&&void 0===a,d=(0,x.ix)((e=>I(e,S.qw))),u=(0,x.ix)(R),v=(0,x.ix)((e=>B(e,S.qw))),m=(0,x.ix)(A.qz),h=e=>{s((0,A.M6)(e))},p=e=>{s((0,z.gI)(e))};return(0,_.jsxs)(P.l,{children:[(0,_.jsx)(P.l.Controls,{children:(0,_.jsxs)(n.Fragment,{children:[(0,_.jsx)(O.o,{value:u,onChange:p,placeholder:"Database name",className:q("search")}),(0,_.jsx)(T.T,{value:m,onChange:h}),(0,_.jsx)(w.C,{total:d.length,current:(null===v||void 0===v?void 0:v.length)||0,label:"Databases",loading:i})]})}),o?(0,_.jsx)(y.V,{error:o}):null,(0,_.jsx)(P.l.Table,{loading:i,children:a?(()=>{const e=[{name:"Name",header:"Database",render:e=>{var s;let{row:n}=e;const l=(e=>{var s,n;const l=null!==(s=e.MonitoringEndpoint)&&void 0!==s?s:e.backend;return null===t||void 0===t||null===(n=t.prepareTenantBackend)||void 0===n?void 0:n.call(t,l)})(n),a=Boolean(l);return(0,_.jsx)(c.A,{externalLink:a,className:q("name"),name:n.Name||"unknown database",withLeftTrim:!0,status:n.Overall,hasClipboardButton:!0,path:(0,$.Sj)({name:n.Name,backend:l}),additionalControls:null===t||void 0===t||null===(s=t.getMonitoringLink)||void 0===s?void 0:s.call(t,n.Name,n.Type)})},width:440,sortable:!0,defaultOrder:b.ZP.DESCENDING},{name:"controlPlaneName",header:"Name",render:e=>{let{row:t}=e;return t.controlPlaneName},width:200,sortable:!0,defaultOrder:b.ZP.DESCENDING},{name:"Type",width:200,resizeMinWidth:150,render:e=>{let{row:t}=e;return"Serverless"!==t.Type?t.Type:(0,_.jsxs)("div",{className:q("type"),children:[(0,_.jsx)("span",{className:q("type-value"),children:t.Type}),(0,_.jsx)(f.z,{className:q("type-button"),onClick:()=>p(t.sharedTenantName||""),children:"Show shared"})]})}},{name:"State",width:90,render:e=>{let{row:t}=e;return t.State?t.State.toLowerCase():"\u2014"},customStyle:()=>({textTransform:"capitalize"})},{name:"cpu",header:"CPU",width:80,render:e=>{let{row:t}=e;return t.cpu&&t.cpu>1e4?(0,F.LO)(t.cpu):"\u2014"},align:b.ZP.RIGHT,defaultOrder:b.ZP.DESCENDING},{name:"memory",header:"Memory",width:120,render:e=>{let{row:t}=e;return t.memory?(0,F.q3)(t.memory):"\u2014"},align:b.ZP.RIGHT,defaultOrder:b.ZP.DESCENDING},{name:"storage",header:"Storage",width:120,render:e=>{let{row:t}=e;return t.storage?(0,F.q3)(t.storage):"\u2014"},align:b.ZP.RIGHT,defaultOrder:b.ZP.DESCENDING},{name:"nodesCount",header:"Nodes",width:100,render:e=>{let{row:t}=e;return t.nodesCount?(0,F.uf)(t.nodesCount):"\u2014"},align:b.ZP.RIGHT,defaultOrder:b.ZP.DESCENDING},{name:"groupsCount",header:"Groups",width:100,render:e=>{let{row:t}=e;return t.groupsCount?(0,F.uf)(t.groupsCount):"\u2014"},align:b.ZP.RIGHT,defaultOrder:b.ZP.DESCENDING},{name:"PoolStats",header:"Pools",width:100,resizeMinWidth:60,sortAccessor:e=>{let{PoolStats:t=[]}=e;return t.reduce(((e,t)=>e+(t.Usage||0)),0)},defaultOrder:b.ZP.DESCENDING,align:b.ZP.LEFT,render:e=>{let{row:t}=e;return(0,_.jsx)(C.m,{pools:t.PoolStats})}}];return 0===v.length&&m!==A.pu.ALL?(0,_.jsx)(E.Q,{name:"thumbsUp",width:"200"}):(0,_.jsx)(k.G,{columnsWidthLSKey:"databasesTableColumnsWidth",data:v,columns:e,settings:Z.LE,emptyDataMessage:"No such tenants"})})():null})]})};var U=s(79734),W=s(48897),Q=s(62776),X=s(3534),K=s(40067),Y=s(67359),J=s(51688),ee=s(92398);const te=[{name:"NodeId",header:"#",width:80,resizeMinWidth:80,align:b.ZP.LEFT,render:e=>{let{row:t}=e;return t.NodeId}},{name:"Host",render:e=>{var t;let{row:s}=e;const n=s.Endpoints&&(null===(t=s.Endpoints.find((e=>"http-mon"===e.Name)))||void 0===t?void 0:t.Address),l=s.Host&&`${s.Host}${n||""}`||"unknown",a=!(0,J.TA)(s)&&s.NodeId?(0,ee.a3)(s.NodeId):void 0;return(0,_.jsx)(c.A,{name:l,path:a,hasClipboardButton:!0,showStatus:!1})},width:400,align:b.ZP.LEFT},{name:"Endpoints",sortable:!1,render:e=>{let{row:t}=e;return t.Endpoints?t.Endpoints.map((e=>{let{Name:t,Address:s}=e;return`${t} ${s}`})).join(", "):"-"},width:300,align:b.ZP.LEFT},{name:"Uptime",header:"Uptime",sortAccessor:e=>{let{StartTime:t}=e;return t&&-t},width:120,align:b.ZP.LEFT,render:e=>{let{row:t}=e;return t.Uptime}},{name:"MemoryUsed",header:"Memory used",sortAccessor:e=>{let{MemoryUsed:t=0}=e;return Number(t)},defaultOrder:b.ZP.DESCENDING,render:e=>{let{row:t}=e;return t.MemoryUsed?(0,F.td)(t.MemoryUsed):"\u2014"},width:120,align:b.ZP.RIGHT},{name:"MemoryLimit",header:"Memory limit",sortAccessor:e=>{let{MemoryLimit:t=0}=e;return Number(t)},defaultOrder:b.ZP.DESCENDING,render:e=>{let{row:t}=e;return t.MemoryLimit?(0,F.td)(t.MemoryLimit):"\u2014"},width:120,align:b.ZP.RIGHT},{name:"PoolStats",header:"Pools",sortAccessor:e=>{let{PoolStats:t=[]}=e;return t.reduce(((e,t)=>e+(t.Usage||0)),0)},defaultOrder:b.ZP.DESCENDING,width:80,resizeMinWidth:60,render:e=>{let{row:t}=e;return t.PoolStats?(0,_.jsx)(C.m,{pools:t.PoolStats}):"\u2014"},align:b.ZP.LEFT},{name:"LoadAverage",header:"Load average",sortAccessor:e=>{let{LoadAveragePercents:t=[]}=e;return t[0]},defaultOrder:b.ZP.DESCENDING,width:140,resizeMinWidth:140,render:e=>{let{row:t}=e;return t.LoadAveragePercents&&t.LoadAveragePercents.length>0?(0,_.jsx)(Y.y,{value:t.LoadAveragePercents[0],percents:!0,capacity:100,colorizeProgress:!0}):"\u2014"},align:b.ZP.LEFT}],se=e=>{let{nodes:t}=e;return(0,_.jsx)(k.G,{columnsWidthLSKey:"versionsTableColumnsWidth",data:t,columns:te,settings:Z.LE})};var ne=s(84893),le=s(90861);const ae=(0,p.cn)("ydb-versions-nodes-tree-title"),re=e=>{let t,{title:s,nodes:n,items:l,versionColor:a,versionsValues:r}=e;return t=l?l.reduce(((e,t)=>t.nodes?e+t.nodes.length:e),0):n?n.length:0,(0,_.jsxs)("div",{className:ae("overview"),children:[(0,_.jsxs)("div",{className:ae("overview-container"),children:[a?(0,_.jsx)("div",{className:ae("version-color"),style:{background:a}}):null,s?(0,_.jsxs)("span",{className:ae("overview-title"),children:[s,(0,_.jsx)(le.m,{text:s,size:"s",className:ae("clipboard-button")})]}):null]}),(0,_.jsxs)("div",{className:ae("overview-info"),children:[(0,_.jsxs)("div",{children:[(0,_.jsx)("span",{className:ae("info-value"),children:t}),(0,_.jsx)("span",{className:ae("info-label",{margin:"left"}),children:"Nodes"})]}),r?(0,_.jsxs)("div",{className:ae("version-progress"),children:[(0,_.jsx)("span",{className:ae("info-label",{margin:"right"}),children:"Versions"}),(0,_.jsx)(ne.E,{size:"s",value:100,stack:r})]}):null]})]})},oe=(0,p.cn)("ydb-versions-grouped-node-tree"),ie=e=>{let{title:t,nodes:s,items:l,expanded:a=!1,versionColor:r,versionsValues:o,level:i=0}=e;const[d,c]=n.useState(!1);n.useEffect((()=>{c(a)}),[a]);const u=(0,_.jsx)(re,{title:t,nodes:s,items:l,versionColor:r,versionsValues:o}),v=()=>{c((e=>!e))};return l?(0,_.jsx)("div",{className:oe({"first-level":0===i}),children:(0,_.jsx)(K.L,{name:u,collapsed:!d,hasArrow:!0,onClick:v,onArrowClick:v,children:l.map(((e,t)=>(0,_.jsx)(ie,{title:e.title,nodes:e.nodes,expanded:a,versionColor:e.versionColor,level:i+1},t)))},t)}):(0,_.jsx)("div",{className:oe({"first-level":0===i}),children:(0,_.jsx)(K.L,{name:u,collapsed:!d,hasArrow:!0,onClick:v,onArrowClick:v,children:(0,_.jsx)("div",{className:oe("dt-wrapper"),children:(0,_.jsx)(se,{nodes:s||[]})})},t)})};var de=s(46754),ce=s.n(de),ue=s(30601);const ve=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;const s=e.reduce(((e,t)=>(t.Version&&(e[t.Version]?e[t.Version]=e[t.Version]+1:e[t.Version]=1),e)),{});return Object.keys(s).map((n=>({title:n,version:n,color:null===t||void 0===t?void 0:t.get((0,ue.H)(n)),value:s[n]/e.length*100})))};function me(e,t,s){const n=null!==s&&void 0!==s?s:e.reduce(((e,t)=>e+t.count),0);return e.map((e=>({title:e.name,version:e.name,color:null===t||void 0===t?void 0:t.get(e.name),value:e.count/n*100})))}let he;!function(e){e.VERSION="Version",e.TENANT="Database",e.STORAGE="Storage"}(he||(he={}));const pe=(e,t)=>{var s;return(null===(s=e.title)||void 0===s?void 0:s.localeCompare(t.title||""))||-1},xe=(0,p.cn)("ydb-versions"),ge=e=>{let{versionToColor:t}=e;const[s]=(0,x.Rj)(),{currentData:l,isLoading:a}=X.k.useGetNodesQuery({tablets:!1},{pollingInterval:s}),r=null===l||void 0===l?void 0:l.Nodes,[o,i]=n.useState(he.VERSION),[d,c]=n.useState(!1),u=e=>{i(e)};if(a)return(0,_.jsx)(Q.a,{});const v=((e,t,s)=>{if(e&&e.length){if(s===he.VERSION){const s=ce()(e,"Version");return Object.keys(s).map((e=>{const n=s[e].filter((e=>{let{Tenants:t}=e;return Boolean(t)})),l=ce()(n,"Tenants"),a=Object.keys(l).map((e=>({title:e,nodes:l[e]}))).sort(pe);return a.length?{title:e,items:a,versionColor:null===t||void 0===t?void 0:t.get((0,ue.H)(e))}:null})).filter((e=>Boolean(e)))}{const s=e.filter((e=>{let{Tenants:t}=e;return Boolean(t)})),n=ce()(s,"Tenants");return Object.keys(n).map((e=>{const s=ve(n[e],t),l=ce()(n[e],"Version"),a=Object.keys(l).map((e=>({title:e,nodes:l[e],versionColor:null===t||void 0===t?void 0:t.get((0,ue.H)(e))})));return a.length?{title:e,items:a,versionsValues:s}:null})).filter((e=>Boolean(e))).sort(pe)}}})(r,t,o),m=((e,t)=>{if(!e||!e.length)return;const s=e.filter((e=>{let{Roles:t}=e;return null===t||void 0===t?void 0:t.includes("Storage")})),n=ce()(s,"Version");return Object.keys(n).map((e=>({title:e,nodes:n[e],versionColor:null===t||void 0===t?void 0:t.get((0,ue.H)(e))})))})(r,t),h=((e,t)=>{if(!e||!e.length)return;const s=e.filter((e=>{let{Roles:t}=e;return!t})),n=ce()(s,"Version");return Object.keys(n).map((e=>({title:e,nodes:n[e],versionColor:null===t||void 0===t?void 0:t.get((0,ue.H)(e))})))})(r,t),p=null!==m&&void 0!==m&&m.length?(0,_.jsxs)(n.Fragment,{children:[(0,_.jsx)("h3",{children:"Storage nodes"}),m.map((e=>{let{title:t,nodes:s,items:n,versionColor:l}=e;return(0,_.jsx)(ie,{title:t,nodes:s,items:n,versionColor:l},`storage-nodes-${t}`)}))]}):null,g=null!==v&&void 0!==v&&v.length?(0,_.jsxs)(n.Fragment,{children:[(0,_.jsx)("h3",{children:"Database nodes"}),(0,_.jsxs)("div",{className:xe("controls"),children:[(0,_.jsxs)("div",{className:xe("group"),children:[(0,_.jsx)("span",{className:xe("label"),children:"Group by:"}),(0,_.jsxs)(U.E,{value:o,onUpdate:u,children:[(0,_.jsx)(U.E.Option,{value:he.TENANT,children:he.TENANT}),(0,_.jsx)(U.E.Option,{value:he.VERSION,children:he.VERSION})]})]}),(0,_.jsx)(W.X,{className:xe("checkbox"),onChange:()=>c((e=>!e)),checked:d,children:"All expanded"})]}),v.map((e=>{let{title:t,nodes:s,items:n,versionColor:l,versionsValues:a}=e;return(0,_.jsx)(ie,{title:t,nodes:s,items:n,expanded:d,versionColor:l,versionsValues:a},`tenant-nodes-${t}`)}))]}):null,N=null!==h&&void 0!==h&&h.length?(0,_.jsxs)(n.Fragment,{children:[(0,_.jsx)("h3",{children:"Other nodes"}),h.map((e=>{let{title:t,nodes:s,items:n,versionColor:l,versionsValues:a}=e;return(0,_.jsx)(ie,{title:t,nodes:s,items:n,versionColor:l,versionsValues:a},`other-nodes-${t}`)}))]}):null;return(0,_.jsxs)("div",{className:xe("versions"),children:[p,g,N]})};var Ne=s(23373),je=s(91816);const be=(0,p.cn)("cluster-info");var fe=s(17095),we=s(32270),ye=s(94790),Ee=s(42784),Ce=s(27506);const Te=(0,p.cn)("tablet"),ke=e=>{var t;let{tablet:s={},tenantName:n}=e;const{TabletId:l,NodeId:a,Type:r}=s,o=null===(t=s.Overall)||void 0===t?void 0:t.toLowerCase(),i=l&&(0,v.fK)(l,{nodeId:a,tenantName:n,type:r});return(0,_.jsx)(ye.f,{className:Te("wrapper"),content:(0,_.jsx)(Ce.Fb,{data:s,className:Te("popup-content")}),children:(0,_.jsx)(u.h,{to:i,children:(0,_.jsx)(Ee.v,{className:Te({status:o}),text:(0,Z.qV)(s.Type)})})})};var Oe=s(12199),Pe=s(1558),Se=s(28164);const Ae=(0,p.cn)("ydb-cluster-versions-bar"),Le=e=>{let{versionsValues:t=[]}=e;return(0,_.jsxs)("div",{className:Ae(),children:[(0,_.jsx)(ne.E,{value:100,stack:t,size:"s"}),(0,_.jsx)("div",{className:Ae("versions"),children:t.map(((e,s)=>(0,_.jsx)("div",{className:Ae("version-title"),style:{color:e.color},title:e.version,children:`${e.version}${s===t.length-1?"":","}`},e.version)))})]})};var Me=s(30817);const De=JSON.parse('{"disk-type":"Disk Type","erasure":"Erasure","allocated":"Allocated","available":"Available","usage":"Usage","dc":"DC","tablets":"Tablets","databases":"Databases","nodes":"Nodes","nodes-state":"Nodes state","load":"Load","storage-size":"Storage size","storage-groups":"Storage groups, {{diskType}}","links":"Links","versions":"Versions","quantity":{"one":"{{count}} node","other":"{{count}} nodes","zero":"no nodes"}}'),Ve=(0,Me.wZ)("ydb-cluster",{en:De});var Ze=s(62206),ze=s(81854);const Ge=(0,p.cn)("ydb-disk-groups-stats"),Ie=e=>{let{stats:t}=e;return(0,_.jsx)("div",{className:Ge(),children:Object.values(t).map((e=>(0,_.jsx)(ye.f,{placement:["right"],content:(0,_.jsx)(Re,{stats:e}),children:(0,_.jsx)(Y.y,{className:Ge("bar"),value:e.createdGroups,capacity:e.totalGroups})},e.erasure)))})};function Re(e){let{stats:t}=e;const{diskType:s,erasure:n,allocatedSize:l,availableSize:a}=t,r=(0,ze.dT)(Math.max(l,a),2),o=(0,ze.td)({value:l,size:r}),i=(0,ze.td)({value:a,size:r}),d=Math.round(l/(l+a)*100),c=[{label:Ve("disk-type"),value:s},{label:Ve("erasure"),value:n},{label:Ve("allocated"),value:o},{label:Ve("available"),value:i},{label:Ve("usage"),value:d+"%"}];return(0,_.jsx)(Ze._P,{dots:!0,info:c,className:Ge("popup-content"),size:"s"})}const Be=(0,p.cn)("ydb-nodes-state");function Fe(e){let{state:t,children:s}=e;return(0,_.jsx)("div",{className:Be({[t.toLowerCase()]:!0}),children:s})}const $e={Green:5,Blue:4,Yellow:3,Orange:2,Red:1,Grey:0},_e=(e,t)=>e.Type===Se.F.TxAllocator?1:t.Type===Se.F.TxAllocator?-1:0,qe=(e,t,s,l,a)=>{const r=[],o=(e=>{var t;return(0,Pe.j)(e)&&e.MapDataCenters?Object.entries(e.MapDataCenters).map((e=>{let[t,s]=e;return(0,_.jsxs)(n.Fragment,{children:[t,": ",(0,_.jsx)("span",{className:be("dc-count"),children:Ve("quantity",{count:s})})]},t)})):null===(t=e.DataCenters)||void 0===t?void 0:t.filter(Boolean)})(e);if(null!==o&&void 0!==o&&o.length&&r.push({label:Ve("dc"),value:(0,_.jsx)(Oe.$,{tags:o})}),e.SystemTablets){const t=e.SystemTablets.slice(0).sort(_e);r.push({label:Ve("tablets"),value:(0,_.jsx)("div",{className:be("system-tablets"),children:t.map(((e,t)=>(0,_.jsx)(ke,{tablet:e},t)))})})}if(e.Tenants&&r.push({label:Ve("databases"),value:e.Tenants}),r.push({label:Ve("nodes"),value:(0,_.jsx)(Y.y,{value:null===e||void 0===e?void 0:e.NodesAlive,capacity:null===e||void 0===e?void 0:e.NodesTotal})}),(0,Pe.j)(e)&&e.MapNodeStates){const t=Object.entries(e.MapNodeStates);t.sort(((e,t)=>$e[t[0]]-$e[e[0]]));const s=t.map((e=>{let[t,s]=e;return(0,_.jsx)(Fe,{state:t,children:s},t)}));r.push({label:Ve("nodes-state"),value:(0,_.jsx)("div",{className:be("nodes-states"),children:s})})}r.push({label:Ve("load"),value:(0,_.jsx)(Y.y,{value:null===e||void 0===e?void 0:e.LoadAverage,capacity:null===e||void 0===e?void 0:e.NumberOfCpus})});const i=(e=>{if((0,Pe.j)(e)&&e.MapDataCenters){const{MapStorageTotal:t,MapStorageUsed:s}=e,n=new Set(Object.keys(null!==t&&void 0!==t?t:[]).concat(Object.keys(null!==s&&void 0!==s?s:[])));if(n.size>0)return Array.from(n).reduce(((e,n)=>(e[n]={used:null===s||void 0===s?void 0:s[n],total:null===t||void 0===t?void 0:t[n]},e)),{})}return{_default:{used:null===e||void 0===e?void 0:e.StorageUsed,total:null===e||void 0===e?void 0:e.StorageTotal}}})(e);return Object.entries(i).forEach((e=>{let[t,s]=e,n=Ve("storage-size");"_default"!==t&&(n+=`, ${t}`),r.push({label:n,value:(0,_.jsx)(Y.y,{value:s.used,capacity:s.total,formatValues:F.QO})})})),Object.keys(s).length&&r.push(...(e=>Object.keys(e).map((t=>({label:Ve("storage-groups",{diskType:t}),value:(0,_.jsx)(Ie,{stats:e[t]})}))))(s)),r.push(...l,{label:Ve("links"),value:(0,_.jsx)("div",{className:be("links"),children:a.map((e=>{let{title:t,url:s}=e;return(0,_.jsx)(we.j,{title:t,url:s},t)}))})},{label:Ve("versions"),value:(0,_.jsx)(Le,{versionsValues:t.filter((e=>"unknown"!==e.title))})}),r},He=e=>{let{cluster:t,versionToColor:s,groupsStats:l={},loading:a,error:r,additionalClusterProps:o={}}=e;const i=(0,x.ix)((e=>e.singleClusterMode)),d=((e,t)=>{const{currentData:s}=X.k.useGetNodesQuery((0,Pe.j)(e)?fe.CN:{tablets:!1,group:"Version"});return n.useMemo((()=>(0,Pe.j)(e)&&e.MapVersions?me(Object.entries(e.MapVersions).map((e=>{let[t,s]=e;return{name:t,count:s}})),t,e.NodesTotal):s?Array.isArray(s.NodeGroups)?me(s.NodeGroups,t,null===e||void 0===e?void 0:e.NodesTotal):ve(s.Nodes,t):[]),[s,t,e])})(t,s);let c=S.y3+"/internal";i&&!S.j4&&(c="/internal");const{info:u=[],links:v=[]}=o,m=qe(null!==t&&void 0!==t?t:{},d,l,u,[{title:Z.Ah,url:c},...v]);return(0,_.jsxs)("div",{className:be(),children:[r?(0,_.jsx)(y.V,{error:r,className:be("error")}):null,(0,_.jsx)("div",{className:be("info"),children:a?(0,_.jsx)(je.b,{className:be("skeleton"),rows:9}):r&&!t?null:(0,_.jsx)(Ne._,{dots:!0,info:m})})]})};var Ue=s(81003);const We=(0,p.cn)("cluster");function Qe(e){let{additionalClusterProps:t,additionalTenantsProps:s,additionalNodesProps:p,additionalVersionsProps:b}=e;const f=n.useRef(null),w=(0,x.zL)(),y=function(){const e=(0,x.zL)(),t=(0,x.ix)((e=>e.cluster.defaultClusterTab)),s=(0,o.$B)(v.ZP.cluster),{activeTab:l}=(null===s||void 0===s?void 0:s.params)||{};let a;a=(0,Ue.V2)(l)?l:t;return n.useEffect((()=>{a!==t&&e((0,m.LQ)(a))}),[a,t,e]),a}(),[{clusterName:E,backend:C}]=(0,i.useQueryParams)({clusterName:i.StringParam,backend:i.StringParam}),T=(0,x.ix)((e=>(0,m.le)(e,null!==E&&void 0!==E?E:void 0))),{data:{clusterData:k={},groupsStats:O}={},isLoading:P,error:S}=m.UM.useGetClusterInfoQuery(null!==E&&void 0!==E?E:void 0),A=S&&"object"===typeof S?S:void 0;n.useEffect((()=>{w((0,h.J)("cluster",{}))}),[w]);const L=n.useMemo((()=>null!==b&&void 0!==b&&b.getVersionToColorMap?null===b||void 0===b?void 0:b.getVersionToColorMap():(0,g.ZP)(null===k||void 0===k?void 0:k.Versions)),[b,k]),M=n.useMemo((()=>Ue._Y.find((e=>{let{id:t}=e;return t===y}))),[y]);return(0,_.jsxs)("div",{className:We(),ref:f,children:[(0,_.jsx)(r.ql,{defaultTitle:`${T} \u2014 YDB Monitoring`,titleTemplate:`%s \u2014 ${T} \u2014 YDB Monitoring`,children:M?(0,_.jsx)("title",{children:M.title}):null}),(0,_.jsx)("div",{className:We("header"),children:P?(0,_.jsx)(l.O,{className:We("title-skeleton")}):(0,_.jsx)(c.A,{size:"m",status:null===k||void 0===k?void 0:k.Overall,name:T,className:We("title")})}),(0,_.jsx)("div",{className:We("tabs"),children:(0,_.jsx)(a.m,{size:"l",allowNotSelected:!0,activeTab:y,items:Ue._Y,wrapTo:(e,t)=>{let{id:s}=e;const n=(0,Ue.B7)(s,{clusterName:E,backend:C});return(0,_.jsx)(u.h,{to:n,onClick:()=>{w((0,m.LQ)(s))},children:t},s)}})}),(0,_.jsx)("div",{className:We("sticky-wrapper"),children:(0,_.jsx)(d.q,{className:We("auto-refresh-control")})}),(0,_.jsxs)(o.rs,{children:[(0,_.jsx)(o.AW,{path:(0,v.Fz)((0,Ue.B7)(Ue.xu.overview)).pathname,children:(0,_.jsx)(He,{cluster:k,groupsStats:O,versionToColor:L,loading:P,error:A,additionalClusterProps:t})}),(0,_.jsx)(o.AW,{path:(0,v.Fz)((0,Ue.B7)(Ue.xu.tenants)).pathname,children:(0,_.jsx)(H,{additionalTenantsProps:s})}),(0,_.jsx)(o.AW,{path:(0,v.Fz)((0,Ue.B7)(Ue.xu.nodes)).pathname,children:(0,_.jsx)(N.G,{parentContainer:f.current,additionalNodesProps:p})}),(0,_.jsx)(o.AW,{path:(0,v.Fz)((0,Ue.B7)(Ue.xu.storage)).pathname,children:(0,_.jsx)(j.V,{parentContainer:f.current})}),(0,_.jsx)(o.AW,{path:(0,v.Fz)((0,Ue.B7)(Ue.xu.versions)).pathname,children:(0,_.jsx)(ge,{versionToColor:L})}),(0,_.jsx)(o.AW,{render:()=>(0,_.jsx)(o.l_,{to:(0,v.Fz)((0,Ue.B7)(y))})})]})]})}},57225:(e,t,s)=>{"use strict";s.d(t,{Z:()=>l});var n=s(68963);const l=e=>n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),n.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M15 8A7 7 0 1 1 1 8a7 7 0 0 1 14 0Zm-6 2.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM8.75 5a.75.75 0 0 0-1.5 0v2.5a.75.75 0 0 0 1.5 0V5Z",clipRule:"evenodd"}))},67585:(e,t,s)=>{"use strict";s.d(t,{Z:()=>l});var n=s(68963);const l=e=>n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),n.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14Zm1-9.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM8 7.75a.75.75 0 0 1 .75.75V11a.75.75 0 0 1-1.5 0V8.5A.75.75 0 0 1 8 7.75Z",clipRule:"evenodd"}))},71549:(e,t,s)=>{"use strict";s.d(t,{Z:()=>l});var n=s(68963);const l=e=>n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),n.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"m3.003 4.702 4.22-2.025a1.796 1.796 0 0 1 1.554 0l4.22 2.025a.886.886 0 0 1 .503.8V6a8.55 8.55 0 0 1-3.941 7.201l-.986.631a1.063 1.063 0 0 1-1.146 0l-.986-.63A8.55 8.55 0 0 1 2.5 6v-.498c0-.341.196-.652.503-.8Zm3.57-3.377L2.354 3.35A2.387 2.387 0 0 0 1 5.502V6a10.05 10.05 0 0 0 4.632 8.465l.986.63a2.563 2.563 0 0 0 2.764 0l.986-.63A10.05 10.05 0 0 0 15 6v-.498c0-.918-.526-1.755-1.354-2.152l-4.22-2.025a3.296 3.296 0 0 0-2.852 0ZM9.5 7a1.5 1.5 0 0 1-.75 1.3v1.95a.75.75 0 0 1-1.5 0V8.3A1.5 1.5 0 1 1 9.5 7Z",clipRule:"evenodd"}))},71586:(e,t,s)=>{"use strict";s.d(t,{Z:()=>l});var n=s(68963);const l=e=>n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),n.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M5.836 2.244c.962-1.665 3.366-1.665 4.328 0l4.917 8.505c.964 1.666-.239 3.751-2.164 3.751H3.083c-1.925 0-3.128-2.085-2.164-3.751l4.917-8.505ZM8 5a.75.75 0 0 1 .75.75v2a.75.75 0 1 1-1.5 0v-2A.75.75 0 0 1 8 5Zm1 5.75a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z",clipRule:"evenodd"}))},48897:(e,t,s)=>{"use strict";s.d(t,{X:()=>d});var n=s(68963),l=s(33180),a=s(24288);function r(e){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 17 17",width:"16",height:"16",fill:"currentColor"},e),n.createElement("path",{d:"M4 7h9v3H4z"}))}function o(e){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 10",width:"16",height:"16",fill:"currentColor"},e),n.createElement("path",{d:"M.49 5.385l1.644-1.644 4.385 4.385L4.874 9.77.49 5.385zm4.384 1.096L10.356 1 12 2.644 6.519 8.126 4.874 6.48v.001z"}))}const i=(0,s(36951).Ge)("checkbox"),d=n.forwardRef((function(e,t){const{size:s="m",indeterminate:d,disabled:c=!1,content:u,children:v,title:m,style:h,className:p,qa:x}=e,{checked:g,inputProps:N}=(0,l.O)(e),j=u||v,b=n.createElement("span",{className:i("indicator")},n.createElement("span",{className:i("icon"),"aria-hidden":!0},d?n.createElement(r,{className:i("icon-svg",{type:"dash"})}):n.createElement(o,{className:i("icon-svg",{type:"tick"})})),n.createElement("input",Object.assign({},N,{className:i("control")})),n.createElement("span",{className:i("outline")}));return n.createElement(a.J,{ref:t,title:m,style:h,size:s,disabled:c,className:i({size:s,disabled:c,indeterminate:d,checked:g},p),qa:x,control:b},j)}))},84893:(e,t,s)=>{"use strict";s.d(t,{E:()=>u});var n=s(68963);const l=(0,s(36951).Ge)("progress");function a(e){const{text:t,offset:s=0}=e;return t?n.createElement("div",{className:l("text-inner"),style:{transform:`translateX(calc(var(--g-flow-direction) * ${-s}%))`}},t):null}function r(e){let{item:t}=e;const{value:s,color:a,className:r,theme:o,title:i,content:d,loading:c}=t,u={loading:c};return"undefined"===typeof a&&(u.theme=o||"default"),Number.isFinite(s)?n.createElement("div",{className:l("item",u,r),style:{width:`${s}%`,backgroundColor:a},title:i},d):null}function o(e){return e<100?e-100:0}function i(e){const{theme:t,colorStops:s,colorStopsValue:n,value:l}=e;if(s){const e=s.find(((e,t)=>{const a="number"===typeof n?n:l,r=t>1?s[t-1].stop:0,o=t<s.length-1?e.stop:100;return a>=r&&a<=o}));return e?e.theme:t}return t}function d(e){const{stack:t,stackClassName:s,value:i,text:d}=e,c=o(i||function(e){return e.reduce(((e,t)=>{let{value:s}=t;return e+s}),0)}(t));return n.createElement("div",{className:l("stack",s),style:{transform:`translateX(calc(var(--g-flow-direction) * ${c}%))`}},n.createElement("div",{className:l("item"),style:{width:-c+"%"}}),t.map(((e,t)=>n.createElement(r,{key:t,item:e}))),n.createElement(a,{offset:c,text:d}))}function c(e){const{value:t,loading:s,text:r}=e,d=o(t);return Number.isFinite(t)?n.createElement("div",{className:l("item",{theme:i(e),loading:s}),style:{transform:`translateX(calc(var(--g-flow-direction) * ${d}%))`}},n.createElement(a,{offset:d,text:r})):null}const u=n.forwardRef((function(e,t){const{text:s="",theme:a="default",size:r="m",loading:o=!1,className:i,qa:u}=e,v=Object.assign(Object.assign({},e),{text:s,theme:a,size:r,loading:o});return n.createElement("div",{ref:t,className:l({size:r},i),"data-qa":u},n.createElement("div",{className:l("text")},s),function(e){return void 0!==e.stack}(v)?n.createElement(d,Object.assign({},v)):n.createElement(c,Object.assign({},v)))}))},56711:(e,t,s)=>{"use strict";s.d(t,{O:()=>a});var n=s(68963);const l=(0,s(36951).Ge)("skeleton");function a(e){let{className:t,style:s,qa:a}=e;return n.createElement("div",{className:l(null,t),style:s,"data-qa":a})}},27320:(e,t,s)=>{"use strict";s.d(t,{u:()=>c});var n=s(68963),l=s(48027),a=s(79004),r=s(44920),o=s(10288);const i=(0,s(36951).Ge)("tooltip"),d=["bottom","top"],c=e=>{const{children:t,content:s,disabled:c,placement:u=d,qa:v,id:m,className:h,style:p,disablePortal:x,contentClassName:g,openDelay:N=1e3,closeDelay:j}=e,[b,f]=n.useState(null),w=(0,a.p)(b,{openDelay:N,closeDelay:j,preventTriggerOnFocus:!0}),y=n.Children.only(t),E=y.ref,C=(0,l.c)(f,E);return n.createElement(n.Fragment,null,n.cloneElement(y,{ref:C}),b?n.createElement(r.G,{id:m,role:"tooltip",className:i(null,h),style:p,open:w&&!c,placement:u,anchorRef:{current:b},disablePortal:x,disableEscapeKeyDown:!0,disableOutsideClick:!0,disableLayer:!0,qa:v},n.createElement("div",{className:i("content",g)},n.createElement(o.x,{variant:"body-short",color:"complementary"},s))):null)}},38626:e=>{e.exports=function(e,t,s,n){for(var l=-1,a=null==e?0:e.length;++l<a;){var r=e[l];t(n,r,s(r),e)}return n}},30277:(e,t,s)=>{var n=s(46067);e.exports=function(e,t,s,l){return n(e,(function(e,n,a){t(l,e,s(e),a)})),l}},81670:(e,t,s)=>{var n=s(38626),l=s(30277),a=s(67173),r=s(46296);e.exports=function(e,t){return function(s,o){var i=r(s)?n:l,d=t?t():{};return i(s,e,a(o,2),d)}}},46754:(e,t,s)=>{var n=s(69519),l=s(81670),a=Object.prototype.hasOwnProperty,r=l((function(e,t,s){a.call(e,s)?e[s].push(t):n(e,s,[t])}));e.exports=r},40067:(e,t,s)=>{"use strict";s.d(t,{L:()=>d});var n=s(75859),l=s(68963),a=s(30831),r=s(99879);const o="--ydb-tree-view-level",i=(0,r.G)("ydb-tree-view");function d(e){let{children:t,name:s,title:r,icon:d,collapsed:c=!0,active:u=!1,onClick:v,onArrowClick:m,hasArrow:h=!1,actions:p,additionalNodeElements:x,level:g}=e;const N=l.useCallback((e=>{if(!v)return;e.nativeEvent.composedPath().some((e=>e instanceof HTMLElement&&("BUTTON"===e.nodeName&&!e.hasAttribute("disabled")||e.hasAttribute("tabindex")&&e.tabIndex>-1)))||v()}),[v]),j=m||v;let b="tree-view_arrow",f="tree-view_children";return c&&(b+=" tree-view_arrow-collapsed",f+=" tree-view_children-collapsed"),(0,n.jsx)("div",{className:i(),style:{[o]:g},children:(0,n.jsxs)("div",{className:"tree-view",children:[(0,n.jsxs)("div",{className:`tree-view_item ${i("item",{active:u})}`,onClick:N,children:[(0,n.jsx)("button",{type:"button",className:`${b} ${i("arrow",{collapsed:c,hidden:!h})}`,disabled:!j,onClick:j}),(0,n.jsxs)("div",{className:i("content"),children:[d&&(0,n.jsx)("div",{className:i("icon"),children:d}),(0,n.jsx)("div",{className:i("text"),title:r,children:s}),p&&p.length>0&&(0,n.jsxs)("div",{className:i("actions"),children:[x,(0,n.jsx)(a.h,{defaultSwitcherProps:{view:"flat-secondary",size:"s",pin:"brick-brick"},items:p})]})]})]}),(0,n.jsx)("div",{className:`${f} ${i("container",{collapsed:c})}`,children:c?null:t})]})})}},99879:(e,t,s)=>{"use strict";s.d(t,{G:()=>n});const n=(0,s(5247).withNaming)({e:"__",m:"_"})}}]); \ No newline at end of file
+(self.webpackChunkydb_embedded_ui=self.webpackChunkydb_embedded_ui||[]).push([[3862],{91816:(e,t,s)=>{"use strict";s.d(t,{b:()=>c});var n=s(68963),l=s(56711),a=s(24362),r=s(42587),o=s(75859);const i=(0,a.cn)("ydb-info-viewer-skeleton"),d=()=>(0,o.jsxs)("div",{className:i("label"),children:[(0,o.jsx)(l.O,{className:i("label__text")}),(0,o.jsx)("div",{className:i("label__dots")})]}),c=e=>{let{rows:t=8,className:s,delay:a=600}=e;const[c]=(0,r.$)(a);let u=(0,o.jsxs)(n.Fragment,{children:[(0,o.jsx)(d,{}),(0,o.jsx)(l.O,{className:i("value")})]});return c||(u=null),(0,o.jsx)("div",{className:i(null,s),children:[...new Array(t)].map(((e,t)=>(0,o.jsx)("div",{className:i("row"),children:u},`skeleton-row-${t}`)))})}},12199:(e,t,s)=>{"use strict";s.d(t,{$:()=>i});s(68963);var n=s(24362),l=s(75859);const a=(0,n.cn)("tag"),r=e=>{let{text:t,type:s}=e;return(0,l.jsx)("div",{className:a({type:s}),children:t})},o=(0,n.cn)("tags"),i=e=>{let{tags:t,tagsType:s,className:n=""}=e;return(0,l.jsx)("div",{className:o(null,n),children:t&&t.map(((e,t)=>(0,l.jsx)(r,{text:e,type:s},t)))})}},37070:(e,t,s)=>{"use strict";s.r(t),s.d(t,{Cluster:()=>Qe});var n=s(68963),l=s(56711),a=s(8179),r=s(49352),o=s(86974),i=s(98994),d=s(50422),c=s(69214),u=s(74170),v=s(54665),m=s(77915),h=s(79061),p=s(24362),x=s(17096),g=s(94076),N=s(9870),j=s(10582),b=s(19812),f=s(17176),w=s(36985),y=s(26688),E=s(56350),C=s(68242),T=s(74221),k=s(2098),O=s(11551),P=s(47101),S=s(27102),A=s(80839),L=s(36313),M=s(43680),D=s.n(M),V=s(75850),Z=s(52317),z=s(53809);const G=(0,L.P1)((e=>e),(e=>z.Xv.endpoints.getTenantsInfo.select({clusterName:e}))),I=(0,L.P1)((e=>e),((e,t)=>G(t)),(e=>(0,A.Cx)(e,Z.Zy)),((e,t,s)=>{var n;const l=null!==(n=t(e).data)&&void 0!==n?n:[];return!s&&l.length>1?l.filter((e=>"Domain"!==e.Type)):l})),R=e=>e.tenants.searchValue,B=(0,L.P1)([I,A.qz,R],((e,t,s)=>{let n=((e,t)=>t===A.pu.ALL?e:e.filter((e=>e.Overall&&e.Overall!==V.K.Green)))(e,t);return n=((e,t)=>e.filter((e=>{const s=new RegExp(D()(t),"i");return s.test(e.Name||"")||s.test(e.controlPlaneName)})))(n,s),n}));var F=s(34301),$=s(95478),_=s(75859);const q=(0,p.cn)("tenants"),H=e=>{let{additionalTenantsProps:t}=e;const s=(0,x.zL)(),[l]=(0,x.Rj)(),{currentData:a,isFetching:r,error:o}=z.Xv.useGetTenantsInfoQuery({clusterName:S.qw},{pollingInterval:l}),i=r&&void 0===a,d=(0,x.ix)((e=>I(e,S.qw))),u=(0,x.ix)(R),v=(0,x.ix)((e=>B(e,S.qw))),m=(0,x.ix)(A.qz),h=e=>{s((0,A.M6)(e))},p=e=>{s((0,z.gI)(e))};return(0,_.jsxs)(P.l,{children:[(0,_.jsx)(P.l.Controls,{children:(0,_.jsxs)(n.Fragment,{children:[(0,_.jsx)(O.o,{value:u,onChange:p,placeholder:"Database name",className:q("search")}),(0,_.jsx)(T.T,{value:m,onChange:h}),(0,_.jsx)(w.C,{total:d.length,current:(null===v||void 0===v?void 0:v.length)||0,label:"Databases",loading:i})]})}),o?(0,_.jsx)(y.V,{error:o}):null,(0,_.jsx)(P.l.Table,{loading:i,children:a?(()=>{const e=[{name:"Name",header:"Database",render:e=>{var s;let{row:n}=e;const l=(e=>{var s,n;const l=null!==(s=e.MonitoringEndpoint)&&void 0!==s?s:e.backend;return null===t||void 0===t||null===(n=t.prepareTenantBackend)||void 0===n?void 0:n.call(t,l)})(n),a=Boolean(l);return(0,_.jsx)(c.A,{externalLink:a,className:q("name"),name:n.Name||"unknown database",withLeftTrim:!0,status:n.Overall,hasClipboardButton:!0,path:(0,$.Sj)({name:n.Name,backend:l}),additionalControls:null===t||void 0===t||null===(s=t.getMonitoringLink)||void 0===s?void 0:s.call(t,n.Name,n.Type)})},width:440,sortable:!0,defaultOrder:b.ZP.DESCENDING},{name:"controlPlaneName",header:"Name",render:e=>{let{row:t}=e;return t.controlPlaneName},width:200,sortable:!0,defaultOrder:b.ZP.DESCENDING},{name:"Type",width:200,resizeMinWidth:150,render:e=>{let{row:t}=e;return"Serverless"!==t.Type?t.Type:(0,_.jsxs)("div",{className:q("type"),children:[(0,_.jsx)("span",{className:q("type-value"),children:t.Type}),(0,_.jsx)(f.z,{className:q("type-button"),onClick:()=>p(t.sharedTenantName||""),children:"Show shared"})]})}},{name:"State",width:90,render:e=>{let{row:t}=e;return t.State?t.State.toLowerCase():"\u2014"},customStyle:()=>({textTransform:"capitalize"})},{name:"cpu",header:"CPU",width:80,render:e=>{let{row:t}=e;return t.cpu&&t.cpu>1e4?(0,F.LO)(t.cpu):"\u2014"},align:b.ZP.RIGHT,defaultOrder:b.ZP.DESCENDING},{name:"memory",header:"Memory",width:120,render:e=>{let{row:t}=e;return t.memory?(0,F.q3)(t.memory):"\u2014"},align:b.ZP.RIGHT,defaultOrder:b.ZP.DESCENDING},{name:"storage",header:"Storage",width:120,render:e=>{let{row:t}=e;return t.storage?(0,F.q3)(t.storage):"\u2014"},align:b.ZP.RIGHT,defaultOrder:b.ZP.DESCENDING},{name:"nodesCount",header:"Nodes",width:100,render:e=>{let{row:t}=e;return t.nodesCount?(0,F.uf)(t.nodesCount):"\u2014"},align:b.ZP.RIGHT,defaultOrder:b.ZP.DESCENDING},{name:"groupsCount",header:"Groups",width:100,render:e=>{let{row:t}=e;return t.groupsCount?(0,F.uf)(t.groupsCount):"\u2014"},align:b.ZP.RIGHT,defaultOrder:b.ZP.DESCENDING},{name:"PoolStats",header:"Pools",width:100,resizeMinWidth:60,sortAccessor:e=>{let{PoolStats:t=[]}=e;return t.reduce(((e,t)=>e+(t.Usage||0)),0)},defaultOrder:b.ZP.DESCENDING,align:b.ZP.LEFT,render:e=>{let{row:t}=e;return(0,_.jsx)(C.m,{pools:t.PoolStats})}}];return 0===v.length&&m!==A.pu.ALL?(0,_.jsx)(E.Q,{name:"thumbsUp",width:"200"}):(0,_.jsx)(k.G,{columnsWidthLSKey:"databasesTableColumnsWidth",data:v,columns:e,settings:Z.LE,emptyDataMessage:"No such tenants"})})():null})]})};var U=s(79734),W=s(48897),Q=s(62776),X=s(3534),K=s(40067),Y=s(67359),J=s(51688),ee=s(92398);const te=[{name:"NodeId",header:"#",width:80,resizeMinWidth:80,align:b.ZP.LEFT,render:e=>{let{row:t}=e;return t.NodeId}},{name:"Host",render:e=>{var t;let{row:s}=e;const n=s.Endpoints&&(null===(t=s.Endpoints.find((e=>"http-mon"===e.Name)))||void 0===t?void 0:t.Address),l=s.Host&&`${s.Host}${n||""}`||"unknown",a=!(0,J.TA)(s)&&s.NodeId?(0,ee.a3)(s.NodeId):void 0;return(0,_.jsx)(c.A,{name:l,path:a,hasClipboardButton:!0,showStatus:!1})},width:400,align:b.ZP.LEFT},{name:"Endpoints",sortable:!1,render:e=>{let{row:t}=e;return t.Endpoints?t.Endpoints.map((e=>{let{Name:t,Address:s}=e;return`${t} ${s}`})).join(", "):"-"},width:300,align:b.ZP.LEFT},{name:"Uptime",header:"Uptime",sortAccessor:e=>{let{StartTime:t}=e;return t&&-t},width:120,align:b.ZP.LEFT,render:e=>{let{row:t}=e;return t.Uptime}},{name:"MemoryUsed",header:"Memory used",sortAccessor:e=>{let{MemoryUsed:t=0}=e;return Number(t)},defaultOrder:b.ZP.DESCENDING,render:e=>{let{row:t}=e;return t.MemoryUsed?(0,F.td)(t.MemoryUsed):"\u2014"},width:120,align:b.ZP.RIGHT},{name:"MemoryLimit",header:"Memory limit",sortAccessor:e=>{let{MemoryLimit:t=0}=e;return Number(t)},defaultOrder:b.ZP.DESCENDING,render:e=>{let{row:t}=e;return t.MemoryLimit?(0,F.td)(t.MemoryLimit):"\u2014"},width:120,align:b.ZP.RIGHT},{name:"PoolStats",header:"Pools",sortAccessor:e=>{let{PoolStats:t=[]}=e;return t.reduce(((e,t)=>e+(t.Usage||0)),0)},defaultOrder:b.ZP.DESCENDING,width:80,resizeMinWidth:60,render:e=>{let{row:t}=e;return t.PoolStats?(0,_.jsx)(C.m,{pools:t.PoolStats}):"\u2014"},align:b.ZP.LEFT},{name:"LoadAverage",header:"Load average",sortAccessor:e=>{let{LoadAveragePercents:t=[]}=e;return t[0]},defaultOrder:b.ZP.DESCENDING,width:140,resizeMinWidth:140,render:e=>{let{row:t}=e;return t.LoadAveragePercents&&t.LoadAveragePercents.length>0?(0,_.jsx)(Y.y,{value:t.LoadAveragePercents[0],percents:!0,capacity:100,colorizeProgress:!0}):"\u2014"},align:b.ZP.LEFT}],se=e=>{let{nodes:t}=e;return(0,_.jsx)(k.G,{columnsWidthLSKey:"versionsTableColumnsWidth",data:t,columns:te,settings:Z.LE})};var ne=s(84893),le=s(90861);const ae=(0,p.cn)("ydb-versions-nodes-tree-title"),re=e=>{let t,{title:s,nodes:n,items:l,versionColor:a,versionsValues:r}=e;return t=l?l.reduce(((e,t)=>t.nodes?e+t.nodes.length:e),0):n?n.length:0,(0,_.jsxs)("div",{className:ae("overview"),children:[(0,_.jsxs)("div",{className:ae("overview-container"),children:[a?(0,_.jsx)("div",{className:ae("version-color"),style:{background:a}}):null,s?(0,_.jsxs)("span",{className:ae("overview-title"),children:[s,(0,_.jsx)(le.m,{text:s,size:"s",className:ae("clipboard-button")})]}):null]}),(0,_.jsxs)("div",{className:ae("overview-info"),children:[(0,_.jsxs)("div",{children:[(0,_.jsx)("span",{className:ae("info-value"),children:t}),(0,_.jsx)("span",{className:ae("info-label",{margin:"left"}),children:"Nodes"})]}),r?(0,_.jsxs)("div",{className:ae("version-progress"),children:[(0,_.jsx)("span",{className:ae("info-label",{margin:"right"}),children:"Versions"}),(0,_.jsx)(ne.E,{size:"s",value:100,stack:r})]}):null]})]})},oe=(0,p.cn)("ydb-versions-grouped-node-tree"),ie=e=>{let{title:t,nodes:s,items:l,expanded:a=!1,versionColor:r,versionsValues:o,level:i=0}=e;const[d,c]=n.useState(!1);n.useEffect((()=>{c(a)}),[a]);const u=(0,_.jsx)(re,{title:t,nodes:s,items:l,versionColor:r,versionsValues:o}),v=()=>{c((e=>!e))};return l?(0,_.jsx)("div",{className:oe({"first-level":0===i}),children:(0,_.jsx)(K.L,{name:u,collapsed:!d,hasArrow:!0,onClick:v,onArrowClick:v,children:l.map(((e,t)=>(0,_.jsx)(ie,{title:e.title,nodes:e.nodes,expanded:a,versionColor:e.versionColor,level:i+1},t)))},t)}):(0,_.jsx)("div",{className:oe({"first-level":0===i}),children:(0,_.jsx)(K.L,{name:u,collapsed:!d,hasArrow:!0,onClick:v,onArrowClick:v,children:(0,_.jsx)("div",{className:oe("dt-wrapper"),children:(0,_.jsx)(se,{nodes:s||[]})})},t)})};var de=s(46754),ce=s.n(de),ue=s(30601);const ve=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;const s=e.reduce(((e,t)=>(t.Version&&(e[t.Version]?e[t.Version]=e[t.Version]+1:e[t.Version]=1),e)),{});return Object.keys(s).map((n=>({title:n,version:n,color:null===t||void 0===t?void 0:t.get((0,ue.H)(n)),value:s[n]/e.length*100})))};function me(e,t,s){const n=null!==s&&void 0!==s?s:e.reduce(((e,t)=>e+t.count),0);return e.map((e=>({title:e.name,version:e.name,color:null===t||void 0===t?void 0:t.get(e.name),value:e.count/n*100})))}let he;!function(e){e.VERSION="Version",e.TENANT="Database",e.STORAGE="Storage"}(he||(he={}));const pe=(e,t)=>{var s;return(null===(s=e.title)||void 0===s?void 0:s.localeCompare(t.title||""))||-1},xe=(0,p.cn)("ydb-versions"),ge=e=>{let{versionToColor:t}=e;const[s]=(0,x.Rj)(),{currentData:l,isLoading:a}=X.k.useGetNodesQuery({tablets:!1},{pollingInterval:s}),r=null===l||void 0===l?void 0:l.Nodes,[o,i]=n.useState(he.VERSION),[d,c]=n.useState(!1),u=e=>{i(e)};if(a)return(0,_.jsx)(Q.a,{});const v=((e,t,s)=>{if(e&&e.length){if(s===he.VERSION){const s=ce()(e,"Version");return Object.keys(s).map((e=>{const n=s[e].filter((e=>{let{Tenants:t}=e;return Boolean(t)})),l=ce()(n,"Tenants"),a=Object.keys(l).map((e=>({title:e,nodes:l[e]}))).sort(pe);return a.length?{title:e,items:a,versionColor:null===t||void 0===t?void 0:t.get((0,ue.H)(e))}:null})).filter((e=>Boolean(e)))}{const s=e.filter((e=>{let{Tenants:t}=e;return Boolean(t)})),n=ce()(s,"Tenants");return Object.keys(n).map((e=>{const s=ve(n[e],t),l=ce()(n[e],"Version"),a=Object.keys(l).map((e=>({title:e,nodes:l[e],versionColor:null===t||void 0===t?void 0:t.get((0,ue.H)(e))})));return a.length?{title:e,items:a,versionsValues:s}:null})).filter((e=>Boolean(e))).sort(pe)}}})(r,t,o),m=((e,t)=>{if(!e||!e.length)return;const s=e.filter((e=>{let{Roles:t}=e;return null===t||void 0===t?void 0:t.includes("Storage")})),n=ce()(s,"Version");return Object.keys(n).map((e=>({title:e,nodes:n[e],versionColor:null===t||void 0===t?void 0:t.get((0,ue.H)(e))})))})(r,t),h=((e,t)=>{if(!e||!e.length)return;const s=e.filter((e=>{let{Roles:t}=e;return!t})),n=ce()(s,"Version");return Object.keys(n).map((e=>({title:e,nodes:n[e],versionColor:null===t||void 0===t?void 0:t.get((0,ue.H)(e))})))})(r,t),p=null!==m&&void 0!==m&&m.length?(0,_.jsxs)(n.Fragment,{children:[(0,_.jsx)("h3",{children:"Storage nodes"}),m.map((e=>{let{title:t,nodes:s,items:n,versionColor:l}=e;return(0,_.jsx)(ie,{title:t,nodes:s,items:n,versionColor:l},`storage-nodes-${t}`)}))]}):null,g=null!==v&&void 0!==v&&v.length?(0,_.jsxs)(n.Fragment,{children:[(0,_.jsx)("h3",{children:"Database nodes"}),(0,_.jsxs)("div",{className:xe("controls"),children:[(0,_.jsxs)("div",{className:xe("group"),children:[(0,_.jsx)("span",{className:xe("label"),children:"Group by:"}),(0,_.jsxs)(U.E,{value:o,onUpdate:u,children:[(0,_.jsx)(U.E.Option,{value:he.TENANT,children:he.TENANT}),(0,_.jsx)(U.E.Option,{value:he.VERSION,children:he.VERSION})]})]}),(0,_.jsx)(W.X,{className:xe("checkbox"),onChange:()=>c((e=>!e)),checked:d,children:"All expanded"})]}),v.map((e=>{let{title:t,nodes:s,items:n,versionColor:l,versionsValues:a}=e;return(0,_.jsx)(ie,{title:t,nodes:s,items:n,expanded:d,versionColor:l,versionsValues:a},`tenant-nodes-${t}`)}))]}):null,N=null!==h&&void 0!==h&&h.length?(0,_.jsxs)(n.Fragment,{children:[(0,_.jsx)("h3",{children:"Other nodes"}),h.map((e=>{let{title:t,nodes:s,items:n,versionColor:l,versionsValues:a}=e;return(0,_.jsx)(ie,{title:t,nodes:s,items:n,versionColor:l,versionsValues:a},`other-nodes-${t}`)}))]}):null;return(0,_.jsxs)("div",{className:xe("versions"),children:[p,g,N]})};var Ne=s(23373),je=s(91816);const be=(0,p.cn)("cluster-info");var fe=s(17095),we=s(32270),ye=s(94790),Ee=s(42784),Ce=s(27506);const Te=(0,p.cn)("tablet"),ke=e=>{var t;let{tablet:s={},tenantName:n}=e;const{TabletId:l,NodeId:a,Type:r}=s,o=null===(t=s.Overall)||void 0===t?void 0:t.toLowerCase(),i=l&&(0,v.fK)(l,{nodeId:a,tenantName:n,type:r});return(0,_.jsx)(ye.f,{className:Te("wrapper"),content:(0,_.jsx)(Ce.Fb,{data:s,className:Te("popup-content")}),children:(0,_.jsx)(u.h,{to:i,children:(0,_.jsx)(Ee.v,{className:Te({status:o}),text:(0,Z.qV)(s.Type)})})})};var Oe=s(12199),Pe=s(1558),Se=s(28164);const Ae=(0,p.cn)("ydb-cluster-versions-bar"),Le=e=>{let{versionsValues:t=[]}=e;return(0,_.jsxs)("div",{className:Ae(),children:[(0,_.jsx)(ne.E,{value:100,stack:t,size:"s"}),(0,_.jsx)("div",{className:Ae("versions"),children:t.map(((e,s)=>(0,_.jsx)("div",{className:Ae("version-title"),style:{color:e.color},title:e.version,children:`${e.version}${s===t.length-1?"":","}`},e.version)))})]})};var Me=s(30817);const De=JSON.parse('{"disk-type":"Disk Type","erasure":"Erasure","allocated":"Allocated","available":"Available","usage":"Usage","dc":"DC","tablets":"Tablets","databases":"Databases","nodes":"Nodes","nodes-state":"Nodes state","load":"Load","storage-size":"Storage size","storage-groups":"Storage groups, {{diskType}}","links":"Links","versions":"Versions","quantity":{"one":"{{count}} node","other":"{{count}} nodes","zero":"no nodes"}}'),Ve=(0,Me.wZ)("ydb-cluster",{en:De});var Ze=s(62206),ze=s(81854);const Ge=(0,p.cn)("ydb-disk-groups-stats"),Ie=e=>{let{stats:t}=e;return(0,_.jsx)("div",{className:Ge(),children:Object.values(t).map((e=>(0,_.jsx)(ye.f,{placement:["right"],content:(0,_.jsx)(Re,{stats:e}),children:(0,_.jsx)(Y.y,{className:Ge("bar"),value:e.createdGroups,capacity:e.totalGroups})},e.erasure)))})};function Re(e){let{stats:t}=e;const{diskType:s,erasure:n,allocatedSize:l,availableSize:a}=t,r=(0,ze.dT)(Math.max(l,a),2),o=(0,ze.td)({value:l,size:r}),i=(0,ze.td)({value:a,size:r}),d=Math.round(l/(l+a)*100),c=[{label:Ve("disk-type"),value:s},{label:Ve("erasure"),value:n},{label:Ve("allocated"),value:o},{label:Ve("available"),value:i},{label:Ve("usage"),value:d+"%"}];return(0,_.jsx)(Ze._P,{dots:!0,info:c,className:Ge("popup-content"),size:"s"})}const Be=(0,p.cn)("ydb-nodes-state");function Fe(e){let{state:t,children:s}=e;return(0,_.jsx)("div",{className:Be({[t.toLowerCase()]:!0}),children:s})}const $e={Green:5,Blue:4,Yellow:3,Orange:2,Red:1,Grey:0},_e=(e,t)=>e.Type===Se.F.TxAllocator?1:t.Type===Se.F.TxAllocator?-1:0,qe=(e,t,s,l,a)=>{const r=[],o=(e=>{var t;return(0,Pe.j)(e)&&e.MapDataCenters?Object.entries(e.MapDataCenters).map((e=>{let[t,s]=e;return(0,_.jsxs)(n.Fragment,{children:[t,": ",(0,_.jsx)("span",{className:be("dc-count"),children:Ve("quantity",{count:s})})]},t)})):null===(t=e.DataCenters)||void 0===t?void 0:t.filter(Boolean)})(e);if(null!==o&&void 0!==o&&o.length&&r.push({label:Ve("dc"),value:(0,_.jsx)(Oe.$,{tags:o})}),e.SystemTablets){const t=e.SystemTablets.slice(0).sort(_e);r.push({label:Ve("tablets"),value:(0,_.jsx)("div",{className:be("system-tablets"),children:t.map(((e,t)=>(0,_.jsx)(ke,{tablet:e},t)))})})}if(e.Tenants&&r.push({label:Ve("databases"),value:e.Tenants}),r.push({label:Ve("nodes"),value:(0,_.jsx)(Y.y,{value:null===e||void 0===e?void 0:e.NodesAlive,capacity:null===e||void 0===e?void 0:e.NodesTotal})}),(0,Pe.j)(e)&&e.MapNodeStates){const t=Object.entries(e.MapNodeStates);t.sort(((e,t)=>$e[t[0]]-$e[e[0]]));const s=t.map((e=>{let[t,s]=e;return(0,_.jsx)(Fe,{state:t,children:s},t)}));r.push({label:Ve("nodes-state"),value:(0,_.jsx)("div",{className:be("nodes-states"),children:s})})}r.push({label:Ve("load"),value:(0,_.jsx)(Y.y,{value:null===e||void 0===e?void 0:e.LoadAverage,capacity:null===e||void 0===e?void 0:e.NumberOfCpus})});const i=(e=>{if((0,Pe.j)(e)&&e.MapDataCenters){const{MapStorageTotal:t,MapStorageUsed:s}=e,n=new Set(Object.keys(null!==t&&void 0!==t?t:[]).concat(Object.keys(null!==s&&void 0!==s?s:[])));if(n.size>0)return Array.from(n).reduce(((e,n)=>(e[n]={used:null===s||void 0===s?void 0:s[n],total:null===t||void 0===t?void 0:t[n]},e)),{})}return{_default:{used:null===e||void 0===e?void 0:e.StorageUsed,total:null===e||void 0===e?void 0:e.StorageTotal}}})(e);return Object.entries(i).forEach((e=>{let[t,s]=e,n=Ve("storage-size");"_default"!==t&&(n+=`, ${t}`),r.push({label:n,value:(0,_.jsx)(Y.y,{value:s.used,capacity:s.total,formatValues:F.QO})})})),Object.keys(s).length&&r.push(...(e=>Object.keys(e).map((t=>({label:Ve("storage-groups",{diskType:t}),value:(0,_.jsx)(Ie,{stats:e[t]})}))))(s)),r.push(...l,{label:Ve("links"),value:(0,_.jsx)("div",{className:be("links"),children:a.map((e=>{let{title:t,url:s}=e;return(0,_.jsx)(we.j,{title:t,url:s},t)}))})},{label:Ve("versions"),value:(0,_.jsx)(Le,{versionsValues:t.filter((e=>"unknown"!==e.title))})}),r},He=e=>{let{cluster:t,versionToColor:s,groupsStats:l={},loading:a,error:r,additionalClusterProps:o={}}=e;const i=(0,x.ix)((e=>e.singleClusterMode)),d=((e,t)=>{const{currentData:s}=X.k.useGetNodesQuery((0,Pe.j)(e)?fe.CN:{tablets:!1,group:"Version"});return n.useMemo((()=>(0,Pe.j)(e)&&e.MapVersions?me(Object.entries(e.MapVersions).map((e=>{let[t,s]=e;return{name:t,count:s}})),t,e.NodesTotal):s?Array.isArray(s.NodeGroups)?me(s.NodeGroups,t,null===e||void 0===e?void 0:e.NodesTotal):ve(s.Nodes,t):[]),[s,t,e])})(t,s);let c=S.y3+"/internal";i&&!S.j4&&(c="/internal");const{info:u=[],links:v=[]}=o,m=qe(null!==t&&void 0!==t?t:{},d,l,u,[{title:Z.Ah,url:c},...v]);return(0,_.jsxs)("div",{className:be(),children:[r?(0,_.jsx)(y.V,{error:r,className:be("error")}):null,(0,_.jsx)("div",{className:be("info"),children:a?(0,_.jsx)(je.b,{className:be("skeleton"),rows:9}):r&&!t?null:(0,_.jsx)(Ne._,{dots:!0,info:m})})]})};var Ue=s(81003);const We=(0,p.cn)("cluster");function Qe(e){let{additionalClusterProps:t,additionalTenantsProps:s,additionalNodesProps:p,additionalVersionsProps:b}=e;const f=n.useRef(null),w=(0,x.zL)(),y=function(){const e=(0,x.zL)(),t=(0,x.ix)((e=>e.cluster.defaultClusterTab)),s=(0,o.$B)(v.ZP.cluster),{activeTab:l}=(null===s||void 0===s?void 0:s.params)||{};let a;a=(0,Ue.V2)(l)?l:t;return n.useEffect((()=>{a!==t&&e((0,m.LQ)(a))}),[a,t,e]),a}(),[{clusterName:E,backend:C}]=(0,i.useQueryParams)({clusterName:i.StringParam,backend:i.StringParam}),T=(0,x.ix)((e=>(0,m.le)(e,null!==E&&void 0!==E?E:void 0))),{data:{clusterData:k={},groupsStats:O}={},isLoading:P,error:S}=m.UM.useGetClusterInfoQuery(null!==E&&void 0!==E?E:void 0),A=S&&"object"===typeof S?S:void 0;n.useEffect((()=>{w((0,h.J)("cluster",{}))}),[w]);const L=n.useMemo((()=>null!==b&&void 0!==b&&b.getVersionToColorMap?null===b||void 0===b?void 0:b.getVersionToColorMap():(0,g.ZP)(null===k||void 0===k?void 0:k.Versions)),[b,k]),M=n.useMemo((()=>Ue._Y.find((e=>{let{id:t}=e;return t===y}))),[y]);return(0,_.jsxs)("div",{className:We(),ref:f,children:[(0,_.jsx)(r.ql,{defaultTitle:`${T} \u2014 YDB Monitoring`,titleTemplate:`%s \u2014 ${T} \u2014 YDB Monitoring`,children:M?(0,_.jsx)("title",{children:M.title}):null}),(0,_.jsx)("div",{className:We("header"),children:P?(0,_.jsx)(l.O,{className:We("title-skeleton")}):(0,_.jsx)(c.A,{size:"m",status:null===k||void 0===k?void 0:k.Overall,name:T,className:We("title")})}),(0,_.jsx)("div",{className:We("tabs"),children:(0,_.jsx)(a.m,{size:"l",allowNotSelected:!0,activeTab:y,items:Ue._Y,wrapTo:(e,t)=>{let{id:s}=e;const n=(0,Ue.B7)(s,{clusterName:E,backend:C});return(0,_.jsx)(u.h,{to:n,onClick:()=>{w((0,m.LQ)(s))},children:t},s)}})}),(0,_.jsx)("div",{className:We("sticky-wrapper"),children:(0,_.jsx)(d.q,{className:We("auto-refresh-control")})}),(0,_.jsxs)(o.rs,{children:[(0,_.jsx)(o.AW,{path:(0,v.Fz)((0,Ue.B7)(Ue.xu.overview)).pathname,children:(0,_.jsx)(He,{cluster:k,groupsStats:O,versionToColor:L,loading:P,error:A,additionalClusterProps:t})}),(0,_.jsx)(o.AW,{path:(0,v.Fz)((0,Ue.B7)(Ue.xu.tenants)).pathname,children:(0,_.jsx)(H,{additionalTenantsProps:s})}),(0,_.jsx)(o.AW,{path:(0,v.Fz)((0,Ue.B7)(Ue.xu.nodes)).pathname,children:(0,_.jsx)(N.G,{parentContainer:f.current,additionalNodesProps:p})}),(0,_.jsx)(o.AW,{path:(0,v.Fz)((0,Ue.B7)(Ue.xu.storage)).pathname,children:(0,_.jsx)(j.V,{parentContainer:f.current})}),(0,_.jsx)(o.AW,{path:(0,v.Fz)((0,Ue.B7)(Ue.xu.versions)).pathname,children:(0,_.jsx)(ge,{versionToColor:L})}),(0,_.jsx)(o.AW,{render:()=>(0,_.jsx)(o.l_,{to:(0,v.Fz)((0,Ue.B7)(y))})})]})]})}},57225:(e,t,s)=>{"use strict";s.d(t,{Z:()=>l});var n=s(68963);const l=e=>n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),n.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M15 8A7 7 0 1 1 1 8a7 7 0 0 1 14 0Zm-6 2.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM8.75 5a.75.75 0 0 0-1.5 0v2.5a.75.75 0 0 0 1.5 0V5Z",clipRule:"evenodd"}))},67585:(e,t,s)=>{"use strict";s.d(t,{Z:()=>l});var n=s(68963);const l=e=>n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),n.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14Zm1-9.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM8 7.75a.75.75 0 0 1 .75.75V11a.75.75 0 0 1-1.5 0V8.5A.75.75 0 0 1 8 7.75Z",clipRule:"evenodd"}))},71549:(e,t,s)=>{"use strict";s.d(t,{Z:()=>l});var n=s(68963);const l=e=>n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),n.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"m3.003 4.702 4.22-2.025a1.796 1.796 0 0 1 1.554 0l4.22 2.025a.886.886 0 0 1 .503.8V6a8.55 8.55 0 0 1-3.941 7.201l-.986.631a1.063 1.063 0 0 1-1.146 0l-.986-.63A8.55 8.55 0 0 1 2.5 6v-.498c0-.341.196-.652.503-.8Zm3.57-3.377L2.354 3.35A2.387 2.387 0 0 0 1 5.502V6a10.05 10.05 0 0 0 4.632 8.465l.986.63a2.563 2.563 0 0 0 2.764 0l.986-.63A10.05 10.05 0 0 0 15 6v-.498c0-.918-.526-1.755-1.354-2.152l-4.22-2.025a3.296 3.296 0 0 0-2.852 0ZM9.5 7a1.5 1.5 0 0 1-.75 1.3v1.95a.75.75 0 0 1-1.5 0V8.3A1.5 1.5 0 1 1 9.5 7Z",clipRule:"evenodd"}))},71586:(e,t,s)=>{"use strict";s.d(t,{Z:()=>l});var n=s(68963);const l=e=>n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),n.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M5.836 2.244c.962-1.665 3.366-1.665 4.328 0l4.917 8.505c.964 1.666-.239 3.751-2.164 3.751H3.083c-1.925 0-3.128-2.085-2.164-3.751l4.917-8.505ZM8 5a.75.75 0 0 1 .75.75v2a.75.75 0 1 1-1.5 0v-2A.75.75 0 0 1 8 5Zm1 5.75a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z",clipRule:"evenodd"}))},48897:(e,t,s)=>{"use strict";s.d(t,{X:()=>d});var n=s(68963),l=s(33180),a=s(24288);function r(e){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 17 17",width:"16",height:"16",fill:"currentColor"},e),n.createElement("path",{d:"M4 7h9v3H4z"}))}function o(e){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 10",width:"16",height:"16",fill:"currentColor"},e),n.createElement("path",{d:"M.49 5.385l1.644-1.644 4.385 4.385L4.874 9.77.49 5.385zm4.384 1.096L10.356 1 12 2.644 6.519 8.126 4.874 6.48v.001z"}))}const i=(0,s(36951).Ge)("checkbox"),d=n.forwardRef((function(e,t){const{size:s="m",indeterminate:d,disabled:c=!1,content:u,children:v,title:m,style:h,className:p,qa:x}=e,{checked:g,inputProps:N}=(0,l.O)(e),j=u||v,b=n.createElement("span",{className:i("indicator")},n.createElement("span",{className:i("icon"),"aria-hidden":!0},d?n.createElement(r,{className:i("icon-svg",{type:"dash"})}):n.createElement(o,{className:i("icon-svg",{type:"tick"})})),n.createElement("input",Object.assign({},N,{className:i("control")})),n.createElement("span",{className:i("outline")}));return n.createElement(a.J,{ref:t,title:m,style:h,size:s,disabled:c,className:i({size:s,disabled:c,indeterminate:d,checked:g},p),qa:x,control:b},j)}))},84893:(e,t,s)=>{"use strict";s.d(t,{E:()=>u});var n=s(68963);const l=(0,s(36951).Ge)("progress");function a(e){const{text:t,offset:s=0}=e;return t?n.createElement("div",{className:l("text-inner"),style:{transform:`translateX(calc(var(--g-flow-direction) * ${-s}%))`}},t):null}function r(e){let{item:t}=e;const{value:s,color:a,className:r,theme:o,title:i,content:d,loading:c}=t,u={loading:c};return"undefined"===typeof a&&(u.theme=o||"default"),Number.isFinite(s)?n.createElement("div",{className:l("item",u,r),style:{width:`${s}%`,backgroundColor:a},title:i},d):null}function o(e){return e<100?e-100:0}function i(e){const{theme:t,colorStops:s,colorStopsValue:n,value:l}=e;if(s){const e=s.find(((e,t)=>{const a="number"===typeof n?n:l,r=t>1?s[t-1].stop:0,o=t<s.length-1?e.stop:100;return a>=r&&a<=o}));return e?e.theme:t}return t}function d(e){const{stack:t,stackClassName:s,value:i,text:d}=e,c=o(i||function(e){return e.reduce(((e,t)=>{let{value:s}=t;return e+s}),0)}(t));return n.createElement("div",{className:l("stack",s),style:{transform:`translateX(calc(var(--g-flow-direction) * ${c}%))`}},n.createElement("div",{className:l("item"),style:{width:-c+"%"}}),t.map(((e,t)=>n.createElement(r,{key:t,item:e}))),n.createElement(a,{offset:c,text:d}))}function c(e){const{value:t,loading:s,text:r}=e,d=o(t);return Number.isFinite(t)?n.createElement("div",{className:l("item",{theme:i(e),loading:s}),style:{transform:`translateX(calc(var(--g-flow-direction) * ${d}%))`}},n.createElement(a,{offset:d,text:r})):null}const u=n.forwardRef((function(e,t){const{text:s="",theme:a="default",size:r="m",loading:o=!1,className:i,qa:u}=e,v=Object.assign(Object.assign({},e),{text:s,theme:a,size:r,loading:o});return n.createElement("div",{ref:t,className:l({size:r},i),"data-qa":u},n.createElement("div",{className:l("text")},s),function(e){return void 0!==e.stack}(v)?n.createElement(d,Object.assign({},v)):n.createElement(c,Object.assign({},v)))}))},56711:(e,t,s)=>{"use strict";s.d(t,{O:()=>a});var n=s(68963);const l=(0,s(36951).Ge)("skeleton");function a(e){let{className:t,style:s,qa:a}=e;return n.createElement("div",{className:l(null,t),style:s,"data-qa":a})}},27320:(e,t,s)=>{"use strict";s.d(t,{u:()=>c});var n=s(68963),l=s(48027),a=s(79004),r=s(44920),o=s(10288);const i=(0,s(36951).Ge)("tooltip"),d=["bottom","top"],c=e=>{const{children:t,content:s,disabled:c,placement:u=d,qa:v,id:m,className:h,style:p,disablePortal:x,contentClassName:g,openDelay:N=1e3,closeDelay:j}=e,[b,f]=n.useState(null),w=(0,a.p)(b,{openDelay:N,closeDelay:j,preventTriggerOnFocus:!0}),y=n.Children.only(t),E=y.ref,C=(0,l.c)(f,E);return n.createElement(n.Fragment,null,n.cloneElement(y,{ref:C}),b?n.createElement(r.G,{id:m,role:"tooltip",className:i(null,h),style:p,open:w&&!c,placement:u,anchorRef:{current:b},disablePortal:x,disableEscapeKeyDown:!0,disableOutsideClick:!0,disableLayer:!0,qa:v},n.createElement("div",{className:i("content",g)},n.createElement(o.x,{variant:"body-short",color:"complementary"},s))):null)}},38626:e=>{e.exports=function(e,t,s,n){for(var l=-1,a=null==e?0:e.length;++l<a;){var r=e[l];t(n,r,s(r),e)}return n}},30277:(e,t,s)=>{var n=s(46067);e.exports=function(e,t,s,l){return n(e,(function(e,n,a){t(l,e,s(e),a)})),l}},81670:(e,t,s)=>{var n=s(38626),l=s(30277),a=s(67173),r=s(46296);e.exports=function(e,t){return function(s,o){var i=r(s)?n:l,d=t?t():{};return i(s,e,a(o,2),d)}}},46754:(e,t,s)=>{var n=s(69519),l=s(81670),a=Object.prototype.hasOwnProperty,r=l((function(e,t,s){a.call(e,s)?e[s].push(t):n(e,s,[t])}));e.exports=r},40067:(e,t,s)=>{"use strict";s.d(t,{L:()=>d});var n=s(75859),l=s(68963),a=s(30831),r=s(99879);const o="--ydb-tree-view-level",i=(0,r.G)("ydb-tree-view");function d(e){let{children:t,name:s,title:r,icon:d,collapsed:c=!0,active:u=!1,onClick:v,onArrowClick:m,hasArrow:h=!1,actions:p,additionalNodeElements:x,level:g}=e;const N=l.useCallback((e=>{if(!v)return;e.nativeEvent.composedPath().some((e=>e instanceof HTMLElement&&("BUTTON"===e.nodeName&&!e.hasAttribute("disabled")||e.hasAttribute("tabindex")&&e.tabIndex>-1)))||v()}),[v]),j=m||v;let b="tree-view_arrow",f="tree-view_children";return c&&(b+=" tree-view_arrow-collapsed",f+=" tree-view_children-collapsed"),(0,n.jsx)("div",{className:i(),style:{[o]:g},children:(0,n.jsxs)("div",{className:"tree-view",children:[(0,n.jsxs)("div",{className:`tree-view_item ${i("item",{active:u})}`,onClick:N,children:[(0,n.jsx)("button",{type:"button",className:`${b} ${i("arrow",{collapsed:c,hidden:!h})}`,disabled:!j,onClick:j}),(0,n.jsxs)("div",{className:i("content"),children:[d&&(0,n.jsx)("div",{className:i("icon"),children:d}),(0,n.jsx)("div",{className:i("text"),title:r,children:s}),p&&p.length>0&&(0,n.jsxs)("div",{className:i("actions"),children:[x,(0,n.jsx)(a.h,{defaultSwitcherProps:{view:"flat-secondary",size:"s",pin:"brick-brick"},items:p})]})]})]}),(0,n.jsx)("div",{className:`${f} ${i("container",{collapsed:c})}`,children:c?null:t})]})})}},99879:(e,t,s)=>{"use strict";s.d(t,{G:()=>n});const n=(0,s(5247).withNaming)({e:"__",m:"_"})}}]); \ No newline at end of file
diff --git a/ydb/core/viewer/monitoring/static/js/4263.38b7ba04.chunk.js b/ydb/core/viewer/monitoring/static/js/4263.183a56ca.chunk.js
index 1792f482f3..8dc1b89a17 100644
--- a/ydb/core/viewer/monitoring/static/js/4263.38b7ba04.chunk.js
+++ b/ydb/core/viewer/monitoring/static/js/4263.183a56ca.chunk.js
@@ -1 +1 @@
-"use strict";(self.webpackChunkydb_embedded_ui=self.webpackChunkydb_embedded_ui||[]).push([[4263],{65070:(e,t,s)=>{s.d(t,{U:()=>d});var i=s(68963),o=s(17176),n=s(68330),a=s(86793),l=s(45743),r=s(75859);function d(e){let{children:t,onConfirmAction:s,onConfirmActionSuccess:d,dialogHeader:c,dialogText:u,retryButtonText:m,buttonDisabled:p=!1,buttonView:h="action",buttonClassName:v,withPopover:g=!1,popoverContent:b,popoverPlacement:D="right",popoverDisabled:k=!0}=e;const[x,y]=i.useState(!1),[f,j]=i.useState(!1),[S,N]=i.useState(!1),w=()=>(0,r.jsx)(o.z,{onClick:()=>y(!0),view:h,disabled:p,loading:!p&&f,className:v,children:t});return(0,r.jsxs)(i.Fragment,{children:[(0,r.jsx)(a.g,{visible:x,header:c,text:u,withRetry:S,retryButtonText:m,onConfirm:async e=>{j(!0),await s(e)},onConfirmActionSuccess:async()=>{N(!1);try{await(null===d||void 0===d?void 0:d())}finally{j(!1)}},onConfirmActionError:e=>{N((0,l.q)(e)),j(!1)},onClose:()=>{y(!1)}}),g?(0,r.jsx)(n.J,{content:b,placement:D,disabled:k,children:w()}):w()]})}},94790:(e,t,s)=>{s.d(t,{f:()=>a});var i=s(68963),o=s(44920),n=s(75859);const a=e=>{let{children:t,content:s,className:a,pinOnClick:l,hasArrow:r=!0,placement:d=["top","bottom"],...c}=e;const[u,m]=i.useState(!1),[p,h]=i.useState(!1),v=i.useRef(null);return(0,n.jsxs)(i.Fragment,{children:[(0,n.jsx)(o.G,{anchorRef:v,open:p||u,placement:d,hasArrow:r,onOutsideClick:()=>{h(!1)},...c,children:s}),(0,n.jsx)("span",{className:a,ref:v,onClick:l?()=>{h(!0)}:void 0,onMouseEnter:()=>{m(!0)},onMouseLeave:()=>{m(!1)},children:t})]})}},86793:(e,t,s)=>{s.d(t,{g:()=>g});var i=s(68963),o=s(76506),n=s(71586),a=s(48897),l=s(25822),r=s(88776),d=s(24362),c=s(30817);const u=JSON.parse('{"default-error":"Something went wrong, action cannot be completed","no-rights-error":"You don\'t have enough rights to complete the operation","button-confirm":"Confirm","button-retry":"Retry","button-cancel":"Cancel","button-close":"Close","checkbox-text":"I understand what I\'m doing"}'),m=(0,c.wZ)("ydb-critical-action-dialog",{en:u});var p=s(75859);const h=(0,d.cn)("ydb-critical-dialog"),v=e=>403===e.status?m("no-rights-error"):e.statusText?e.statusText:m("default-error");function g(e){let{visible:t,header:s,text:d,withRetry:c,retryButtonText:u,withCheckBox:g,onClose:b,onConfirm:D,onConfirmActionSuccess:k,onConfirmActionError:x}=e;const[y,f]=i.useState(!1),[j,S]=i.useState(),[N,w]=i.useState(!1),I=async e=>(f(!0),D(e).then((()=>{k(),b()})).catch((e=>{x(e),S(e)})).finally((()=>{f(!1)})));return(0,p.jsx)(l.V,{open:t,hasCloseButton:!1,className:h(),size:"s",onClose:b,onTransitionExited:()=>{S(void 0),w(!1)},children:j?(0,p.jsxs)(i.Fragment,{children:[(0,p.jsx)(l.V.Header,{caption:s}),(0,p.jsx)(l.V.Body,{className:h("body"),children:(0,p.jsxs)("div",{className:h("body-message",{error:!0}),children:[(0,p.jsx)("span",{className:h("error-icon"),children:(0,p.jsx)(o.Z,{width:"24",height:"22"})}),v(j)]})}),(0,p.jsx)(l.V.Footer,{loading:!1,preset:"default",textButtonApply:c?u||m("button-retry"):void 0,textButtonCancel:m("button-close"),onClickButtonApply:()=>I(!0),onClickButtonCancel:b})]}):(0,p.jsxs)(i.Fragment,{children:[(0,p.jsx)(l.V.Header,{caption:s}),(0,p.jsxs)(l.V.Body,{className:h("body"),children:[(0,p.jsxs)("div",{className:h("body-message",{warning:!0}),children:[(0,p.jsx)("span",{className:h("warning-icon"),children:(0,p.jsx)(r.J,{data:n.Z,size:24})}),d]}),g?(0,p.jsx)(a.X,{checked:N,onUpdate:w,children:m("checkbox-text")}):null]}),(0,p.jsx)(l.V.Footer,{loading:y,preset:"default",textButtonApply:m("button-confirm"),textButtonCancel:m("button-cancel"),propsButtonApply:{type:"submit",disabled:g&&!N},onClickButtonCancel:b,onClickButtonApply:()=>I()})]})})}},45743:(e,t,s)=>{s.d(t,{q:()=>i});const i=e=>Boolean(e&&"object"===typeof e&&"retryPossible"in e&&e.retryPossible)},30832:(e,t,s)=>{s.d(t,{a:()=>l});var i=s(24362),o=s(98366),n=s(75859);const a=(0,i.cn)("ydb-entity-page-title");function l(e){let{entityName:t,status:s,id:i,className:l}=e;return(0,n.jsxs)("div",{className:a(null,l),children:[(0,n.jsx)("span",{className:a("prefix"),children:t}),(0,n.jsx)(o.J,{className:a("icon"),status:s,size:"s"}),i]})}},91816:(e,t,s)=>{s.d(t,{b:()=>c});var i=s(68963),o=s(56711),n=s(24362),a=s(42587),l=s(75859);const r=(0,n.cn)("ydb-info-viewer-skeleton"),d=()=>(0,l.jsxs)("div",{className:r("label"),children:[(0,l.jsx)(o.O,{className:r("label__text")}),(0,l.jsx)("div",{className:r("label__dots")})]}),c=e=>{let{rows:t=8,className:s,delay:n=600}=e;const[c]=(0,a.$)(n);let u=(0,l.jsxs)(i.Fragment,{children:[(0,l.jsx)(d,{}),(0,l.jsx)(o.O,{className:r("value")})]});return c||(u=null),(0,l.jsx)("div",{className:r(null,s),children:[...new Array(t)].map(((e,t)=>(0,l.jsx)("div",{className:r("row"),children:u},`skeleton-row-${t}`)))})}},8659:(e,t,s)=>{s.d(t,{P:()=>y});var i=s(77796),o=s(54665),n=s(14146),a=s(5922),l=s(81854),r=s(24362),d=s(34301),c=s(48169),u=s(17096),m=s(69214),p=s(23373),h=s(32270),v=s(67359),g=s(30817);const b=JSON.parse('{"type":"Type","path":"Path","guid":"GUID","serial-number":"Serial Number","shared-with-os":"SharedWithOs","drive-status":"Drive Status","state":"State","device":"Device","realtime":"Realtime","space":"Space","slots":"Slots","log-size":"Log Size","system-size":"System Size","links":"Links","developer-ui":"Developer UI","pdisk-page":"PDisk page","yes":"Yes"}'),D=(0,g.wZ)("ydb-pDisk-info",{en:b});var k=s(75859);const x=(0,r.cn)("ydb-pdisk-info");function y(e){let{pDisk:t,nodeId:s,withPDiskPageLink:r,className:g}=e;const b=(0,u.ix)(n.VH),[y,f,j,S]=function(e){let{pDisk:t,nodeId:s,withPDiskPageLink:i,isUserAllowedToMakeChanges:n}=e;const{PDiskId:r,Path:u,Guid:p,Category:g,Type:b,Device:y,Realtime:f,State:j,SerialNumber:S,TotalSize:N,AllocatedSize:w,StatusV2:I,NumActiveSlots:C,ExpectedSlotCount:T,LogUsedSize:P,LogTotalSize:E,SystemSize:z,SharedWithOs:M}=t||{},A=[];(0,a.D)(g)&&A.push({label:D("type"),value:b}),(0,a.D)(u)&&A.push({label:D("path"),value:u}),(0,a.D)(p)&&A.push({label:D("guid"),value:p}),S&&A.push({label:D("serial-number"),value:S}),(0,a.D)(M)&&A.push({label:D("shared-with-os"),value:D("yes")});const O=[];(0,a.D)(I)&&O.push({label:D("drive-status"),value:I}),(0,a.D)(j)&&O.push({label:D("state"),value:j}),(0,a.D)(y)&&O.push({label:D("device"),value:(0,k.jsx)(m.A,{status:y})}),(0,a.D)(f)&&O.push({label:D("realtime"),value:(0,k.jsx)(m.A,{status:f})});const _=[];_.push({label:D("space"),value:(0,k.jsx)(v.y,{value:w,capacity:N,formatValues:d.q3,colorizeProgress:!0})}),(0,a.D)(C)&&(0,a.D)(T)&&_.push({label:D("slots"),value:(0,k.jsx)(v.y,{value:C,capacity:T})}),(0,a.D)(P)&&(0,a.D)(E)&&_.push({label:D("log-size"),value:(0,k.jsx)(v.y,{value:P,capacity:E,formatValues:d.q3})}),(0,a.D)(z)&&_.push({label:D("system-size"),value:(0,l.td)({value:z})});const V=[];if((i||n)&&(0,a.D)(r)&&(0,a.D)(s)){const e=(0,o.ds)(r,s),t=(0,c.ok)({nodeId:s,pDiskId:r});V.push({label:D("links"),value:(0,k.jsxs)("span",{className:x("links"),children:[i&&(0,k.jsx)(h.j,{title:D("pdisk-page"),url:e,external:!1}),n&&(0,k.jsx)(h.j,{title:D("developer-ui"),url:t})]})})}return[A,O,_,V]}({pDisk:t,nodeId:s,withPDiskPageLink:r,isUserAllowedToMakeChanges:b});return(0,k.jsxs)(i.k,{className:g,gap:2,direction:"row",wrap:!0,children:[(0,k.jsxs)(i.k,{direction:"column",gap:2,width:500,children:[(0,k.jsx)(p._,{info:y,renderEmptyState:()=>null}),(0,k.jsx)(p._,{info:j,renderEmptyState:()=>null})]}),(0,k.jsxs)(i.k,{direction:"column",gap:2,width:500,children:[(0,k.jsx)(p._,{info:f,renderEmptyState:()=>null}),(0,k.jsx)(p._,{info:S,renderEmptyState:()=>null})]})]})}},27174:(e,t,s)=>{s.d(t,{B:()=>m});var i=s(77796),o=s(24362),n=s(50422),a=s(56711),l=s(42587),r=s(75859);const d=e=>{let{delay:t=600,className:s}=e;const[i]=(0,l.$)(t);return i?(0,r.jsx)(a.O,{className:s}):null},c=(0,o.cn)("ydb-page-meta");function u(e){let{items:t,loading:s}=e;return(0,r.jsx)("div",{className:c("info"),children:s?(0,r.jsx)(d,{className:c("skeleton")}):t.filter((e=>Boolean(e))).join("\xa0\xa0\xb7\xa0\xa0")})}function m(e){let{className:t,...s}=e;return(0,r.jsxs)(i.k,{gap:1,alignItems:"center",justifyContent:"space-between",className:c(null,t),children:[(0,r.jsx)(u,{...s}),(0,r.jsx)(n.q,{})]})}},22200:(e,t,s)=>{s.d(t,{K:()=>y});s(68963);var i=s(54665),o=s(14146),n=s(5922),a=s(24362),l=s(34301),r=s(48169),d=s(92666),c=s(17096),u=s(55850),m=s(69214),p=s(62206),h=s(32270),v=s(67359),g=s(30817);const b=JSON.parse('{"slot-id":"VDisk Slot Id","pool-name":"Storage Pool Name","kind":"Kind","guid":"GUID","incarnation-guid":"Incarnation GUID","instance-guid":"Instance GUID","replication-status":"Replicated","state-status":"VDisk State","space-status":"Disk Space","fresh-rank-satisfaction":"Fresh Rank Satisfaction","level-rank-satisfaction":"Level Rank Satisfaction","front-queues":"Front Queues","has-unreadable-blobs":"Has Unreadable Blobs","size":"Size","read-throughput":"Read Throughput","write-throughput":"Write Throughput","links":"Links","vdisk-page":"VDisk Page","developer-ui":"Developer UI","yes":"Yes","no":"No","vdiks-title":"VDisk"}'),D=(0,g.wZ)("ydb-vDisk-info",{en:b});var k=s(75859);const x=(0,a.cn)("ydb-vdisk-info");function y(e){var t,s;let{data:a,withVDiskPageLink:d,withTitle:g,...b}=e;const y=(0,c.ix)(o.VH),{AllocatedSize:j,DiskSpace:S,FrontQueues:N,Guid:w,Replicated:I,VDiskState:C,VDiskSlotId:T,Kind:P,SatisfactionRank:E,AvailableSize:z,HasUnreadableBlobs:M,IncarnationGuid:A,InstanceGuid:O,StoragePoolName:_,ReadThroughput:V,WriteThroughput:R,PDiskId:B,NodeId:L}=a||{},U=[];var F,H;((0,n.D)(T)&&U.push({label:D("slot-id"),value:T}),(0,n.D)(_)&&U.push({label:D("pool-name"),value:_}),(0,n.D)(C)&&U.push({label:D("state-status"),value:C}),Number(j)>=0&&Number(z)>=0&&U.push({label:D("size"),value:(0,k.jsx)(v.y,{value:j,capacity:Number(j)+Number(z),formatValues:l.q3,colorizeProgress:!0})}),(0,n.D)(P)&&U.push({label:D("kind"),value:P}),(0,n.D)(w)&&U.push({label:D("guid"),value:w}),(0,n.D)(A)&&U.push({label:D("incarnation-guid"),value:A}),(0,n.D)(O)&&U.push({label:D("instance-guid"),value:O}),(0,n.D)(I)&&U.push({label:D("replication-status"),value:D(I?"yes":"no")}),(0,n.D)(S)&&U.push({label:D("space-status"),value:(0,k.jsx)(m.A,{status:S})}),(0,n.D)(null===E||void 0===E||null===(t=E.FreshRank)||void 0===t?void 0:t.Flag))&&U.push({label:D("fresh-rank-satisfaction"),value:(0,k.jsx)(m.A,{status:null===E||void 0===E||null===(F=E.FreshRank)||void 0===F?void 0:F.Flag})});(0,n.D)(null===E||void 0===E||null===(s=E.LevelRank)||void 0===s?void 0:s.Flag)&&U.push({label:D("level-rank-satisfaction"),value:(0,k.jsx)(m.A,{status:null===E||void 0===E||null===(H=E.LevelRank)||void 0===H?void 0:H.Flag})});(0,n.D)(N)&&U.push({label:D("front-queues"),value:(0,k.jsx)(m.A,{status:N})}),(0,n.D)(M)&&U.push({label:D("has-unreadable-blobs"),value:D(M?"yes":"no")}),(0,n.D)(V)&&U.push({label:D("read-throughput"),value:(0,u.Qt)(V)}),(0,n.D)(R)&&U.push({label:D("write-throughput"),value:(0,u.Qt)(R)});if((0,n.D)(B)&&(0,n.D)(L)&&(0,n.D)(T)){const e=[];if(d){const t=(0,i.By)(T,B,L);e.push((0,k.jsx)(h.j,{title:D("vdisk-page"),url:t,external:!1},t))}if(y){const t=(0,r.yf)({nodeId:L,pDiskId:B,vDiskSlotId:T});e.push((0,k.jsx)(h.j,{title:D("developer-ui"),url:t},t))}e.length&&U.push({label:D("links"),value:(0,k.jsx)("div",{className:x("links"),children:e})})}const q=a&&g?(0,k.jsx)(f,{data:a}):null;return(0,k.jsx)(p._P,{info:U,title:q,...b})}function f(e){let{data:t}=e;return(0,k.jsxs)("div",{className:x("title"),children:[D("vdiks-title"),(0,k.jsx)(m.A,{status:(0,d.b2)(t.Severity),name:(0,l.a2)(t.VDiskId)})]})}},64263:(e,t,s)=>{s.r(t),s.d(t,{PDiskPage:()=>xe});var i=s(68963),o=s(3475),n=s(88776),a=s(8179),l=s(17095),r=s(49352),d=s(52846),c=s(95408),u=s(65070),m=s(30832),p=s(26688),h=s(91816),v=s(68036),g=s(8659),b=s(27174),D=s(54665),k=s(905),x=s(14146),y=s(17880),f=s(79061),j=s(92666),S=s(29326),N=s(5922),w=s(3764),I=s(51688);const C=k.h.injectEndpoints({endpoints:e=>({getPdiskInfo:e.query({queryFn:async(e,t)=>{let{nodeId:s,pDiskId:i}=e,{signal:o,getState:n,dispatch:a}=t;let l;l=await(0,S.AE)("/pdisk/info",{getState:n,dispatch:a})>0?window.api.getPDiskInfo({nodeId:s,pDiskId:i},{signal:o}):window.api.getNodeWhiteboardPDiskInfo({nodeId:s,pDiskId:i},{signal:o}).then((e=>e.PDiskStateInfo?{Whiteboard:{PDisk:{...e.PDiskStateInfo[0],ExpectedSlotCount:void 0}}}:{}));try{const e=function(e){var t,s,i;let[o={},n]=e;const{BSC:a={},Whiteboard:l={}}=o||{},{PDisk:r={},VDisks:d=[]}=l,{PDisk:c={}}=a,u=(0,w.b)(r,c),{LogUsedSize:m,LogTotalSize:p,TotalSize:h,SystemSize:v,ExpectedSlotCount:g,EnforcedDynamicSlotSize:b}=u;let D;(0,N.D)(p)&&(D={SlotType:"log",Used:Number(m),Total:Number(p),UsagePercent:100*Number(m)/Number(p),Severity:1,SlotData:{LogUsedSize:m,LogTotalSize:p,SystemSize:v}});const k=d.map(w.w).sort(((e,t)=>Number(t.VDiskSlotId)-Number(e.VDiskSlotId))).map((e=>{var t;return{SlotType:"vDisk",Id:null===(t=e.VDiskId)||void 0===t?void 0:t.GroupID,Title:e.StoragePoolName,Severity:e.Severity,Used:Number(e.AllocatedSize),Total:Number(e.TotalSize),UsagePercent:e.AllocatedPercent,SlotData:e}}));let x=[];if(g&&g>k.length){const e=g-k.length;let t=Number(b);if(isNaN(t)){const s=k.reduce(((e,t)=>t.Total?e+t.Total:e),0);t=(Number(h)-s-Number(p))/e}x=(0,N.c$)(e).map((()=>({SlotType:"empty",Total:t,Severity:1,SlotData:{Size:t}})))}const y=[...k,...x];D&&y.length>0&&y.unshift(D);const f=null===(t=n.SystemStateInfo)||void 0===t?void 0:t[0],j=(0,I.Ns)(f);return{...u,NodeId:null!==(s=u.NodeId)&&void 0!==s?s:j.NodeId,NodeHost:j.Host,NodeType:null===(i=j.Roles)||void 0===i?void 0:i[0],NodeDC:j.DC,SlotItems:y}}(await Promise.all([l,window.api.getNodeInfo(s,{signal:o})]));return{data:e}}catch(r){return{error:r}}},providesTags:(e,t,s)=>["All",{type:"PDiskData",id:(0,j.CH)(s.nodeId,s.pDiskId)}]})}),overrideExisting:"throw"});var T=s(24362),P=s(17096),E=s(45578),z=s(57542),M=s(30831),A=s(68330),O=s(17176),_=s(86793),V=s(45743),R=s(30817);const B=JSON.parse('{"fqdn":"FQDN","pdisk":"PDisk","node":"Node","storage":"Storage","disk-distribution":"Disk distribution","empty-slot":"Empty slot","log":"Log","label.log-size":"Log Size","label.system-size":"System Size","label.slot-size":"Slot Size","no-slots-data":"No slots data","restart-pdisk-button":"Restart PDisk","force-restart-pdisk-button":"Restart anyway","restart-pdisk-not-allowed":"You don\'t have enough rights to restart PDisk","restart-pdisk-dialog-header":"Restart PDisk","restart-pdisk-dialog-text":"PDisk will be restarted. Do you want to proceed?","decommission-none":"None","decommission-imminent":"Imminent","decommission-pending":"Pending","decommission-rejected":"Rejected","decommission-label":"{{decommission}} decommission","decommission-button":"Decommission","decommission-change-not-allowed":"You don\'t have enough rights to change PDisk decommission","decommission-dialog-title":"Change decommission status","decommission-dialog-force-change":"Change anyway","decommission-dialog-imminent-warning":"This will start imminent decommission. Existing slots will be moved from the disk","decommission-dialog-pending-warning":"This will start pending decommission. Decommission will be planned for this disk, but will not start immediatelly. Existing slots will not be moved from the disk, but no new slots will be allocated on it","decommission-dialog-rejected-warning":"This will start rejected decommission. No slots from other disks are placed on this disk in the process of decommission","decommission-dialog-none-warning":"This will reset decommission mode, allowing the disk to be used by the storage"}'),L=(0,R.wZ)("ydb-pDisk-page",{en:B});var U,F,H,q;function G(){return G=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(e[i]=s[i])}return e},G.apply(this,arguments)}const J=function(e){return i.createElement("svg",G({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 17 17",fill:"none"},e),U||(U=i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.378 7.771c.717 0 1.298.614 1.298 1.372v.914c0 .758-.581 1.372-1.298 1.372H3.46c-.716 0-1.297-.614-1.297-1.372v-.914c0-.758.58-1.372 1.297-1.372h6.92zm.77-1.248L9.935 3.958a1.292 1.292 0 00-1.16-.758H5.063c-.491 0-.94.294-1.16.758L2.69 6.523c.243-.08.501-.123.77-.123h6.918c.268 0 .527.043.77.123zm1.825 1.87V10.057c0 1.515-1.162 2.743-2.595 2.743H3.46c-1.433 0-2.594-1.228-2.594-2.743V8.393c0-.71.156-1.41.456-2.044l1.421-3.004c.44-.93 1.338-1.516 2.32-1.516h3.713c.982 0 1.88.587 2.32 1.516l1.421 3.004c.3.635.457 1.335.457 2.044zm-5.19.521c-.358 0-.648.307-.648.686 0 .379.29.686.649.686h2.162c.358 0 .649-.307.649-.686 0-.379-.29-.686-.65-.686H7.785z",fill:"currentColor",fillOpacity:.85})),F||(F=i.createElement("path",{d:"M15.25 11.428c0 2.15-1.639 3.822-3.574 3.822-1.935 0-3.574-1.671-3.574-3.822 0-2.15 1.639-3.821 3.574-3.821 1.935 0 3.574 1.671 3.574 3.821z",fill:"var(--g-color-base-background)",stroke:"currentColor",strokeWidth:1.5})),H||(H=i.createElement("path",{d:"M11.676 16.5c2.69 0 4.824-2.297 4.824-5.072 0-2.774-2.134-5.071-4.824-5.071s-4.824 2.297-4.824 5.071c0 2.775 2.134 5.072 4.824 5.072z",stroke:"var(--g-color-base-background)"})),q||(q=i.createElement("path",{d:"M12.973 10.057L10.378 12.8m0-2.743l2.595 2.743",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})))};var $=s(75859);const W=(0,T.cn)("ydb-pdisk-decommission-button");function Z(e){return"DECOMMIT_IMMINENT"===e?L("decommission-dialog-imminent-warning"):"DECOMMIT_PENDING"===e?L("decommission-dialog-pending-warning"):"DECOMMIT_REJECTED"===e?L("decommission-dialog-rejected-warning"):"DECOMMIT_NONE"===e?L("decommission-dialog-none-warning"):void 0}function Q(e){let{decommission:t,onConfirmAction:s,onConfirmActionSuccess:o,buttonDisabled:n,popoverDisabled:a}=e;const[l,r]=i.useState(),[d,c]=i.useState(!1),[u,m]=i.useState(!1),p=function(e,t){return[{text:L("decommission-none"),action:()=>t("DECOMMIT_NONE"),hidden:!e||"DECOMMIT_NONE"===e||"DECOMMIT_UNSET"===e},{text:L("decommission-pending"),action:()=>t("DECOMMIT_PENDING"),hidden:"DECOMMIT_PENDING"===e},{text:L("decommission-rejected"),action:()=>t("DECOMMIT_REJECTED"),hidden:"DECOMMIT_REJECTED"===e},{text:L("decommission-imminent"),theme:"danger",action:()=>t("DECOMMIT_IMMINENT"),hidden:"DECOMMIT_IMMINENT"===e}]}(t,r);return(0,$.jsxs)(i.Fragment,{children:[(0,$.jsx)(M.h,{renderSwitcher:e=>(0,$.jsx)(Y,{popoverDisabled:a,loading:d,disabled:n,...e}),items:p,popupProps:{className:W("popup")}}),(0,$.jsx)(_.g,{visible:Boolean(l),header:L("decommission-dialog-title"),text:Z(l),withRetry:u,withCheckBox:!0,retryButtonText:L("decommission-dialog-force-change"),onConfirm:async e=>{c(!0),await s(l,e)},onConfirmActionSuccess:async()=>{m(!1),await(0,N.Dc)(5e3);try{await o()}finally{c(!1)}},onConfirmActionError:e=>{m((0,V.q)(e)),c(!1)},onClose:()=>{r(void 0)}})]})}function Y(e){let{popoverDisabled:t,...s}=e;return(0,$.jsx)(A.J,{content:L("decommission-change-not-allowed"),placement:"right",disabled:t,children:(0,$.jsxs)(O.z,{view:"normal",className:W("button"),...s,children:[(0,$.jsx)(n.J,{data:J}),L("decommission-button"),(0,$.jsx)(n.J,{data:z.Z})]})})}var K=s(14979);function X(e){return L("decommission-label",{decommission:e})}function ee(e){let{decommission:t}=e;return"DECOMMIT_IMMINENT"===t?(0,$.jsx)(K._,{theme:"danger",size:"m",children:X(L("decommission-imminent"))}):"DECOMMIT_PENDING"===t?(0,$.jsx)(K._,{theme:"warning",size:"m",children:X(L("decommission-pending"))}):"DECOMMIT_REJECTED"===t?(0,$.jsx)(K._,{theme:"normal",size:"m",children:X(L("decommission-rejected"))}):null}var te=s(94790),se=s(1796),ie=s(62206),oe=s(74170),ne=s(67359),ae=s(22200),le=s(81854),re=s(34301);const de=(0,T.cn)("ydb-pdisk-space-distribution"),ce=40;function ue(e){let{data:t}=e;const{SlotItems:s}=t,{PDiskId:i,NodeId:o}=t,n=ce*((null===s||void 0===s?void 0:s.length)||1);return null!==s&&void 0!==s&&s.length?(0,$.jsx)("div",{className:de(null),style:{height:n,minHeight:n},children:(0,$.jsx)(se.p,{className:de("pdisk-bar"),severity:t.Severity,diskAllocatedPercent:t.AllocatedPercent,content:null===s||void 0===s?void 0:s.map(((e,t)=>(0,$.jsx)(me,{item:e,pDiskId:i,nodeId:o},t))),faded:!0})}):L("no-slots-data")}function me(e){let{item:t,pDiskId:s,nodeId:i}=e;return(0,$.jsx)("div",{className:de("slot-wrapper"),style:{flexGrow:Number(t.Total)||1},children:(()=>{if("vDisk"===t.SlotType){var e;const o=(0,N.D)(null===(e=t.SlotData)||void 0===e?void 0:e.VDiskSlotId)&&(0,N.D)(s)&&(0,N.D)(i)?(0,D.By)(t.SlotData.VDiskSlotId,s,i):void 0;return(0,$.jsx)(te.f,{content:(0,$.jsx)(ae.K,{data:t.SlotData,withTitle:!0}),contentClassName:de("vdisk-popup"),placement:["right","top"],children:(0,$.jsx)(oe.h,{to:o,children:(0,$.jsx)(se.p,{className:de("slot"),severity:t.Severity,diskAllocatedPercent:t.UsagePercent,content:(0,$.jsx)(pe,{id:t.Id,title:t.Title,used:t.Used,total:t.Total})})})})}return function(e){return"log"===e.SlotType}(t)?(0,$.jsx)(te.f,{content:(0,$.jsx)(he,{data:t.SlotData}),contentClassName:de("vdisk-popup"),placement:["right","top"],children:(0,$.jsx)(se.p,{className:de("slot"),severity:t.Severity,diskAllocatedPercent:t.UsagePercent,content:(0,$.jsx)(pe,{title:L("log"),used:t.Used,total:t.Total})})}):function(e){return"empty"===e.SlotType}(t)?(0,$.jsx)(te.f,{content:(0,$.jsx)(ve,{data:t.SlotData}),contentClassName:de("vdisk-popup"),placement:["right","top"],children:(0,$.jsx)(se.p,{className:de("slot"),severity:t.Severity,empty:!0,content:(0,$.jsx)(pe,{title:L("empty-slot"),used:t.Total})})}):null})()})}function pe(e){let{id:t,title:s,used:i,total:o}=e;return(0,$.jsxs)("div",{className:de("slot-content"),children:[(0,$.jsxs)("span",{children:[(0,N.D)(t)?(0,$.jsx)("span",{className:de("slot-id"),children:t}):null,s]}),(0,$.jsx)("span",{className:de("slot-size"),children:(()=>{const[e,t]=(0,re.q3)(i,o);return o?`${e} / ${t}`:e})()})]})}function he(e){let{data:t}=e;const{LogTotalSize:s,LogUsedSize:i,SystemSize:o}=t,n=[{label:L("label.log-size"),value:(0,$.jsx)(ne.y,{value:i,capacity:s,formatValues:re.q3})}];return(0,N.D)(o)&&n.push({label:L("label.system-size"),value:(0,le.td)({value:o})}),(0,$.jsx)(ie._P,{title:L("log"),info:n})}function ve(e){let{data:t}=e;const{Size:s}=t,i=[{label:L("label.slot-size"),value:(0,le.td)({value:s})}];return(0,$.jsx)(ie._P,{title:L("empty-slot"),info:i})}const ge=(0,T.cn)("ydb-pdisk-page"),be={diskDistribution:"diskDistribution",storage:"storage"},De=[{id:be.diskDistribution,get title(){return L("disk-distribution")}},{id:be.storage,get title(){return L("storage")}}],ke=c.z.nativeEnum(be).catch(be.diskDistribution);function xe(){const e=(0,P.zL)(),t=(0,P.ix)(x.VH),s=(0,y.X_)(),[{nodeId:c,pDiskId:S,activeTab:w}]=(0,d.useQueryParams)({activeTab:d.StringParam,nodeId:d.StringParam,pDiskId:d.StringParam}),I=(0,N.D)(c)&&(0,N.D)(S),T=ke.parse(w);i.useEffect((()=>{e((0,f.J)("pDisk",{nodeId:c,pDiskId:S}))}),[e,c,S]);const[z]=(0,P.Rj)(),M=I?{nodeId:c,pDiskId:S}:l.CN,A=C.useGetPdiskInfoQuery(M,{pollingInterval:z}),O=A.isFetching&&void 0===A.currentData,_=A.currentData,{NodeHost:V,NodeId:R,NodeType:B,NodeDC:U,Severity:F,DecommitStatus:H}=_||{},q=async e=>{if(I){const t=await window.api[s?"restartPDisk":"restartPDiskOld"]({nodeId:c,pDiskId:S,force:e});if(!1===(null===t||void 0===t?void 0:t.result)){throw{statusText:t.error,retryPossible:t.forceRetryPossible}}}},G=async(e,t)=>{if(I){const s=await window.api.changePDiskStatus({nodeId:c,pDiskId:S,force:t,decommissionStatus:e});if(!1===(null===s||void 0===s?void 0:s.result)){throw{statusText:s.error,retryPossible:s.forceRetryPossible}}}},J=()=>{I&&e(k.h.util.invalidateTags([{type:"PDiskData",id:(0,j.CH)(c,S)}]),"StorageData")};return(0,$.jsxs)("div",{className:ge(null),children:[(()=>{const e=S?`${L("pdisk")} ${S}`:L("pdisk"),t=V||L("node");return(0,$.jsx)(r.ql,{titleTemplate:`%s - ${e} \u2014 ${t} \u2014 YDB Monitoring`,defaultTitle:`${e} \u2014 ${t} \u2014 YDB Monitoring`})})(),(()=>{const e=V?`${L("fqdn")}: ${V}`:void 0,t=R?`${L("node")}: ${R}`:void 0;return(0,$.jsx)(b.B,{loading:O,items:[e,t,B,U],className:ge("meta")})})(),(0,$.jsxs)("div",{className:ge("title"),children:[(0,$.jsx)(m.a,{entityName:L("pdisk"),status:(0,j.b2)(F),id:(0,j.CH)(c,S)}),(0,$.jsx)(ee,{decommission:H})]}),(0,$.jsxs)("div",{className:ge("controls"),children:[(0,$.jsxs)(u.U,{onConfirmAction:q,onConfirmActionSuccess:J,buttonDisabled:!I||!t,buttonView:"normal",dialogHeader:L("restart-pdisk-dialog-header"),dialogText:L("restart-pdisk-dialog-text"),retryButtonText:L("force-restart-pdisk-button"),withPopover:!0,popoverContent:L("restart-pdisk-not-allowed"),popoverDisabled:t,children:[(0,$.jsx)(n.J,{data:o.Z}),L("restart-pdisk-button")]}),s?(0,$.jsx)(Q,{decommission:H,onConfirmAction:G,onConfirmActionSuccess:J,buttonDisabled:!I||!t,popoverDisabled:t}):null]}),A.error?(0,$.jsx)(p.V,{error:A.error}):null,O?(0,$.jsx)(h.b,{className:ge("info"),rows:10}):(0,$.jsx)(g.P,{pDisk:_,nodeId:c,className:ge("info")}),(0,$.jsx)("div",{className:ge("tabs"),children:(0,$.jsx)(a.m,{size:"l",items:De,activeTab:T,wrapTo:(e,t)=>{let{id:s}=e;const i=I?(0,D.ds)(S,c,{activeTab:s}):void 0;return(0,$.jsx)(v.h,{to:i,children:t},s)}})}),(()=>{switch(T){case"diskDistribution":return _?(0,$.jsx)("div",{className:ge("disk-distribution"),children:(0,$.jsx)(ue,{data:_})}):null;case"storage":return I?(0,$.jsx)(E.K,{nodeId:c,pDiskId:S}):null;default:return null}})()]})}}}]); \ No newline at end of file
+"use strict";(self.webpackChunkydb_embedded_ui=self.webpackChunkydb_embedded_ui||[]).push([[4263],{65070:(e,t,s)=>{s.d(t,{U:()=>d});var i=s(68963),o=s(17176),n=s(68330),a=s(86793),l=s(45743),r=s(75859);function d(e){let{children:t,onConfirmAction:s,onConfirmActionSuccess:d,dialogHeader:c,dialogText:u,retryButtonText:m,buttonDisabled:p=!1,buttonView:h="action",buttonClassName:v,withPopover:g=!1,popoverContent:b,popoverPlacement:D="right",popoverDisabled:k=!0}=e;const[x,y]=i.useState(!1),[f,j]=i.useState(!1),[S,N]=i.useState(!1),w=()=>(0,r.jsx)(o.z,{onClick:()=>y(!0),view:h,disabled:p,loading:!p&&f,className:v,children:t});return(0,r.jsxs)(i.Fragment,{children:[(0,r.jsx)(a.g,{visible:x,header:c,text:u,withRetry:S,retryButtonText:m,onConfirm:async e=>{j(!0),await s(e)},onConfirmActionSuccess:async()=>{N(!1);try{await(null===d||void 0===d?void 0:d())}finally{j(!1)}},onConfirmActionError:e=>{N((0,l.q)(e)),j(!1)},onClose:()=>{y(!1)}}),g?(0,r.jsx)(n.J,{content:b,placement:D,disabled:k,children:w()}):w()]})}},94790:(e,t,s)=>{s.d(t,{f:()=>a});var i=s(68963),o=s(44920),n=s(75859);const a=e=>{let{children:t,content:s,className:a,pinOnClick:l,hasArrow:r=!0,placement:d=["top","bottom"],...c}=e;const[u,m]=i.useState(!1),[p,h]=i.useState(!1),v=i.useRef(null);return(0,n.jsxs)(i.Fragment,{children:[(0,n.jsx)(o.G,{anchorRef:v,open:p||u,placement:d,hasArrow:r,onOutsideClick:()=>{h(!1)},...c,children:s}),(0,n.jsx)("span",{className:a,ref:v,onClick:l?()=>{h(!0)}:void 0,onMouseEnter:()=>{m(!0)},onMouseLeave:()=>{m(!1)},children:t})]})}},86793:(e,t,s)=>{s.d(t,{g:()=>g});var i=s(68963),o=s(76506),n=s(71586),a=s(48897),l=s(25822),r=s(88776),d=s(24362),c=s(30817);const u=JSON.parse('{"default-error":"Something went wrong, action cannot be completed","no-rights-error":"You don\'t have enough rights to complete the operation","button-confirm":"Confirm","button-retry":"Retry","button-cancel":"Cancel","button-close":"Close","checkbox-text":"I understand what I\'m doing"}'),m=(0,c.wZ)("ydb-critical-action-dialog",{en:u});var p=s(75859);const h=(0,d.cn)("ydb-critical-dialog"),v=e=>403===e.status?m("no-rights-error"):e.statusText?e.statusText:m("default-error");function g(e){let{visible:t,header:s,text:d,withRetry:c,retryButtonText:u,withCheckBox:g,onClose:b,onConfirm:D,onConfirmActionSuccess:k,onConfirmActionError:x}=e;const[y,f]=i.useState(!1),[j,S]=i.useState(),[N,w]=i.useState(!1),I=async e=>(f(!0),D(e).then((()=>{k(),b()})).catch((e=>{x(e),S(e)})).finally((()=>{f(!1)})));return(0,p.jsx)(l.V,{open:t,hasCloseButton:!1,className:h(),size:"s",onClose:b,onTransitionExited:()=>{S(void 0),w(!1)},children:j?(0,p.jsxs)(i.Fragment,{children:[(0,p.jsx)(l.V.Header,{caption:s}),(0,p.jsx)(l.V.Body,{className:h("body"),children:(0,p.jsxs)("div",{className:h("body-message",{error:!0}),children:[(0,p.jsx)("span",{className:h("error-icon"),children:(0,p.jsx)(o.Z,{width:"24",height:"22"})}),v(j)]})}),(0,p.jsx)(l.V.Footer,{loading:!1,preset:"default",textButtonApply:c?u||m("button-retry"):void 0,textButtonCancel:m("button-close"),onClickButtonApply:()=>I(!0),onClickButtonCancel:b})]}):(0,p.jsxs)(i.Fragment,{children:[(0,p.jsx)(l.V.Header,{caption:s}),(0,p.jsxs)(l.V.Body,{className:h("body"),children:[(0,p.jsxs)("div",{className:h("body-message",{warning:!0}),children:[(0,p.jsx)("span",{className:h("warning-icon"),children:(0,p.jsx)(r.J,{data:n.Z,size:24})}),d]}),g?(0,p.jsx)(a.X,{checked:N,onUpdate:w,children:m("checkbox-text")}):null]}),(0,p.jsx)(l.V.Footer,{loading:y,preset:"default",textButtonApply:m("button-confirm"),textButtonCancel:m("button-cancel"),propsButtonApply:{type:"submit",disabled:g&&!N},onClickButtonCancel:b,onClickButtonApply:()=>I()})]})})}},45743:(e,t,s)=>{s.d(t,{q:()=>i});const i=e=>Boolean(e&&"object"===typeof e&&"retryPossible"in e&&e.retryPossible)},30832:(e,t,s)=>{s.d(t,{a:()=>l});var i=s(24362),o=s(98366),n=s(75859);const a=(0,i.cn)("ydb-entity-page-title");function l(e){let{entityName:t,status:s,id:i,className:l}=e;return(0,n.jsxs)("div",{className:a(null,l),children:[(0,n.jsx)("span",{className:a("prefix"),children:t}),(0,n.jsx)(o.J,{className:a("icon"),status:s,size:"s"}),i]})}},91816:(e,t,s)=>{s.d(t,{b:()=>c});var i=s(68963),o=s(56711),n=s(24362),a=s(42587),l=s(75859);const r=(0,n.cn)("ydb-info-viewer-skeleton"),d=()=>(0,l.jsxs)("div",{className:r("label"),children:[(0,l.jsx)(o.O,{className:r("label__text")}),(0,l.jsx)("div",{className:r("label__dots")})]}),c=e=>{let{rows:t=8,className:s,delay:n=600}=e;const[c]=(0,a.$)(n);let u=(0,l.jsxs)(i.Fragment,{children:[(0,l.jsx)(d,{}),(0,l.jsx)(o.O,{className:r("value")})]});return c||(u=null),(0,l.jsx)("div",{className:r(null,s),children:[...new Array(t)].map(((e,t)=>(0,l.jsx)("div",{className:r("row"),children:u},`skeleton-row-${t}`)))})}},8659:(e,t,s)=>{s.d(t,{P:()=>y});var i=s(77796),o=s(54665),n=s(14146),a=s(5922),l=s(81854),r=s(24362),d=s(34301),c=s(48169),u=s(17096),m=s(69214),p=s(23373),h=s(32270),v=s(67359),g=s(30817);const b=JSON.parse('{"type":"Type","path":"Path","guid":"GUID","serial-number":"Serial Number","shared-with-os":"SharedWithOs","drive-status":"Drive Status","state":"State","device":"Device","realtime":"Realtime","space":"Space","slots":"Slots","log-size":"Log Size","system-size":"System Size","links":"Links","developer-ui":"Developer UI","pdisk-page":"PDisk page","yes":"Yes"}'),D=(0,g.wZ)("ydb-pDisk-info",{en:b});var k=s(75859);const x=(0,r.cn)("ydb-pdisk-info");function y(e){let{pDisk:t,nodeId:s,withPDiskPageLink:r,className:g}=e;const b=(0,u.ix)(n.VH),[y,f,j,S]=function(e){let{pDisk:t,nodeId:s,withPDiskPageLink:i,isUserAllowedToMakeChanges:n}=e;const{PDiskId:r,Path:u,Guid:p,Category:g,Type:b,Device:y,Realtime:f,State:j,SerialNumber:S,TotalSize:N,AllocatedSize:w,StatusV2:I,NumActiveSlots:C,ExpectedSlotCount:T,LogUsedSize:P,LogTotalSize:E,SystemSize:z,SharedWithOs:M}=t||{},A=[];(0,a.D)(g)&&A.push({label:D("type"),value:b}),(0,a.D)(u)&&A.push({label:D("path"),value:u}),(0,a.D)(p)&&A.push({label:D("guid"),value:p}),S&&A.push({label:D("serial-number"),value:S}),(0,a.D)(M)&&A.push({label:D("shared-with-os"),value:D("yes")});const O=[];(0,a.D)(I)&&O.push({label:D("drive-status"),value:I}),(0,a.D)(j)&&O.push({label:D("state"),value:j}),(0,a.D)(y)&&O.push({label:D("device"),value:(0,k.jsx)(m.A,{status:y})}),(0,a.D)(f)&&O.push({label:D("realtime"),value:(0,k.jsx)(m.A,{status:f})});const _=[];_.push({label:D("space"),value:(0,k.jsx)(v.y,{value:w,capacity:N,formatValues:d.q3,colorizeProgress:!0})}),(0,a.D)(C)&&(0,a.D)(T)&&_.push({label:D("slots"),value:(0,k.jsx)(v.y,{value:C,capacity:T})}),(0,a.D)(P)&&(0,a.D)(E)&&_.push({label:D("log-size"),value:(0,k.jsx)(v.y,{value:P,capacity:E,formatValues:d.q3})}),(0,a.D)(z)&&_.push({label:D("system-size"),value:(0,l.td)({value:z})});const V=[];if((i||n)&&(0,a.D)(r)&&(0,a.D)(s)){const e=(0,o.ds)(r,s),t=(0,c.ok)({nodeId:s,pDiskId:r});V.push({label:D("links"),value:(0,k.jsxs)("span",{className:x("links"),children:[i&&(0,k.jsx)(h.j,{title:D("pdisk-page"),url:e,external:!1}),n&&(0,k.jsx)(h.j,{title:D("developer-ui"),url:t})]})})}return[A,O,_,V]}({pDisk:t,nodeId:s,withPDiskPageLink:r,isUserAllowedToMakeChanges:b});return(0,k.jsxs)(i.k,{className:g,gap:2,direction:"row",wrap:!0,children:[(0,k.jsxs)(i.k,{direction:"column",gap:2,width:500,children:[(0,k.jsx)(p._,{info:y,renderEmptyState:()=>null}),(0,k.jsx)(p._,{info:j,renderEmptyState:()=>null})]}),(0,k.jsxs)(i.k,{direction:"column",gap:2,width:500,children:[(0,k.jsx)(p._,{info:f,renderEmptyState:()=>null}),(0,k.jsx)(p._,{info:S,renderEmptyState:()=>null})]})]})}},27174:(e,t,s)=>{s.d(t,{B:()=>m});var i=s(77796),o=s(24362),n=s(50422),a=s(56711),l=s(42587),r=s(75859);const d=e=>{let{delay:t=600,className:s}=e;const[i]=(0,l.$)(t);return i?(0,r.jsx)(a.O,{className:s}):null},c=(0,o.cn)("ydb-page-meta");function u(e){let{items:t,loading:s}=e;return(0,r.jsx)("div",{className:c("info"),children:s?(0,r.jsx)(d,{className:c("skeleton")}):t.filter((e=>Boolean(e))).join("\xa0\xa0\xb7\xa0\xa0")})}function m(e){let{className:t,...s}=e;return(0,r.jsxs)(i.k,{gap:1,alignItems:"center",justifyContent:"space-between",className:c(null,t),children:[(0,r.jsx)(u,{...s}),(0,r.jsx)(n.q,{})]})}},22200:(e,t,s)=>{s.d(t,{K:()=>y});s(68963);var i=s(54665),o=s(14146),n=s(5922),a=s(24362),l=s(34301),r=s(48169),d=s(92666),c=s(17096),u=s(55850),m=s(69214),p=s(62206),h=s(32270),v=s(67359),g=s(30817);const b=JSON.parse('{"slot-id":"VDisk Slot Id","pool-name":"Storage Pool Name","kind":"Kind","guid":"GUID","incarnation-guid":"Incarnation GUID","instance-guid":"Instance GUID","replication-status":"Replicated","state-status":"VDisk State","space-status":"Disk Space","fresh-rank-satisfaction":"Fresh Rank Satisfaction","level-rank-satisfaction":"Level Rank Satisfaction","front-queues":"Front Queues","has-unreadable-blobs":"Has Unreadable Blobs","size":"Size","read-throughput":"Read Throughput","write-throughput":"Write Throughput","links":"Links","vdisk-page":"VDisk Page","developer-ui":"Developer UI","yes":"Yes","no":"No","vdiks-title":"VDisk"}'),D=(0,g.wZ)("ydb-vDisk-info",{en:b});var k=s(75859);const x=(0,a.cn)("ydb-vdisk-info");function y(e){var t,s;let{data:a,withVDiskPageLink:d,withTitle:g,...b}=e;const y=(0,c.ix)(o.VH),{AllocatedSize:j,DiskSpace:S,FrontQueues:N,Guid:w,Replicated:I,VDiskState:C,VDiskSlotId:T,Kind:P,SatisfactionRank:E,AvailableSize:z,HasUnreadableBlobs:M,IncarnationGuid:A,InstanceGuid:O,StoragePoolName:_,ReadThroughput:V,WriteThroughput:R,PDiskId:B,NodeId:L}=a||{},U=[];var F,H;((0,n.D)(T)&&U.push({label:D("slot-id"),value:T}),(0,n.D)(_)&&U.push({label:D("pool-name"),value:_}),(0,n.D)(C)&&U.push({label:D("state-status"),value:C}),Number(j)>=0&&Number(z)>=0&&U.push({label:D("size"),value:(0,k.jsx)(v.y,{value:j,capacity:Number(j)+Number(z),formatValues:l.q3,colorizeProgress:!0})}),(0,n.D)(P)&&U.push({label:D("kind"),value:P}),(0,n.D)(w)&&U.push({label:D("guid"),value:w}),(0,n.D)(A)&&U.push({label:D("incarnation-guid"),value:A}),(0,n.D)(O)&&U.push({label:D("instance-guid"),value:O}),(0,n.D)(I)&&U.push({label:D("replication-status"),value:D(I?"yes":"no")}),(0,n.D)(S)&&U.push({label:D("space-status"),value:(0,k.jsx)(m.A,{status:S})}),(0,n.D)(null===E||void 0===E||null===(t=E.FreshRank)||void 0===t?void 0:t.Flag))&&U.push({label:D("fresh-rank-satisfaction"),value:(0,k.jsx)(m.A,{status:null===E||void 0===E||null===(F=E.FreshRank)||void 0===F?void 0:F.Flag})});(0,n.D)(null===E||void 0===E||null===(s=E.LevelRank)||void 0===s?void 0:s.Flag)&&U.push({label:D("level-rank-satisfaction"),value:(0,k.jsx)(m.A,{status:null===E||void 0===E||null===(H=E.LevelRank)||void 0===H?void 0:H.Flag})});(0,n.D)(N)&&U.push({label:D("front-queues"),value:(0,k.jsx)(m.A,{status:N})}),(0,n.D)(M)&&U.push({label:D("has-unreadable-blobs"),value:D(M?"yes":"no")}),(0,n.D)(V)&&U.push({label:D("read-throughput"),value:(0,u.Qt)(V)}),(0,n.D)(R)&&U.push({label:D("write-throughput"),value:(0,u.Qt)(R)});if((0,n.D)(B)&&(0,n.D)(L)&&(0,n.D)(T)){const e=[];if(d){const t=(0,i.By)(T,B,L);e.push((0,k.jsx)(h.j,{title:D("vdisk-page"),url:t,external:!1},t))}if(y){const t=(0,r.yf)({nodeId:L,pDiskId:B,vDiskSlotId:T});e.push((0,k.jsx)(h.j,{title:D("developer-ui"),url:t},t))}e.length&&U.push({label:D("links"),value:(0,k.jsx)("div",{className:x("links"),children:e})})}const q=a&&g?(0,k.jsx)(f,{data:a}):null;return(0,k.jsx)(p._P,{info:U,title:q,...b})}function f(e){let{data:t}=e;return(0,k.jsxs)("div",{className:x("title"),children:[D("vdiks-title"),(0,k.jsx)(m.A,{status:(0,d.b2)(t.Severity),name:(0,l.a2)(t.VDiskId)})]})}},64263:(e,t,s)=>{s.r(t),s.d(t,{PDiskPage:()=>xe});var i=s(68963),o=s(3475),n=s(88776),a=s(8179),l=s(17095),r=s(49352),d=s(98994),c=s(95408),u=s(65070),m=s(30832),p=s(26688),h=s(91816),v=s(68036),g=s(8659),b=s(27174),D=s(54665),k=s(905),x=s(14146),y=s(17880),f=s(79061),j=s(92666),S=s(29326),N=s(5922),w=s(3764),I=s(51688);const C=k.h.injectEndpoints({endpoints:e=>({getPdiskInfo:e.query({queryFn:async(e,t)=>{let{nodeId:s,pDiskId:i}=e,{signal:o,getState:n,dispatch:a}=t;let l;l=await(0,S.AE)("/pdisk/info",{getState:n,dispatch:a})>0?window.api.getPDiskInfo({nodeId:s,pDiskId:i},{signal:o}):window.api.getNodeWhiteboardPDiskInfo({nodeId:s,pDiskId:i},{signal:o}).then((e=>e.PDiskStateInfo?{Whiteboard:{PDisk:{...e.PDiskStateInfo[0],ExpectedSlotCount:void 0}}}:{}));try{const e=function(e){var t,s,i;let[o={},n]=e;const{BSC:a={},Whiteboard:l={}}=o||{},{PDisk:r={},VDisks:d=[]}=l,{PDisk:c={}}=a,u=(0,w.b)(r,c),{LogUsedSize:m,LogTotalSize:p,TotalSize:h,SystemSize:v,ExpectedSlotCount:g,EnforcedDynamicSlotSize:b}=u;let D;(0,N.D)(p)&&(D={SlotType:"log",Used:Number(m),Total:Number(p),UsagePercent:100*Number(m)/Number(p),Severity:1,SlotData:{LogUsedSize:m,LogTotalSize:p,SystemSize:v}});const k=d.map(w.w).sort(((e,t)=>Number(t.VDiskSlotId)-Number(e.VDiskSlotId))).map((e=>{var t;return{SlotType:"vDisk",Id:null===(t=e.VDiskId)||void 0===t?void 0:t.GroupID,Title:e.StoragePoolName,Severity:e.Severity,Used:Number(e.AllocatedSize),Total:Number(e.TotalSize),UsagePercent:e.AllocatedPercent,SlotData:e}}));let x=[];if(g&&g>k.length){const e=g-k.length;let t=Number(b);if(isNaN(t)){const s=k.reduce(((e,t)=>t.Total?e+t.Total:e),0);t=(Number(h)-s-Number(p))/e}x=(0,N.c$)(e).map((()=>({SlotType:"empty",Total:t,Severity:1,SlotData:{Size:t}})))}const y=[...k,...x];D&&y.length>0&&y.unshift(D);const f=null===(t=n.SystemStateInfo)||void 0===t?void 0:t[0],j=(0,I.Ns)(f);return{...u,NodeId:null!==(s=u.NodeId)&&void 0!==s?s:j.NodeId,NodeHost:j.Host,NodeType:null===(i=j.Roles)||void 0===i?void 0:i[0],NodeDC:j.DC,SlotItems:y}}(await Promise.all([l,window.api.getNodeInfo(s,{signal:o})]));return{data:e}}catch(r){return{error:r}}},providesTags:(e,t,s)=>["All",{type:"PDiskData",id:(0,j.CH)(s.nodeId,s.pDiskId)}]})}),overrideExisting:"throw"});var T=s(24362),P=s(17096),E=s(57180),z=s(57542),M=s(30831),A=s(68330),O=s(17176),_=s(86793),V=s(45743),R=s(30817);const B=JSON.parse('{"fqdn":"FQDN","pdisk":"PDisk","node":"Node","storage":"Storage","disk-distribution":"Disk distribution","empty-slot":"Empty slot","log":"Log","label.log-size":"Log Size","label.system-size":"System Size","label.slot-size":"Slot Size","no-slots-data":"No slots data","restart-pdisk-button":"Restart PDisk","force-restart-pdisk-button":"Restart anyway","restart-pdisk-not-allowed":"You don\'t have enough rights to restart PDisk","restart-pdisk-dialog-header":"Restart PDisk","restart-pdisk-dialog-text":"PDisk will be restarted. Do you want to proceed?","decommission-none":"None","decommission-imminent":"Imminent","decommission-pending":"Pending","decommission-rejected":"Rejected","decommission-label":"{{decommission}} decommission","decommission-button":"Decommission","decommission-change-not-allowed":"You don\'t have enough rights to change PDisk decommission","decommission-dialog-title":"Change decommission status","decommission-dialog-force-change":"Change anyway","decommission-dialog-imminent-warning":"This will start imminent decommission. Existing slots will be moved from the disk","decommission-dialog-pending-warning":"This will start pending decommission. Decommission will be planned for this disk, but will not start immediatelly. Existing slots will not be moved from the disk, but no new slots will be allocated on it","decommission-dialog-rejected-warning":"This will start rejected decommission. No slots from other disks are placed on this disk in the process of decommission","decommission-dialog-none-warning":"This will reset decommission mode, allowing the disk to be used by the storage"}'),L=(0,R.wZ)("ydb-pDisk-page",{en:B});var U,F,H,q;function G(){return G=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(e[i]=s[i])}return e},G.apply(this,arguments)}const J=function(e){return i.createElement("svg",G({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 17 17",fill:"none"},e),U||(U=i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.378 7.771c.717 0 1.298.614 1.298 1.372v.914c0 .758-.581 1.372-1.298 1.372H3.46c-.716 0-1.297-.614-1.297-1.372v-.914c0-.758.58-1.372 1.297-1.372h6.92zm.77-1.248L9.935 3.958a1.292 1.292 0 00-1.16-.758H5.063c-.491 0-.94.294-1.16.758L2.69 6.523c.243-.08.501-.123.77-.123h6.918c.268 0 .527.043.77.123zm1.825 1.87V10.057c0 1.515-1.162 2.743-2.595 2.743H3.46c-1.433 0-2.594-1.228-2.594-2.743V8.393c0-.71.156-1.41.456-2.044l1.421-3.004c.44-.93 1.338-1.516 2.32-1.516h3.713c.982 0 1.88.587 2.32 1.516l1.421 3.004c.3.635.457 1.335.457 2.044zm-5.19.521c-.358 0-.648.307-.648.686 0 .379.29.686.649.686h2.162c.358 0 .649-.307.649-.686 0-.379-.29-.686-.65-.686H7.785z",fill:"currentColor",fillOpacity:.85})),F||(F=i.createElement("path",{d:"M15.25 11.428c0 2.15-1.639 3.822-3.574 3.822-1.935 0-3.574-1.671-3.574-3.822 0-2.15 1.639-3.821 3.574-3.821 1.935 0 3.574 1.671 3.574 3.821z",fill:"var(--g-color-base-background)",stroke:"currentColor",strokeWidth:1.5})),H||(H=i.createElement("path",{d:"M11.676 16.5c2.69 0 4.824-2.297 4.824-5.072 0-2.774-2.134-5.071-4.824-5.071s-4.824 2.297-4.824 5.071c0 2.775 2.134 5.072 4.824 5.072z",stroke:"var(--g-color-base-background)"})),q||(q=i.createElement("path",{d:"M12.973 10.057L10.378 12.8m0-2.743l2.595 2.743",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})))};var $=s(75859);const W=(0,T.cn)("ydb-pdisk-decommission-button");function Z(e){return"DECOMMIT_IMMINENT"===e?L("decommission-dialog-imminent-warning"):"DECOMMIT_PENDING"===e?L("decommission-dialog-pending-warning"):"DECOMMIT_REJECTED"===e?L("decommission-dialog-rejected-warning"):"DECOMMIT_NONE"===e?L("decommission-dialog-none-warning"):void 0}function Q(e){let{decommission:t,onConfirmAction:s,onConfirmActionSuccess:o,buttonDisabled:n,popoverDisabled:a}=e;const[l,r]=i.useState(),[d,c]=i.useState(!1),[u,m]=i.useState(!1),p=function(e,t){return[{text:L("decommission-none"),action:()=>t("DECOMMIT_NONE"),hidden:!e||"DECOMMIT_NONE"===e||"DECOMMIT_UNSET"===e},{text:L("decommission-pending"),action:()=>t("DECOMMIT_PENDING"),hidden:"DECOMMIT_PENDING"===e},{text:L("decommission-rejected"),action:()=>t("DECOMMIT_REJECTED"),hidden:"DECOMMIT_REJECTED"===e},{text:L("decommission-imminent"),theme:"danger",action:()=>t("DECOMMIT_IMMINENT"),hidden:"DECOMMIT_IMMINENT"===e}]}(t,r);return(0,$.jsxs)(i.Fragment,{children:[(0,$.jsx)(M.h,{renderSwitcher:e=>(0,$.jsx)(Y,{popoverDisabled:a,loading:d,disabled:n,...e}),items:p,popupProps:{className:W("popup")}}),(0,$.jsx)(_.g,{visible:Boolean(l),header:L("decommission-dialog-title"),text:Z(l),withRetry:u,withCheckBox:!0,retryButtonText:L("decommission-dialog-force-change"),onConfirm:async e=>{c(!0),await s(l,e)},onConfirmActionSuccess:async()=>{m(!1),await(0,N.Dc)(5e3);try{await o()}finally{c(!1)}},onConfirmActionError:e=>{m((0,V.q)(e)),c(!1)},onClose:()=>{r(void 0)}})]})}function Y(e){let{popoverDisabled:t,...s}=e;return(0,$.jsx)(A.J,{content:L("decommission-change-not-allowed"),placement:"right",disabled:t,children:(0,$.jsxs)(O.z,{view:"normal",className:W("button"),...s,children:[(0,$.jsx)(n.J,{data:J}),L("decommission-button"),(0,$.jsx)(n.J,{data:z.Z})]})})}var K=s(14979);function X(e){return L("decommission-label",{decommission:e})}function ee(e){let{decommission:t}=e;return"DECOMMIT_IMMINENT"===t?(0,$.jsx)(K._,{theme:"danger",size:"m",children:X(L("decommission-imminent"))}):"DECOMMIT_PENDING"===t?(0,$.jsx)(K._,{theme:"warning",size:"m",children:X(L("decommission-pending"))}):"DECOMMIT_REJECTED"===t?(0,$.jsx)(K._,{theme:"normal",size:"m",children:X(L("decommission-rejected"))}):null}var te=s(94790),se=s(1796),ie=s(62206),oe=s(74170),ne=s(67359),ae=s(22200),le=s(81854),re=s(34301);const de=(0,T.cn)("ydb-pdisk-space-distribution"),ce=40;function ue(e){let{data:t}=e;const{SlotItems:s}=t,{PDiskId:i,NodeId:o}=t,n=ce*((null===s||void 0===s?void 0:s.length)||1);return null!==s&&void 0!==s&&s.length?(0,$.jsx)("div",{className:de(null),style:{height:n,minHeight:n},children:(0,$.jsx)(se.p,{className:de("pdisk-bar"),severity:t.Severity,diskAllocatedPercent:t.AllocatedPercent,content:null===s||void 0===s?void 0:s.map(((e,t)=>(0,$.jsx)(me,{item:e,pDiskId:i,nodeId:o},t))),faded:!0})}):L("no-slots-data")}function me(e){let{item:t,pDiskId:s,nodeId:i}=e;return(0,$.jsx)("div",{className:de("slot-wrapper"),style:{flexGrow:Number(t.Total)||1},children:(()=>{if("vDisk"===t.SlotType){var e;const o=(0,N.D)(null===(e=t.SlotData)||void 0===e?void 0:e.VDiskSlotId)&&(0,N.D)(s)&&(0,N.D)(i)?(0,D.By)(t.SlotData.VDiskSlotId,s,i):void 0;return(0,$.jsx)(te.f,{content:(0,$.jsx)(ae.K,{data:t.SlotData,withTitle:!0}),contentClassName:de("vdisk-popup"),placement:["right","top"],children:(0,$.jsx)(oe.h,{to:o,children:(0,$.jsx)(se.p,{className:de("slot"),severity:t.Severity,diskAllocatedPercent:t.UsagePercent,content:(0,$.jsx)(pe,{id:t.Id,title:t.Title,used:t.Used,total:t.Total})})})})}return function(e){return"log"===e.SlotType}(t)?(0,$.jsx)(te.f,{content:(0,$.jsx)(he,{data:t.SlotData}),contentClassName:de("vdisk-popup"),placement:["right","top"],children:(0,$.jsx)(se.p,{className:de("slot"),severity:t.Severity,diskAllocatedPercent:t.UsagePercent,content:(0,$.jsx)(pe,{title:L("log"),used:t.Used,total:t.Total})})}):function(e){return"empty"===e.SlotType}(t)?(0,$.jsx)(te.f,{content:(0,$.jsx)(ve,{data:t.SlotData}),contentClassName:de("vdisk-popup"),placement:["right","top"],children:(0,$.jsx)(se.p,{className:de("slot"),severity:t.Severity,empty:!0,content:(0,$.jsx)(pe,{title:L("empty-slot"),used:t.Total})})}):null})()})}function pe(e){let{id:t,title:s,used:i,total:o}=e;return(0,$.jsxs)("div",{className:de("slot-content"),children:[(0,$.jsxs)("span",{children:[(0,N.D)(t)?(0,$.jsx)("span",{className:de("slot-id"),children:t}):null,s]}),(0,$.jsx)("span",{className:de("slot-size"),children:(()=>{const[e,t]=(0,re.q3)(i,o);return o?`${e} / ${t}`:e})()})]})}function he(e){let{data:t}=e;const{LogTotalSize:s,LogUsedSize:i,SystemSize:o}=t,n=[{label:L("label.log-size"),value:(0,$.jsx)(ne.y,{value:i,capacity:s,formatValues:re.q3})}];return(0,N.D)(o)&&n.push({label:L("label.system-size"),value:(0,le.td)({value:o})}),(0,$.jsx)(ie._P,{title:L("log"),info:n})}function ve(e){let{data:t}=e;const{Size:s}=t,i=[{label:L("label.slot-size"),value:(0,le.td)({value:s})}];return(0,$.jsx)(ie._P,{title:L("empty-slot"),info:i})}const ge=(0,T.cn)("ydb-pdisk-page"),be={diskDistribution:"diskDistribution",storage:"storage"},De=[{id:be.diskDistribution,get title(){return L("disk-distribution")}},{id:be.storage,get title(){return L("storage")}}],ke=c.z.nativeEnum(be).catch(be.diskDistribution);function xe(){const e=(0,P.zL)(),t=(0,P.ix)(x.VH),s=(0,y.X_)(),[{nodeId:c,pDiskId:S,activeTab:w}]=(0,d.useQueryParams)({activeTab:d.StringParam,nodeId:d.StringParam,pDiskId:d.StringParam}),I=(0,N.D)(c)&&(0,N.D)(S),T=ke.parse(w);i.useEffect((()=>{e((0,f.J)("pDisk",{nodeId:c,pDiskId:S}))}),[e,c,S]);const[z]=(0,P.Rj)(),M=I?{nodeId:c,pDiskId:S}:l.CN,A=C.useGetPdiskInfoQuery(M,{pollingInterval:z}),O=A.isFetching&&void 0===A.currentData,_=A.currentData,{NodeHost:V,NodeId:R,NodeType:B,NodeDC:U,Severity:F,DecommitStatus:H}=_||{},q=async e=>{if(I){const t=await window.api[s?"restartPDisk":"restartPDiskOld"]({nodeId:c,pDiskId:S,force:e});if(!1===(null===t||void 0===t?void 0:t.result)){throw{statusText:t.error,retryPossible:t.forceRetryPossible}}}},G=async(e,t)=>{if(I){const s=await window.api.changePDiskStatus({nodeId:c,pDiskId:S,force:t,decommissionStatus:e});if(!1===(null===s||void 0===s?void 0:s.result)){throw{statusText:s.error,retryPossible:s.forceRetryPossible}}}},J=()=>{I&&e(k.h.util.invalidateTags([{type:"PDiskData",id:(0,j.CH)(c,S)}]),"StorageData")};return(0,$.jsxs)("div",{className:ge(null),children:[(()=>{const e=S?`${L("pdisk")} ${S}`:L("pdisk"),t=V||L("node");return(0,$.jsx)(r.ql,{titleTemplate:`%s - ${e} \u2014 ${t} \u2014 YDB Monitoring`,defaultTitle:`${e} \u2014 ${t} \u2014 YDB Monitoring`})})(),(()=>{const e=V?`${L("fqdn")}: ${V}`:void 0,t=R?`${L("node")}: ${R}`:void 0;return(0,$.jsx)(b.B,{loading:O,items:[e,t,B,U],className:ge("meta")})})(),(0,$.jsxs)("div",{className:ge("title"),children:[(0,$.jsx)(m.a,{entityName:L("pdisk"),status:(0,j.b2)(F),id:(0,j.CH)(c,S)}),(0,$.jsx)(ee,{decommission:H})]}),(0,$.jsxs)("div",{className:ge("controls"),children:[(0,$.jsxs)(u.U,{onConfirmAction:q,onConfirmActionSuccess:J,buttonDisabled:!I||!t,buttonView:"normal",dialogHeader:L("restart-pdisk-dialog-header"),dialogText:L("restart-pdisk-dialog-text"),retryButtonText:L("force-restart-pdisk-button"),withPopover:!0,popoverContent:L("restart-pdisk-not-allowed"),popoverDisabled:t,children:[(0,$.jsx)(n.J,{data:o.Z}),L("restart-pdisk-button")]}),s?(0,$.jsx)(Q,{decommission:H,onConfirmAction:G,onConfirmActionSuccess:J,buttonDisabled:!I||!t,popoverDisabled:t}):null]}),A.error?(0,$.jsx)(p.V,{error:A.error}):null,O?(0,$.jsx)(h.b,{className:ge("info"),rows:10}):(0,$.jsx)(g.P,{pDisk:_,nodeId:c,className:ge("info")}),(0,$.jsx)("div",{className:ge("tabs"),children:(0,$.jsx)(a.m,{size:"l",items:De,activeTab:T,wrapTo:(e,t)=>{let{id:s}=e;const i=I?(0,D.ds)(S,c,{activeTab:s}):void 0;return(0,$.jsx)(v.h,{to:i,children:t},s)}})}),(()=>{switch(T){case"diskDistribution":return _?(0,$.jsx)("div",{className:ge("disk-distribution"),children:(0,$.jsx)(ue,{data:_})}):null;case"storage":return I?(0,$.jsx)(E.K,{nodeId:c,pDiskId:S}):null;default:return null}})()]})}}}]); \ No newline at end of file
diff --git a/ydb/core/viewer/monitoring/static/js/5293.84db9400.chunk.js b/ydb/core/viewer/monitoring/static/js/5293.84db9400.chunk.js
deleted file mode 100644
index 05dac3d6b4..0000000000
--- a/ydb/core/viewer/monitoring/static/js/5293.84db9400.chunk.js
+++ /dev/null
@@ -1 +0,0 @@
-(self.webpackChunkydb_embedded_ui=self.webpackChunkydb_embedded_ui||[]).push([[5293],{65070:(e,t,a)=>{"use strict";a.d(t,{U:()=>d});var n=a(68963),s=a(17176),r=a(68330),i=a(86793),o=a(45743),l=a(75859);function d(e){let{children:t,onConfirmAction:a,onConfirmActionSuccess:d,dialogHeader:c,dialogText:u,retryButtonText:m,buttonDisabled:p=!1,buttonView:h="action",buttonClassName:v,withPopover:g=!1,popoverContent:x,popoverPlacement:y="right",popoverDisabled:b=!0}=e;const[f,j]=n.useState(!1),[N,S]=n.useState(!1),[w,T]=n.useState(!1),C=()=>(0,l.jsx)(s.z,{onClick:()=>j(!0),view:h,disabled:p,loading:!p&&N,className:v,children:t});return(0,l.jsxs)(n.Fragment,{children:[(0,l.jsx)(i.g,{visible:f,header:c,text:u,withRetry:w,retryButtonText:m,onConfirm:async e=>{S(!0),await a(e)},onConfirmActionSuccess:async()=>{T(!1);try{await(null===d||void 0===d?void 0:d())}finally{S(!1)}},onConfirmActionError:e=>{T((0,o.q)(e)),S(!1)},onClose:()=>{j(!1)}}),g?(0,l.jsx)(r.J,{content:x,placement:y,disabled:b,children:C()}):C()]})}},86793:(e,t,a)=>{"use strict";a.d(t,{g:()=>g});var n=a(68963),s=a(76506),r=a(71586),i=a(48897),o=a(25822),l=a(88776),d=a(24362),c=a(30817);const u=JSON.parse('{"default-error":"Something went wrong, action cannot be completed","no-rights-error":"You don\'t have enough rights to complete the operation","button-confirm":"Confirm","button-retry":"Retry","button-cancel":"Cancel","button-close":"Close","checkbox-text":"I understand what I\'m doing"}'),m=(0,c.wZ)("ydb-critical-action-dialog",{en:u});var p=a(75859);const h=(0,d.cn)("ydb-critical-dialog"),v=e=>403===e.status?m("no-rights-error"):e.statusText?e.statusText:m("default-error");function g(e){let{visible:t,header:a,text:d,withRetry:c,retryButtonText:u,withCheckBox:g,onClose:x,onConfirm:y,onConfirmActionSuccess:b,onConfirmActionError:f}=e;const[j,N]=n.useState(!1),[S,w]=n.useState(),[T,C]=n.useState(!1),E=async e=>(N(!0),y(e).then((()=>{b(),x()})).catch((e=>{f(e),w(e)})).finally((()=>{N(!1)})));return(0,p.jsx)(o.V,{open:t,hasCloseButton:!1,className:h(),size:"s",onClose:x,onTransitionExited:()=>{w(void 0),C(!1)},children:S?(0,p.jsxs)(n.Fragment,{children:[(0,p.jsx)(o.V.Header,{caption:a}),(0,p.jsx)(o.V.Body,{className:h("body"),children:(0,p.jsxs)("div",{className:h("body-message",{error:!0}),children:[(0,p.jsx)("span",{className:h("error-icon"),children:(0,p.jsx)(s.Z,{width:"24",height:"22"})}),v(S)]})}),(0,p.jsx)(o.V.Footer,{loading:!1,preset:"default",textButtonApply:c?u||m("button-retry"):void 0,textButtonCancel:m("button-close"),onClickButtonApply:()=>E(!0),onClickButtonCancel:x})]}):(0,p.jsxs)(n.Fragment,{children:[(0,p.jsx)(o.V.Header,{caption:a}),(0,p.jsxs)(o.V.Body,{className:h("body"),children:[(0,p.jsxs)("div",{className:h("body-message",{warning:!0}),children:[(0,p.jsx)("span",{className:h("warning-icon"),children:(0,p.jsx)(l.J,{data:r.Z,size:24})}),d]}),g?(0,p.jsx)(i.X,{checked:T,onUpdate:C,children:m("checkbox-text")}):null]}),(0,p.jsx)(o.V.Footer,{loading:j,preset:"default",textButtonApply:m("button-confirm"),textButtonCancel:m("button-cancel"),propsButtonApply:{type:"submit",disabled:g&&!T},onClickButtonCancel:x,onClickButtonApply:()=>E()})]})})}},45743:(e,t,a)=>{"use strict";a.d(t,{q:()=>n});const n=e=>Boolean(e&&"object"===typeof e&&"retryPossible"in e&&e.retryPossible)},97482:(e,t,a)=>{"use strict";a.d(t,{f:()=>i});var n=a(14979),s=a(83496),r=a(75859);function i(e){let{state:t}=e;return(0,r.jsx)(n._,{theme:(0,s.KR)(t),children:t})}},42635:(e,t,a)=>{"use strict";a.d(t,{J:()=>Q});var n=a(66950),s=a(10288),r=a(88776),i=a(17095),o=a(65070),l=a(41919),d=a(69214),c=a(26688),u=a(74170),m=a(2098),p=a(22692),h=a(97482),v=a(54665),g=a(14146),x=a(76386),y=a(36313),b=a(85690),f=a.n(b),j=a(905),N=a(99337);const S=j.h.injectEndpoints({endpoints:e=>({getTabletsInfo:e.query({queryFn:async(e,t)=>{let{signal:a}=t;try{return{data:await window.api.getTabletsInfo(e,{signal:a})}}catch(n){return{error:n}}},providesTags:["All",{type:"Tablet",id:"LIST"}]})}),overrideExisting:"throw"}),w=(0,y.P1)((e=>e),(e=>S.endpoints.getTabletsInfo.select(e)),{argsMemoize:y.PP,argsMemoizeOptions:{equalityCheck:f()}}),T=(0,y.P1)((e=>e),((e,t)=>w(t)),((e,t)=>t(e).data)),C=(0,y.P1)(((e,t)=>T(e,t)),(e=>(0,N.d)(e)),((e,t)=>null!==e&&void 0!==e&&e.TabletStateInfo?t?e.TabletStateInfo.map((e=>{const a=void 0===e.NodeId?void 0:t.get(e.NodeId);return{...e,fqdn:a}})):e.TabletStateInfo:[]));var E=a(28164),P=a(24362),I=a(52317),D=a(34301),R=a(48169),A=a(17096),_=a(92398),k=a(30817);const O=JSON.parse('{"noTabletsData":"No tablets data","Type":"Type","Tablet":"Tablet","State":"State","Node ID":"Node ID","Node FQDN":"Node FQDN","Generation":"Generation","Uptime":"Uptime","dialog.kill-header":"Restart tablet","dialog.kill-text":"The tablet will be restarted. Do you want to proceed?","controls.kill-not-allowed":"You don\'t have enough rights to restart tablet"}'),M=(0,k.wZ)("ydb-tablets",{en:O});var L=a(75859);const z=(0,P.cn)("tablets");function q(e){let{database:t}=e;return[{name:"Type",get header(){return M("Type")},render:e=>{let{row:t}=e;const a=!1===t.Leader;return(0,L.jsxs)("span",{children:[t.Type," ",a?(0,L.jsx)(s.x,{color:"secondary",children:"follower"}):""]})}},{name:"TabletId",width:220,get header(){return M("Tablet")},render:e=>{var a;let{row:n}=e;if(!n.TabletId)return I.jX;const s=(0,v.fK)(n.TabletId,{nodeId:n.NodeId,type:n.Type,tenantName:t});return(0,L.jsx)(d.A,{name:null===(a=n.TabletId)||void 0===a?void 0:a.toString(),path:s,hasClipboardButton:!0,showStatus:!1,additionalControls:(0,L.jsx)(l.Q,{href:(0,R.wz)(n.TabletId)})})}},{name:"State",get header(){return M("State")},render:e=>{let{row:t}=e;return(0,L.jsx)(h.f,{state:t.State})}},{name:"NodeId",get header(){return M("Node ID")},render:e=>{let{row:t}=e;const a=void 0===t.NodeId?void 0:(0,_.a3)(t.NodeId);return(0,L.jsx)(u.h,{to:a,children:t.NodeId})},align:"right"},{name:"fqdn",get header(){return M("Node FQDN")},render:e=>{let{row:t}=e;return t.fqdn?(0,L.jsx)(d.A,{name:t.fqdn,showStatus:!1,hasClipboardButton:!0}):(0,L.jsx)("span",{children:"\u2014"})}},{name:"Generation",get header(){return M("Generation")},align:"right"},{name:"Uptime",get header(){return M("Uptime")},render:e=>{let{row:t}=e;return(0,D.fG)(t.ChangeTime)},sortAccessor:e=>-Number(e.ChangeTime),align:"right"},{name:"Actions",sortable:!1,resizeable:!1,header:"",render:e=>{let{row:t}=e;return(0,L.jsx)(F,{...t})}}]}function F(e){const t=e.State===E.g.Stopped,a=(0,A.ix)(g.VH),[s]=x._.useKillTabletMutation(),i=e.TabletId;return i?(0,L.jsx)(o.U,{buttonView:"outlined",dialogHeader:M("dialog.kill-header"),dialogText:M("dialog.kill-text"),onConfirmAction:()=>s({id:i}).unwrap(),buttonDisabled:t||!a,withPopover:!0,popoverContent:M("controls.kill-not-allowed"),popoverDisabled:a,children:(0,L.jsx)(r.J,{data:n.Z})}):null}function Q(e){let{nodeId:t,path:a,database:n,className:s}=e;const[r]=(0,A.Rj)();let o={};const l=void 0===t?void 0:String(t);void 0!==l?o={nodeId:l,database:n}:a&&(o={path:a,database:n});const{currentData:d,isFetching:u,error:h}=S.useGetTabletsInfoQuery(0===Object.keys(o).length?i.CN:o,{pollingInterval:r}),v=u&&void 0===d,g=(0,A.ix)((e=>C(e,o)));return v?(0,L.jsx)(p.h,{}):(0,L.jsxs)("div",{className:z(null,s),children:[h?(0,L.jsx)(c.V,{error:h}):null,d?(0,L.jsx)(m.G,{columns:q({database:n}),data:g,settings:I.LE,emptyDataMessage:M("noTabletsData")}):null]})}},54419:(e,t,a)=>{"use strict";a.r(t),a.d(t,{Tenant:()=>th});var n=a(68963),s=a(49352),r=a(52846),i=a(1440),o=a(96409),l=a(93838),d=a(24362),c=a(75859);const u=(0,d.cn)("kv-split"),m=[0,100],p=[50,50];const h=function(e){const[t,a]=n.useState(),s=t=>{const{defaultSizePaneKey:a}=e;localStorage.setItem(a,t.join(","))};return n.useEffect((()=>{const{collapsedSizes:t,triggerCollapse:n}=e;if(n){const e=t||m;s(e),a(e)}}),[e.triggerCollapse]),n.useEffect((()=>{const{triggerExpand:t,defaultSizes:n}=e,r=n||p;t&&(s(r),a(r))}),[e.triggerExpand]),(0,c.jsx)(n.Fragment,{children:(0,c.jsx)(l.Z,{direction:e.direction||"horizontal",sizes:t||(()=>{var t;const{defaultSizePaneKey:a,defaultSizes:n=p,initialSizes:s}=e;if(s)return s;return(null===(t=localStorage.getItem(a))||void 0===t?void 0:t.split(",").map(Number))||n})(),minSize:e.minSize||[0,0],onDrag:t=>{const{onSplitDragAdditional:a}=e;a&&a(),s(t)},className:u(null,e.direction||"horizontal"),gutterSize:8,onDragStart:()=>{const{onSplitStartDragAdditional:t}=e;t&&t(),a(void 0)},expandToMin:!0,children:e.children})})};var v=a(79061),g=a(6748),x=a(52317),y=a(17096),b=a(64270),f=a(24015),j=a(8179),N=a(83203),S=a(50422),w=a(54665),T=a(17880),C=a(8511),E=a(2418),P=a(48897),I=a(26688),D=a(62776),R=a(93717),A=a(3027),_=a(34301),k=a(43832),O=a.n(k),M=a(27102);const L=(0,d.cn)("heatmap"),z={width:0,height:0},q=10,F=2,Q=e=>{const[t,a]=n.useState(z),{tablets:s}=e,r=n.useRef(null),i=n.useRef(null);n.useEffect((()=>{const e=r.current,a=e.getContext("2d");a.clearRect(0,0,e.offsetWidth,e.offsetHeight),s.map(function(e){return(a,n)=>{const{columnsCount:s}=t,r=n%s*(q+F),i=Math.floor(n/s)*(q+F);e.fillStyle=a.color||"grey",e.fillRect(r,i,q,q)}}(a))})),n.useLayoutEffect((()=>{const e=i.current;if(e){const t=e.offsetWidth-15,n=Math.floor(t/(q+F)),r=Math.ceil(s.length/n);a({width:t,height:r*(q+F),columnsCount:n,rowsCount:r})}}),[]);const o=()=>{let e=r.current,t=0;for(;e;)t+=e.offsetTop,e=e.offsetParent;return t},l=()=>{let e=r.current,t=0;for(;e;)t+=e.offsetLeft,e=e.offsetParent;return t},d=(e,a)=>{const{columnsCount:n}=t,s=q+F,r=q+F,i=Math.floor(e/s);return n*Math.floor(a/r)+i},u=O()(((t,a)=>{const n=new CustomEvent("scroll");window.dispatchEvent(n);const r=e.parentRef.current,i=t-l()+r.scrollLeft,c=a-o()+r.scrollTop,u=d(i,c),m=s[u];if(m){const n={name:m.currentMetric,value:m.formattedValue};e.showTooltip(void 0,m,"tablet",n,{left:t-20,top:a-20})}else e.hideTooltip()}),20);return(0,c.jsx)("div",{ref:i,className:L("canvas-container"),onMouseLeave:()=>{setTimeout((()=>{e.hideTooltip()}),40)},children:(0,c.jsx)("canvas",{ref:r,width:t.width,height:t.height,onClick:t=>{const a=e.parentRef.current,n=t.clientX-l()+a.scrollLeft,r=t.clientY-o()+a.scrollTop,i=d(n,r),c=s[i];c&&window.open((e=>{const{TabletId:t}=e,a=window.location.hostname,n=(0,w.fK)(t);return`https://${[a,M.EZ,n].map((e=>e.startsWith("/")?e.slice(1):e)).filter(Boolean).join("/")}`})(c),"_blank")},onMouseMove:e=>u(e.clientX,e.clientY)})})},B={r:255,g:4,b:0},U={r:255,g:219,b:77},H={r:59,g:201,b:53},G={CPU:{min:0,max:1e6},Network:{min:0,max:1e9},Storage:{min:0,max:2e9},DataSize:{min:0,max:2e9},RowCount:{min:0},IndexSize:{min:0}},Z=e=>{const t=e.toString(16);return 1===t.length?`0${t}`:t},V=(e,t,a)=>{if(1===e)return[t];if(2===e)return[t,a];const n=(t.r-a.r)/(e-1),s=(t.g-a.g)/(e-1),r=(t.b-a.b)/(e-1),i=[];for(let o=0;o<e;o++)i.push({r:Math.round(t.r-n*o),g:Math.round(t.g-s*o),b:Math.round(t.b-r*o)});return i.map((e=>(e=>{let{r:t,g:a,b:n}=e;return`#${Z(t)}${Z(a)}${Z(n)}`})(e)))},W=e=>{const t=Math.floor(e/2),a=t+1;return[...V(e%2===0?t:t+1,H,U),...V(a,U,B).slice(1)]},$=(e,t)=>{const a=new Set,n=G[e]||{};t.forEach((t=>{var n;a.add(Number(null===(n=t.metrics)||void 0===n?void 0:n[e]))})),Number.isInteger(n.min)&&a.add(n.min),Number.isInteger(n.max)&&a.add(n.max);const s=Array.from(a.values()).sort(((e,t)=>e-t));return{min:s[0],max:s[s.length-1]}},J=(0,d.cn)("histogram"),K=e=>{const t=n.useRef(),{data:a={},maxCount:s}=e,{count:r,leftBound:i,rightBound:o,color:l}=a,d=r/s*100;return(0,c.jsx)("div",{ref:t,className:J("item"),style:{backgroundColor:l,height:`${d}%`},onMouseEnter:()=>{const a=t.current;e.showTooltip(a,{count:r,leftBound:i,rightBound:o},"histogram")},onMouseLeave:e.hideTooltip})},X=e=>{const{tablets:t,currentMetric:a}=e,{min:n,max:s}=$(a,t),r=W(50),i=(s-n)/50,o=r.map(((e,t)=>({color:e,count:0,leftBound:(0,_.uf)(n+t*i),rightBound:(0,_.uf)(n+(t+1)*i)})));let l=0;t.forEach((e=>{var t,n;const s=a&&Number(null===(t=e.metrics)||void 0===t?void 0:t[a]),r=Math.floor(s/i),d=(null===(n=o[r])||void 0===n?void 0:n.count)+1;d>l&&(l=d),o[r]={...o[r],count:d}}));return(0,c.jsx)("div",{className:J(),children:(0,c.jsxs)("div",{className:J("chart"),children:[Boolean(s)&&o.map(((t,a)=>(0,c.jsx)(K,{data:t,maxCount:l,showTooltip:e.showTooltip,hideTooltip:e.hideTooltip},a))),(0,c.jsx)("div",{className:J("x-min"),children:(0,_.uf)(n)}),(0,c.jsx)("div",{className:J("x-max"),children:(0,_.uf)(s)}),(0,c.jsx)("div",{className:J("y-min"),children:"0"}),(0,c.jsx)("div",{className:J("y-max"),children:(0,_.uf)(l)})]})})},Y=(0,d.cn)("heatmap"),ee=W(500),te=e=>{let{path:t,database:a}=e;const s=(0,y.zL)(),r=n.createRef(),[i]=(0,y.Rj)(),{currentData:o,isFetching:l,error:d}=R.Vc.useGetHeatmapTabletsInfoQuery({path:t,database:a},{pollingInterval:i}),u=l&&void 0===o,{tablets:m=[],metrics:p}=o||{},{sort:h,heatmap:v,currentMetric:g}=(0,y.ix)((e=>e.heatmap)),x=function(){s((0,A.hJ)(...arguments))},b=()=>{s((0,A.i8)())},f=e=>{s((0,R.U_)({currentMetric:e[0]}))},j=()=>{s((0,R.U_)({sort:!h}))},N=()=>{s((0,R.U_)({heatmap:!v}))},S=()=>{const{min:e,max:t}=$(g,m),a=m.map((a=>{var n;const s=g&&Number(null===(n=a.metrics)||void 0===n?void 0:n[g]),r=((e,t,a)=>0===a?0:Math.round((e-t)/(a-t)*499))(s,e,t),i=ee[r];return{...a,color:i,value:s,formattedValue:(0,_.uf)(s),currentMetric:g}})),n=h?a.sort(((e,t)=>Number(t.value)-Number(e.value))):a;return(0,c.jsx)("div",{ref:r,className:Y("items"),children:(0,c.jsx)(Q,{tablets:n,parentRef:r,showTooltip:x,hideTooltip:b})})};return u?(0,c.jsx)(D.a,{}):(()=>{const{min:e,max:t}=$(g,m);let a;return d&&!o||(a=v?S():(0,c.jsx)(X,{tablets:m,currentMetric:g,showTooltip:x,hideTooltip:b})),(0,c.jsxs)("div",{className:Y(),children:[(0,c.jsxs)("div",{className:Y("filters"),children:[(0,c.jsx)(E.P,{className:Y("heatmap-select"),value:g?[g]:[],options:p,onUpdate:f,width:200}),(0,c.jsx)("div",{className:Y("sort-checkbox"),children:(0,c.jsx)(P.X,{onUpdate:j,checked:h,children:"Sort"})}),(0,c.jsx)("div",{className:Y("histogram-checkbox"),children:(0,c.jsx)(P.X,{onUpdate:N,checked:v,children:"Heatmap"})}),(0,c.jsxs)("div",{className:Y("limits"),children:[(0,c.jsxs)("div",{className:Y("limits-block"),children:[(0,c.jsx)("div",{className:Y("limits-title"),children:"min:"}),(0,c.jsx)("div",{className:Y("limits-value"),children:Number.isInteger(e)?(0,_.uf)(e):"\u2014"})]}),(0,c.jsxs)("div",{className:Y("limits-block"),children:[(0,c.jsx)("div",{className:Y("limits-title"),children:"max:"}),(0,c.jsx)("div",{className:Y("limits-value"),children:Number.isInteger(t)?(0,_.uf)(t):"\u2014"})]}),(0,c.jsxs)("div",{className:Y("limits-block"),children:[(0,c.jsx)("div",{className:Y("limits-title"),children:"count:"}),(0,c.jsx)("div",{className:Y("limits-value"),children:(0,_.uf)(m.length)})]})]})]}),d?(0,c.jsx)(I.V,{error:d}):null,a]})})()};var ae=a(9870),ne=a(39724),se=a(42635),re=a(17095),ie=a(2098),oe=a(22692),le=a(39623),de=a(905);function ce(e){return`SELECT * FROM \`${e}\` LIMIT 0`}const ue=de.h.injectEndpoints({endpoints:e=>({getViewSchema:e.query({queryFn:async e=>{let{database:t,path:a}=e;try{const e=await window.api.sendQuery({schema:"modern",query:ce(a),database:t,action:"execute-scan"},{withRetries:!0});return(0,le.gW)(e)?{error:e}:{data:(null===e||void 0===e?void 0:e.columns)||[]}}catch(n){return{error:n}}},providesTags:["All"]})}),overrideExisting:"throw"});var me=a(6523),pe=a(14979),he=a(94790),ve=a(30817);const ge=JSON.parse('{"column-title.id":"Id","column-title.name":"Name","column-title.type":"Type","column-title.notNull":"NotNull","column-title.autoIncrement":"AutoIncrement","column-title.defaultValue":"Default","column-title.family":"Family","column-title.media":"Media","column-title.compression":"Compression","primary-key.title":"Primary key:","partitioning-key.title":"Partitioning key:"}'),xe=(0,ve.wZ)("ydb-schema-viewer",{en:ge}),ye=(0,d.cn)("schema-viewer");const be=e=>{let{tableData:t,extended:a,type:n}=e;const s="primary"===n?function(e){return e.filter((e=>e.isKeyColumn&&e.name)).map((e=>e.name))}(t):function(e){return e.filter((e=>e.isPartitioningKeyColumn&&e.name)).map((e=>e.name))}(t),r=a?3:s.length,i=s.slice(0,r),o=s.slice(r);return s.length>0?(0,c.jsxs)("div",{className:ye("keys",{summary:!a,type:n}),children:[(0,c.jsx)("div",{className:ye("keys-header"),children:xe("primary"===n?"primary-key.title":"partitioning-key.title")}),(0,c.jsxs)("div",{className:ye("keys-values"),children:[" "+i.join(", "),o.length?(0,c.jsx)(he.f,{className:ye("more-badge"),placement:["bottom"],hasArrow:!1,pinOnClick:!0,content:(0,c.jsx)("div",{className:ye("popup-content"),children:o.map((e=>(0,c.jsx)("div",{className:ye("popup-item"),children:e},e)))}),children:(0,c.jsx)(pe._,{className:ye("keys-label"),children:`+${o.length}`})}):null]})]}):null};var fe=a(19812);const je="autoIncrement",Ne="defaultValue",Se="familyName",we="prefferedPoolKind",Te="columnCodec",Ce={name:"id",get header(){return xe("column-title.id")},width:60,render:e=>{let{row:t}=e;return t.id}},Ee={name:"name",get header(){return xe("column-title.name")},width:100,render:e=>{let{row:t}=e;return t.name}},Pe={name:"type",get header(){return xe("column-title.type")},width:100,render:e=>{let{row:t}=e;return t.type}},Ie={name:"notNull",get header(){return xe("column-title.notNull")},width:100,defaultOrder:fe.ZP.DESCENDING,render:e=>{let{row:t}=e;if(t.notNull)return"\u2713"}},De={name:je,get header(){return xe("column-title.autoIncrement")},width:100,defaultOrder:fe.ZP.DESCENDING,render:e=>{let{row:t}=e;if(t.autoIncrement)return"\u2713"}},Re={name:Ne,get header(){return xe("column-title.defaultValue")},width:100,render:e=>{let{row:t}=e;return String(t.defaultValue)}},Ae={name:Se,get header(){return xe("column-title.family")},width:100,render:e=>{let{row:t}=e;return t.familyName}},_e={name:we,get header(){return xe("column-title.media")},width:100,render:e=>{let{row:t}=e;return t.prefferedPoolKind}},ke={name:Te,get header(){return xe("column-title.compression")},width:100,render:e=>{let{row:t}=e;return t.columnCodec}};var Oe=a(35638);function Me(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=function(e){var t,a,n;return null!==(t=null===e||void 0===e||null===(a=e.PartitionConfig)||void 0===a||null===(n=a.ColumnFamilies)||void 0===n?void 0:n.reduce(((e,t)=>t.Id?{...e,[t.Id]:t}:e),{}))&&void 0!==t?t:{}}(e),{Columns:a,KeyColumnIds:n}=e,s=null===a||void 0===a?void 0:a.map((e=>{var a,s;const{Id:r,Name:i,NotNull:o,Type:l,Family:d,DefaultFromSequence:c,DefaultFromLiteral:u}=e,m=Boolean(null===n||void 0===n?void 0:n.find((e=>e===r))),p=d?t[d].Name:void 0,h=d?null===(a=t[d].StorageConfig)||void 0===a||null===(s=a.Data)||void 0===s?void 0:s.PreferredPoolKind:void 0,v=d?function(e){if(e)return e===Oe.C6.ColumnCodecPlain?"None":e.replace("ColumnCodec","").toLocaleLowerCase()}(t[d].ColumnCodec):void 0;return{id:r,name:i,isKeyColumn:m,type:l,notNull:o,autoIncrement:Boolean(c),defaultValue:Object.values((null===u||void 0===u?void 0:u.value)||{})[0]||"-",familyName:p,prefferedPoolKind:h,columnCodec:v}}));return[...(null===s||void 0===s?void 0:s.filter((e=>e.isKeyColumn)))||[],...(null===s||void 0===s?void 0:s.filter((e=>!e.isKeyColumn)))||[]]}function Le(e,t){const{Table:a,ColumnTableDescription:n,ExternalTableDescription:s}=(null===t||void 0===t?void 0:t.PathDescription)||{};return(0,me.fd)(e)?Me(a):(0,me.Jp)(e)?function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{Schema:t={},Sharding:a={}}=e,{Columns:n,KeyColumnNames:s}=t,{HashSharding:r={}}=a,{Columns:i=[]}=r,o=null===n||void 0===n?void 0:n.map((e=>{const{Id:t,Name:a,Type:n,NotNull:r}=e,o=Boolean(null===s||void 0===s?void 0:s.find((e=>e===a))),l=Boolean(null===i||void 0===i?void 0:i.find((e=>e===a)));return{id:t,name:a,isKeyColumn:o,isPartitioningKeyColumn:l,type:n,notNull:r}}));return[...(null===o||void 0===o?void 0:o.filter((e=>e.isKeyColumn)))||[],...(null===o||void 0===o?void 0:o.filter((e=>!e.isKeyColumn)))||[]]}(n):(0,me.uL)(e)?function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{Columns:t}=e;return(null===t||void 0===t?void 0:t.map((e=>{const{Id:t,Name:a,Type:n,NotNull:s}=e;return{id:t,name:a,type:n,notNull:s}})))||[]}(s):[]}const ze=e=>{let{type:t,path:a,tenantName:s,extended:r=!1}=e;const{data:i,isLoading:o}=(0,g.hz)({path:a,database:s}),l=(0,me.$J)(t)?{path:a,database:s}:re.CN,{data:d,isLoading:u}=ue.useGetViewSchemaQuery(l),m=n.useMemo((()=>(0,me.$J)(t)?function(e){return(null===e||void 0===e?void 0:e.map((e=>{var t;return{type:null!==(t=e.type)&&void 0!==t&&t.endsWith("?")?e.type.slice(0,-1):e.type,name:e.name}})))||[]}(d):Le(t,i)),[i,t,d]),p=n.useMemo((()=>m.some((e=>e.autoIncrement))),[m]),h=n.useMemo((()=>m.some((e=>e.defaultValue))),[m]),v=n.useMemo((()=>(0,me.$J)(t)?[Ee,Pe]:(0,me.uL)(t)||(0,me.Jp)(t)?[Ce,Ee,Pe,Ie]:(0,me.fd)(t)?function(e,t,a){const n=[Ce,Ee,Pe,Ie];return a&&n.push(Re),e&&n.push(Ae,_e,ke),t&&n.push(De),n}(r,p,h):[]),[t,r,p,h]);return o||u?(0,c.jsx)(oe.h,{}):(0,c.jsxs)(n.Fragment,{children:[(0,c.jsxs)("div",{className:ye("keys-wrapper"),children:[(0,c.jsx)(be,{tableData:m,extended:r,type:"primary"}),(0,c.jsx)(be,{tableData:m,extended:r,type:"partitioning"})]}),(0,c.jsx)("div",{className:ye(),children:(0,c.jsx)(ie.G,{columnsWidthLSKey:"schemaTableColumnsWidth",data:m,columns:v,settings:x.LE})})]})};var qe=a(95478),Fe=a(7692),Qe=a(68330),Be=a(88776),Ue=a(68291),He=a(11551),Ge=a(47101);const Ze=JSON.parse('{"td-feature-flag":"Feature flag","td-default":"Default","td-current":"Current","enabled":"Enabled","disabled":"Disabled","flag-touched":"Flag is changed","search-placeholder":"Search by feature flag","search-empty":"Empty search result","no-data":"No data"}'),Ve=(0,ve.wZ)("ydb-diagnostics-configs",{en:Ze}),We=(0,d.cn)("ydb-diagnostics-configs"),$e=[{name:"Touched",header:"",render:e=>{let{row:t}=e;return t.Current?(0,c.jsx)(Qe.J,{content:Ve("flag-touched"),className:We("icon-touched"),placement:"left",children:(0,c.jsx)(Be.J,{data:Fe.Z})}):null},width:36,sortable:!1,resizeable:!1},{name:"Name",get header(){return Ve("td-feature-flag")},render:e=>{let{row:t}=e;return t.Current?(0,c.jsx)("b",{children:t.Name}):t.Name},width:400,sortable:!0,sortAccessor:e=>{let{Current:t,Name:a}=e;return Number(!t)+a.toLowerCase()}},{name:"Default",get header(){return Ve("td-default")},render:e=>{let{row:t}=e;switch(t.Default){case!0:return Ve("enabled");case!1:return Ve("disabled");default:return"-"}},width:100,sortable:!1,resizeable:!1},{name:"Current",get header(){return Ve("td-current")},render:e=>{var t;let{row:a}=e;return(0,c.jsx)(Ue.r,{disabled:!0,checked:(null!==(t=a.Current)&&void 0!==t?t:a.Default)||!1})},width:100,sortable:!1,resizeable:!1}],Je=e=>{let{database:t}=e;const[a,n]=(0,r.useQueryParam)("search",r.StringParam),{currentData:s=[],isFetching:i,error:o}=C.$1.useGetClusterConfigQuery({database:t}),l=null===a||void 0===a?void 0:a.toLocaleLowerCase(),d=l?s.filter((e=>e.Name.toLocaleLowerCase().includes(l))):s;return(0,c.jsxs)(Ge.l,{children:[(0,c.jsx)(Ge.l.Controls,{children:(0,c.jsx)(He.o,{value:l,onChange:e=>{n(e||void 0,"replaceIn")},placeholder:Ve("search-placeholder")})}),(0,c.jsx)(Ge.l.Table,{loading:i,children:o?(0,c.jsx)(I.V,{error:o}):(0,c.jsx)(ie.G,{emptyDataMessage:Ve(l?"search-empty":"no-data"),columnsWidthLSKey:"featureFlagsColumnsWidth",columns:$e,data:d,settings:x.LE})})]})};var Ke=a(43680),Xe=a.n(Ke),Ye=a(36313),et=a(81854),tt=a(1504);const at=de.h.injectEndpoints({endpoints:e=>({getTopic:e.query({queryFn:async e=>{try{const t=await window.api.getTopic(e);return"object"!==typeof t?{error:{}}:{data:t}}catch(t){return{error:t}}},providesTags:["All"]})}),overrideExisting:"throw"}),nt=(0,Ye.P1)(((e,t)=>({path:e,database:t})),(e=>at.endpoints.getTopic.select(e))),st=(0,Ye.P1)((e=>e),((e,t,a)=>nt(t,a)),((e,t)=>{var a;return null===(a=t(e).data)||void 0===a?void 0:a.topic_stats})),rt=(0,Ye.P1)((e=>e),((e,t,a)=>nt(t,a)),((e,t)=>{var a;return null===(a=t(e).data)||void 0===a?void 0:a.consumers})),it=(0,Ye.P1)(rt,(e=>null===e||void 0===e?void 0:e.map((e=>null===e||void 0===e?void 0:e.name)).filter((e=>void 0!==e)))),ot=(0,Ye.P1)(st,(e=>{if(!e)return;const{store_size_bytes:t="0",min_last_write_time:a,max_write_time_lag:n,bytes_written:s}=e||{};return{storeSize:t,partitionsIdleTime:(0,tt.lE)(a),partitionsWriteLag:(0,tt.DA)(n),writeSpeed:(0,et.c4)(s)}})),lt=(0,Ye.P1)(rt,(e=>null===e||void 0===e?void 0:e.map((e=>{const{name:t,consumer_stats:a}=e||{},{min_partitions_last_read_time:n,max_read_time_lag:s,max_write_time_lag:r,bytes_read:i}=a||{};return{name:t,readSpeed:(0,et.c4)(i),writeLag:(0,tt.DA)(r),readLag:(0,tt.DA)(s),readIdleTime:(0,tt.lE)(n)}})))),dt=JSON.parse('{"averageSpeed":"Average speed","perMinute":"per minute","perHour":"per hour","perDay":"per day"}'),ct=JSON.parse('{"averageSpeed":"\u0421\u0440\u0435\u0434\u043d\u044f\u044f \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c","perMinute":"\u0437\u0430 \u043c\u0438\u043d\u0443\u0442\u0443","perHour":"\u0437\u0430 \u0447\u0430\u0441","perDay":"\u0437\u0430 \u0434\u0435\u043d\u044c"}'),ut=(0,ve.wZ)("ydb-components-speed-multimeter",{ru:ct,en:dt}),mt=(0,d.cn)("speed-multimeter"),pt=e=>{let{data:t,speedSize:a="kb",withValue:s=!0,withPopover:r=!0}=e;const{perMinute:i=0,perHour:o=0,perDay:l=0}=t||{},d=[i,o,l],u=e=>(0,et.td)({value:e,size:a,withSpeedLabel:!0}),m=[{value:u(i),label:ut("perMinute")},{value:u(o),label:ut("perHour")},{value:u(l),label:ut("perDay")}],[p,h]=n.useState(i),[v,g]=n.useState(s?0:void 0),[x,y]=n.useState(),b=(e,t)=>{h(e[t]),g(t),y(t)},f=e=>v===e,j=e=>x===e;return(0,c.jsx)("div",{className:mt(),children:(0,c.jsxs)("div",{className:mt("content"),children:[s&&(0,c.jsx)("div",{className:mt("displayed-value"),children:u(p)}),(0,c.jsx)(Qe.J,{content:(0,c.jsxs)("div",{className:mt("popover-content"),children:[(0,c.jsx)("span",{className:mt("popover-header"),children:ut("averageSpeed")}),m.map(((e,t)=>{return(0,c.jsx)("span",{className:mt("popover-row",(a=f(t),a?{color:"primary"}:{color:"secondary"})),children:`${e.label}: ${e.value}`},t);var a}))]}),className:mt("popover-container"),placement:"bottom",disabled:!r,hasArrow:!0,size:"s",children:(0,c.jsx)("div",{className:mt("bars"),onMouseLeave:()=>{h(i),g(s?0:void 0),y(void 0)},children:(()=>{const e=Math.max(...d,0)||1;return d.map(((t,a)=>(0,c.jsx)("div",{className:mt("bar-container",{highlighted:j(a)}),onMouseEnter:b.bind(null,d,a),children:(0,c.jsx)("div",{className:mt("bar",{color:f(a)?"dark":"light"}),style:{width:100*t/e+"%"}})},a)))})()})})]})})},ht=(0,d.cn)("ydb-diagnostics-consumers-topic-stats"),vt=e=>{let{data:t}=e;const{writeSpeed:a,partitionsWriteLag:n,partitionsIdleTime:s}=t||{},r=[{label:"Write speed",value:(0,c.jsx)(pt,{data:a})},{label:"Write lag",value:(0,_.gC)(n||0)},{label:"Write idle time",value:(0,_.gC)(s||0)}];return(0,c.jsx)("div",{className:ht("wrapper"),children:r.map(((e,t)=>(0,c.jsxs)("div",{className:ht("item"),children:[(0,c.jsx)("div",{className:ht("label"),children:e.label}),(0,c.jsx)("div",{className:ht("value"),children:e.value})]},t)))})};var gt=a(63041),xt=a.n(gt),yt=a(74170),bt=a(21986);const ft=e=>{let{text:t,popoverContent:a,popoverClassName:n,className:s,contentClassName:r,buttonProps:i}=e;return(0,c.jsxs)("div",{className:s,children:[t,"\xa0",(0,c.jsx)(bt.J,{className:n,buttonProps:i,content:a,contentClassName:r})]})},jt=70,Nt=54,St=268,wt="#ADE8F5",Tt="#f5be9d",Ct=e=>{let{width:t,height:a,transform:n}=e;return(0,c.jsx)("path",{d:`M-${t/2} 0 c0 -${a}, ${t} -${a}, ${t} 0`,fill:"none",strokeDasharray:"4,6",stroke:"#28f",strokeWidth:"1.6",transform:n})},Et=e=>{let{width:t}=e;return(0,c.jsx)("path",{fill:"none",strokeWidth:"2",d:`M0 0 h${t} l-10 -5 m0 10 l10 -5`})},Pt=()=>(0,c.jsxs)("g",{fill:"var(--g-color-text-primary)",fontSize:"12",children:[(0,c.jsx)("g",{transform:"translate(0, 27)",stroke:Tt,children:(0,c.jsx)(Et,{width:203})}),(0,c.jsxs)("g",{transform:"translate(30, 0)",children:[(0,c.jsxs)("g",{transform:"translate(35, 27)",children:[(0,c.jsx)(Ct,{width:jt,height:15}),(0,c.jsx)("text",{x:"0",y:"-15",textAnchor:"middle",children:(0,c.jsx)("tspan",{x:"0",dy:"0",children:"write lag"})})]}),(0,c.jsxs)("g",{transform:"translate(119, 27)",children:[(0,c.jsx)(Ct,{width:98,height:15}),(0,c.jsx)("text",{x:"0",y:"-15",textAnchor:"middle",children:(0,c.jsx)("tspan",{x:"0",dy:"0",children:"write idle time"})})]})]}),(0,c.jsxs)("g",{transform:"translate(30, 0)",children:[(0,c.jsxs)("g",{transform:"translate(0, 27)",children:[(0,c.jsx)("use",{y:"-10",xlinkHref:"#check",stroke:Tt}),(0,c.jsx)("text",{x:"0",y:"20",textAnchor:"middle",children:(0,c.jsx)("tspan",{x:"0",dy:"0",children:"create time"})})]}),(0,c.jsxs)("g",{transform:"translate(70, 27)",children:[(0,c.jsx)("use",{y:"-10",xlinkHref:"#check",stroke:Tt}),(0,c.jsx)("text",{x:"0",y:"20",textAnchor:"middle",children:(0,c.jsx)("tspan",{x:"0",dy:"0",children:"write time"})})]}),(0,c.jsx)("g",{transform:"translate(168, 27)",children:(0,c.jsx)("text",{x:"0",y:"20",textAnchor:"middle",children:(0,c.jsx)("tspan",{x:"0",dy:"0",children:"now"})})})]})]}),It=()=>(0,c.jsxs)("g",{fill:"var(--g-color-text-primary)",fontSize:"12",children:[(0,c.jsx)("g",{transform:"translate(0, 27)",stroke:wt,children:(0,c.jsx)(Et,{width:St})}),(0,c.jsxs)("g",{transform:"translate(30, 0)",children:[(0,c.jsxs)("g",{transform:"translate(105, 27)",children:[(0,c.jsx)(Ct,{width:jt,height:15}),(0,c.jsx)("text",{x:"0",y:"-15",textAnchor:"middle",children:(0,c.jsx)("tspan",{x:"0",dy:"0",children:"read lag"})})]}),(0,c.jsxs)("g",{transform:"translate(35, 27)",children:[(0,c.jsx)(Ct,{width:jt,height:15}),(0,c.jsx)("text",{x:"0",y:"-15",textAnchor:"middle",children:(0,c.jsx)("tspan",{x:"0",dy:"0",children:"write lag"})})]}),(0,c.jsxs)("g",{transform:"translate(182, 27)",children:[(0,c.jsx)(Ct,{width:91,height:15}),(0,c.jsx)("text",{x:"0",y:"-15",textAnchor:"middle",children:(0,c.jsx)("tspan",{x:"0",dy:"0",children:"read idle time"})})]})]}),(0,c.jsxs)("g",{transform:"translate(30, 27)",children:[(0,c.jsxs)("g",{transform:"translate(0, 0)",children:[(0,c.jsx)("use",{y:"-10",xlinkHref:"#check",stroke:wt}),(0,c.jsx)("text",{x:"0",y:"20",textAnchor:"middle",children:(0,c.jsx)("tspan",{x:"0",dy:"0",children:"create time"})})]}),(0,c.jsxs)("g",{transform:"translate(70, 0)",children:[(0,c.jsx)("use",{y:"-10",xlinkHref:"#check",stroke:wt}),(0,c.jsx)("text",{x:"0",y:"20",textAnchor:"middle",children:(0,c.jsx)("tspan",{x:"0",dy:"0",children:"write time"})})]}),(0,c.jsxs)("g",{transform:"translate(140, 0)",children:[(0,c.jsx)("use",{x:"-2",y:"-10",xlinkHref:"#check",stroke:wt}),(0,c.jsx)("text",{x:"0",y:"20",textAnchor:"middle",children:(0,c.jsx)("tspan",{x:"0",dy:"0",children:"read time"})})]}),(0,c.jsx)("g",{transform:"translate(224, 0)",children:(0,c.jsx)("text",{x:"0",y:"20",textAnchor:"middle",children:(0,c.jsx)("tspan",{x:"0",dy:"0",children:"now"})})})]})]}),Dt=e=>{let{id:t,fill:a}=e;return(0,c.jsx)("pattern",{id:t,x:"0",y:"0",width:"8",height:"8",patternUnits:"userSpaceOnUse",children:(0,c.jsx)("path",{d:"M0 5L5 0H8L0 8V5M5 8L8 5V8Z",fill:a})})},Rt=()=>(0,c.jsxs)("svg",{className:"paint",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 268 54",width:St,height:Nt,children:[(0,c.jsxs)("defs",{children:[(0,c.jsx)("g",{id:"check",children:(0,c.jsx)("path",{d:"M0 3 v14",strokeWidth:"2"})}),(0,c.jsx)(Dt,{id:"latest-read",fill:wt}),(0,c.jsx)(Dt,{id:"latest-write",fill:Tt})]}),(0,c.jsx)(Pt,{})]}),At=()=>(0,c.jsxs)("svg",{className:"paint",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 268 54",width:St,height:Nt,children:[(0,c.jsxs)("defs",{children:[(0,c.jsx)("g",{id:"check",children:(0,c.jsx)("path",{d:"M0 3 v14",strokeWidth:"2"})}),(0,c.jsx)(Dt,{id:"latest-read",fill:wt}),(0,c.jsx)(Dt,{id:"latest-write",fill:Tt})]}),(0,c.jsx)(It,{})]}),_t=(0,d.cn)("ydb-lag-popover-content"),kt=e=>{let{text:t,type:a}=e;return(0,c.jsxs)("div",{className:_t({type:a}),children:[(0,c.jsx)("div",{className:_t("text"),children:t}),(0,c.jsx)("div",{children:"read"===a?(0,c.jsx)(At,{}):(0,c.jsx)(Rt,{})})]})},Ot=JSON.parse('{"noConsumersMessage.topic":"This topic has no consumers","noConsumersMessage.stream":"This changefeed has no consumers","lagsPopover.readLags":"Read lags statistics, maximum among all consumer partitions (time format dd hh:mm:ss)","table.emptyDataMessage":"No consumers match the current search","controls.search":"Consumer"}'),Mt=JSON.parse('{"noConsumersMessage.topic":"\u0423 \u044d\u0442\u043e\u0433\u043e \u0442\u043e\u043f\u0438\u043a\u0430 \u043d\u0435\u0442 \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u0435\u0439","noConsumersMessage.stream":"\u0423 \u044d\u0442\u043e\u0433\u043e \u0441\u0442\u0440\u0438\u043c\u0430 \u043d\u0435\u0442 \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u0435\u0439","lagsPopover.readLags":"\u0421\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0430 \u043b\u0430\u0433\u043e\u0432 \u0447\u0442\u0435\u043d\u0438\u044f, \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0441\u0440\u0435\u0434\u0438 \u0432\u0441\u0435\u0445 \u043f\u0430\u0440\u0442\u0438\u0446\u0438\u0439 \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u044f (\u0444\u043e\u0440\u043c\u0430\u0442 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0434\u0434 \u0447\u0447:\u043c\u043c:\u0441\u0441)","table.emptyDataMessage":"\u041f\u043e \u0437\u0430\u0434\u0430\u043d\u043d\u043e\u043c\u0443 \u043f\u043e\u0438\u0441\u043a\u0443 \u043d\u0435\u0442 \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u0435\u0439","controls.search":"Consumer"}'),Lt=(0,ve.wZ)("ydb-diagnostics-consumers",{ru:Mt,en:Ot}),zt="consumer",qt="readSpeed",Ft="readLags",Qt={[zt]:"Consumer",[qt]:"Read speed",[Ft]:"Read lags, duration"},Bt="writeLag",Ut="readLag",Ht="readIdleTime",Gt={[Bt]:"write lag",[Ut]:"read lag",[Ht]:"read idle time"},Zt=(0,d.cn)("ydb-diagnostics-consumers-columns-header"),Vt=()=>(0,c.jsx)(ft,{className:Zt("lags"),text:Qt[Ft],popoverContent:(0,c.jsx)(kt,{text:Lt("lagsPopover.readLags"),type:"read"})}),Wt=(0,d.cn)("ydb-diagnostics-consumers-columns"),$t=[{name:zt,header:Qt[zt],align:fe.ZP.LEFT,render:e=>{let{row:t}=e;if(!t.name)return"\u2013";const a=xt().parse(location.search,{ignoreQueryPrefix:!0});return(0,c.jsx)(yt.h,{to:(0,w.ax)(w.ZP.tenant,void 0,{...a,[qe.XV.diagnosticsTab]:f.qQ.partitions,selectedConsumer:t.name}),children:t.name})}},{name:qt,header:Qt[qt],align:fe.ZP.RIGHT,resizeMinWidth:140,sortAccessor:e=>e.readSpeed.perMinute,render:e=>{let{row:t}=e;return(0,c.jsx)(pt,{data:t.readSpeed})}},{name:Ft,header:(0,c.jsx)(Vt,{}),className:Wt("lags-header"),sub:[{name:Bt,header:Gt[Bt],align:fe.ZP.RIGHT,render:e=>{let{row:t}=e;return(0,_.gC)(t.writeLag)}},{name:Ut,header:Gt[Ut],align:fe.ZP.RIGHT,render:e=>{let{row:t}=e;return(0,_.gC)(t.readLag)}},{name:Ht,header:Gt[Ht],align:fe.ZP.RIGHT,render:e=>{let{row:t}=e;return(0,_.gC)(t.readIdleTime)}}]}],Jt=(0,d.cn)("ydb-diagnostics-consumers"),Kt=e=>{let{path:t,database:a,type:s}=e;const r=(0,me.zf)(s),[i,o]=n.useState(""),[l]=(0,y.Rj)(),{currentData:d,isFetching:u,error:m}=at.useGetTopicQuery({path:t,database:a},{pollingInterval:l}),p=u&&void 0===d,h=(0,y.ix)((e=>lt(e,t,a))),v=(0,y.ix)((e=>ot(e,t,a))),g=n.useMemo((()=>{if(!h)return[];const e=new RegExp(Xe()(i),"i");return h.filter((t=>e.test(String(t.name))))}),[h,i]);return p?(0,c.jsx)(D.a,{size:"m"}):m||h&&h.length?(0,c.jsxs)("div",{className:Jt(),children:[(0,c.jsxs)("div",{className:Jt("controls"),children:[(0,c.jsx)(He.o,{onChange:e=>{o(e)},placeholder:Lt("controls.search"),className:Jt("search"),value:i}),v&&(0,c.jsx)(vt,{data:v})]}),m?(0,c.jsx)(I.V,{error:m}):null,h?(0,c.jsx)("div",{className:Jt("table-wrapper"),children:(0,c.jsx)("div",{className:Jt("table-content"),children:(0,c.jsx)(ie.G,{columnsWidthLSKey:"consumersColumnsWidth",wrapperClassName:Jt("table"),data:g,columns:$t,settings:x.LE,emptyDataMessage:Lt("table.emptyDataMessage")})})}):null]}):(0,c.jsx)("div",{children:Lt("noConsumersMessage."+(r?"stream":"topic"))})};var Xt=a(19797),Yt=a(83326),ea=a.n(Yt),ta=a(87555);const aa=de.h.injectEndpoints({endpoints:e=>({getDescribe:e.query({queryFn:async(e,t)=>{let{paths:a,database:n}=e,{signal:s}=t;try{const e=await Promise.all(a.map((e=>window.api.getDescribe({path:e,database:n},{signal:s}))));return{data:e.reduce(((e,t)=>(null!==t&&void 0!==t&&t.Path&&(e[t.Path]=t),e)),{})}}catch(r){return{error:r}}},providesTags:["All"]})}),overrideExisting:"throw"});a(55895);const na=(0,d.cn)("ydb-describe"),sa=new Map,ra=e=>{let{path:t,database:a,type:n}=e;const[s]=(0,y.Rj)(),r=(0,me.St)(n),i=(0,y.ix)((e=>(0,g.eU)(e,t,n,a)),ta.wU);let o=[];r?i&&(o=[t,...i]):o=[t];const{currentData:l,isFetching:d,error:u}=aa.useGetDescribeQuery(o.length?{paths:o,database:a}:re.CN,{pollingInterval:s}),m=d&&void 0===l,p=l;let h;if(p){const e=Object.keys(p);h=1===e.length?p[e[0]]:p}return m||r&&!i?(0,c.jsx)(D.a,{size:"m"}):h||u?(0,c.jsxs)("div",{className:na(),children:[u?(0,c.jsx)(I.V,{error:u}):null,h?(0,c.jsxs)("div",{className:na("result"),children:[(0,c.jsx)(ea(),{data:h,className:na("tree"),onClick:e=>{let{path:t}=e;const a=!sa.get(t);sa.set(t,a)},searchOptions:{debounceTime:300},isExpanded:e=>sa.get(e)||!1}),(0,c.jsx)(Xt.m,{view:"flat-secondary",text:JSON.stringify(h),className:na("copy")})]}):null]}):(0,c.jsx)("div",{className:na("message-container"),children:"Empty"})};var ia=a(62206);const oa=e=>{const{PathType:t,PathSubType:a}=(null===e||void 0===e?void 0:e.Self)||{};return(0,me.d)(t,a)},la=e=>{var t;return null===e||void 0===e||null===(t=e.UserAttributes)||void 0===t?void 0:t.some((e=>{let{Key:t,Value:a}=e;return"__async_replica"===t&&"true"===a}))};var da=a(31954),ca=a(93849);const ua=(0,ca.a)({values:{PathType:e=>null===e||void 0===e?void 0:e.substring("EPathType".length),CreateStep:_.o0},labels:{PathType:(0,da.Z)("common.type"),CreateStep:(0,da.Z)("common.created")}}),ma=e=>{let{value:t,withSpeedLabel:a,...n}=e;const s=(0,et.td)({value:t,withSpeedLabel:a,...n}),r=(0,et.td)({value:t,withSpeedLabel:a,size:"b"});return(0,c.jsx)("span",{title:r,children:s})},pa=(e,t)=>e?(0,c.jsx)(ma,{value:e,significantDigits:2,...t}):null,ha=(0,ca.a)({values:{Type:e=>null===e||void 0===e?void 0:e.substring(10),State:e=>null===e||void 0===e?void 0:e.substring(11),KeyColumnNames:e=>null===e||void 0===e?void 0:e.join(", "),DataColumnNames:e=>null===e||void 0===e?void 0:e.join(", "),DataSize:pa},labels:{KeyColumnNames:"Columns",DataColumnNames:"Includes"}}),va={[Oe.tB.METERING_MODE_REQUEST_UNITS]:"request-units",[Oe.tB.METERING_MODE_RESERVED_CAPACITY]:"reserved-capacity"},ga=(0,ca.a)({values:{Partitions:e=>(0,_.uf)((null===e||void 0===e?void 0:e.length)||0),PQTabletConfig:e=>{const t=Math.round(e.PartitionConfig.LifetimeSeconds/x.RQ*100)/100;return`${(0,_.uf)(t)} hours`}},labels:{Partitions:"Partitions count",PQTabletConfig:"Retention"}}),xa=(0,ca.a)({values:{Codecs:e=>e&&Object.values(e.Codecs||{}).join(", "),MeteringMode:e=>e&&va[e]},labels:{MeteringMode:"Metering mode"}}),ya=(0,ca.a)({values:{StorageLimitBytes:_.td,WriteSpeedInBytesPerSecond:_.t$},labels:{StorageLimitBytes:"Retention storage",WriteSpeedInBytesPerSecond:"Partitions write speed"}}),ba=(0,ca.a)({values:{Mode:e=>null===e||void 0===e?void 0:e.substring("ECdcStreamMode".length),Format:e=>null===e||void 0===e?void 0:e.substring("ECdcStreamFormat".length)}}),fa=(0,ca.a)({values:{CPU:_.LO,Memory:pa,Storage:pa,Network:_.t$,ReadThroughput:_.t$,WriteThroughput:_.t$},defaultValueFormatter:_.uf}),ja=(0,ca.a)({values:{FollowerCount:_.uf},labels:{FollowerCountPerDataCenter:"FollowerCountPerDC"},defaultValueFormatter:e=>e&&String(e)}),Na=(0,ca.a)({values:{FollowerCount:_.uf,CrossDataCenterFollowerCount:_.uf}}),Sa=(0,ca.a)({values:{DataSize:pa,IndexSize:pa,LastAccessTime:_.o0,LastUpdateTime:_.o0},defaultValueFormatter:_.uf}),wa=new Set(["Type","State","DataSize","KeyColumnNames","DataColumnNames"]),Ta=e=>{var t;let{data:a}=e;const n=oa(null===a||void 0===a?void 0:a.PathDescription);if(!a)return(0,c.jsxs)("div",{className:"error",children:["No ",n," data"]});const s=null===(t=a.PathDescription)||void 0===t?void 0:t.TableIndex,r=[];let i;for(i in s)wa.has(i)&&r.push(ha(i,null===s||void 0===s?void 0:s[i]));return(0,c.jsx)(ia._P,{title:n,info:r})},Ca=de.h.injectEndpoints({endpoints:e=>({getOverview:e.query({queryFn:async(e,t)=>{let{paths:a,database:n}=e,{signal:s}=t;try{const[e,...t]=await Promise.all(a.map((e=>window.api.getDescribe({path:e,database:n},{signal:s}))));return{data:{data:e,additionalData:t}}}catch(r){return{error:r}}},providesTags:["All"]})})});var Ea=a(69214);const Pa=JSON.parse('{"external-objects.source-type":"Source Type","external-objects.data-source":"Data Source","external-objects.location":"Location","external-objects.auth-method":"Auth Method","external-objects.auth-method.none":"None","external-objects.auth-method.service-account":"Service Account","view.query-text":"Query Text"}'),Ia=(0,ve.wZ)("ydb-tenant-objects-info",{en:Pa}),Da=(0,d.cn)("ydb-external-data-source-info"),Ra=e=>{var t,a,n,s;return[{label:Ia("external-objects.source-type"),value:null===(t=e.PathDescription)||void 0===t||null===(a=t.ExternalDataSourceDescription)||void 0===a?void 0:a.SourceType},ua("CreateStep",null===(n=e.PathDescription)||void 0===n||null===(s=n.Self)||void 0===s?void 0:s.CreateStep)]},Aa=e=>{var t;const{Location:a,Auth:n}=(null===(t=e.PathDescription)||void 0===t?void 0:t.ExternalDataSourceDescription)||{};return[...Ra(e),{label:Ia("external-objects.location"),value:(0,c.jsx)(Ea.A,{name:a,showStatus:!1,hasClipboardButton:!0,clipboardButtonAlwaysVisible:!0,className:Da("location")})},{label:Ia("external-objects.auth-method"),value:null!==n&&void 0!==n&&n.ServiceAccount?Ia("external-objects.auth-method.service-account"):Ia("external-objects.auth-method.none")}]},_a=e=>{let{data:t,prepareData:a}=e;const n=oa(null===t||void 0===t?void 0:t.PathDescription);return t?(0,c.jsx)(ia._P,{title:n,info:a(t)}):(0,c.jsxs)("div",{className:"error",children:["No ",n," data"]})},ka=e=>{let{data:t}=e;return(0,c.jsx)(_a,{data:t,prepareData:Aa})};var Oa=a(86974),Ma=a(32270);const La=(0,d.cn)("ydb-external-table-info"),za=(e,t)=>{var a,n;const{CreateStep:s}=(null===(a=e.PathDescription)||void 0===a?void 0:a.Self)||{},{SourceType:r,DataSourcePath:i}=(null===(n=e.PathDescription)||void 0===n?void 0:n.ExternalTableDescription)||{},o=null===i||void 0===i?void 0:i.split("/").pop();return[{label:Ia("external-objects.source-type"),value:r},ua("CreateStep",s),{label:Ia("external-objects.data-source"),value:i&&(0,c.jsx)("span",{title:i,children:(0,c.jsx)(Ma.j,{title:o||"",url:t})})}]},qa=(e,t)=>{var a,n;const s=null===(a=e.PathDescription)||void 0===a||null===(n=a.ExternalTableDescription)||void 0===n?void 0:n.Location;return[...za(e,t),{label:Ia("external-objects.location"),value:(0,c.jsx)(Ea.A,{name:s,showStatus:!1,hasClipboardButton:!0,clipboardButtonAlwaysVisible:!0,className:La("location")})}]},Fa=e=>{var t,a;let{data:n,prepareData:s}=e;const r=(0,Oa.TH)(),i=(0,w.mB)(r),o=(0,w.vF)({...i,schema:null===n||void 0===n||null===(t=n.PathDescription)||void 0===t||null===(a=t.ExternalTableDescription)||void 0===a?void 0:a.DataSourcePath}),l=oa(null===n||void 0===n?void 0:n.PathDescription);return n?(0,c.jsx)(ia._P,{title:l,info:s(n,o)}):(0,c.jsxs)("div",{className:"error",children:["No ",l," data"]})},Qa=e=>{let{data:t}=e;return(0,c.jsx)(Fa,{data:t,prepareData:qa})};var Ba=a(10288),Ua=a(55334);const Ha=JSON.parse('{"no-data":"No data"}'),Ga=(0,ve.wZ)("ydb-definition-list",{en:Ha}),Za=(0,d.cn)("ydb-definition-list");function Va(e){let{title:t,items:a,nameMaxWidth:n=220,copyPosition:s="outside",className:r,itemClassName:i,...o}=e;return(0,c.jsxs)("div",{className:Za(null),children:[t?(0,c.jsx)("div",{className:Za("title"),children:t}):null,a.length?(0,c.jsx)(Ua.w,{items:a,nameMaxWidth:n,copyPosition:s,className:Za("properties-list",r),itemClassName:Za("item",i),...o}):Ga("no-data")]})}const Wa=e=>{var t,a;const n=null===(t=e.PathDescription)||void 0===t||null===(a=t.ViewDescription)||void 0===a?void 0:a.QueryText;return[{name:Ia("view.query-text"),copyText:n,content:(0,c.jsx)(Ba.x,{variant:"code-2",wordBreak:"break-word",children:n})}]};function $a(e){let{data:t}=e;const a=oa(null===t||void 0===t?void 0:t.PathDescription);if(!t)return(0,c.jsxs)("div",{className:"error",children:["No ",a," data"]});const n=Wa(t);return(0,c.jsx)(Va,{title:a,items:n})}var Ja=a(77796);function Ka(e){let{state:t}=e;return t?"StandBy"in t?(0,c.jsx)(pe._,{theme:"info",children:"Standby"}):"Paused"in t?(0,c.jsx)(pe._,{theme:"info",children:"Paused"}):"Done"in t?(0,c.jsx)(pe._,{theme:"success",children:"Done"}):"Error"in t?(0,c.jsx)(pe._,{theme:"danger",children:"Error"}):(0,c.jsx)(pe._,{size:"s",children:"Unknown"}):null}const Xa=JSON.parse('{"column.dstPath.name":"Dist","column.srcPath.name":"Source","everythingWithPrefix":"Everything with prefix:","noData":"No data.","title":"Replicated Paths"}'),Ya=(0,ve.wZ)("ydb-diagnostics-async-replication-paths",{en:Xa}),en=(0,d.cn)("ydb-async-replication-paths"),tn=[{name:Ya("column.srcPath.name"),render:e=>{let{row:t}=e;return t.SrcPath},sortAccessor:e=>e.SrcPath},{name:Ya("column.dstPath.name"),render:e=>{let{row:t}=e;return t.DstPath},sortAccessor:e=>e.DstPath}];function an(e){let{config:t}=e;if(!t)return null;let a=Ya("noData");var n,s;t.Everything&&(a=(0,c.jsxs)("span",{children:[Ya("everythingWithPrefix")," ",(0,c.jsx)(Ba.x,{variant:"code-inline-2",children:null!==(n=null===(s=t.Everything)||void 0===s?void 0:s.DstPrefix)&&void 0!==n?n:"undefined"}),"."]}));return t.Specific&&(a=(0,c.jsx)(ie.G,{data:t.Specific.Targets,settings:x.E6,columns:tn})),(0,c.jsxs)("div",{className:en(),children:[(0,c.jsx)("div",{className:en("title"),children:Ya("title")}),a]})}function nn(e){let{connection:t}=e;return t?t.StaticCredentials?(0,c.jsx)(pe._,{value:t.StaticCredentials.User,theme:"normal",children:"user"}):"OAuthToken"in t?"OAuth":"unknown":null}const sn=JSON.parse('{"credentials.label":"Credentials","noData":"No data for entity:","srcConnection.database.label":"Source Database Path","srcConnection.endpoint.label":"Source Cluster Endpoint","state.label":"State"}'),rn=(0,ve.wZ)("ydb-diagnostics-async-replication-info",{en:sn});function on(e){var t,a;let{data:n}=e;const s=oa(null===n||void 0===n?void 0:n.PathDescription);if(!n)return(0,c.jsxs)("div",{className:"error",children:[rn("noData")," ",s]});const r=function(e){var t,a;const n=(null===(t=e.PathDescription)||void 0===t?void 0:t.ReplicationDescription)||{},s=n.State,r=(null===(a=n.Config)||void 0===a?void 0:a.SrcConnectionParams)||{},{Endpoint:i,Database:o}=r,l=[];s&&l.push({name:rn("state.label"),content:(0,c.jsx)(Ka,{state:s})});i&&l.push({name:rn("srcConnection.endpoint.label"),copyText:i,content:(0,c.jsx)(Ba.x,{variant:"code-inline-2",children:i})});o&&l.push({name:rn("srcConnection.database.label"),copyText:o,content:(0,c.jsx)(Ba.x,{variant:"code-inline-2",children:o})});r&&l.push({name:rn("credentials.label"),content:(0,c.jsx)(nn,{connection:r})});return l}(n);return(0,c.jsxs)(Ja.k,{direction:"column",gap:"4",children:[(0,c.jsx)(Va,{title:s,items:r}),(0,c.jsx)(an,{config:null===(t=n.PathDescription)||void 0===t||null===(a=t.ReplicationDescription)||void 0===a?void 0:a.Config})]})}const ln=JSON.parse('{"writeLagPopover":"Write lag, maximum among all topic partitions","writeIdleTimePopover":"Write idle time, maximum among all topic partitions"}'),dn=JSON.parse('{"writeLagPopover":"\u041b\u0430\u0433 \u0437\u0430\u043f\u0438\u0441\u0438, \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0441\u0440\u0435\u0434\u0438 \u0432\u0441\u0435\u0445 \u043f\u0430\u0440\u0442\u0438\u0446\u0438\u0439 \u0442\u043e\u043f\u0438\u043a\u0430","writeIdleTimePopover":"\u0412\u0440\u0435\u043c\u044f \u0431\u0435\u0437 \u0437\u0430\u043f\u0438\u0441\u0438, \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0441\u0440\u0435\u0434\u0438 \u0432\u0441\u0435\u0445 \u043f\u0430\u0440\u0442\u0438\u0446\u0438\u0439 \u0442\u043e\u043f\u0438\u043a\u0430"}'),cn=(0,ve.wZ)("ydb-diagnostics-overview-topic-stats",{ru:dn,en:ln}),un=(0,d.cn)("ydb-overview-topic-stats"),mn=e=>[{label:"Store size",value:(0,_.td)(e.storeSize)},{label:(0,c.jsx)(ft,{text:"Write idle time",popoverContent:(0,c.jsx)(kt,{text:cn("writeIdleTimePopover"),type:"write"})}),value:(0,tt.tt)(e.partitionsIdleTime)},{label:(0,c.jsx)(ft,{text:"Write lag",popoverContent:(0,c.jsx)(kt,{text:cn("writeLagPopover"),type:"write"})}),value:(0,tt.tt)(e.partitionsWriteLag)},{label:"Average write speed",value:(0,c.jsx)(pt,{data:e.writeSpeed,withValue:!1})}],pn=e=>{const t=e.writeSpeed;return[{label:"per minute",value:(0,_.t$)(t.perMinute)},{label:"per hour",value:(0,_.t$)(t.perHour)},{label:"per day",value:(0,_.t$)(t.perDay)}]},hn=e=>{let{path:t,database:a}=e;const[s]=(0,y.Rj)(),{currentData:r,isFetching:i,error:o}=at.useGetTopicQuery({path:t,database:a},{pollingInterval:s}),l=i&&void 0===r,d=(0,y.ix)((e=>ot(e,t,a)));if(l)return(0,c.jsx)("div",{className:un(),children:(0,c.jsx)(D.a,{size:"s"})});const u=o||!d?(0,c.jsx)(I.V,{error:o}):null;return(0,c.jsxs)("div",{className:un(),children:[(0,c.jsx)("div",{className:un("title"),children:"Stats"}),u,d?(0,c.jsxs)(n.Fragment,{children:[(0,c.jsx)("div",{className:un("info"),children:(0,c.jsx)(ia._P,{info:mn(d),multilineLabels:!0})}),(0,c.jsx)("div",{className:un("bytes-written"),children:(0,c.jsx)(ia._P,{info:pn(d)})})]}):null]})},vn=e=>{var t;const a=null===e||void 0===e||null===(t=e.PathDescription)||void 0===t?void 0:t.PersQueueGroup;if(!a)return[];const{Partitions:n=[],PQTabletConfig:s={PartitionConfig:{LifetimeSeconds:0}}}=a,{Codecs:r,MeteringMode:i}=s,{WriteSpeedInBytesPerSecond:o,StorageLimitBytes:l}=s.PartitionConfig;return[...(0,ia.Z6)(ga,{Partitions:n,PQTabletConfig:s}),...(0,ia.Z6)(ya,{StorageLimitBytes:l,WriteSpeedInBytesPerSecond:o}),...(0,ia.Z6)(xa,{Codecs:r,MeteringMode:i})]},gn=(e,t)=>{var a,n,s;if(!e&&!t)return[];const r=null===e||void 0===e||null===(a=e.PathDescription)||void 0===a?void 0:a.CdcStreamDescription,{Mode:i,Format:o}=r||{};return[ua("CreateStep",null===e||void 0===e||null===(n=e.PathDescription)||void 0===n||null===(s=n.Self)||void 0===s?void 0:s.CreateStep),...(0,ia.Z6)(ba,{Mode:i,Format:o}),...vn(t)]},xn=e=>{let{path:t,database:a,data:n,topic:s}=e;const r=oa(null===n||void 0===n?void 0:n.PathDescription);return n&&s?(0,c.jsxs)("div",{children:[(0,c.jsx)(ia._P,{title:r,info:gn(n,s)}),(0,c.jsx)(hn,{path:t,database:a})]}):(0,c.jsxs)("div",{className:"error",children:["No ",r," data"]})},yn=JSON.parse('{"page.title":"Database","pages.query":"Query","pages.diagnostics":"Diagnostics","summary.navigation":"Navigation","summary.showPreview":"Show preview","summary.source-type":"Source Type","summary.data-source":"Data Source","summary.copySchemaPath":"Copy schema path","summary.type":"Type","summary.subtype":"SubType","summary.id":"Id","summary.version":"Version","summary.created":"Created","summary.data-size":"Data size","summary.row-count":"Row count","summary.partitions":"Partitions count","summary.paths":"Paths","summary.shards":"Shards","summary.state":"State","summary.mode":"Mode","summary.format":"Format","summary.retention":"Retention","label.read-only":"ReadOnly","actions.copied":"The path is copied to the clipboard","actions.notCopied":"Couldn\u2019t copy the path","actions.copyPath":"Copy path","actions.openPreview":"Open preview","actions.createTable":"Create table...","actions.createExternalTable":"Create external table...","actions.createTopic":"Create topic...","actions.createColumnTable":"Create column table...","actions.createAsyncReplication":"Create async replication...","actions.createView":"Create view...","actions.dropTable":"Drop table...","actions.dropTopic":"Drop topic...","actions.dropView":"Drop view...","actions.alterTable":"Alter table...","actions.alterTopic":"Alter topic...","actions.selectQuery":"Select query...","actions.upsertQuery":"Upsert query...","actions.alterReplication":"Alter async replicaton...","actions.dropReplication":"Drop async replicaton...","actions.createDirectory":"Create directory","schema.tree.dialog.placeholder":"Relative path","schema.tree.dialog.invalid":"Invalid path","schema.tree.dialog.whitespace":"Whitespace is not allowed","schema.tree.dialog.empty":"Path is empty","schema.tree.dialog.header":"Create directory","schema.tree.dialog.description":"Inside","schema.tree.dialog.buttonCancel":"Cancel","schema.tree.dialog.buttonApply":"Create"}'),bn=(0,ve.wZ)("ydb-tenant",{en:yn});function fn(e){let{data:t}=e;const a=oa(t);return la(t)?(0,c.jsxs)(Ja.k,{gap:1,wrap:"nowrap",children:[a," ",(0,c.jsx)(pe._,{children:bn("label.read-only")})]}):a}const jn=JSON.parse('{"tableStats":"Table Stats","tabletMetrics":"Tablet Metrics","partitionConfig":"Partition Config","label.ttl":"TTL for rows","value.ttl":"column: \'{{columnName}}\', expire after: {{expireTime}}","label.standalone":"Standalone","label.partitioning":"Partitioning","label.partitioning-by-size":"Partitioning by size","value.partitioning-by-size.enabled":"Enabled, split size: {{size}}","label.partitioning-by-load":"Partitioning by load","label.partitions-min":"Min number of partitions","label.partitions-max":"Max number of partitions","label.read-replicas":"Read replicas (followers)","label.bloom-filter":"Bloom filter","enabled":"Enabled","disabled":"Disabled"}'),Nn=(0,ve.wZ)("ydb-diagnostics-overview-table-info",{en:jn});var Sn=a(87863),wn=a.n(Sn),Tn=a(5922),Cn=a(55850);const En=e=>e.SchemaPresetName&&void 0!==e.SchemaPresetId,Pn=e=>{if(e.Enabled&&e.Enabled.ColumnName&&void 0!==e.Enabled.ExpireAfterSeconds){const t=Nn("value.ttl",{columnName:e.Enabled.ColumnName,expireTime:(0,tt.tt)(1e3*e.Enabled.ExpireAfterSeconds,1)});return{label:Nn("label.ttl"),value:t}}};const In=(e,t)=>{if(!e)return{};const{PathDescription:a={}}=e,{TableStats:n={},TabletMetrics:s={},Table:{PartitionConfig:r={},TTLSettings:i}={},ColumnTableDescription:o={}}=a,{PartCount:l,RowCount:d,DataSize:u,IndexSize:m,ByKeyFilterSize:p,LastAccessTime:h,LastUpdateTime:v,ImmediateTxCompleted:g,PlannedTxCompleted:x,TxRejectedByOverload:y,TxRejectedBySpace:b,TxCompleteLagMsec:f,InFlightTxCount:j,RowUpdates:N,RowDeletes:S,RowReads:w,RangeReads:T,RangeReadRows:C}=n,{FollowerGroups:E,FollowerCount:P,CrossDataCenterFollowerCount:I}=r;let D=[];switch(t){case Oe.gb.EPathTypeTable:D=((e,t)=>{var a;const{PartitioningPolicy:n={},FollowerGroups:s,EnableFilterByKey:r}=e,i=[],o=n.SizeToSplit&&Number(n.SizeToSplit)>0?Nn("value.partitioning-by-size.enabled",{size:(0,_.td)(n.SizeToSplit)}):Nn("disabled"),l=null!==(a=n.SplitByLoadSettings)&&void 0!==a&&a.Enabled?Nn("enabled"):Nn("disabled");if(i.push({label:Nn("label.partitioning-by-size"),value:o},{label:Nn("label.partitioning-by-load"),value:l},{label:Nn("label.partitions-min"),value:(0,_.uf)(n.MinPartitionsCount||0)}),n.MaxPartitionsCount&&i.push({label:Nn("label.partitions-max"),value:(0,_.uf)(n.MaxPartitionsCount)}),s&&s.length){const{RequireAllDataCenters:e,FollowerCountPerDataCenter:t,FollowerCount:a}=s[0];let n;n=e&&t?`PER_AZ: ${a}`:`ANY_AZ: ${a}`,i.push({label:Nn("label.read-replicas"),value:n})}if(t){const e=Pn(t);e&&i.push(e)}return(0,Tn.D)(r)&&i.push({label:Nn("label.bloom-filter"),value:Nn(r?"enabled":"disabled")}),i})(r,i);break;case Oe.gb.EPathTypeColumnTable:D=function(e){var t,a;const n=[];if(n.push({label:Nn("label.standalone"),value:String(!En(e))}),null!==(t=e.Sharding)&&void 0!==t&&null!==(a=t.HashSharding)&&void 0!==a&&a.Columns){const t=`PARTITION BY HASH(${e.Sharding.HashSharding.Columns.join(", ")})`;n.push({label:Nn("label.partitioning"),value:(0,c.jsx)(Ba.x,{variant:"code-2",wordBreak:"break-word",children:t})})}if(e.TtlSettings){const t=Pn(null===e||void 0===e?void 0:e.TtlSettings);t&&n.push(t)}return n}(o)}const R=(0,ia.Z6)(Sa,{PartCount:l,RowCount:d,DataSize:u,IndexSize:m});(0,Cn.kE)(p)&&(r.EnableFilterByKey||Number(p)>0)&&R.push({label:"BloomFilterSize",value:pa(p)});const A=[R,(0,ia.Z6)(Sa,{LastAccessTime:h,LastUpdateTime:v}),(0,ia.Z6)(Sa,{ImmediateTxCompleted:g,PlannedTxCompleted:x,TxRejectedByOverload:y,TxRejectedBySpace:b,TxCompleteLagMsec:f,InFlightTxCount:j}),(0,ia.Z6)(Sa,{RowUpdates:N,RowDeletes:S,RowReads:w,RangeReads:T,RangeReadRows:C})],k=(0,ia.Z6)(fa,wn()(s,["GroupReadIops","GroupReadThroughput","GroupWriteIops","GroupWriteThroughput"]));let O=[];return Array.isArray(E)&&E.length>0?O=(0,ia.Z6)(ja,E[0]):void 0!==P?O.push(Na("FollowerCount",P)):void 0!==I&&O.push(Na("CrossDataCenterFollowerCount",I)),{generalInfo:D,tableStatsInfo:A,tabletMetricsInfo:k,partitionConfigInfo:O}},Dn=(0,d.cn)("ydb-diagnostics-table-info"),Rn=e=>{let{data:t,type:a}=e;const s=(0,c.jsx)(fn,{data:null===t||void 0===t?void 0:t.PathDescription}),{generalInfo:r,tableStatsInfo:i,tabletMetricsInfo:o=[],partitionConfigInfo:l=[]}=n.useMemo((()=>In(t,a)),[t,a]);return(0,c.jsxs)("div",{className:Dn(),children:[(0,c.jsx)(ia._P,{info:r,title:s,className:Dn("info-block"),renderEmptyState:()=>(0,c.jsx)("div",{className:Dn("title"),children:s})}),(0,c.jsxs)("div",{className:Dn("row"),children:[i?(0,c.jsx)("div",{className:Dn("col"),children:i.map(((e,t)=>(0,c.jsx)(ia._P,{info:e,title:0===t?Nn("tableStats"):void 0,className:Dn("info-block"),renderEmptyState:()=>null},t)))}):null,o.length>0||l.length>0?(0,c.jsxs)("div",{className:Dn("col"),children:[(0,c.jsx)(ia._P,{info:o,title:Nn("tabletMetrics"),className:Dn("info-block"),renderEmptyState:()=>null}),(0,c.jsx)(ia._P,{info:l,title:Nn("partitionConfig"),className:Dn("info-block"),renderEmptyState:()=>null})]}):null]})]})},An=e=>{let{data:t,path:a,database:n}=e;const s=oa(null===t||void 0===t?void 0:t.PathDescription);return t?(0,c.jsxs)("div",{children:[(0,c.jsx)(ia._P,{title:s,info:vn(t)}),(0,c.jsx)(hn,{path:a,database:n})]}):(0,c.jsxs)("div",{className:"error",children:["No ",s," data"]})};const _n=function(e){let{type:t,path:a,database:s}=e;const[r]=(0,y.Rj)(),i=(0,me.St)(t),o=(0,y.ix)((e=>(0,g.eU)(e,a,t,s)),ta.wU);let l=[];i?o&&(l=[a,...o]):l=[a];const{currentData:d,isFetching:u,error:m}=Ca.useGetOverviewQuery(l.length?{paths:l,database:s}:re.CN,{pollingInterval:r}),p=u&&void 0===d,{data:h,additionalData:v}=d||{},{error:x}=(0,g.hz)({path:a,database:s});return p||i&&!o?(0,c.jsx)(D.a,{size:"m"}):(0,c.jsxs)(n.Fragment,{children:[x?(0,c.jsx)(I.V,{error:x}):null,m?(0,c.jsx)(I.V,{error:m}):null,m&&!h?null:(()=>{var e;const n=null!==h&&void 0!==h?h:void 0,r={[Oe.gb.EPathTypeInvalid]:void 0,[Oe.gb.EPathTypeDir]:void 0,[Oe.gb.EPathTypeTable]:void 0,[Oe.gb.EPathTypeSubDomain]:void 0,[Oe.gb.EPathTypeTableIndex]:()=>(0,c.jsx)(Ta,{data:n}),[Oe.gb.EPathTypeExtSubDomain]:void 0,[Oe.gb.EPathTypeColumnStore]:void 0,[Oe.gb.EPathTypeColumnTable]:void 0,[Oe.gb.EPathTypeCdcStream]:()=>{var e;return(0,c.jsx)(xn,{path:a,database:s,data:n,topic:null!==(e=null===v||void 0===v?void 0:v[0])&&void 0!==e?e:void 0})},[Oe.gb.EPathTypePersQueueGroup]:()=>(0,c.jsx)(An,{data:n,path:a,database:s}),[Oe.gb.EPathTypeExternalTable]:()=>(0,c.jsx)(Qa,{data:n}),[Oe.gb.EPathTypeExternalDataSource]:()=>(0,c.jsx)(ka,{data:n}),[Oe.gb.EPathTypeView]:()=>(0,c.jsx)($a,{data:n}),[Oe.gb.EPathTypeReplication]:()=>(0,c.jsx)(on,{data:n})};return t&&(null===(e=r[t])||void 0===e?void 0:e.call(r))||(0,c.jsx)(Rn,{data:n,type:t})})()]})};var kn=a(2982),On=a(49687),Mn=a(8978),Ln=a(95280),zn=a(67141),qn=a(39633);const Fn=["#7EB26D","#EAB839","#6ED0E0","#EF843C","#E24D42","#1F78C1","#BA43A9","#705DA0","#508642","#CCA300"];const Qn=e=>{switch(e){case"ms":return Bn;case"size":return Un;case"percent":return Hn;default:return}};function Bn(e){return null===e?x.jX:(0,tt.zm)((0,_.W0)(Gn(e),2))}function Un(e){return null===e?x.jX:(0,et.td)({value:Gn(e),precision:3})}function Hn(e){return null===e?x.jX:Math.round(100*Gn(e))+"%"}function Gn(e){return(0,Cn.kE)(e)?Number(e):0}const Zn={"30m":30*x.sU,"1h":x.RQ,"1d":x.ii,"1w":7*x.ii},Vn=JSON.parse('{"not-supported":"Charts are not supported on current ydb version"}'),Wn=(0,ve.wZ)("ydb-metric-chart",{en:Vn}),$n=de.h.injectEndpoints({endpoints:e=>({getChartData:e.query({queryFn:async(e,t)=>{let{signal:a}=t;try{const t=await async function(e){let{database:t,metrics:a,timeFrame:n,maxDataPoints:s}=e,{signal:r}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const i=a.map((e=>`target=${e.target}`)).join("&"),o=Math.round(Date.now()/1e3),l=o-Zn[n];return window.api.getChartData({target:i,from:l,until:o,maxDataPoints:s,database:t},{signal:r})}(e,{signal:a});if(Array.isArray(t)){const a=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;const a=e.map((e=>{let{datapoints:a,target:n}=e;const s=t.find((e=>e.target===n));if(!s)return;const r=a.map((e=>e[0]));return{...s,data:r}})).filter((e=>void 0!==e));return{timeline:e[0].datapoints.map((e=>1e3*e[1])),metrics:a}}(t,e.metrics);return{data:a}}return{error:new Error("string"===typeof t?Wn("not-supported"):t.error)}}catch(n){return{error:n}}},providesTags:["All"],keepUnusedDataFor:0})}),overrideExisting:"throw"}),Jn=(0,d.cn)("ydb-metric-chart");Mn.X.set({plugins:[zn.YagrPlugin]});const Kn=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{dataType:a,scaleRange:n}=t,s=Qn(a),r=!e.metrics.length,i=e.metrics.map(((e,t)=>{const a=e.color||Fn[t],n=function(e,t){const a=(0,qn.Vi)(e);if(!a.isValid())throw new Error("Invalid color is passed");return a.alpha(t).toRgbString()}(a,.1);return{id:e.target,name:e.title||e.target,data:e.data,formatter:s,lineColor:a,color:n,legendColorKey:"lineColor"}}));return{data:{timeline:e.timeline,graphs:i},libraryConfig:{chart:{size:{padding:r?[10,0,10,0]:void 0},series:{type:"area",spanGaps:!0,lineWidth:1.5},select:{zoom:!1}},scales:{y:{type:"linear",range:"nice",min:(null===n||void 0===n?void 0:n.min)||0,max:null===n||void 0===n?void 0:n.max}},axes:{y:{values:s?(e,t)=>t.map(s):void 0}},tooltip:{show:!0,tracking:"sticky"}}}},Xn={timeline:[],metrics:[]},Yn=e=>{let{database:t,title:a,metrics:s,timeFrame:r="1h",autorefresh:i,width:o=400,height:l=o/1.5,chartOptions:d,onChartDataStatusChange:u,isChartVisible:m}=e;const{currentData:p,error:h,isFetching:v,status:g}=$n.useGetChartDataQuery({database:t,metrics:s,timeFrame:r,maxDataPoints:o/2},{pollingInterval:i}),x=v&&!p;n.useEffect((()=>null===u||void 0===u?void 0:u("fulfilled"===g?"success":"loading")),[g,u]);const y=Kn(p||Xn,d);return(0,c.jsxs)("div",{className:Jn(null),style:{height:l,width:o},children:[(0,c.jsx)("div",{className:Jn("title"),children:a}),x?(0,c.jsx)(D.a,{}):m?(0,c.jsxs)("div",{className:Jn("chart"),children:[(0,c.jsx)(Ln.ZP,{type:"yagr",data:y}),h?(0,c.jsx)(I.V,{className:Jn("error"),error:h}):null]}):null]})};var es=a(17176);const ts=(0,d.cn)("ydb-timeframe-selector"),as=e=>{let{value:t,onChange:a,className:n}=e;return(0,c.jsx)("div",{className:ts(null,n),children:Object.keys(Zn).map((e=>(0,c.jsx)(es.z,{view:"flat",selected:t===e,onClick:()=>a(e),children:e},e)))})},ns=(0,d.cn)("ydb-tenant-dashboard"),ss=e=>{let{database:t,charts:a}=e;const[s,i]=n.useState(!0),[o="1h",l]=(0,r.useQueryParam)("timeframe",r.StringParam),[d]=(0,y.Rj)(),u=s?0:d,m=e=>{"success"===e&&i(!1)},p=1===a.length?872:428;return(0,c.jsxs)("div",{className:ns(null),style:{display:s?"none":void 0},children:[(0,c.jsx)("div",{className:ns("controls"),children:(0,c.jsx)(as,{value:o,onChange:l})}),(0,c.jsx)("div",{className:ns("charts"),children:a.map((e=>{const a=e.metrics.map((e=>{let{target:t}=e;return t})).join("&");return(0,c.jsx)(Yn,{database:t,title:e.title,metrics:e.metrics,timeFrame:o,chartOptions:e.options,autorefresh:u,width:p,height:285.3333333333333,onChartDataStatusChange:m,isChartVisible:!s},a)}))})]})},rs=JSON.parse('{"no-data":"No data","no-pools-data":"No pools data","top-nodes.empty-data":"No such nodes","top-groups.empty-data":"No such groups","top":"Top","nodes":"nodes","shards":"shards","groups":"groups","queries":"queries","tables":"tables","by-pools-usage":"by pools usage","by-cpu-time":"by cpu time, {{executionPeriod}}","by-cpu-usage":"by cpu usage","by-load":"by load","by-memory":"by memory","by-usage":"by usage","by-size":"by size","cards.cpu-label":"CPU","cards.storage-label":"Storage","cards.memory-label":"Memory","charts.queries-per-second":"Queries per second","charts.transaction-latency":"Transactions latencies {{percentile}}","charts.cpu-usage":"CPU usage by pool","charts.storage-usage":"Tablet storage usage","charts.memory-usage":"Memory usage","storage.tablet-storage-title":"Tablet storage","storage.tablet-storage-description":"Size of user data and indexes stored in schema objects (tables, topics, etc.)","storage.db-storage-title":"Database storage","storage.db-storage-description":"Size of data stored in distributed storage with all overheads for redundancy","executed-last-hour":"executed in the last hour"}'),is=(0,ve.wZ)("ydb-diagnostics-tenant-overview",{en:rs}),os=[{title:is("charts.queries-per-second"),metrics:[{target:"queries.requests",title:is("charts.queries-per-second")}]},{title:is("charts.transaction-latency",{percentile:""}),metrics:[{target:"queries.latencies.p50",title:is("charts.transaction-latency",{percentile:"p50"})},{target:"queries.latencies.p75",title:is("charts.transaction-latency",{percentile:"p75"})},{target:"queries.latencies.p90",title:is("charts.transaction-latency",{percentile:"p90"})},{target:"queries.latencies.p99",title:is("charts.transaction-latency",{percentile:"p99"})}],options:{dataType:"ms"}}],ls=e=>{let{database:t}=e;return(0,c.jsx)(ss,{database:t,charts:os})},ds=de.h.injectEndpoints({endpoints:e=>({getHealthcheckInfo:e.query({queryFn:async(e,t)=>{let{database:a,maxLevel:n}=e,{signal:s}=t;try{return{data:await window.api.getHealthcheckInfo({database:a,maxLevel:n},{signal:s})}}catch(r){return{error:r}}},providesTags:["All"]})}),overrideExisting:"throw"}),cs={RED:0,ORANGE:1,YELLOW:2,BLUE:3,GREEN:4},us=e=>e.sort(((e,t)=>(cs[e.status]||0)-(cs[t.status]||0))),ms=e=>{let{issue:t,data:a}=e;return us(a.filter((e=>t.reason&&-1!==t.reason.indexOf(e.id))))},ps=e=>us(e.filter((t=>!e.find((e=>e.reason&&-1!==e.reason.indexOf(t.id)))))),hs=e=>{let{data:t,roots:a}=e;return a?a.map((e=>{const a=hs({roots:ms({issue:e,data:t}),data:t});return{...e,reasonsItems:a}})):[]},vs=e=>{const t={};for(const a of e)t[a.status]||(t[a.status]=0),t[a.status]++;return Object.entries(t).sort(((e,t)=>{let[a]=e,[n]=t;return(cs[a]||0)-(cs[n]||0)}))},gs=(0,Ye.P1)((e=>e),(e=>ds.endpoints.getHealthcheckInfo.select({database:e}))),xs=(0,Ye.P1)((e=>e),((e,t)=>gs(t)),((e,t)=>{var a;return(null===(a=t(e).data)||void 0===a?void 0:a.issue_log)||[]})),ys=(0,Ye.P1)(xs,(function(){return ps(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[])})),bs=(0,Ye.P1)([xs,ys],(function(){return hs({data:arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],roots:arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]})})),fs=(0,Ye.P1)(xs,(function(){return vs(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[])}));let js,Ns;!function(e){e.UNSPECIFIED="UNSPECIFIED",e.GOOD="GOOD",e.DEGRADED="DEGRADED",e.MAINTENANCE_REQUIRED="MAINTENANCE_REQUIRED",e.EMERGENCY="EMERGENCY"}(js||(js={})),function(e){e.UNSPECIFIED="UNSPECIFIED",e.GREY="GREY",e.GREEN="GREEN",e.BLUE="BLUE",e.YELLOW="YELLOW",e.ORANGE="ORANGE",e.RED="RED"}(Ns||(Ns={}));const Ss=function(e){let{autorefresh:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{currentData:a,isFetching:n,error:s,refetch:r}=ds.useGetHealthcheckInfoQuery({database:e},{pollingInterval:t}),i=(null===a||void 0===a?void 0:a.self_check_result)||js.UNSPECIFIED,o=(0,y.ix)((t=>fs(t,e)));return{issueTrees:(0,y.ix)((t=>bs(t,e))),issuesStatistics:o,loading:void 0===a&&n,error:s,refetch:r,selfCheckResult:i}};var ws=a(40067),Ts=a(75850);const Cs={[Ns.UNSPECIFIED]:Ts.K.Grey,[Ns.GREY]:Ts.K.Grey,[Ns.GREEN]:Ts.K.Green,[Ns.BLUE]:Ts.K.Blue,[Ns.YELLOW]:Ts.K.Yellow,[Ns.ORANGE]:Ts.K.Orange,[Ns.RED]:Ts.K.Red},Es=(0,d.cn)("issue-tree-item"),Ps=e=>{let{status:t,message:a,type:n,onClick:s}=e;return(0,c.jsxs)("div",{className:Es(),onClick:s,children:[(0,c.jsx)("div",{className:Es("field",{status:!0}),children:(0,c.jsx)(Ea.A,{mode:"icons",status:t,name:n})}),(0,c.jsx)("div",{className:Es("field",{message:!0}),children:a})]})},Is=(0,d.cn)("issue-tree"),Ds=e=>{let{issueTree:t}=e;const[a,s]=n.useState({}),r=n.useCallback((e=>e?(0,c.jsx)("div",{className:Is("info-panel"),children:(0,c.jsx)(ea(),{data:e,search:!1,isExpanded:()=>!0,className:Is("inspector")})}):null),[]),i=n.useCallback((e=>e.map((e=>{const{id:t}=e,{status:n,message:o,type:l,reasonsItems:d,level:u,...m}=e,p="undefined"===typeof a[t]||a[t],h=()=>{s((e=>({...e,[t]:!p})))};return(0,c.jsxs)(ws.L,{name:(0,c.jsx)(Ps,{status:Cs[n],message:o,type:l}),collapsed:p,hasArrow:!0,onClick:h,onArrowClick:h,level:u-1,children:[r(wn()(m,["reason"])),i(d||[])]},t)}))),[a,r]);return(0,c.jsx)("div",{className:Is(),children:(0,c.jsx)("div",{className:Is("block"),children:i([t])})})},Rs=JSON.parse('{"title.healthcheck":"Healthcheck","label.update":"Update","label.show-details":"Show details","label.issues":"Issues:","status_message.ok":"No issues","no-data":"no healthcheck data"}'),As=JSON.parse('{"title.healthcheck":"Healthcheck","label.update":"\u041e\u0431\u043d\u043e\u0432\u0438\u0442\u044c","label.show-details":"\u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e\u0441\u0442\u0438","label.issues":"\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u044b:","status_message.ok":"\u041d\u0435\u0442 \u043f\u0440\u043e\u0431\u043b\u0435\u043c","no-data":"\u043d\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0445 healthcheck"}'),_s=(0,ve.wZ)("ydb-diagnostics-healthcheck",{ru:As,en:Rs}),ks=(0,d.cn)("healthcheck");function Os(e){let{tenantName:t}=e;const[a]=(0,y.Rj)(),{issueTrees:s,loading:r,error:i}=Ss(t,{autorefresh:a});return(0,c.jsx)("div",{className:ks("details"),children:(0,c.jsx)("div",{className:ks("details-content-wrapper"),children:i?(0,c.jsx)(I.V,{error:i,defaultMessage:_s("no-data")}):r?(0,c.jsx)(D.a,{size:"m"}):s&&s.length?(0,c.jsx)(n.Fragment,{children:s.map((e=>(0,c.jsx)(Ds,{issueTree:e},e.id)))}):_s("status_message.ok")})})}var Ms=a(35240),Ls=a(32257),zs=a(96261),qs=a(68010),Fs=a(80518),Qs=a(71586);const Bs=(0,d.cn)("ydb-diagnostic-card");function Us(e){let{children:t,className:a,active:n}=e;return(0,c.jsx)("div",{className:Bs({active:n},a),children:t})}const Hs=(0,d.cn)("healthcheck"),Gs={[js.UNSPECIFIED]:Ls.Z,[js.GOOD]:zs.Z,[js.DEGRADED]:qs.Z,[js.MAINTENANCE_REQUIRED]:Fs.Z,[js.EMERGENCY]:Qs.Z};function Zs(e){const{tenantName:t,active:a}=e,[n]=(0,y.Rj)(),{currentData:s,isFetching:r,error:i}=ds.useGetHealthcheckInfoQuery({database:t},{pollingInterval:n}),o=r&&void 0===s;return(0,c.jsxs)(Us,{className:Hs("preview"),active:a,children:[(0,c.jsx)("div",{className:Hs("preview-header"),children:(0,c.jsx)("div",{className:Hs("preview-title-wrapper"),children:(0,c.jsx)("div",{className:Hs("preview-title"),children:_s("title.healthcheck")})})}),(()=>{if(i)return(0,c.jsx)(I.V,{error:i,defaultMessage:_s("no-data")});if(o)return(0,c.jsx)(D.a,{size:"m"});const e=(null===s||void 0===s?void 0:s.self_check_result)||js.UNSPECIFIED,t=e.toLowerCase();return(0,c.jsx)("div",{className:Hs("preview-content"),children:(0,c.jsxs)("div",{className:Hs("preview-issue",{[t]:!0}),children:[(0,c.jsx)(Be.J,{className:Hs("preview-status-icon"),data:Gs[e]}),(0,c.jsx)("div",{className:Hs("self-check-status-indicator"),children:e.replace(/_/g," ")})]})})})()]})}var Vs=a(67359),Ws=a(98366);const $s=(0,d.cn)("ydb-metrics-card"),Js=e=>{let t;return"Warning"===e&&(t=Ts.K.Yellow),"Danger"===e&&(t=Ts.K.Red),t?(0,c.jsx)(Ws.J,{status:t,mode:"icons",size:"l"}):null};function Ks(e){let{active:t,label:a,status:n,metrics:s}=e;return(0,c.jsxs)(Us,{className:$s({active:t}),active:t,children:[(0,c.jsxs)("div",{className:$s("header"),children:[a&&(0,c.jsx)("div",{className:$s("label"),children:a}),Js(n)]}),(0,c.jsx)("div",{className:$s("content"),children:s.map(((e,t)=>{let{title:a,...n}=e;return(0,c.jsxs)("div",{className:$s("metric"),children:[(0,c.jsx)("div",{className:$s("metric-title"),children:a}),(0,c.jsx)(Vs.y,{size:"xs",colorizeProgress:!0,...n})]},t)}))})]})}const Xs=(0,d.cn)("metrics-cards");function Ys(e){let{poolsCpuStats:t,memoryStats:a,blobStorageStats:n,tabletStorageStats:s,tenantName:r}=e;const i=(0,Oa.TH)(),{metricsTab:o}=(0,y.ix)((e=>e.tenant)),l=(0,w.mB)(i),d=e=>e===o?"":e,u={[f.Xk.cpu]:(0,qe.Sj)({...l,[qe.XV.metricsTab]:d(f.Xk.cpu)}),[f.Xk.storage]:(0,qe.Sj)({...l,[qe.XV.metricsTab]:d(f.Xk.storage)}),[f.Xk.memory]:(0,qe.Sj)({...l,[qe.XV.metricsTab]:d(f.Xk.memory)}),[f.Xk.healthcheck]:(0,qe.Sj)({...l,[qe.XV.metricsTab]:d(f.Xk.healthcheck)})};return(0,c.jsxs)("div",{className:Xs(),children:[(0,c.jsx)(N.rU,{to:u.cpu,className:Xs("tab"),children:(0,c.jsx)(er,{poolsCpuStats:t,active:o===f.Xk.cpu})}),(0,c.jsx)(N.rU,{to:u.storage,className:Xs("tab"),children:(0,c.jsx)(tr,{blobStorageStats:n,tabletStorageStats:s,active:o===f.Xk.storage})}),(0,c.jsx)(N.rU,{to:u.memory,className:Xs("tab"),children:(0,c.jsx)(ar,{memoryStats:a,active:o===f.Xk.memory})}),(0,c.jsx)(N.rU,{to:u.healthcheck,className:Xs("tab"),children:(0,c.jsx)(Zs,{tenantName:r,active:o===f.Xk.healthcheck})})]})}function er(e){let{poolsCpuStats:t=[],active:a}=e,n=Ms.L.Unspecified;const s=t.filter((e=>!("Batch"===e.name||"IO"===e.name))).map((e=>{const{name:t,usage:a,limit:s,used:r}=e,i=(0,On.Vn)(a);return Ms.l[i]>Ms.l[n]&&(n=i),{title:t,value:r,capacity:s,warningThreshold:On.hJ,dangerThreshold:On.Gz}}));return(0,c.jsx)(Ks,{label:is("cards.cpu-label"),active:a,metrics:s,status:n})}function tr(e){let{blobStorageStats:t=[],tabletStorageStats:a,active:n}=e,s=Ms.L.Unspecified;const r=(a||t).map((e=>{const{name:t,used:a,limit:n,usage:r}=e,i=(0,On._W)(r);return Ms.l[i]>Ms.l[s]&&(s=i),{title:t,value:a,capacity:n,warningThreshold:On._g,dangerThreshold:On.nD,formatValues:_.QO}}));return(0,c.jsx)(Ks,{label:is("cards.storage-label"),active:n,metrics:r,status:s})}function ar(e){let{active:t,memoryStats:a=[]}=e,n=Ms.L.Unspecified;const s=a.map((e=>{const{name:t,used:a,limit:s,usage:r}=e,i=(0,On.Lv)(r);return Ms.l[i]>Ms.l[n]&&(n=i),{title:t,value:a,capacity:s,warningThreshold:On.B8,dangerThreshold:On.nr,formatValues:_.QO}}));return(0,c.jsx)(Ks,{label:is("cards.memory-label"),active:t,metrics:s,status:n})}var nr=a(3534),sr=a(69),rr=a(54997);const ir=(0,d.cn)("tenant-overview");function or(e){let{title:t,error:a,loading:s,tableClassNameModifiers:r={},...i}=e;return(0,c.jsxs)(n.Fragment,{children:[(0,c.jsx)("div",{className:ir("title"),children:t}),a?(0,c.jsx)(I.V,{error:a}):null,(0,c.jsx)("div",{className:ir("table",r),children:a&&0===i.data.length?null:s?(0,c.jsx)(oe.h,{rows:x.fl}):(0,c.jsx)(ie.G,{settings:x.E6,...i})})]})}var lr=a(68036);const dr=e=>{let{prefix:t=is("top"),entity:a,postfix:s,link:r,onClick:i}=e;return r?(0,c.jsxs)(n.Fragment,{children:[t," ",(0,c.jsx)(lr.h,{to:r,onClick:i,children:a})," ",s]}):`${t} ${a} ${s}`};function cr(e){let{tenantName:t,additionalNodesProps:a}=e;const n=(0,y.A3)(),[s]=(0,y.Rj)(),r=(0,sr.LF)(null===a||void 0===a?void 0:a.getNodeRef),{currentData:i,isFetching:o,error:l}=nr.k.useGetNodesQuery({tenant:t,type:"any",sort:"-CPU",limit:x.fl},{pollingInterval:s}),d=o&&void 0===i,u=(null===i||void 0===i?void 0:i.Nodes)||[],m=dr({entity:is("nodes"),postfix:is("by-pools-usage"),link:(0,qe.Sj)({...n,[qe.XV.diagnosticsTab]:f.qQ.nodes})});return(0,c.jsx)(or,{columnsWidthLSKey:rr.t5,data:u,columns:r,title:m,loading:d,error:l,emptyDataMessage:is("top-nodes.empty-data")})}function ur(e){let{tenantName:t,additionalNodesProps:a}=e;const n=(0,y.A3)(),[s]=(0,y.Rj)(),r=(0,sr.sQ)(null===a||void 0===a?void 0:a.getNodeRef),{currentData:i,isFetching:o,error:l}=nr.k.useGetNodesQuery({tenant:t,type:"any",sort:"-LoadAverage",limit:x.fl},{pollingInterval:s}),d=o&&void 0===i,u=(null===i||void 0===i?void 0:i.Nodes)||[],m=dr({entity:is("nodes"),postfix:is("by-load"),link:(0,qe.Sj)({...n,[qe.XV.diagnosticsTab]:f.qQ.nodes})});return(0,c.jsx)(or,{columnsWidthLSKey:rr.t5,data:u,columns:r,title:m,loading:d,error:l,emptyDataMessage:is("top-nodes.empty-data")})}var mr=a(83786),pr=a(30667),hr=a(99683);const vr=(0,d.cn)("kv-truncated-query"),gr=e=>{let{value:t="",maxQueryHeight:a=6}=e;const s=t.split("\n");if(s.length>a){const e=s.slice(0,a).join("\n"),t="\n...\nThe request was truncated. Click on the line to show the full query on the query tab";return(0,c.jsxs)(n.Fragment,{children:[(0,c.jsx)("span",{className:vr(),children:e}),(0,c.jsx)("span",{className:vr("message",{color:"secondary"}),children:t})]})}return(0,c.jsx)(n.Fragment,{children:t})},xr=e=>{let{value:t=""}=e;return(0,c.jsx)(hr.l,{contentClassName:vr("popover-content"),content:t,children:t})},yr="CPUTime",br="QueryText",fr="EndTime",jr="ReadRows",Nr="ReadBytes",Sr="UserSID",wr="OneLineQueryText",Tr="QueryHash",Cr="Duration",Er="CPUCores",Pr="PeakTime",Ir="IntervalEnd",Dr=[Er,"DataSize","InFlightTxCount"],Rr=[yr,fr,jr,Nr,Sr,Cr],Ar=e=>Object.values(Dr).includes(e);var _r=a(47694),kr=a.n(_r);const Or=6,Mr={...x.LE,dynamicRenderType:"variable"},Lr=(0,d.cn)("kv-top-queries"),zr="topQueriesColumnsWidth",qr={name:yr,sortAccessor:e=>Number(e.CPUTimeUs),render:e=>{var t;let{row:a}=e;return(0,tt.zm)((0,tt.BO)(null!==(t=a.CPUTimeUs)&&void 0!==t?t:void 0))},width:120,align:fe.ZP.RIGHT,sortable:!1},Fr={name:br,sortAccessor:e=>Number(e.CPUTimeUs),render:e=>{var t;let{row:a}=e;return(0,c.jsx)("div",{className:Lr("query"),children:(0,c.jsx)(gr,{value:null===(t=a.QueryText)||void 0===t?void 0:t.toString(),maxQueryHeight:Or})})},sortable:!1,width:500},Qr={name:fr,render:e=>{let{row:t}=e;return(0,_.o0)(new Date(t.EndTime).getTime())},align:fe.ZP.RIGHT,width:200},Br={name:jr,render:e=>{let{row:t}=e;return(0,_.uf)(t.ReadRows)},sortAccessor:e=>Number(e.ReadRows),align:fe.ZP.RIGHT,width:150},Ur={name:Nr,render:e=>{let{row:t}=e;return(0,_.uf)(t.ReadBytes)},sortAccessor:e=>Number(e.ReadBytes),align:fe.ZP.RIGHT,width:150},Hr={name:Sr,render:e=>{let{row:t}=e;return(0,c.jsx)("div",{className:Lr("user-sid"),children:t.UserSID||"\u2013"})},sortAccessor:e=>String(e.UserSID),align:fe.ZP.LEFT},Gr={name:wr,header:"QueryText",render:e=>{var t;let{row:a}=e;return(0,c.jsx)(xr,{value:null===(t=a.QueryText)||void 0===t?void 0:t.toString()})},sortable:!1,width:500},Zr={name:Tr,render:e=>{let{row:t}=e;return a=String(t.QueryText),(kr().str(a)>>>0).toString(16).toUpperCase().padStart(8,"0");var a},width:130,sortable:!1},Vr=[qr,Fr,Qr,{name:Cr,header:"Duration",render:e=>{var t;let{row:a}=e;return(0,tt.zm)((0,tt.BO)(null!==(t=a.Duration)&&void 0!==t?t:void 0))},sortAccessor:e=>Number(e.Duration),align:fe.ZP.RIGHT,width:150},Br,Ur,Hr],Wr=[Zr,Gr,qr];function $r(e){let{tenantName:t}=e;const a=(0,y.zL)(),s=(0,Oa.TH)(),r=(0,Oa.k6)(),i=(0,w.mB)(s),[o]=(0,y.Rj)(),l=Wr,{currentData:d,isFetching:u,error:m}=pr.MU.useGetTopQueriesQuery({database:t},{pollingInterval:o}),p=u&&void 0===d,{result:h}=d||{},v=n.useCallback((e=>{const{QueryText:t}=e;a((0,mr.B8)({input:t}));const n=(0,w.mB)(s),i=(0,qe.Sj)({...n,[f.bS]:f.m2.query,[qe.XV.queryTab]:f._0.newQuery});r.push(i)}),[a,r,s]),g=dr({entity:is("queries"),postfix:is("by-cpu-time",{executionPeriod:is("executed-last-hour")}),onClick:()=>{a((0,pr.Im)({from:void 0,to:void 0}))},link:(0,qe.Sj)({...i,[qe.XV.diagnosticsTab]:f.qQ.topQueries})});return(0,c.jsx)(or,{columnsWidthLSKey:zr,data:h||[],columns:l,onRowClick:v,title:g,loading:p,error:(0,le.fV)(m),rowClassName:()=>ir("top-queries-row")})}function Jr(e,t){return`SELECT\n ${t?`CAST(SUBSTRING(CAST(Path AS String), ${t.length}) AS Utf8) AS Path`:"Path"},\n TabletId,\n CPUCores,\nFROM \`.sys/partition_stats\`\nWHERE\n Path='${e}'\n OR Path LIKE '${e}/%'\nORDER BY CPUCores DESC\nLIMIT ${x.fl}`}const Kr=de.h.injectEndpoints({endpoints:e=>({getTopShards:e.query({queryFn:async(e,t)=>{let{database:a,path:n=""}=e,{signal:s}=t;try{const e=await window.api.sendQuery({schema:"modern",query:Jr(n,a),database:a,action:"execute-scan"},{signal:s,withRetries:!0});return(0,le.gW)(e)?{error:e}:{data:(0,le.gY)(e)}}catch(r){return{error:r||new Error("Unauthorized")}}},providesTags:["All"]})}),overrideExisting:"throw"});var Xr=a(41919),Yr=a(86017);function ei(e){let{path:t,location:a,...n}=e;const s=(0,w.mB)(a),r=(0,w.vF)({...s,schema:t});return(0,c.jsx)(Yr.r,{view:"normal",...n,href:r})}var ti=a(80816);const ai=(0,a(99106).p)(60,80,["success","warning","danger"]);var ni=a(48169),si=a(92398);const ri="topShardsColumnsWidth",ii="TabletId",oi="CPUCores",li="DataSize",di="Path",ci="NodeId",ui="InFlightTxCount",mi={TabletId:"TabletId",CPUCores:"CPUCores",DataSize:"DataSize (B)",Path:"Path",NodeId:"NodeId",PeakTime:"PeakTime",InFlightTxCount:"InFlightTxCount",IntervalEnd:"IntervalEnd"};const pi=(e,t)=>({name:di,header:mi[di],render:a=>{let{row:n}=a;return(0,c.jsx)(ei,{path:e+n.Path,location:t,children:n.Path})},sortable:!1,width:300}),hi={name:oi,header:mi[oi],render:e=>{let{row:t}=e;return a=t.CPUCores||0,`${(0,_.W0)(100*Number(a),2)}%`;var a},align:fe.ZP.RIGHT},vi={name:li,header:mi[li],render:e=>{let{row:t}=e;return(0,_.uf)(t.DataSize)},align:fe.ZP.RIGHT},gi={name:ii,header:mi[ii],render:e=>{var t;let{row:a}=e;return a.TabletId?(0,c.jsx)(Ea.A,{name:null===(t=a.TabletId)||void 0===t?void 0:t.toString(),path:(0,w.fK)(a.TabletId),hasClipboardButton:!0,showStatus:!1,additionalControls:(0,c.jsx)(Xr.Q,{href:(0,ni.wz)(a.TabletId)})}):"\u2013"},sortable:!1,width:220},xi={name:ci,header:mi[ci],render:e=>{let{row:t}=e;return t.NodeId?(0,c.jsx)(yt.h,{to:(0,si.a3)(t.NodeId),children:t.NodeId}):"\u2013"},align:fe.ZP.RIGHT},yi={name:oi,header:mi[oi],render:e=>{let{row:t}=e;return(0,c.jsx)(ti.a,{value:(0,_.W0)(100*Number(t.CPUCores),2),theme:ai(100*Number(t.CPUCores))})},align:fe.ZP.RIGHT,sortable:!1,width:140,resizeMinWidth:140},bi={name:ui,header:mi[ui],render:e=>{let{row:t}=e;return(0,_.uf)(t.InFlightTxCount)},align:fe.ZP.RIGHT},fi=e=>{let{tenantName:t,path:a}=e;const n=(0,Oa.TH)(),s=(0,w.mB)(n),[r]=(0,y.Rj)(),{currentData:i,isFetching:o,error:l}=Kr.useGetTopShardsQuery({database:t,path:a},{pollingInterval:r}),d=o&&void 0===i,{result:u}=i||{},m=((e,t)=>[gi,pi(e,t),yi])(t,n),p=dr({entity:is("shards"),postfix:is("by-cpu-usage"),link:(0,qe.Sj)({...s,[qe.XV.diagnosticsTab]:f.qQ.topShards})});return(0,c.jsx)(or,{columnsWidthLSKey:ri,data:u||[],columns:m,title:p,loading:d,error:(0,le.fV)(l)})},ji=[{title:is("charts.cpu-usage"),metrics:["IC","IO","Batch","User","System"].map((e=>({target:`resources.cpu.${e}.usage`,title:e}))),options:{dataType:"percent",scaleRange:{min:0,max:1}}}];function Ni(e){let{tenantName:t,additionalNodesProps:a}=e;return(0,c.jsxs)(n.Fragment,{children:[(0,c.jsx)(ss,{database:t,charts:ji}),(0,c.jsx)(ur,{tenantName:t,additionalNodesProps:a}),(0,c.jsx)(cr,{tenantName:t,additionalNodesProps:a}),(0,c.jsx)(fi,{tenantName:t,path:t}),(0,c.jsx)($r,{tenantName:t})]})}function Si(e){let{tenantName:t,additionalNodesProps:a}=e;const n=(0,y.A3)(),[s]=(0,y.Rj)(),r=(0,sr.Cj)({getNodeRef:null===a||void 0===a?void 0:a.getNodeRef}),{currentData:i,isFetching:o,error:l}=nr.k.useGetNodesQuery({tenant:t,type:"any",tablets:!0,sort:"-Memory",limit:x.fl},{pollingInterval:s}),d=o&&void 0===i,u=(null===i||void 0===i?void 0:i.Nodes)||[],m=dr({entity:is("nodes"),postfix:is("by-memory"),link:(0,qe.Sj)({...n,[qe.XV.diagnosticsTab]:f.qQ.nodes})});return(0,c.jsx)(or,{columnsWidthLSKey:rr.t5,data:u,columns:r,title:m,loading:d,error:l,emptyDataMessage:is("top-nodes.empty-data")})}const wi=[{title:is("charts.memory-usage"),metrics:[{target:"resources.memory.used_bytes",title:is("charts.memory-usage")}],options:{dataType:"size"}}];function Ti(e){let{tenantName:t}=e;return(0,c.jsxs)(n.Fragment,{children:[(0,c.jsx)(ss,{database:t,charts:wi}),(0,c.jsx)(Si,{tenantName:t})]})}var Ci=a(23373),Ei=a(33058),Pi=a(6130),Ii=a(51323);const Di=e=>{const{groups:t=[]}=e||{},a=[...t].sort(((e,t)=>t.Usage-e.Usage));return a.slice(0,x.fl)};function Ri(e){let{tenant:t}=e;const a=(0,y.A3)(),s=(0,T.rU)(),r=(0,T.tS)(),[i]=(0,y.Rj)(),o=(0,Pi.m)(),{currentData:l,isFetching:d,error:u}=Ei.y.useGetStorageGroupsInfoQuery({tenant:t,sort:"-Usage",with:"all",limit:x.fl,shouldUseGroupsHandler:r},{pollingInterval:i,skip:!s}),m=d&&void 0===l,p=n.useMemo((()=>Di(l)),[l]),h=dr({entity:is("groups"),postfix:is("by-usage"),link:(0,qe.Sj)({...a,[qe.XV.diagnosticsTab]:f.qQ.storage})});return(0,c.jsx)(or,{columnsWidthLSKey:Ii.Ty,data:p,columns:o,title:h,loading:m||!s,error:u})}const Ai=e=>`\nSELECT\n Path, SUM(DataSize) as Size\nFROM \`${e}/.sys/partition_stats\`\nGROUP BY Path\n ORDER BY Size DESC\n LIMIT ${x.fl}\n`,_i=de.h.injectEndpoints({endpoints:e=>({getTopTables:e.query({queryFn:async(e,t)=>{let{path:a}=e,{signal:n}=t;try{const e=await window.api.sendQuery({schema:"modern",query:Ai(a),database:a,action:"execute-scan"},{signal:n,withRetries:!0});return(0,le.gW)(e)?{error:e}:{data:(0,le.gY)(e)}}catch(s){return{error:s||"Unauthorized"}}},providesTags:["All"]})}),overrideExisting:"throw"}),ki="topTablesTableColumnsWidth";function Oi(e){let{path:t}=e;const a=(0,Oa.TH)(),[n]=(0,y.Rj)(),{currentData:s,error:r,isFetching:i}=_i.useGetTopTablesQuery({path:t},{pollingInterval:n}),o=i&&void 0===s,{result:l}=s||{},d=[{name:"Size",width:100,sortable:!1,render:e=>{let{row:t}=e;return(e=>{const t=(0,et.dT)(null!==l&&void 0!==l&&l.length?Number(l[0].Size):0,0);return(0,et.td)({value:e,size:t,precision:1})})(Number(t.Size))},align:fe.ZP.RIGHT},{name:"Path",width:700,sortable:!1,render:e=>{let{row:t}=e;return t.Path?(0,c.jsx)(hr.l,{content:t.Path,children:(0,c.jsx)(ei,{path:String(t.Path),location:a,children:t.Path})}):null}}],u=dr({entity:is("tables"),postfix:is("by-size")});return(0,c.jsx)(or,{columnsWidthLSKey:ki,data:l||[],columns:d,title:u,loading:o,error:(0,le.fV)(r)})}const Mi=[{title:is("charts.storage-usage"),metrics:[{target:"resources.storage.used_bytes",title:is("charts.storage-usage")}],options:{dataType:"size"}}];function Li(e){let{tenantName:t,metrics:a}=e;const{blobStorageUsed:s,tabletStorageUsed:r,blobStorageLimit:i,tabletStorageLimit:o}=a,l=[{label:(0,c.jsx)(ft,{text:is("storage.tablet-storage-title"),popoverContent:is("storage.tablet-storage-description")}),value:(0,c.jsx)(Vs.y,{value:r,capacity:o,formatValues:_.QO,colorizeProgress:!0,warningThreshold:75,dangerThreshold:85})},{label:(0,c.jsx)(ft,{text:is("storage.db-storage-title"),popoverContent:is("storage.db-storage-description")}),value:(0,c.jsx)(Vs.y,{value:s,capacity:i,formatValues:_.QO,colorizeProgress:!0,warningThreshold:75,dangerThreshold:85})}];return(0,c.jsxs)(n.Fragment,{children:[(0,c.jsx)(ss,{database:t,charts:Mi}),(0,c.jsx)(Ci._,{className:ir("storage-info"),title:"Storage details",info:l}),(0,c.jsx)(Oi,{path:t}),(0,c.jsx)(Ri,{tenant:t})]})}function zi(e){var t,a,n;let{tenantName:s,additionalTenantProps:r,additionalNodesProps:i}=e;const{metricsTab:o}=(0,y.ix)((e=>e.tenant)),[l]=(0,y.Rj)(),{currentData:d,isFetching:u}=C.$1.useGetTenantInfoQuery({path:s},{pollingInterval:l}),m=u&&void 0===d,{Name:p,Type:h,Overall:v}=d||{},b=(0,me.TV)(h),{data:j}=(0,g.hz)({path:s,database:s}),{Tables:N,Topics:S}=(null===j||void 0===j||null===(t=j.PathDescription)||void 0===t||null===(a=t.DomainDescription)||void 0===a?void 0:a.DiskSpaceUsage)||{},w=[null===N||void 0===N?void 0:N.TotalSize,null===S||void 0===S?void 0:S.AccountSize,null===S||void 0===S?void 0:S.DataSize,null===S||void 0===S?void 0:S.ReserveSize,null===S||void 0===S?void 0:S.UsedReserveSize].reduce(((e,t)=>t?e+Number(t):e),0),T={...d,Metrics:{...null===d||void 0===d?void 0:d.Metrics,Storage:String(w)}},{blobStorage:E,tabletStorage:P,blobStorageLimit:I,tabletStorageLimit:D,poolsStats:R,memoryStats:A,blobStorageStats:_,tabletStorageStats:k}=(0,On.HH)(T),O={blobStorageUsed:E,blobStorageLimit:I,tabletStorageUsed:P,tabletStorageLimit:D};return m?(0,c.jsx)("div",{className:ir("loader"),children:(0,c.jsx)(kn.a,{size:"m"})}):(0,c.jsxs)("div",{className:ir(),children:[(0,c.jsxs)("div",{className:ir("info"),children:[(0,c.jsx)("div",{className:ir("top-label"),children:b}),(0,c.jsxs)("div",{className:ir("top"),children:[(0,c.jsx)("div",{className:ir("tenant-name-wrapper"),children:(0,c.jsx)(Ea.A,{status:v,name:p||x.FU,withLeftTrim:!0,hasClipboardButton:Boolean(d),clipboardButtonAlwaysVisible:!0})}),null===r||void 0===r||null===(n=r.getMonitoringLink)||void 0===n?void 0:n.call(r,p,h)]}),(0,c.jsx)(Ys,{poolsCpuStats:R,memoryStats:A,blobStorageStats:_,tabletStorageStats:k,tenantName:s})]}),(()=>{switch(o){case f.Xk.cpu:return(0,c.jsx)(Ni,{tenantName:s,additionalNodesProps:i});case f.Xk.storage:return(0,c.jsx)(Li,{tenantName:s,metrics:O});case f.Xk.memory:return(0,c.jsx)(Ti,{tenantName:s});case f.Xk.healthcheck:return(0,c.jsx)(Os,{tenantName:s});default:return(0,c.jsx)(ls,{database:s})}})()]})}const qi=(0,d.cn)("kv-detailed-overview");const Fi=function(e){const{type:t,tenantName:a,path:n,additionalTenantProps:s,additionalNodesProps:r}=e,i=a===n;return(0,c.jsx)("div",{className:qi(),children:i?(0,c.jsx)("div",{className:qi("section"),children:(0,c.jsx)(zi,{tenantName:a,additionalTenantProps:s,additionalNodesProps:r})}):(0,c.jsx)(_n,{type:t,path:n,database:a})})},Qi={id:f.qQ.overview,title:"Info"},Bi={id:f.qQ.schema,title:"Schema"},Ui={id:f.qQ.topQueries,title:"Top queries"},Hi={id:f.qQ.topShards,title:"Top shards"},Gi={id:f.qQ.nodes,title:"Nodes"},Zi={id:f.qQ.tablets,title:"Tablets"},Vi={id:f.qQ.storage,title:"Storage"},Wi={id:f.qQ.network,title:"Network"},$i={id:f.qQ.describe,title:"Describe"},Ji={id:f.qQ.hotKeys,title:"Hot keys"},Ki={id:f.qQ.graph,title:"Graph"},Xi={id:f.qQ.consumers,title:"Consumers"},Yi={id:f.qQ.partitions,title:"Partitions"},eo=[Qi,Zi,$i],to=[Qi,Ui,Hi,Gi,Zi,Vi,Wi,$i,{id:f.qQ.configs,title:"Configs"}],ao=[Qi,Bi,Hi,Gi,Ki,Zi,Ji,$i],no=[Qi,Bi,Hi,Gi,Ki,Zi,$i],so=[Qi,Hi,Gi,$i],ro=[Qi,Xi,Yi,Gi,Zi,$i],io=[Qi,Xi,Yi,Gi,Zi,$i],oo=[Qi,$i],lo=[Qi,Bi,$i],co=[Qi,Bi,$i],uo={[Oe.gb.EPathTypeInvalid]:void 0,[Oe.gb.EPathTypeSubDomain]:to,[Oe.gb.EPathTypeExtSubDomain]:to,[Oe.gb.EPathTypeColumnStore]:to,[Oe.gb.EPathTypeTable]:ao,[Oe.gb.EPathTypeColumnTable]:no,[Oe.gb.EPathTypeDir]:so,[Oe.gb.EPathTypeTableIndex]:so,[Oe.gb.EPathTypeCdcStream]:ro,[Oe.gb.EPathTypePersQueueGroup]:io,[Oe.gb.EPathTypeExternalDataSource]:oo,[Oe.gb.EPathTypeExternalTable]:lo,[Oe.gb.EPathTypeView]:co,[Oe.gb.EPathTypeReplication]:eo},mo=e=>e&&uo[e]||so,po=e=>{let{hasFeatureFlags:t}=e;return t?to:to.filter((e=>e.id!==f.qQ.configs))};var ho=a(77280),vo=a(91387);const go=de.h.injectEndpoints({endpoints:e=>({getHotKeys:e.query({queryFn:async(e,t)=>{let{path:a,database:n}=e,{signal:s}=t;try{var r;const e=await window.api.getHotKeys({path:a,database:n,enableSampling:!0},{signal:s});if(Array.isArray(e.hotkeys))return{data:e.hotkeys};await Promise.race([new Promise((e=>{setTimeout(e,5e3)})),new Promise(((e,t)=>{s.addEventListener("abort",t)}))]);return{data:null!==(r=(await window.api.getHotKeys({path:a,database:n,enableSampling:!1},{signal:s})).hotkeys)&&void 0!==r?r:null}}catch(i){return{error:i}}},providesTags:["All"]})}),overrideExisting:"throw"}),xo=JSON.parse('{"hot-keys-collecting":"Please wait a little while we are collecting hot keys samples...","no-data":"No information about hot keys","help":"Hot keys contains a list of table primary key values that are accessed most often. Sample is collected upon request to the tab during 5s time interval. Samples column indicates how many requests to the particular key value were registered during collection phase."}'),yo=(0,ve.wZ)("ydb-hot-keys",{en:xo});var bo;function fo(){return fo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},fo.apply(this,arguments)}const jo=function(e){return n.createElement("svg",fo({viewBox:"0 0 12 7",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),bo||(bo=n.createElement("path",{d:"M8 7h3V5h1V2H6.66C6.085.79 4.86 0 3.5 0 1.57 0 0 1.57 0 3.5S1.57 7 3.5 7c1.36 0 2.59-.79 3.16-2H8v2zm2-1H9V4H5.97l-.115.335a2.5 2.5 0 110-1.67L5.97 3H11v1h-1v2zM3.5 5a1.5 1.5 0 110-3 1.5 1.5 0 010 3zM3 3.5a.5.5 0 111 0 .5.5 0 01-1 0z"})))},No=(0,d.cn)("ydb-hot-keys"),So={accessSample:"accessSample",keyValues:"keyValues"},wo=function(){return[...(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(((e,t)=>({name:e,header:(0,c.jsxs)("div",{className:No("primary-key-column"),children:[(0,c.jsx)(Be.J,{data:jo,width:12,height:7}),e]}),render:e=>{let{row:a}=e;return a.keyValues[t]},align:fe.ZP.RIGHT,sortable:!1}))),{name:So.accessSample,header:"Samples",render:e=>{let{row:t}=e;return t.accessSample},align:fe.ZP.RIGHT,sortable:!1}]};function To(e){var t,a;let{path:s,database:r}=e;const{currentData:i,isFetching:o,error:l}=go.useGetHotKeysQuery({path:s,database:r}),d=o&&void 0===i,{data:u,isLoading:m}=(0,g.hz)({path:s,database:r}),p=null===u||void 0===u||null===(t=u.PathDescription)||void 0===t||null===(a=t.Table)||void 0===a?void 0:a.KeyColumnNames,h=n.useMemo((()=>wo(p)),[p]);return(0,c.jsxs)(n.Fragment,{children:[(0,c.jsx)(Co,{}),d||m?(0,c.jsx)("div",{children:yo("hot-keys-collecting")}):l?(0,c.jsx)(I.V,{error:l}):i?(0,c.jsx)(ie.G,{wrapperClassName:No("table"),columns:h,data:i,settings:x.LE,initialSortOrder:{columnId:So.accessSample,order:fe.ZP.DESCENDING}}):(0,c.jsx)("div",{children:yo("no-data")})]})}function Co(){const[e,t]=(0,y.yu)(x.RI);return e?null:(0,c.jsxs)(vo.Z,{theme:"info",view:"filled",type:"container",className:No("help-card"),children:[yo("help"),(0,c.jsx)(es.z,{className:No("help-card__close-button"),view:"flat",onClick:()=>t(!0),children:(0,c.jsx)(Be.J,{data:ho.Z,size:18})})]})}var Eo=a(56350),Po=a(74221);const Io=de.h.injectEndpoints({endpoints:e=>({getNetworkInfo:e.query({queryFn:async(e,t)=>{let{signal:a}=t;try{return{data:await window.api.getNetwork({path:e,database:e},{signal:a})}}catch(n){return{error:n}}},providesTags:["All"]})}),overrideExisting:"throw"});var Do=a(80839);const Ro=(0,d.cn)("node-network");function Ao(){}function _o(e){let{nodeId:t,connected:a,capacity:s,rack:r,status:i,onClick:o=Ao,onMouseEnter:l=Ao,onMouseLeave:d=Ao,showID:u,isBlurred:m}=e;const p=n.useRef(null),h=i||function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;const a=Math.floor(e/t*100);return 100===a?Ts.K.Green:a>=70?Ts.K.Yellow:a>=1?Ts.K.Red:Ts.K.Grey}(a,s);return(0,c.jsx)("div",{ref:p,className:Ro({[h.toLowerCase()]:!0,id:u,blur:m}),onMouseEnter:()=>{l(p.current,{nodeId:t,connected:a,capacity:s,rack:r},"node")},onMouseLeave:()=>{d()},onClick:()=>o(t),children:u?t:null})}const ko=e=>null===e||void 0===e?void 0:e.reduce(((e,t)=>t.Connected?e+1:e),0);var Oo,Mo,Lo,zo,qo,Fo,Qo,Bo,Uo,Ho,Go,Zo,Vo,Wo,$o;function Jo(){return Jo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},Jo.apply(this,arguments)}const Ko=function(e){return n.createElement("svg",Jo({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 221 204"},e),Oo||(Oo=n.createElement("path",{d:"M68.46 2.529v25.227c0 1.227.876 2.278 2.102 2.511 16.643 2.979 29.14 17.812 28.498 35.448-.642 18.045-15.359 32.703-33.345 33.403-17.636.643-32.41-11.854-35.448-28.44a2.562 2.562 0 00-2.51-2.102H2.528c-1.519 0-2.687 1.285-2.512 2.745 3.446 32.703 31.243 58.106 64.939 57.814 35.155-.292 63.829-29.024 64.121-64.18.292-33.695-25.17-61.492-57.873-64.938-1.46-.175-2.744.993-2.744 2.512z",fill:"#EBF2FA"})),Mo||(Mo=n.createElement("path",{d:"M22.736 18.354l17.811 17.812c.876.876 2.278.992 3.329.233 4.146-3.095 9.052-5.197 14.366-6.19 1.226-.233 2.102-1.226 2.102-2.511V2.528a2.502 2.502 0 00-2.803-2.51C44.46 1.418 32.488 6.674 22.91 14.674c-1.168.935-1.226 2.628-.175 3.68zm-9.403 6.133C6.093 33.83 1.303 45.16.02 57.54c-.176 1.46 1.05 2.745 2.51 2.745H27.7a2.562 2.562 0 002.511-2.103c.818-4.672 2.628-9.051 5.14-12.847a2.642 2.642 0 00-.293-3.212L17.13 24.312c-1.05-1.11-2.861-.993-3.796.175zm67.275 107.392h32.995c1.868 0 3.387 1.518 3.445 3.445v65.231a3.451 3.451 0 01-3.445 3.445H80.608a3.452 3.452 0 01-3.446-3.445v-65.231a3.451 3.451 0 013.446-3.445zm77.844 27.097h-32.878a3.514 3.514 0 00-3.503 3.504v37.959a3.514 3.514 0 003.503 3.504h32.878a3.515 3.515 0 003.504-3.504V162.48a3.515 3.515 0 00-3.504-3.504zm12.205 18.28h32.586a3.639 3.639 0 013.621 3.62v19.388a3.639 3.639 0 01-3.621 3.621h-32.586a3.639 3.639 0 01-3.62-3.621v-19.388a3.638 3.638 0 013.62-3.62z",fill:"#EBF2FA"})),Lo||(Lo=n.createElement("path",{d:"M134.275 171.532h-113c-5.84 0-10.628-4.789-10.628-10.629v-73.23c0-5.84 4.788-10.629 10.628-10.629h112.941c5.84 0 10.629 4.789 10.629 10.629v73.23c.058 5.899-4.731 10.629-10.57 10.629v0z",stroke:"#2EE5C0",strokeWidth:4,strokeLinecap:"round",strokeLinejoin:"round"})),zo||(zo=n.createElement("path",{d:"M21.625 90.769a3.037 3.037 0 100-6.074 3.037 3.037 0 000 6.074zM31.494 90.769a3.037 3.037 0 100-6.074 3.037 3.037 0 000 6.074zM41.363 90.769a3.037 3.037 0 100-6.074 3.037 3.037 0 000 6.074z",fill:"#2EE5C0"})),qo||(qo=n.createElement("path",{d:"M10.822 98.592h133.673",stroke:"#2EE5C0",strokeWidth:4,strokeLinecap:"round",strokeLinejoin:"round"})),Fo||(Fo=n.createElement("path",{d:"M184.555 149.164L57.89 156.172c-4.263.234-7.767-3.037-7.767-7.3V51.114c0-4.263 3.504-7.533 7.767-7.3l126.665 7.008c3.27.176 5.898 3.33 5.898 7.008v84.327c0 3.679-2.628 6.832-5.898 7.007z",fill:"#027BF3"})),Qo||(Qo=n.createElement("path",{d:"M65.13 54.151c0 1.986-1.576 3.504-3.562 3.387-1.985-.058-3.562-1.752-3.562-3.737 0-1.986 1.635-3.504 3.562-3.387 1.927.058 3.562 1.752 3.562 3.737zm11.506.466a3.38 3.38 0 01-3.504 3.388c-1.927-.059-3.504-1.753-3.504-3.68a3.38 3.38 0 013.504-3.387c1.927.117 3.504 1.752 3.504 3.68zm7.825 3.855c1.869.117 3.387-1.402 3.387-3.329 0-1.927-1.518-3.562-3.387-3.62-1.927-.117-3.445 1.401-3.445 3.328 0 1.927 1.576 3.562 3.445 3.62z",fill:"#fff"})),Bo||(Bo=n.createElement("path",{d:"M75.467 142.974V85.277c-3.971-.525-8.584-.409-13.899.7v57.64l13.899-.643zM88.84 90.651v51.799l-11.096.467v-57.23c4.322.934 7.942 2.745 11.096 4.964zm13.431 13.899a1.618 1.618 0 01-.146-.176 1.487 1.487 0 00-.146-.175c-.42-.51-.841-1.026-1.265-1.546-2.875-3.522-5.874-7.197-9.538-10.25v49.93l11.095-.467V104.55zm13.432 5.722c-3.913-.058-7.709-.701-11.096-3.445v34.922l11.096-.468v-31.009zm13.431-.409c-2.764-.173-5.529.006-8.246.181-.957.062-1.907.123-2.849.169v30.951l11.095-.467v-30.834zm24.002 29.841l-8.234.35v-22.191c8.176 9.285 8.234 21.841 8.234 21.841zM140.113 113.6a19.774 19.774 0 012.453 1.927v24.644l-11.096.467v-30.483c2.92.467 5.782 1.46 8.643 3.445z",fill:"#00236B"})),Uo||(Uo=n.createElement("path",{d:"M55.745 76.436a2 2 0 103.123 2.499l-3.123-2.499zm5.766-4.006l1.575-1.233a2 2 0 00-3.136-.017l1.561 1.25zm2.63 6.605a2 2 0 103.15-2.465l-3.15 2.465zm107.94 53.502a2 2 0 00-2.499 3.123l2.499-3.123zm4.006 5.766l1.214 1.59a1.999 1.999 0 00.036-3.151l-1.25 1.561zm-6.644 2.557a1.999 1.999 0 102.427 3.179l-2.427-3.179zM58.868 78.935l4.205-5.256-3.123-2.499-4.205 5.256 3.123 2.499zm1.068-5.273l4.205 5.373 3.15-2.465-4.205-5.373-3.15 2.465zm109.646 61.998l5.256 4.205 2.499-3.123-5.256-4.205-2.499 3.123zm5.292 1.054l-5.431 4.146 2.427 3.179 5.431-4.146-2.427-3.179zM147.137 69.146a2 2 0 10-.149 3.998l.149-3.998zm29.634 5.107a2 2 0 10.149-3.997l-.149 3.997zm-29.657 5.404a2 2 0 00-.102 3.999l.102-3.999zm29.681 4.758a2 2 0 00.102-3.999l-.102 4zm-29.72 5.928a2 2 0 10-.023 4l.023-4zm29.759 4.176a2 2 0 10.024-4l-.024 4zm-29.846-21.375l29.783 1.11.149-3.998-29.783-1.11-.149 3.998zm.024 10.512l29.783.76.102-4-29.783-.759-.102 3.999zm.04 10.687l29.782.176.024-4-29.783-.175-.023 4zM143.442 71.202a2.458 2.458 0 01-2.57 2.453c-1.401-.058-2.569-1.285-2.569-2.686 0-1.402 1.168-2.57 2.569-2.453 1.46.058 2.57 1.285 2.57 2.686zm.001 10.396a2.458 2.458 0 01-2.57 2.453c-1.401-.059-2.569-1.285-2.569-2.686 0-1.46 1.168-2.57 2.569-2.453 1.46.058 2.57 1.284 2.57 2.686zm-2.57 12.848a2.458 2.458 0 002.57-2.453c0-1.402-1.11-2.628-2.57-2.686-1.401-.117-2.569 1.05-2.569 2.452s1.168 2.628 2.569 2.687z",fill:"#fff"})),Ho||(Ho=n.createElement("path",{opacity:.2,d:"M190.452 91.875V57.771c0-3.68-2.628-6.833-5.899-7.008l-23.651-1.285a35.18 35.18 0 00-1.752 10.98c0 17.635 12.79 31.826 28.09 31.65 1.051.06 2.16-.058 3.212-.233z",fill:"#00236B"})),Go||(Go=n.createElement("path",{d:"M220.645 58.883c0-16.585-11.621-30.775-26.454-31.651-15.3-.876-28.089 12.672-28.089 30.308s12.789 31.827 28.089 31.652c14.833-.117 26.454-13.724 26.454-30.309z",fill:"#FF4645"})),Zo||(Zo=n.createElement("path",{d:"M215.329 40.372c-4.788-7.475-12.38-12.614-21.14-13.14v31.01l21.14-17.87z",fill:"#FC0"})),Vo||(Vo=n.createElement("path",{d:"M215.329 40.372l-21.14 17.87 26.455.642c0-6.89-1.986-13.315-5.315-18.512z",fill:"#00236B"})),Wo||(Wo=n.createElement("path",{d:"M194.248 58.24V27.233c-15.301-.876-28.09 12.672-28.09 30.308l28.09.7z",fill:"#FF4645"})),$o||($o=n.createElement("path",{d:"M161.151 14.734a2 2 0 10-4 0h4zm-4 4.204a2 2 0 004 0h-4zm4 8.876a2 2 0 10-4 0h4zm-4 4.555a2 2 0 004 0h-4zm10.819-6.816a2 2 0 000-4v4zm-4.263-4a2 2 0 100 4v-4zm-9.169 4a2 2 0 100-4v4zm-4.263-4a2 2 0 000 4v-4zm6.876-6.82v4.205h4v-4.204h-4zm0 13.08v4.556h4v-4.555h-4zm10.819-6.26h-4.263v4h4.263v-4zm-13.432 0h-4.263v4h4.263v-4z",fill:"#2EE5C0"})))},Xo=(0,d.cn)("network");function Yo(e){var t,a;let{tenantName:s}=e;const[r]=(0,y.Rj)(),i=(0,y.ix)(Do.qz),o=(0,y.zL)(),[l,d]=n.useState(),[u,m]=n.useState(!1),[p,h]=n.useState(!1),{currentData:v,isFetching:g,error:x}=Io.useGetNetworkInfoQuery(s,{pollingInterval:r});if(g&&void 0===v)return(0,c.jsx)("div",{className:"loader",children:(0,c.jsx)(kn.a,{size:"l"})});const b=v,f=null!==(t=(null===b||void 0===b?void 0:b.Tenants)&&b.Tenants[0].Nodes)&&void 0!==t?t:[];if(!x&&0===f.length)return(0,c.jsx)("div",{className:"error",children:"no nodes data"});const j=tl(f,"NodeType"),S=l?tl(null!==(a=l.Peers)&&void 0!==a?a:[],"NodeType"):{};return(0,c.jsxs)("div",{className:Xo(),children:[x?(0,c.jsx)(I.V,{error:x}):null,f.length>0?(0,c.jsx)("div",{className:Xo("inner"),children:(0,c.jsxs)("div",{className:Xo("nodes-row"),children:[(0,c.jsxs)("div",{className:Xo("left"),children:[(0,c.jsx)("div",{className:Xo("controls-wrapper"),children:(0,c.jsxs)("div",{className:Xo("controls"),children:[(0,c.jsx)(Po.T,{value:i,onChange:e=>{o((0,Do.M6)(e))},className:Xo("problem-filter")}),(0,c.jsx)("div",{className:Xo("checkbox-wrapper"),children:(0,c.jsx)(P.X,{onUpdate:()=>{m(!u)},checked:u,children:"ID"})}),(0,c.jsx)("div",{className:Xo("checkbox-wrapper"),children:(0,c.jsx)(P.X,{onUpdate:()=>{h(!p)},checked:p,children:"Racks"})})]})}),(0,c.jsx)(el,{nodes:j,showId:u,showRacks:p,clickedNode:l,onClickNode:d})]}),(0,c.jsx)("div",{className:Xo("right"),children:l?(0,c.jsxs)("div",{children:[(0,c.jsxs)("div",{className:Xo("label"),children:["Connectivity of node"," ",(0,c.jsx)(N.rU,{className:Xo("link"),to:(0,si.a3)(l.NodeId),children:l.NodeId})," ","to other nodes"]}),(0,c.jsx)("div",{className:Xo("nodes-row"),children:(0,c.jsx)(el,{nodes:S,isRight:!0,showId:u,showRacks:p,clickedNode:l,onClickNode:d})})]}):(0,c.jsxs)("div",{className:Xo("placeholder"),children:[(0,c.jsx)("div",{className:Xo("placeholder-img"),children:(0,c.jsx)(Be.J,{data:Ko,width:221,height:204})}),(0,c.jsx)("div",{className:Xo("placeholder-text"),children:"Select node to see its connectivity to other nodes"})]})})]})}):null]})}function el(e){let{nodes:t,isRight:a,showId:n,showRacks:s,clickedNode:r,onClickNode:i}=e;const o=(0,y.ix)(Do.qz),l=(0,y.zL)();let d=0;const u=Object.keys(t).map(((e,u)=>{const m=tl(t[e],"Rack");return(0,c.jsxs)("div",{className:Xo("nodes-container",{right:a}),children:[(0,c.jsxs)("div",{className:Xo("nodes-title"),children:[e," nodes"]}),(0,c.jsx)("div",{className:Xo("nodes"),children:s?Object.keys(m).map(((e,t)=>(0,c.jsxs)("div",{className:Xo("rack-column"),children:[(0,c.jsx)("div",{className:Xo("rack-index"),children:"undefined"===e?"?":e}),m[e].map(((e,t)=>{let s,u;return!a&&"Peers"in e&&e.Peers&&(s=Object.keys(e.Peers).length,u=ko(e.Peers)),o===Do.pu.PROBLEMS&&s!==u||o===Do.pu.ALL||a?(d++,(0,c.jsx)(_o,{nodeId:e.NodeId,showID:n,rack:e.Rack,status:"ConnectStatus"in e?e.ConnectStatus:void 0,capacity:s,connected:u,onMouseEnter:function(){l((0,A.hJ)(...arguments))},onMouseLeave:()=>{l((0,A.i8)())},onClick:a?void 0:()=>{i(r&&e.NodeId===r.NodeId?void 0:e)},isBlurred:!a&&r&&r.NodeId!==e.NodeId},t)):null}))]},t))):t[e].map(((e,t)=>{let s,u;const m=e&&"Peers"in e?e.Peers:void 0;return!a&&"Peers"in e&&e.Peers&&(s=e.Peers.length,u=ko(m)),o===Do.pu.PROBLEMS&&s!==u||o===Do.pu.ALL||a?(d++,(0,c.jsx)(_o,{nodeId:e.NodeId,showID:n,rack:e.Rack,status:"ConnectStatus"in e?e.ConnectStatus:void 0,capacity:null===m||void 0===m?void 0:m.length,connected:u,onMouseEnter:function(){l((0,A.hJ)(...arguments))},onMouseLeave:()=>{l((0,A.i8)())},onClick:a?void 0:()=>{i(r&&e.NodeId===r.NodeId?void 0:e)},isBlurred:!a&&r&&r.NodeId!==e.NodeId},t)):null}))})]},u)}));return o===Do.pu.PROBLEMS&&0===d?(0,c.jsx)(Eo.Q,{name:"thumbsUp",width:"200"}):u}function tl(e,t){return e.reduce(((e,a)=>(e[a[t]]?e[a[t]].push(a):e[a[t]]=[a],e)),{})}var al=a(99337),nl=a(42703),sl=a(48857),rl=a(30629);const il=JSON.parse('{"lagsPopover.writeLags":"Write lags statistics (time format dd hh:mm:ss)","lagsPopover.readLags":"Read lags statistics (time format dd hh:mm:ss)","headers.unread":"End offset - Last read offset","headers.uncommited":"End offset - Committed offset","controls.consumerSelector":"Consumer:","controls.consumerSelector.emptyOption":"No consumer","controls.partitionSearch":"Partition ID","controls.generalSearch":"Host, Host ID, Reader, Read Session ID","table.emptyDataMessage":"No partitions match the current search","noConsumersMessage.topic":"This topic has no consumers","noConsumersMessage.stream":"This changefeed has no consumers"}'),ol=JSON.parse('{"lagsPopover.writeLags":"\u0421\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0430 \u043b\u0430\u0433\u043e\u0432 \u0437\u0430\u043f\u0438\u0441\u0438 (\u0444\u043e\u0440\u043c\u0430\u0442 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0434\u0434 \u0447\u0447:\u043c\u043c:\u0441\u0441)","lagsPopover.readLags":"\u0421\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0430 \u043b\u0430\u0433\u043e\u0432 \u0447\u0442\u0435\u043d\u0438\u044f (\u0444\u043e\u0440\u043c\u0430\u0442 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0434\u0434 \u0447\u0447:\u043c\u043c:\u0441\u0441)","headers.unread":"End offset - Last read offset","headers.uncommited":"End offset - Committed offset","controls.consumerSelector":"\u0427\u0438\u0442\u0430\u0442\u0435\u043b\u044c:","controls.consumerSelector.emptyOption":"\u041d\u0435\u0442 \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u044f","controls.partitionSearch":"Partition ID","controls.generalSearch":"Host, Host ID, Reader, Read Session ID","table.emptyDataMessage":"\u041f\u043e \u0437\u0430\u0434\u0430\u043d\u043d\u043e\u043c\u0443 \u043f\u043e\u0438\u0441\u043a\u0443 \u043d\u0435\u0442 \u043f\u0430\u0440\u0442\u0438\u0446\u0438\u0439","noConsumersMessage.topic":"\u0423 \u044d\u0442\u043e\u0433\u043e \u0442\u043e\u043f\u0438\u043a\u0430 \u043d\u0435\u0442 \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u0435\u0439","noConsumersMessage.stream":"\u0423 \u044d\u0442\u043e\u0433\u043e \u0441\u0442\u0440\u0438\u043c\u0430 \u043d\u0435\u0442 \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u0435\u0439"}'),ll=(0,ve.wZ)("ydb-diagnostics-partitions",{ru:ol,en:il}),dl={PARTITION_ID:"partitionId",STORE_SIZE:"storeSize",WRITE_SPEED:"writeSpeed",READ_SPEED:"readSpeed",WRITE_LAGS:"writeLags",READ_LAGS:"readLags",UNCOMMITED_MESSAGES:"uncommitedMessages",UNREAD_MESSAGES:"unreadMessages",START_OFFSET:"startOffset",END_OFFSET:"endOffset",COMMITED_OFFSET:"commitedOffset",READ_SESSION_ID:"readSessionId",READER_NAME:"readerName",PARTITION_HOST:"partitionHost",CONNECTION_HOST:"connectionHost"},cl={[dl.PARTITION_ID]:"Partition ID",[dl.STORE_SIZE]:"Store size",[dl.WRITE_SPEED]:"Write speed",[dl.READ_SPEED]:"Read speed",[dl.WRITE_LAGS]:"Write lags, duration",[dl.READ_LAGS]:"Read lags, duration",[dl.UNCOMMITED_MESSAGES]:"Uncommited messages",[dl.UNREAD_MESSAGES]:"Unread messages",[dl.START_OFFSET]:"Start offset",[dl.END_OFFSET]:"End offset",[dl.COMMITED_OFFSET]:"Commited offset",[dl.READ_SESSION_ID]:"Read session ID",[dl.READER_NAME]:"Reader name",[dl.PARTITION_HOST]:"Partition host",[dl.CONNECTION_HOST]:"Connection host"},ul="partitionWriteLag",ml="partitionWriteIdleTime",pl={[ul]:"write lag",[ml]:"write idle time"},hl="consumerWriteLag",vl="consumerReadLag",gl="consumerReadIdleTime",xl={[hl]:"write lag",[vl]:"read lag",[gl]:"read idle time"},yl=[dl.PARTITION_ID,dl.STORE_SIZE,dl.WRITE_SPEED,dl.WRITE_LAGS,dl.START_OFFSET,dl.END_OFFSET,dl.PARTITION_HOST],bl=Object.values(dl),fl=e=>{let{consumers:t,selectedConsumer:a,onSelectedConsumerChange:s,selectDisabled:r,partitions:i,onSearchChange:o,hiddenColumns:l,onHiddenColumnsChange:d,initialColumnsIds:u}=e;const[m,p]=n.useState(""),[h,v]=n.useState("");n.useEffect((()=>{if(!i)return;const e=new RegExp(Xe()(h),"i"),t=new RegExp(Xe()(m),"i"),a=i.filter((a=>{const{partitionId:n,readerName:s,readSessionId:r,partitionNodeId:i,connectionNodeId:o,partitionHost:l,connectionHost:d}=a,c=e.test(n),u=[s,r,i,o,l,d].filter(Boolean).map(String),m=0===u.length||u.some((e=>t.test(e)));return c&&m}));o(a)}),[h,m,i,o]);const g=n.useMemo((()=>{const e=t&&t.length?t.map((e=>({value:e,content:e}))):[];return[{value:"",content:ll("controls.consumerSelector.emptyOption")},...e]}),[t]),x=n.useMemo((()=>{const e=[];for(const t of u){const a=t===dl.PARTITION_ID,n={title:cl[t],selected:Boolean(!l.includes(t)),id:t,required:a,sticky:a?"start":void 0};a?e.unshift(n):e.push(n)}return e}),[u,l]),y=e=>(0,c.jsx)("div",{className:Rl("select-option",{empty:""===e.value}),children:e.content});return(0,c.jsxs)(n.Fragment,{children:[(0,c.jsx)(E.P,{className:Rl("consumer-select"),label:ll("controls.consumerSelector"),options:g,value:[a],onUpdate:e=>{s(e[0])},filterable:t&&t.length>5,disabled:r||!t||!t.length,renderOption:y,renderSelectedOption:y}),(0,c.jsx)(rl.o,{onChange:e=>{v(e)},placeholder:ll("controls.partitionSearch"),className:Rl("search",{partition:!0}),value:h}),(0,c.jsx)(rl.o,{onChange:e=>{p(e)},placeholder:ll("controls.generalSearch"),className:Rl("search",{general:!0}),value:m}),(0,c.jsx)(sl.N,{popupWidth:242,items:x,showStatus:!0,onUpdate:e=>{const t=[...l];e.forEach((e=>{e.selected||l.includes(e.id)?e.selected&&l.includes(e.id)&&t.splice(l.indexOf(e.id)):t.push(e.id)})),d(t)},sortable:!1},"TableColumnSetup")]})},jl=(0,d.cn)("ydb-diagnostics-partitions-columns-header"),Nl=e=>{let{title:t}=e;return(0,c.jsx)("div",{className:jl("multiline"),children:t})},Sl=()=>(0,c.jsx)("div",{className:jl("read-session"),children:cl[dl.READ_SESSION_ID]}),wl=()=>(0,c.jsx)(ft,{className:jl("lags"),text:cl[dl.WRITE_LAGS],popoverContent:(0,c.jsx)(kt,{text:ll("lagsPopover.writeLags"),type:"write"})}),Tl=()=>(0,c.jsx)(ft,{className:jl("lags"),text:cl[dl.READ_LAGS],popoverContent:(0,c.jsx)(kt,{text:ll("lagsPopover.readLags"),type:"read"})}),Cl=()=>(0,c.jsx)(ft,{className:jl("messages"),text:cl[dl.UNREAD_MESSAGES],popoverContent:(0,c.jsx)("div",{className:jl("messages-popover-content"),children:ll("headers.unread")})}),El=()=>(0,c.jsx)(ft,{className:jl("messages"),text:cl[dl.UNCOMMITED_MESSAGES],popoverContent:(0,c.jsx)("div",{className:jl("messages-popover-content"),children:ll("headers.uncommited")})}),Pl=(0,d.cn)("ydb-diagnostics-partitions-columns"),Il=[{name:dl.PARTITION_ID,header:(0,c.jsx)(Nl,{title:cl[dl.PARTITION_ID]}),sortAccessor:e=>(0,Cn.kE)(e.partitionId)&&Number(e.partitionId),align:fe.ZP.LEFT,render:e=>{let{row:t}=e;return t.partitionId}},{name:dl.STORE_SIZE,header:(0,c.jsx)(Nl,{title:cl[dl.STORE_SIZE]}),align:fe.ZP.RIGHT,render:e=>{let{row:t}=e;return(0,_.td)(t.storeSize)}},{name:dl.WRITE_SPEED,header:cl[dl.WRITE_SPEED],align:fe.ZP.LEFT,resizeMinWidth:140,sortAccessor:e=>e.writeSpeed.perMinute,render:e=>{let{row:t}=e;return(0,c.jsx)(pt,{data:t.writeSpeed})}},{name:dl.READ_SPEED,header:cl[dl.READ_SPEED],align:fe.ZP.LEFT,resizeMinWidth:140,sortAccessor:e=>{var t;return null===(t=e.readSpeed)||void 0===t?void 0:t.perMinute},render:e=>{let{row:t}=e;return(0,c.jsx)(pt,{data:t.readSpeed})}},{name:dl.WRITE_LAGS,header:(0,c.jsx)(wl,{}),className:Pl("lags-header"),sub:[{name:ul,header:pl[ul],align:fe.ZP.RIGHT,render:e=>{let{row:t}=e;return(0,_.gC)(t.partitionWriteLag)}},{name:ml,header:pl[ml],align:fe.ZP.RIGHT,render:e=>{let{row:t}=e;return(0,_.gC)(t.partitionWriteIdleTime)}}]},{name:dl.READ_LAGS,header:(0,c.jsx)(Tl,{}),className:Pl("lags-header"),sub:[{name:hl,header:xl[hl],align:fe.ZP.RIGHT,render:e=>{let{row:t}=e;return(0,_.gC)(t.consumerWriteLag)}},{name:vl,header:xl[vl],align:fe.ZP.RIGHT,render:e=>{let{row:t}=e;return(0,_.gC)(t.consumerReadLag)}},{name:gl,header:xl[gl],align:fe.ZP.RIGHT,render:e=>{let{row:t}=e;return(0,_.gC)(t.consumerReadIdleTime)}}]},{name:dl.UNCOMMITED_MESSAGES,header:(0,c.jsx)(El,{}),align:fe.ZP.RIGHT,render:e=>{let{row:t}=e;return t.uncommitedMessages}},{name:dl.UNREAD_MESSAGES,header:(0,c.jsx)(Cl,{}),align:fe.ZP.RIGHT,render:e=>{let{row:t}=e;return t.unreadMessages}},{name:dl.START_OFFSET,header:(0,c.jsx)(Nl,{title:cl[dl.START_OFFSET]}),sortAccessor:e=>(0,Cn.kE)(e.startOffset)&&Number(e.startOffset),align:fe.ZP.RIGHT,render:e=>{let{row:t}=e;return t.startOffset}},{name:dl.END_OFFSET,header:(0,c.jsx)(Nl,{title:cl[dl.END_OFFSET]}),sortAccessor:e=>(0,Cn.kE)(e.endOffset)&&Number(e.endOffset),align:fe.ZP.RIGHT,render:e=>{let{row:t}=e;return t.endOffset}},{name:dl.COMMITED_OFFSET,header:(0,c.jsx)(Nl,{title:cl[dl.COMMITED_OFFSET]}),sortAccessor:e=>(0,Cn.kE)(e.commitedOffset)&&Number(e.commitedOffset),align:fe.ZP.RIGHT,render:e=>{let{row:t}=e;return t.commitedOffset}},{name:dl.READ_SESSION_ID,header:(0,c.jsx)(Sl,{}),align:fe.ZP.LEFT,width:150,render:e=>{let{row:t}=e;return t.readSessionId?(0,c.jsx)(Ea.A,{name:t.readSessionId,showStatus:!1,hasClipboardButton:!0}):"\u2013"}},{name:dl.READER_NAME,header:(0,c.jsx)(Nl,{title:cl[dl.READER_NAME]}),align:fe.ZP.LEFT,width:150,render:e=>{let{row:t}=e;return t.readerName?(0,c.jsx)(Ea.A,{name:t.readerName,showStatus:!1,hasClipboardButton:!0}):"\u2013"}},{name:dl.PARTITION_HOST,header:(0,c.jsx)(Nl,{title:cl[dl.PARTITION_HOST]}),align:fe.ZP.LEFT,width:200,render:e=>{let{row:t}=e;return t.partitionNodeId&&t.partitionHost?(0,c.jsx)(Ea.A,{name:t.partitionHost,path:(0,si.a3)(t.partitionNodeId),showStatus:!1,hasClipboardButton:!0}):"\u2013"}},{name:dl.CONNECTION_HOST,header:(0,c.jsx)(Nl,{title:cl[dl.CONNECTION_HOST]}),align:fe.ZP.LEFT,width:200,render:e=>{let{row:t}=e;return t.connectionNodeId&&t.connectionHost?(0,c.jsx)(Ea.A,{name:t.connectionHost,path:(0,si.a3)(t.connectionNodeId),showStatus:!1,hasClipboardButton:!0}):"\u2013"}}],Dl=Il.filter((e=>yl.includes(e.name))),Rl=(0,d.cn)("ydb-diagnostics-partitions"),Al=e=>{let{path:t,database:a}=e;const s=(0,y.zL)(),[r,i]=n.useState([]),o=(0,y.ix)((e=>it(e,t,a))),[l]=(0,y.Rj)(),{selectedConsumer:d}=(0,y.ix)((e=>e.partitions)),{currentData:u,isFetching:m,error:p}=at.useGetTopicQuery({path:t,database:a}),h=m&&void 0===u,{currentData:v,isFetching:g,error:b}=al.W.useGetNodesListQuery(void 0),f=g&&void 0===v,j=(0,y.ix)(al.d),[N,S]=(0,y.yu)(x.ZY),[w,T]=(e=>{const[t,a]=n.useState([]),[s,r]=n.useState([]);return n.useEffect((()=>{e?(a(Il),r(bl)):(a(Dl),r(yl))}),[e]),[t,s]})(d),C=h?re.CN:{path:t,database:a,consumerName:d},{currentData:E,isFetching:P,error:D}=nl.TB.useGetPartitionsQuery(C,{pollingInterval:l}),R=P&&void 0===E,A=E,_=n.useMemo((()=>function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return null===e||void 0===e?void 0:e.map((e=>{const a=e.partitionNodeId&&t?t.get(e.partitionNodeId):void 0,n=e.connectionNodeId&&t?t.get(e.connectionNodeId):void 0;return{...e,partitionHost:a,connectionHost:n}}))}(A,j)),[A,j]);n.useEffect((()=>{const e=!h&&!o,t=d&&o&&!o.includes(d);(e||t)&&s((0,nl.M$)(""))}),[s,h,d,o]);const k=n.useMemo((()=>w.filter((e=>!N.includes(e.name)))),[w,N]),O=e=>{S(e)},M=e=>{s((0,nl.M$)(e))},L=h||f||R,z=b||p||D;return(0,c.jsxs)("div",{className:Rl(),children:[(0,c.jsx)("div",{className:Rl("controls"),children:(0,c.jsx)(fl,{consumers:o,selectedConsumer:d,onSelectedConsumerChange:M,selectDisabled:Boolean(z)||L,partitions:_,onSearchChange:i,hiddenColumns:N,onHiddenColumnsChange:O,initialColumnsIds:T})}),z?(0,c.jsx)(I.V,{error:z}):null,(0,c.jsx)("div",{className:Rl("table-wrapper"),children:(0,c.jsx)("div",{className:Rl("table-content"),children:E?L?(0,c.jsx)(oe.h,{className:Rl("loader")}):(0,c.jsx)(ie.G,{columnsWidthLSKey:"partitionsColumnsWidth",wrapperClassName:Rl("table"),data:r,columns:k,settings:x.LE,emptyDataMessage:ll("table.emptyDataMessage")}):null})})]})};var _l=a(45998);const kl=JSON.parse('{"date-format":"MM/DD/YYYY","date-time-format":"MM/DD/YYYY HH:mm"}'),Ol=JSON.parse('{"date-format":"DD.MM.YYYY","date-time-format":"DD.MM.YYYY HH:mm"}'),Ml=(0,ve.wZ)("ydb-date-range",{ru:Ol,en:kl});var Ll=a(396);function zl(e){var t,a,n,s;return"relative"===(null===e||void 0===e||null===(t=e.start)||void 0===t?void 0:t.type)&&"relative"===(null===e||void 0===e||null===(a=e.end)||void 0===a?void 0:a.type)?"s":"relative"===(null===e||void 0===e||null===(n=e.start)||void 0===n?void 0:n.type)||"relative"===(null===e||void 0===e||null===(s=e.end)||void 0===s?void 0:s.type)?"m":"l"}const ql=(0,d.cn)("date-range"),Fl={start:{value:"now-1h",type:"relative"},end:{value:"now",type:"relative"}},Ql=e=>{let{from:t,to:a,className:s,onChange:r}=e;const i=n.useCallback((e=>null===r||void 0===r?void 0:r(function(e){var t,a,n,s,r,i;return{from:"relative"===(null===e||void 0===e||null===(t=e.start)||void 0===t?void 0:t.type)?e.start.value.toString():String(null===(a=(0,Ll.J)(null===e||void 0===e||null===(n=e.start)||void 0===n?void 0:n.value))||void 0===a?void 0:a.valueOf()),to:"relative"===(null===e||void 0===e||null===(s=e.end)||void 0===s?void 0:s.type)?e.end.value.toString():String(null===(r=(0,Ll.J)(null===e||void 0===e||null===(i=e.end)||void 0===i?void 0:i.value))||void 0===r?void 0:r.valueOf())}}(e))),[r]),o=n.useMemo((()=>{if(t||a)return function(e){var t,a;const n=(0,Ll.KN)(null!==(t=e.from)&&void 0!==t?t:""),s=(0,Ll.KN)(null!==(a=e.to)&&void 0!==a?a:"");return{start:e.from?{type:n?"relative":"absolute",value:n?e.from:(0,Ll.J)(Number(e.from))}:null,end:e.to?{type:s?"relative":"absolute",value:s?e.to:(0,Ll.J)(Number(e.to))}:null}}({from:t,to:a})}),[t,a]),l=Intl.DateTimeFormat().resolvedOptions().timeZone;return(0,c.jsx)("div",{className:ql(null,s),children:(0,c.jsx)(_l.H,{withPresets:!0,className:ql("range-input",{[zl(o)]:!0}),timeZone:l,value:o||Fl,allowNullableValues:!0,size:"m",format:Ml("date-time-format"),onUpdate:i,placeholder:`${Ml("date-time-format")} - ${Ml("date-time-format")}`,withApplyButton:!0})})},Bl=JSON.parse('{"no-data":"No data","filter.text.placeholder":"Search by query text..."}'),Ul=JSON.parse('{"no-data":"\u041d\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0445","filter.text.placeholder":"\u0418\u0441\u043a\u0430\u0442\u044c \u043f\u043e \u0442\u0435\u043a\u0441\u0442\u0443 \u0437\u0430\u043f\u0440\u043e\u0441\u0430..."}'),Hl=(0,ve.wZ)("ydb-diagnostics-top-queries",{ru:Ul,en:Bl}),Gl=(0,d.cn)("kv-top-queries"),Zl=e=>{let{tenantName:t,type:a}=e;const s=(0,y.zL)(),r=(0,Oa.TH)(),i=(0,Oa.k6)(),[o]=(0,y.Rj)(),l=(0,y.ix)((e=>e.executeTopQueries)),{currentData:d,isFetching:u,error:m}=pr.MU.useGetTopQueriesQuery({database:t,filters:l},{pollingInterval:o}),p=u&&void 0===d,{result:h}=d||{},v=Vr.map((e=>{return{...e,sortable:(t=e.name,Object.values(Rr).includes(t))};var t})),g=n.useCallback((e=>{const{QueryText:t}=e;s((0,mr.B8)({input:t}));const a=(0,w.mB)(r),n=(0,qe.Sj)({...a,[f.bS]:f.m2.query,[qe.XV.queryTab]:f._0.newQuery});i.push(n)}),[s,i,r]),x=e=>{s((0,pr.Im)({text:e}))},b=e=>{s((0,pr.Im)(e))};return(0,c.jsxs)(Ge.l,{children:[(0,c.jsx)(Ge.l.Controls,{children:(0,c.jsxs)(n.Fragment,{children:[(0,c.jsx)(He.o,{value:l.text,onChange:x,placeholder:Hl("filter.text.placeholder"),className:Gl("search")}),(0,c.jsx)(Ql,{from:l.from,to:l.to,onChange:b})]})}),m?(0,c.jsx)(I.V,{error:(0,le.fV)(m)}):null,(0,c.jsx)(Ge.l.Table,{loading:p,children:m&&!h?null:!h||(0,me.Jp)(a)?Hl("no-data"):(0,c.jsx)(ie.G,{columnsWidthLSKey:zr,columns:v,data:h,settings:Mr,onRowClick:g,rowClassName:()=>Gl("row")})})]})};var Vl=a(9345),Wl=a(58660),$l=a(79734);const Jl=JSON.parse('{"no-data":"No data","filters.mode.immediate":"Immediate","filters.mode.history":"Historical","description":"Historical data only tracks shards with CPU load over 70%"}'),Kl=JSON.parse('{"no-data":"\u041d\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0445","filters.mode.immediate":"\u041c\u0433\u043d\u043e\u0432\u0435\u043d\u043d\u044b\u0435","filters.mode.history":"\u0418\u0441\u0442\u043e\u0440\u0438\u0447\u0435\u0441\u043a\u0438\u0435","description":"\u0418\u0441\u0442\u043e\u0440\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0445\u0440\u0430\u043d\u044f\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u043e \u0448\u0430\u0440\u0434\u0430\u0445 \u0441 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u043e\u0439 CPU \u0432\u044b\u0448\u0435 70%"}'),Xl=(0,ve.wZ)("ydb-diagnostics-top-shards",{ru:Kl,en:Jl}),Yl=e=>{let{value:t,onChange:a}=e;const s=t.mode===Wl.F.Immediate?void 0:t.from,r=t.mode===Wl.F.Immediate?void 0:t.to;return(0,c.jsxs)(n.Fragment,{children:[(0,c.jsxs)($l.E,{value:t.mode,onUpdate:e=>{if(!((e,t)=>Object.values(e).includes(t))(Wl.F,e)){const t=Object.values(Wl.F).join(", ");throw new Error(`Unexpected TopShards mode "${e}". Should be one of: ${t}`)}a({mode:e})},children:[(0,c.jsx)($l.E.Option,{value:Wl.F.Immediate,children:Xl("filters.mode.immediate")}),(0,c.jsx)($l.E.Option,{value:Wl.F.History,children:Xl("filters.mode.history")})]}),(0,c.jsx)(Ql,{from:s,to:r,onChange:e=>{a({mode:Wl.F.History,...e})}})]})},ed=(0,d.cn)("top-shards"),td={...x.LE,dynamicRender:!1,externalSort:!0,disableSortReset:!0,defaultOrder:fe.ZP.DESCENDING};function ad(e){return e?(0,_.o0)(new Date(e).getTime()):"\u2013"}function nd(e){return e?e.split(",").map((e=>({columnId:e,order:fe.ZP.DESCENDING}))):void 0}function sd(e){return e.to="now",e.from="now-1h",e}const rd=e=>{let{tenantName:t,path:a,type:s}=e;const r=(0,y.zL)(),i=(0,Oa.TH)(),[o]=(0,y.Rj)(),l=(0,y.ix)((e=>e.shardsWorkload)),[d,u]=n.useState((()=>{const e={...l};return e.mode||(e.mode=Wl.F.Immediate),e.from||e.to||sd(e),e})),[m,p]=n.useState(Er),{currentData:h,isFetching:v,error:g}=Vl.Ag.useSendShardQueryQuery({database:t,path:a,sortOrder:(x=m,x?x.split(",").map((e=>({columnId:e,order:"DESC"}))):void 0),filters:d},{pollingInterval:o});var x;const b=v&&void 0===h,{result:f}=null!==h&&void 0!==h?h:{},j=e=>{p(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return(Array.isArray(e)?e:[e]).map((e=>{let{columnId:t}=e;return t})).join(",")}(e))},N=e=>{const t={...e};if(!l.from&&!l.to&&!e.from&&!e.to)switch(e.mode){case Wl.F.Immediate:t.from=t.to=void 0;break;case Wl.F.History:sd(t)}r((0,Vl.K2)(e)),u((e=>({...e,...t})))},S=n.useMemo((()=>{const e=((e,t)=>[pi(e,t),hi,vi,gi,xi,bi])(t,i),a=e.map((e=>({...e,sortable:Ar(e.name)})));return d.mode===Wl.F.History&&(a.splice(5,0,{name:Pr,render:e=>{let{row:t}=e;return ad(t.PeakTime)},sortable:!1}),a.push({name:Ir,render:e=>{let{row:t}=e;return ad(t.IntervalEnd)}})),a}),[d.mode,i,t]);return(0,c.jsxs)(Ge.l,{children:[(0,c.jsx)(Ge.l.Controls,{children:(0,c.jsx)(Yl,{value:d,onChange:N})}),d.mode===Wl.F.History&&(0,c.jsx)("div",{className:ed("hint"),children:Xl("description")}),g?(0,c.jsx)(I.V,{error:(0,le.fV)(g)}):null,(0,c.jsx)(Ge.l.Table,{loading:b,children:g&&!f?null:!f||(0,me.Jp)(s)?Xl("no-data"):(0,c.jsx)(ie.G,{columnsWidthLSKey:ri,columns:S,data:f,settings:td,onSort:j,sortOrder:nd(m)})})]})},id=(0,d.cn)("kv-tenant-diagnostics");const od=function(e){const t=n.useRef(null),a=(0,y.zL)(),{diagnosticsTab:i=f.qQ.overview}=(0,y.ix)((e=>e.tenant)),[o]=(0,r.useQueryParams)({name:r.StringParam,schema:r.StringParam,backend:r.StringParam,clusterName:r.StringParam}),l=(0,me.dw)(e.type)?e.path:e.tenantName,d=(0,me.dw)(e.type)||e.path===e.tenantName,u=(0,T.bq)(),m=d?po({hasFeatureFlags:u}):mo(e.type);let p=m.find((e=>e.id===i));return p||(p=m[0]),n.useEffect((()=>{p&&p.id!==i&&a((0,C.$v)(p.id))}),[p,i,a]),(0,c.jsxs)("div",{className:id(),ref:t,children:[p?(0,c.jsx)(s.ql,{children:(0,c.jsx)("title",{children:p.title})}):null,(()=>{var e;return(0,c.jsx)("div",{className:id("header-wrapper"),children:(0,c.jsxs)("div",{className:id("tabs"),children:[(0,c.jsx)(j.m,{size:"l",items:m,activeTab:null===(e=p)||void 0===e?void 0:e.id,wrapTo:(e,t)=>{let{id:a}=e;const n=(0,w.ax)(w.ZP.tenant,void 0,{...o,[qe.XV.diagnosticsTab]:a});return(0,c.jsx)(N.rU,{to:n,className:id("tab"),children:t},a)},allowNotSelected:!0}),(0,c.jsx)(S.q,{})]})})})(),(0,c.jsx)("div",{className:id("page-wrapper"),children:(()=>{var a;const{type:n,path:s}=e;switch(null===(a=p)||void 0===a?void 0:a.id){case f.qQ.overview:return(0,c.jsx)(Fi,{type:n,tenantName:l,path:s,additionalTenantProps:e.additionalTenantProps,additionalNodesProps:e.additionalNodesProps});case f.qQ.schema:return(0,c.jsx)(ze,{path:s,tenantName:l,type:n,extended:!0});case f.qQ.topQueries:return(0,c.jsx)(Zl,{tenantName:l,type:n});case f.qQ.topShards:return(0,c.jsx)(rd,{tenantName:l,path:s,type:n});case f.qQ.nodes:return(0,c.jsx)(ae.G,{path:s,database:l,additionalNodesProps:e.additionalNodesProps,parentContainer:t.current});case f.qQ.tablets:return(0,c.jsx)(se.J,{path:s,database:l});case f.qQ.storage:return(0,c.jsx)(ne.V,{database:l,parentContainer:t.current});case f.qQ.network:return(0,c.jsx)(Yo,{tenantName:l});case f.qQ.describe:return(0,c.jsx)(ra,{path:s,database:l,type:n});case f.qQ.hotKeys:return(0,c.jsx)(To,{path:s,database:l});case f.qQ.graph:return(0,c.jsx)(te,{path:s,database:l});case f.qQ.consumers:return(0,c.jsx)(Kt,{path:s,database:l,type:n});case f.qQ.partitions:return(0,c.jsx)(Al,{path:s,database:l});case f.qQ.configs:return(0,c.jsx)(Je,{database:l});default:return(0,c.jsx)("div",{children:"No data..."})}})()})]})},ld=JSON.parse('{"controls.query-mode-selector_type":"Query type:","tabs.newQuery":"Editor","tabs.history":"History","tabs.saved":"Saved","history.empty":"History is empty","history.empty-search":"Search result is empty","saved.empty":"There are no saved queries","delete-dialog.header":"Delete query","delete-dialog.question":"Are you sure you want to delete query","delete-dialog.delete":"Delete","delete-dialog.cancel":"Cancel","preview.title":"Preview","preview.not-available":"Preview is not available","preview.close":"Close preview","method-description.script":"For YQL-scripts combining DDL and DML.\\nAPI call: schema.scripting","method-description.scan":"Read-only queries, potentially reading a lot of data.\\nAPI call: table.ExecuteScan","method-description.data":"DML queries for changing and fetching data in serialization mode.\\nAPI call: table.executeDataQuery","method-description.query":"Any query. An experimental API call supposed to replace all existing methods.\\nAPI Call: query.ExecuteScript","method-description.pg":"Queries in postgresql syntax.\\nAPI call: query.ExecuteScript","transaction-mode-description.serializable":"Provides the strictest isolation level for custom transactions","transaction-mode-description.onlinero":"Each read operation in the transaction is reading the data that is most recent at execution time","transaction-mode-description.stalero":"Read operations within a transaction may return results that are slightly out-of-date (lagging by fractions of a second)","transaction-mode-description.snapshot":"All the read operations within a transaction access the database snapshot. All the data reads are consistent","transaction-mode-description.implicit":"No transaction","tracing-level-description.basic":"Spans of main component operations","tracing-level-description.detailed":"Highest detail applicable for diagnosing problems in production","tracing-level-description.diagnostic":"Detailed debugging information for developers","tracing-level-description.off":"No tracing","tracing-level-description.toplevel":"Lowest detail, no more than two spans per request to the component","tracing-level-description.trace":"Very detailed debugging information","statistics-mode-description.none":"Don\'t collect statistics","statistics-mode-description.basic":"Collect statistics","statistics-mode-description.full":"Collect statistics and query plan","statistics-mode-description.profile":"Collect statistics for individual tasks","query-duration.description":"Duration of server-side query execution","action.send-query":"Send query","action.send-selected-query":"Send selected query","action.previous-query":"Previous query in history","action.next-query":"Next query in history","action.save-query":"Save query","action.stop":"Stop","filter.text.placeholder":"Search by query text...","gear.tooltip":"Query execution settings have been changed for ","banner.query-settings.message":"Query results are displayed for ","history.queryText":"Query text","history.endTime":"End time","history.duration":"Duration"}'),dd=(0,ve.wZ)("ydb-query-editor",{en:ld}),cd=(0,d.cn)("ydb-queries-history"),ud="queriesHistoryTableColumnsWidth";const md=function(e){let{changeUserInput:t}=e;const a=(0,y.zL)(),n=(0,y.ix)(mr.qV),s=(0,y.ix)(mr.vS),r=[...n].reverse(),i=[{name:"queryText",header:dd("history.queryText"),render:e=>{let{row:t}=e;return(0,c.jsx)("div",{className:cd("query"),children:(0,c.jsx)(gr,{value:t.queryText,maxQueryHeight:Or})})},sortable:!1,width:600},{name:"EndTime",header:dd("history.endTime"),render:e=>{let{row:t}=e;return t.endTime?(0,_.o0)(t.endTime.toString()):"-"},align:"right",width:200,sortable:!1},{name:"Duration",header:dd("history.duration"),render:e=>{let{row:t}=e;return t.durationUs?(0,tt.zm)((0,tt.BO)(t.durationUs)):"-"},align:"right",width:150,sortable:!1}];return(0,c.jsxs)(Ge.l,{className:cd(),children:[(0,c.jsx)(Ge.l.Controls,{children:(0,c.jsx)(He.o,{value:s,onChange:e=>{a((0,mr.u$)(e))},placeholder:dd("filter.text.placeholder"),className:cd("search")})}),(0,c.jsx)(Ge.l.Table,{children:(0,c.jsx)(ie.G,{columnsWidthLSKey:ud,columns:i,data:r,settings:Mr,emptyDataMessage:dd(s?"history.empty-search":"history.empty"),onRowClick:e=>(t({input:e.queryText}),void a((0,C.jk)(f._0.newQuery))),rowClassName:()=>cd("table-row")})})]})};var pd=a(84433),hd=a(77212);const vd=(0,a(30410).k)((async()=>({Editor:(await Promise.resolve().then(a.bind(a,93757))).default})),"Editor");var gd=a(6544),xd=a(90117);const yd=new Set(["PlanNodeId","PlanNodeType","Node Type","Plans"]);function bd(e){const t=[];if(e.Operators){const a=[];for(const t of e.Operators){const e={name:t.Name,items:[]};for(const[a,n]of Object.entries(t)){if("Name"===a)continue;const t="string"===typeof n?n:JSON.stringify(n);e.items.push({name:a,value:t})}a.push(e)}t.push({group:"Operators",stats:a})}if("Connection"===e.PlanNodeType){const a=[];for(const[t,n]of Object.entries(e))yd.has(t)||a.push({name:t,value:"string"===typeof n?n:JSON.stringify(n)});a.length>0&&t.push({group:"Attributes",stats:a})}if(e.Stats){const a=[];for(const[t,n]of Object.entries(e.Stats))a.push({name:t,value:"string"===typeof n?n:JSON.stringify(n)});t.push({group:"Stats",stats:a})}return t}function fd(e){switch(e.PlanNodeType){case"Connection":return"connection";case"ResultSet":return"result";case"Query":return"query";default:return"stage"}}function jd(e){const t=[],a=[];const n=e,s={name:String(n.PlanNodeId),data:{id:n.PlanNodeId,type:fd(n),name:n["Node Type"]}};return t.push(s),function e(){let n=arguments.length>1?arguments[1]:void 0;(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach((s=>{var r;const i={name:String(s.PlanNodeId),data:{id:s.PlanNodeId,type:fd(s),name:s["Node Type"],operators:null===(r=s.Operators)||void 0===r?void 0:r.map((e=>e.Name)),stats:bd(s),tables:s.Tables}};t.push(i),a.push({from:n,to:i.name}),e(s.Plans,i.name)}))}(n.Plans,s.name),{nodes:t,links:a}}function Nd(e){const t=[],a=e.map((e=>({node:e})));for(;a.length>0;){var n;const{node:e,subNodes:s}=a.pop(),r=e.Plans,i=null===(n=e.Operators)||void 0===n?void 0:n[0],o=s||t;if(i){const{"A-Cpu":e,"A-Rows":t,"E-Cost":n,"E-Rows":s,"E-Size":l,SsaProgram:d,Name:c,...u}=i,m={name:c,operationParams:u,aCpu:e,aRows:t,eCost:n,eRows:s,eSize:l,children:[]};if(o.push(m),r)for(let i=r.length-1;i>=0;i--)a.push({node:r[i],subNodes:m.children})}else if(r)for(let t=r.length-1;t>=0;t--)a.push({node:r[t],subNodes:o})}return t}const Sd={v2:"0.2"},wd=Object.values(Sd),Td=de.h.injectEndpoints({endpoints:e=>({explainQuery:e.mutation({queryFn:async(e,t)=>{let{query:a,database:n,querySettings:s,enableTracingLevel:r,queryId:i}=e,{signal:o,dispatch:l}=t,d="explain",c=le.jM.yql;l((0,mr.Ae)({type:xd.X.EXPLAIN,queryId:i,isLoading:!0})),"pg"===(null===s||void 0===s?void 0:s.queryMode)?(d="explain-query",c=le.jM.pg):null!==s&&void 0!==s&&s.queryMode&&(d=`explain-${null===s||void 0===s?void 0:s.queryMode}`);try{const e=await window.api.sendQuery({query:a,database:n,action:d,syntax:c,stats:null===s||void 0===s?void 0:s.statisticsMode,tracingLevel:null!==s&&void 0!==s&&s.tracingLevel&&r?gd.u[null===s||void 0===s?void 0:s.tracingLevel]:void 0,transaction_mode:"implicit"===(null===s||void 0===s?void 0:s.transactionMode)||null===s||void 0===s?void 0:s.transactionMode,timeout:(0,Cn.kE)(null===s||void 0===s?void 0:s.timeout)?1e3*Number(null===s||void 0===s?void 0:s.timeout):void 0,query_id:i},{signal:o});if((0,le.gW)(e))return l((0,mr.Ae)({type:xd.X.EXPLAIN,error:e,queryId:i,isLoading:!1})),{error:e};const t=(e=>{const{plan:t,ast:a}=(0,le.CC)(e);if(!t)return{ast:a};const{tables:n,meta:s,Plan:r,SimplifiedPlan:i}=(0,le.y5)(t);if(-1===wd.indexOf(s.version))return{plan:{pristine:t,version:s.version},ast:a};let o,l=[],d=[];if(r){const e=jd(r);l=e.links,d=e.nodes}return i&&(o=Nd([i])),{plan:{links:l,nodes:d,tables:n,version:s.version,pristine:t},simplifiedPlan:{plan:o,pristine:i},ast:a}})(e);return l((0,mr.Ae)({type:xd.X.EXPLAIN,data:t,queryId:i,isLoading:!1})),{data:null}}catch(u){return l((0,mr.Ae)({type:xd.X.EXPLAIN,error:u,queryId:i,isLoading:!1})),{error:u}}}})}),overrideExisting:"throw"});var Cd=a(89003);function Ed(e,t){const a=new Map(Object.entries(e)),n=new Map(Object.entries(t));return Array.from(a.keys()).filter((e=>a.has(e)&&void 0!==a.get(e)&&a.get(e)!==n.get(e)))}const Pd=JSON.parse('{"action.settings":"Query settings","form.query-mode":"Query type","form.timeout":"Timeout","form.transaction-mode":"Transaction mode","form.statistics-mode":"Statistics collection mode","form.tracing-level":"Tracing level","form.limit-rows":"Limit rows","button-done":"Save","button-cancel":"Cancel","form.timeout.seconds":"sec","form.validation.timeout":"Must be positive","form.validation.limitRows":"Must be between 1 and 100000","description.default":" (default)","docs":"Documentation"}'),Id=JSON.parse('{"action.settings":"\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0437\u0430\u043f\u0440\u043e\u0441\u0430","form.query-mode":"\u0422\u0438\u043f \u0437\u0430\u043f\u0440\u043e\u0441\u0430","form.timeout":"\u0422\u0430\u0439\u043c\u0430\u0443\u0442","form.transaction-mode":"\u0423\u0440\u043e\u0432\u0435\u043d\u044c \u0438\u0437\u043e\u043b\u044f\u0446\u0438\u0438","form.statistics-mode":"\u0420\u0435\u0436\u0438\u043c \u0441\u0431\u043e\u0440\u0430 \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0438","form.tracing-level":"Tracing level","form.limit-rows":"\u041b\u0438\u043c\u0438\u0442 \u0441\u0442\u0440\u043e\u043a","button-done":"\u0413\u043e\u0442\u043e\u0432\u043e","button-cancel":"\u041e\u0442\u043c\u0435\u043d\u0438\u0442\u044c","form.timeout.seconds":"\u0441\u0435\u043a","form.validation.timeout":"\u0422\u0430\u0439\u043c\u0430\u0443\u0442 \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u043f\u043e\u043b\u043e\u0436\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u043c","form.validation.limitRows":"\u041b\u0438\u043c\u0438\u0442 \u0441\u0442\u0440\u043e\u043a \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u043c\u0435\u0436\u0434\u0443 1 \u0438 100000","description.default":" (default)","docs":"\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f"}'),Dd=(0,ve.wZ)("ydb-query-settings-dialog",{en:Pd,ru:Id}),Rd=[{value:le.cy.implicit,content:le.Nf[le.cy.implicit],text:dd("transaction-mode-description.implicit"),isDefault:!0},{value:le.cy.serializable,content:le.Nf[le.cy.serializable],text:dd("transaction-mode-description.serializable")},{value:le.cy.onlinero,content:le.Nf[le.cy.onlinero],text:dd("transaction-mode-description.onlinero")},{value:le.cy.stalero,content:le.Nf[le.cy.stalero],text:dd("transaction-mode-description.stalero")},{value:le.cy.snapshot,content:le.Nf[le.cy.snapshot],text:dd("transaction-mode-description.snapshot")}],Ad=[{value:le.wZ.query,content:le.U4[le.wZ.query],text:dd("method-description.query"),isDefault:!0},{value:le.wZ.script,content:le.U4[le.wZ.script],text:dd("method-description.script")},{value:le.wZ.scan,content:le.U4[le.wZ.scan],text:dd("method-description.scan")},{value:le.wZ.data,content:le.U4[le.wZ.data],text:dd("method-description.data")},{value:le.wZ.pg,content:le.U4[le.wZ.pg],text:dd("method-description.pg")}],_d=[{value:le.$E.none,content:le.Ie[le.$E.none],text:dd("statistics-mode-description.none"),isDefault:!0},{value:le.$E.basic,content:le.Ie[le.$E.basic],text:dd("statistics-mode-description.basic")},{value:le.$E.full,content:le.Ie[le.$E.full],text:dd("statistics-mode-description.full")},{value:le.$E.profile,content:le.Ie[le.$E.profile],text:dd("statistics-mode-description.profile")}],kd=[{value:le.Rm.off,content:le.Vj[le.Rm.off],text:dd("tracing-level-description.off")},{value:le.Rm.toplevel,content:le.Vj[le.Rm.toplevel],text:dd("tracing-level-description.toplevel")},{value:le.Rm.basic,content:le.Vj[le.Rm.basic],text:dd("tracing-level-description.basic")},{value:le.Rm.detailed,content:le.Vj[le.Rm.detailed],text:dd("tracing-level-description.detailed"),isDefault:!0},{value:le.Rm.diagnostic,content:le.Vj[le.Rm.diagnostic],text:dd("tracing-level-description.diagnostic")},{value:le.Rm.trace,content:le.Vj[le.Rm.trace],text:dd("tracing-level-description.trace")}],Od={transactionMode:{title:Dd("form.transaction-mode"),options:Rd},queryMode:{title:Dd("form.query-mode"),options:Ad},statisticsMode:{title:Dd("form.statistics-mode"),options:_d},tracingLevel:{title:Dd("form.tracing-level"),options:kd},timeout:{title:Dd("form.timeout")},limitRows:{title:Dd("form.limit-rows")}};function Md(e){let{currentSettings:t,defaultSettings:a}=e;const n=Ed(t,a),s={};return n.forEach((e=>{const a=Od[e],n=t[e];if("options"in a){var r;const e=null===(r=a.options.find((e=>e.value===n)))||void 0===r?void 0:r.content;e&&(s[a.title]=e)}else n&&(s[a.title]=String(n))})),s}var Ld=a(14709);const zd=()=>{const[e,t]=(0,Ld.y)(x.RE);let a;try{a=le.J7.parse(e)}catch(n){a=void 0}return[a,t]};var qd=a(66213);const Fd=()=>{const[e,t]=(0,Ld.y)(x.Rn),[a]=zd(),[n]=(0,qd.d)(),s=a?Ed(a,le.hl):[],r=n?Ed(n,le.hl):[],i=s.length>0,o=a?Md({currentSettings:a,defaultSettings:le.hl}):{},l=n?Md({currentSettings:n,defaultSettings:le.hl}):{},d=e&&Date.now()-e<1e3*x.nU;return{isBannerShown:i&&!d,isIndicatorShown:i&&d,closeBanner:()=>t(Date.now()),resetBanner:()=>t(void 0),changedCurrentSettings:r,changedCurrentSettingsDescriptions:l,changedLastExucutionSettings:s,changedLastExecutionSettingsDescriptions:o}},Qd="s-expression",Bd="yql";var Ud=a(44822);let Hd;!function(e){e.triggerCollapse="triggerCollapse",e.triggerExpand="triggerExpand",e.clear="clear"}(Hd||(Hd={}));const Gd=e=>{localStorage.setItem(e,"true")},Zd=e=>{localStorage.removeItem(e)};function Vd(e){return function(t,a){switch(a){case Hd.triggerCollapse:return Gd(e),{...t,triggerCollapse:!0,triggerExpand:!1,collapsed:!0};case Hd.triggerExpand:return Zd(e),{...t,triggerCollapse:!1,triggerExpand:!0,collapsed:!1};case Hd.clear:return Zd(e),{triggerCollapse:!1,triggerExpand:!1,collapsed:!1};default:return t}}}const Wd=(0,d.cn)("kv-pane-visibility-button");function $d(e){let{onCollapse:t,onExpand:a,isCollapsed:s,initialDirection:r="top",className:i}=e;return(0,c.jsxs)(n.Fragment,{children:[(0,c.jsx)(es.z,{view:"flat-secondary",onClick:t,className:Wd({hidden:s},i),title:"Collapse",children:(0,c.jsx)(Be.J,{data:Ud.Z,className:Wd({[r]:!0})})}),(0,c.jsx)(es.z,{view:"flat-secondary",onClick:a,className:Wd({hidden:!s},i),title:"Expand",children:(0,c.jsx)(Be.J,{data:Ud.Z,className:Wd({[r]:!0},"rotate")})})]})}var Jd=a(90861);const Kd=(0,d.cn)("kv-divider");const Xd=function(){return(0,c.jsx)("div",{className:Kd()})},Yd=(0,d.cn)("ydb-query-elapsed-time");function ec(e){let{className:t}=e;const[,a]=n.useState({}),[s]=n.useState(Date.now()),r=Date.now()-s;n.useEffect((()=>{const e=setInterval((()=>{a({})}),x.NO);return()=>{clearInterval(e)}}),[]);const i=r>x.RQ*x.NO?(0,Ll.x9)(r).format("hh:mm:ss"):(0,Ll.x9)(r).format("mm:ss");return(0,c.jsx)(pe._,{className:Yd(null,t),children:i})}var tc=a(4140),ac=a(56963);const nc=function(e){let{disabled:t}=e;const a=(0,y.zL)();return(0,c.jsx)(es.z,{onClick:()=>{a((0,ac.Xl)())},view:"flat-secondary",disabled:t,title:"Fullscreen",children:(0,c.jsx)(Be.J,{data:tc.Z})})};var sc,rc=a(57107);function ic(){return ic=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},ic.apply(this,arguments)}const oc=function(e){return n.createElement("svg",ic({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),sc||(sc=n.createElement("path",{fill:"currentColor",d:"M13.383 6.5a.309.309 0 00.305-.305V5.18a.328.328 0 00-.305-.305H11.25V2.742a.328.328 0 00-.305-.304H9.93a.309.309 0 00-.305.304v3.149c0 .355.254.609.61.609h3.148zm-7.008-.61V2.743a.328.328 0 00-.305-.304H5.055a.309.309 0 00-.305.304v2.133H2.617a.309.309 0 00-.304.305v1.015c0 .178.126.305.304.305h3.149c.33 0 .609-.254.609-.61zm0 7.618v-3.149c0-.33-.28-.609-.61-.609H2.618a.309.309 0 00-.304.305v1.015c0 .178.126.305.304.305H4.75v2.133c0 .178.127.305.305.305H6.07a.309.309 0 00.305-.305zm4.875 0v-2.133h2.133a.309.309 0 00.305-.305v-1.015a.328.328 0 00-.305-.305h-3.149c-.355 0-.609.28-.609.61v3.148c0 .178.127.305.305.305h1.015a.309.309 0 00.305-.305z"})))};var lc;const dc=(0,d.cn)("ydb-fullscreen"),cc=null!==(lc=document.getElementById("fullscreen-root"))&&void 0!==lc?lc:void 0;const uc=function(e){let{children:t,className:a}=e;const s=(0,y.ix)((e=>e.fullscreen)),r=(0,y.zL)(),i=n.useCallback((()=>{r((0,ac.vj)())}),[r]);n.useEffect((()=>{const e=e=>{"Escape"===e.key&&i()};return document.addEventListener("keydown",e,!1),()=>{document.removeEventListener("keydown",e,!1)}}),[i]);const[o,l]=n.useState(null);n.useEffect((()=>{const e=document.createElement("div");return null===cc||void 0===cc||cc.appendChild(e),e.style.display="contents",l(e),()=>{l(null),e.remove()}}),[]);const d=n.useRef(null);return n.useLayoutEffect((()=>{var e;o&&(s?null===cc||void 0===cc||cc.appendChild(o):null===(e=d.current)||void 0===e||e.appendChild(o))}),[o,s]),o?(0,c.jsx)("div",{ref:d,style:{display:"contents"},children:(0,c.jsx)(rc.h,{container:o,children:(0,c.jsxs)("div",{className:dc({fullscreen:s},a),children:[(0,c.jsx)(es.z,{onClick:i,view:"raised",className:dc("close-button"),children:(0,c.jsx)(Be.J,{data:oc})}),t]})})}):null};var mc=a(2128);function pc(e){const t=n.useRef(null),a=n.useId(),{data:s,opts:r,shapes:i}=e;return n.useEffect((()=>{const e=t.current;if(!e)return;e.innerHTML="",e.style.setProperty("width","100vw"),e.style.setProperty("height","100vh");const a=(0,mc.hP)(e.id,s,r,i);return a.render(),e.style.setProperty("width","100%"),e.style.setProperty("height","100%"),()=>{a.destroy()}}),[s,r,i]),(0,c.jsx)("div",{id:a,ref:t,style:{overflow:"auto"}})}const hc={renderNodeTitle:e=>{const t=e.name.split("|");return t.length>1?t[1]:e.name},textOverflow:"normal",initialZoomFitsCanvas:!0},vc={node:mc.od};function gc(e){return(0,c.jsx)(pc,{...e,opts:hc,shapes:vc})}var xc=a(65375),yc=a(22155),bc=a(27320),fc=a(39934);function jc(e){var t;const a=(0,le.dt)(e);return"object"===typeof a&&"Query was cancelled"===(null===(t=a.error)||void 0===t?void 0:t.message)}var Nc=a(30490);const Sc=(0,d.cn)("ydb-query-settings-description"),wc=e=>{let{querySettings:t,prefix:a}=e;return(0,c.jsxs)("div",{className:Sc("message"),children:[a,Object.entries(t).map(((e,t,a)=>{let[n,s]=e;return(0,c.jsxs)("span",{className:Sc("description-item"),children:[`${n}: ${s}`,t<a.length-1?", ":null]},t)}))]})},Tc=(0,d.cn)("kv-query-execution-status"),Cc=()=>{const{isIndicatorShown:e,changedLastExecutionSettingsDescriptions:t}=Fd();return e?(0,c.jsx)(bc.u,{openDelay:0,content:(0,c.jsx)(wc,{prefix:dd("banner.query-settings.message"),querySettings:t}),children:(0,c.jsx)(Be.J,{data:qs.Z,className:Tc("query-settings-icon")})}):null},Ec=e=>{let t,a,{className:n,error:s,loading:r}=e;if(r)t=(0,c.jsx)(fc.y,{size:"xs"}),a="Running";else if((0,Nc.IZ)(s)&&"ECONNABORTED"===s.code)t=(0,c.jsx)(Be.J,{data:xc.Z}),a="Connection aborted";else if(jc(s))t=(0,c.jsx)(Be.J,{data:yc.Z}),a="Stopped";else{const e=Boolean(s);t=(0,c.jsx)(Be.J,{data:e?Fs.Z:zs.Z,className:Tc("result-status-icon",{error:e})}),a=e?"Failed":"Completed"}return(0,c.jsxs)("div",{className:Tc(null,n),children:[t,a,jc(s)||r?null:(0,c.jsx)(Cc,{})]})},Pc=n.memo((function(e){const{className:t,value:a}=e,n=(0,y.zL)();return(0,c.jsx)("span",{className:_c("cell",t),onClick:e=>n((0,A.hJ)(e.target,a,"cell")),children:a})})),Ic=JSON.parse('{"empty":"Table is empty"}'),Dc=JSON.parse('{"empty":"\u0422\u0430\u0431\u043b\u0438\u0446\u0430 \u043f\u0443\u0441\u0442\u0430\u044f"}'),Rc=(0,ve.wZ)("ydb-query-result-table",{ru:Dc,en:Ic}),Ac={...x.LE,stripedRows:!0,dynamicRenderType:"variable",dynamicItemSizeGetter:()=>40},_c=(0,d.cn)("ydb-query-result-table"),kc=(e,t)=>t,Oc=e=>{const{columns:t,data:a,settings:s,...r}=e,i=n.useMemo((()=>(0,le.Xh)(a)),[a]),o=n.useMemo((()=>t?(e=>e.length?e.map((e=>{let{name:t,type:a}=e;const n=(0,le.T$)(a);return{name:t,align:"number"===n?fe.ZP.RIGHT:fe.ZP.LEFT,sortAccessor:e=>{const a=e[t];return void 0===a||null===a?null:"number"===n?BigInt(a):a},render:e=>{let{row:a}=e;return(0,c.jsx)(Pc,{value:String(a[t])})}}})):[])(t):(e=>e.length?Object.keys(e[0]).map((t=>({name:t,align:(0,Cn.kE)(e[0][t])?fe.ZP.RIGHT:fe.ZP.LEFT,sortAccessor:e=>(0,Cn.kE)(e[t])?Number(e[t]):e[t],render:e=>{let{row:a}=e;return(0,c.jsx)(Pc,{value:String(a[t])})}}))):[])(i)),[i,t]),l=n.useMemo((()=>({...Ac,...s})),[s]);return Array.isArray(a)?o.length?(0,c.jsx)(ie.G,{data:i,columns:o,settings:l,rowKey:kc,...r}):(0,c.jsx)("div",{className:_c("message"),children:Rc("empty")}):null};var Mc=a(77936);const Lc=de.h.injectEndpoints({endpoints:e=>({cancelQuery:e.mutation({queryFn:async(e,t)=>{let{queryId:a,database:n}=e,{signal:s}=t;try{const e=await window.api.sendQuery({database:n,action:"cancel-query",query_id:a},{signal:s});if((0,le.gW)(e))return{error:e};return{data:(0,le.gY)(e)}}catch(r){return{error:r}}}})}),overrideExisting:"throw"}),zc=(0,d.cn)("cancel-query-button");function qc(e){let{queryId:t,tenantName:a}=e;const[s,r]=Lc.useCancelQueryMutation(),i=n.useCallback((()=>{s({queryId:t,database:a})}),[t,s,a]);return(0,c.jsxs)(es.z,{loading:r.isLoading,onClick:i,className:zc("stop-button",{error:Boolean(r.error)}),children:[(0,c.jsx)(Be.J,{data:Mc.Z,size:16}),dd("action.stop")]})}var Fc=a(34147),Qc=a(89799),Bc=a(24829);const Uc=(0,d.cn)("ydb-query-explain-simplified-plan");function Hc(e){let{value:t,formatter:a}=e;if(!(0,Cn.kE)(t))return;const n=a(Number(t));return(0,c.jsx)("div",{className:Uc("metrics-cell"),children:n})}var Gc=a(33569);const Zc={Table:"var(--g-color-text-info)",Predicate:"var(--g-color-text-positive)",Condition:"var(--g-color-text-utility)"};function Vc(e){return e in Zc?Zc[e]:"var(--g-color-text-secondary)"}function Wc(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=[],a=Object.entries(e);if(1===a.length){const e=a[0][1],n=Vc(a[0][0]);t.push((0,c.jsx)("span",{style:{color:n},children:(0,_.fm)(e)},"param"))}else{const a=function(e){const t=[],{Table:a,Predicate:n,Condition:s,...r}=e;return a&&t.push(["Table",a]),n&&t.push(["Predicate",n]),s&&t.push(["Condition",s]),t.concat(Object.entries(r))}(e);for(let e=0;e<a.length;e++){const[n,s]=a[e],r=Vc(n);e>0&&t.push(", "),t.push((0,c.jsxs)("span",{style:{color:r},children:[n,": ",(0,_.fm)(s)]},e))}}return t}function $c(e){let{params:t}=e;return t?(0,c.jsxs)("span",{className:Uc("operation-params"),children:["(",Wc(t),")"]}):null}const Jc=25,Kc=9;function Xc(e){let{modifiers:t,left:a}=e;return(0,c.jsx)("div",{className:Uc("divider",t),style:{left:a}})}function Yc(e){let{row:t,depth:a=0,params:s}=e;const{name:r,operationParams:i,lines:o=""}=s,l=t.getLeafRows().length>0&&t.getIsExpanded(),d=n.useMemo((()=>function(e,t){const a=e.split(".").map(Number),n=[];for(let s=0;s<a.length;s++)s===a.length-1&&0!==s&&(a[s]?n.push((0,c.jsx)(Xc,{modifiers:{horizontal:!0},left:Kc+1+Jc*(s-1)},"last")):n.push((0,c.jsx)(Xc,{modifiers:{last:!0},left:Kc+Jc*(s-1)},"last"))),s===a.length-1&&t&&n.push((0,c.jsx)(Xc,{modifiers:{first:!0},left:Kc+Jc*s},"first")),a[s]&&n.push((0,c.jsx)(Xc,{left:Kc+Jc*(s-1)},s));return n}(o,l)),[o,l]);return(0,c.jsxs)("div",{style:{paddingLeft:Jc*a},className:Uc("operation-name"),children:[d,(0,c.jsxs)(Ja.k,{gap:1,alignItems:"flex-start",className:Uc("operation-content"),children:[t.getCanExpand()&&(0,c.jsx)(es.z,{view:"flat",size:"xs",onClick:t.getToggleExpandedHandler(),children:(0,c.jsx)(es.z.Icon,{children:(0,c.jsx)(Gc.F,{direction:t.getIsExpanded()?"bottom":"right",size:14})})}),(0,c.jsx)("div",{className:Uc("operation-name-content"),children:(0,c.jsxs)("div",{children:[r,"\xa0",(0,c.jsx)($c,{params:i})]})})]})]})}function eu(e){return(0,c.jsx)(Hc,{value:e.getValue(),formatter:e=>e<1e8?(0,Bc.X)(e).format():(0,Cn.t_)(e,1)})}function tu(e){let{name:t}=e;return(0,c.jsx)("div",{className:Uc("table-header-content"),children:t})}const au=[{accessorKey:"name",accessorFn:function(e){return{name:e.name,operationParams:e.operationParams,lines:e.lines}},header:()=>(0,c.jsx)(tu,{name:"Operation"}),size:600,cell:e=>(0,c.jsx)(Yc,{row:e.row,depth:e.row.depth,params:e.getValue()})},{accessorKey:"aCpu",header:()=>(0,c.jsx)(tu,{name:"A-Cpu"}),size:90,minSize:100,cell:function(e){return(0,c.jsx)(Hc,{value:e.getValue(),formatter:e=>(0,tt.zm)(Math.round(e))})},meta:{align:"right",verticalAlign:"top"}},{accessorKey:"aRows",header:()=>(0,c.jsx)(tu,{name:"A-Rows"}),size:90,minSize:100,cell:eu,meta:{align:"right",verticalAlign:"top"}},{accessorKey:"eCost",header:()=>(0,c.jsx)(tu,{name:"E-Cost"}),size:90,minSize:100,cell:eu,meta:{align:"right",verticalAlign:"top"}},{accessorKey:"eRows",header:()=>(0,c.jsx)(tu,{name:"E-Rows"}),size:90,minSize:100,cell:eu,meta:{align:"right",verticalAlign:"top"}},{accessorKey:"eSize",header:()=>(0,c.jsx)(tu,{name:"E-Size"}),size:90,minSize:100,cell:eu,meta:{align:"right",verticalAlign:"top"}}];function nu(e){let{plan:t}=e;const a=n.useMemo((()=>function(e){if(!e)return[];const t=[{items:e,prefix:arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",parentIndex:-1,parentArray:[]}],a=[];for(;t.length>0;){const{items:e,prefix:n,parentIndex:s,parentArray:r}=t.pop(),i=[];for(let a=0;a<e.length;a++){const s={...e[a]},r=a<e.length-1?1:0;let o=`${n}.${r}`;n||(o=String(r)),s.lines=o,i.push(s),s.children&&t.push({items:s.children,prefix:o,parentIndex:a,parentArray:i})}-1===s?a.push(...i):r[s].children=i}return a}(t)),[t]),[s,r]=n.useState(!0),i=(0,Fc.x)({columns:au,data:a,getSubRows:e=>e.children,enableExpanding:!0,onExpandedChange:r,state:{expanded:s}});return(0,c.jsx)("div",{className:Uc(),children:(0,c.jsx)(Qc.i,{table:i,headerCellClassName:e=>{var t;let{column:a}=e;const n=null===(t=a.columnDef.meta)||void 0===t?void 0:t.align;return Uc("table-header-cell",{align:n})},cellClassName:e=>{var t,a;const n=null===e||void 0===e||null===(t=e.column.columnDef.meta)||void 0===t?void 0:t.align,s=null===e||void 0===e||null===(a=e.column.columnDef.meta)||void 0===a?void 0:a.verticalAlign;return Uc("table-cell",{align:n,"vertical-align":s})},className:Uc("table"),stickyHeader:!0})})}var su=a(67585),ru=a(57225),iu=a(76506);const ou=JSON.parse('{"default_collapse_label":"Show less","default_expand_label":"Show more","chars_count":[" ({{count}} symbol)"," ({{count}} symbols)"," ({{count}} symbols)"," ({{count}} symbols)"]}'),lu=JSON.parse('{"default_collapse_label":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u043c\u0435\u043d\u044c\u0448\u0435","default_expand_label":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0435\u0449\u0451","chars_count":[" ({{count}} \u0441\u0438\u043c\u0432\u043e\u043b)"," ({{count}} \u0441\u0438\u043c\u0432\u043e\u043b\u0430)"," ({{count}} \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432)"," ({{count}} \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432)"]}'),du=(0,ve.wZ)("ydb-shorty-string",{ru:lu,en:ou}),cu=(0,d.cn)("kv-shorty-string");function uu(e){let{value:t="",limit:a=200,strict:s=!1,displayLength:r=!0,render:i=(e=>e),onToggle:o,expandLabel:l=du("default_expand_label"),collapseLabel:d=du("default_collapse_label")}=e;const[u,m]=n.useState(!1),p=(u?d:l)+(r&&!u?du("chars_count",{count:t.length}):""),h=t.length>a+(s?0:p.length),v=u||!h?t:t.slice(0,a-4)+"\xa0...";return(0,c.jsxs)("div",{className:cu(),children:[i(v),h?(0,c.jsx)(Yr.r,{className:cu("toggle"),href:"#",onClick:e=>{e.stopPropagation(),e.preventDefault(),m((e=>!e)),null===o||void 0===o||o()},children:p}):null]})}const mu=["S_FATAL","S_ERROR","S_WARNING","S_INFO"];function pu(e){return function(e){return!!e&&void 0!==mu[e]}(e)?mu[e]:"S_INFO"}const hu=(0,d.cn)("kv-result-issues"),vu=(0,d.cn)("kv-issues"),gu=(0,d.cn)("kv-issue");function xu(e){let{data:t}=e;const[a,s]=n.useState(!1),r="string"===typeof t||null===t||void 0===t?void 0:t.issues,i=Array.isArray(r)&&r.length>0;return(0,c.jsxs)("div",{className:hu(),children:[(0,c.jsxs)("div",{className:hu("error-message"),children:[(()=>{let e;if("string"===typeof t)e=t;else{var a,s;const r=pu(null===t||void 0===t||null===(a=t.error)||void 0===a?void 0:a.severity);e=(0,c.jsxs)(n.Fragment,{children:[(0,c.jsx)(Su,{severity:r})," ",(0,c.jsx)("span",{className:hu("error-message-text"),children:null===t||void 0===t||null===(s=t.error)||void 0===s?void 0:s.message})]})}return e})(),i&&(0,c.jsx)(es.z,{view:"normal",onClick:()=>s(!a),children:a?"Hide details":"Show details"})]}),i&&a&&(0,c.jsx)(yu,{issues:r})]})}function yu(e){let{issues:t}=e;const a=null===t||void 0===t?void 0:t.reduce(((e,t)=>{var a;const n=null!==(a=t.severity)&&void 0!==a?a:10;return Math.min(e,n)}),10);return(0,c.jsx)("div",{className:vu(null),children:null===t||void 0===t?void 0:t.map(((e,t)=>(0,c.jsx)(bu,{issue:e,expanded:e===a},t)))})}function bu(e){let{issue:t,level:a=0}=e;const[s,r]=n.useState(!0),i=pu(t.severity),o=function(e){const{position:t}=e;if("object"!==typeof t||null===t||!(0,Cn.kE)(t.row))return"";const{row:a,column:n}=t;return(0,Cn.kE)(n)?`${a}:${n}`:`line ${a}`}(t),l=t.issues,d=Array.isArray(l)&&l.length>0,u=s?"bottom":"right";return(0,c.jsxs)("div",{className:gu({leaf:!d,"has-issues":d}),children:[(0,c.jsxs)("div",{className:gu("line"),children:[d&&(0,c.jsx)(es.z,{view:"flat-secondary",onClick:()=>r(!s),className:gu("arrow-toggle"),children:(0,c.jsx)(Gc.F,{direction:u,size:16})}),(0,c.jsx)(Su,{severity:i}),(0,c.jsxs)("span",{className:gu("message"),children:[o&&(0,c.jsx)("span",{className:gu("place-text"),title:"Position",children:o}),(0,c.jsx)("div",{className:gu("message-text"),children:(0,c.jsx)(uu,{value:t.message,expandLabel:"Show full message"})})]}),t.issue_code?(0,c.jsxs)("span",{className:gu("code"),children:["Code: ",t.issue_code]}):null]}),d&&s&&(0,c.jsx)("div",{className:gu("issues"),children:(0,c.jsx)(fu,{issues:l,level:a+1,expanded:s})})]})}function fu(e){const{issues:t,level:a,expanded:n}=e;return(0,c.jsx)("div",{className:gu("list"),children:t.map(((e,t)=>(0,c.jsx)(bu,{issue:e,level:a,expanded:n},t)))})}const ju={S_INFO:su.Z,S_WARNING:ru.Z,S_ERROR:Qs.Z,S_FATAL:iu.Z},Nu=(0,d.cn)("yql-issue-severity");function Su(e){let{severity:t}=e;const a=t.slice(2).toLowerCase();return(0,c.jsxs)("span",{className:Nu({severity:a}),children:[(0,c.jsx)(Be.J,{className:Nu("icon"),data:ju[t]}),(0,c.jsx)("span",{className:Nu("title"),children:a})]})}const wu=(0,d.cn)("ydb-query-duration"),Tu=e=>{let{duration:t}=e;if(!t)return null;const a=(0,tt.tt)((0,tt.BO)(t),1);return(0,c.jsx)("span",{className:wu(),children:(0,c.jsx)(ft,{className:wu("item-with-popover"),contentClassName:wu("popover-content"),text:a,popoverClassName:wu("popover"),popoverContent:dd("query-duration.description"),buttonProps:{className:wu("popover-button")}})})};var Cu=a(68750);const Eu=(0,d.cn)("ydb-query-settings-banner");function Pu(){const{isBannerShown:e,changedLastExecutionSettingsDescriptions:t,closeBanner:a}=Fd();return e?(0,c.jsx)(Cu.b,{className:Eu(),theme:"info",align:"baseline",message:(0,c.jsx)(wc,{prefix:dd("banner.query-settings.message"),querySettings:t}),onClose:a}):null}function Iu(e){return e.replaceAll("\\","\\\\").replaceAll("\n","\\n").replaceAll("\r","\\r").replaceAll("\t","\\t")}var Du=a(39683),Ru=a(77915);const Au=de.h.injectEndpoints({endpoints:e=>({checkTrace:e.query({queryFn:async(e,t)=>{let{url:a}=e,{signal:n}=t;try{return{data:await window.api.checkTrace({url:a},{signal:n})}}catch(s){return{error:s}}}})}),overrideExisting:"throw"});var _u=a(42587);function ku(e,t){return e.replace(/\${(\w+)}/g,((e,a)=>t[a]||e))}const Ou=JSON.parse('{"description.graph-is-not-supported":"Graph can not be rendered","action.result":"Result","action.stats":"Stats","action.schema":"Schema","action.explain-plan":"Explain Plan","action.copy":"Copy {{activeSection}}","trace":"Trace","truncated":"Truncated"}'),Mu=(0,ve.wZ)("ydb-execute-result",{en:Ou}),Lu=15*x.NO;function zu(e){let{traceId:t}=e;const{traceCheck:a,traceView:s}=(0,Ru.kW)(),r=null!==a&&void 0!==a&&a.url?ku(a.url,{traceId:t}):"",i=null!==s&&void 0!==s&&s.url?ku(s.url,{traceId:t}):"",[o,l]=(0,_u.$)(Lu);n.useEffect((()=>{l()}),[t,l]);const{isFetching:d}=Au.useCheckTraceQuery({url:r},{skip:!r||!o});if(!i)return null;const u=!o||d;return(0,c.jsxs)(es.z,{view:u?"flat-secondary":"flat-info",loading:u,href:i,target:"_blank",children:[Mu("trace"),(0,c.jsx)(es.z.Icon,{children:(0,c.jsx)(Du.Z,{})})]})}const qu=(0,d.cn)("ydb-query-execute-result"),Fu={result:"result",stats:"stats",schema:"schema",simplified:"simplified"};function Qu(e){var t,a;let{result:s,isResultsCollapsed:r,theme:i,tenantName:l,onCollapseResults:d,onExpandResults:u}=e;const[m,p]=n.useState(0),[h,v]=n.useState(Fu.result),g=(0,y.zL)(),{error:x,isLoading:b,queryId:f,data:N}=s,S=null===N||void 0===N?void 0:N.stats,w=null===N||void 0===N||null===(t=N.resultSets)||void 0===t?void 0:t.length,T=w&&w>0,C=T?null===N||void 0===N||null===(a=N.resultSets)||void 0===a?void 0:a[m]:N,{plan:E,simplifiedPlan:P}=n.useMemo((()=>function(e){var t,a,n;if(!e)return{};const{plan:s}=e;if(s){const e=(0,le.y5)(s);if(e.meta.version!==Sd.v2)return{};const{Plan:t,SimplifiedPlan:a}=e;return{plan:t?{...jd(t),tables:e.tables}:void 0,simplifiedPlan:{plan:a?Nd([a]):void 0,pristine:a}}}const{stats:r}=e,i=null===r||void 0===r||null===(t=r.Executions)||void 0===t||null===(a=t[0])||void 0===a||null===(n=a.TxPlansWithStats)||void 0===n?void 0:n[0];if(!i)return{};try{return{plan:jd(JSON.parse(i))}}catch(o){return{}}}(N)),[N]),I=[{value:Fu.result,content:Mu("action.result")},{value:Fu.stats,content:Mu("action.stats")}];E&&I.push({value:Fu.schema,content:Mu("action.schema")}),null!==P&&void 0!==P&&P.plan&&I.push({value:Fu.simplified,content:Mu("action.explain-plan")});const D=(0,le.dt)(x);n.useEffect((()=>()=>{g((0,ac.vj)())}),[g]);const R=()=>{switch(h){case Fu.result:{const e=function(e){if(null===e||void 0===e||!e.length)return"";const t=Object.keys(e[0]),a=[t.map(Iu).join("\t")];for(const n of e){const e=[];for(const a of t){const t=n[a];e.push(Iu("object"===typeof t?JSON.stringify(t):`${t}`))}a.push(e.join("\t"))}return a.join("\n")}(null===C||void 0===C?void 0:C.result);return e}case Fu.stats:return S;case Fu.simplified:return null===P||void 0===P?void 0:P.pristine;default:return}};return(0,c.jsxs)(n.Fragment,{children:[(0,c.jsxs)("div",{className:qu("controls"),children:[(0,c.jsxs)("div",{className:qu("controls-right"),children:[(0,c.jsx)(Ec,{error:x,loading:b}),!x&&!b&&(0,c.jsxs)(n.Fragment,{children:[void 0!==(null===S||void 0===S?void 0:S.DurationUs)&&(0,c.jsx)(Tu,{duration:Number(S.DurationUs)}),I&&h&&(0,c.jsxs)(n.Fragment,{children:[(0,c.jsx)(Xd,{}),(0,c.jsx)($l.E,{options:I,value:h,onUpdate:e=>{v(e)}})]})]}),b?(0,c.jsxs)(n.Fragment,{children:[(0,c.jsx)(ec,{className:qu("elapsed-time")}),(0,c.jsx)(qc,{queryId:f,tenantName:l})]}):null,null!==N&&void 0!==N&&N.traceId?(0,c.jsx)(zu,{traceId:N.traceId}):null]}),(0,c.jsxs)("div",{className:qu("controls-left"),children:[(()=>{const e=R(),t=(0,_.fm)(e);return t?(0,c.jsx)(Jd.m,{text:t,view:"flat-secondary",title:Mu("action.copy",{activeSection:h})}):null})(),(0,c.jsx)(nc,{}),(0,c.jsx)($d,{onCollapse:d,onExpand:u,isCollapsed:r,initialDirection:"bottom"})]})]}),b||jc(x)?null:(0,c.jsx)(Pu,{}),(0,c.jsx)(o.s,{loading:b,children:(0,c.jsx)(uc,{children:x&&!jc(x)?D?"object"===typeof D?(0,c.jsx)(xu,{data:D}):(0,c.jsx)("div",{className:qu("error"),children:D}):null:h===Fu.result?(()=>{var e;return(0,c.jsxs)("div",{className:qu("result-wrapper"),children:[T&&w>1&&(0,c.jsx)("div",{children:(0,c.jsx)(j.m,{className:qu("result-tabs"),size:"l",items:(0,Tn.c$)(w).map((e=>{var t,a;return{id:String(e),title:`Result #${e+1}${null!==N&&void 0!==N&&null!==(t=N.resultSets)&&void 0!==t&&null!==(a=t[e])&&void 0!==a&&a.truncated?" (T)":""}`}})),activeTab:String(m),onSelectTab:e=>p(Number(e))})}),(0,c.jsxs)("div",{className:qu("result"),children:[null!==C&&void 0!==C&&C.truncated?(0,c.jsxs)("div",{className:qu("result-head"),children:[(0,c.jsx)(Ba.x,{variant:"subheader-3",children:Mu("truncated")}),(0,c.jsx)(Ba.x,{color:"secondary",variant:"body-2",className:qu("row-count"),children:`(${null===C||void 0===C||null===(e=C.result)||void 0===e?void 0:e.length})`})]}):null,(0,c.jsx)(Oc,{data:null===C||void 0===C?void 0:C.result,columns:null===C||void 0===C?void 0:C.columns,settings:{sortable:!1}})]})]})})():h===Fu.stats?(0,c.jsx)("div",{className:qu("inspector"),children:(0,c.jsx)(ea(),{data:S,isExpanded:()=>!0,searchOptions:{debounceTime:300}})}):h===Fu.schema?(null===E||void 0===E?void 0:E.links)&&(null===E||void 0===E?void 0:E.nodes)&&(null===E||void 0===E?void 0:E.nodes.length)?(0,c.jsx)("div",{className:qu("explain-canvas-container"),children:(0,c.jsx)(gc,{data:E},i)}):Mu("description.graph-is-not-supported"):h===Fu.simplified?(()=>{const{plan:e}=null!==P&&void 0!==P?P:{};return e?(0,c.jsx)(nu,{plan:e}):null})():null})})]})}var Bu=a(93757);const Uu=(0,d.cn)("ydb-query-explain-ast"),Hu={automaticLayout:!0,selectOnLineNumbers:!0,readOnly:!0,minimap:{enabled:!1},wrappingIndent:"indent"};function Gu(e){let{ast:t,theme:a}=e;return(0,c.jsx)("div",{className:Uu(),children:(0,c.jsx)(Bu.default,{language:Qd,value:t,options:Hu,theme:`vs-${a}`})})}const Zu=JSON.parse('{"description.empty-result":"There is no {{activeOption}} for the request","description.graph-is-not-supported":"Graph can not be rendered","action.schema":"Schema","action.explain-plan":"Explain Plan","action.json":"JSON","action.ast":"AST","action.copy":"Copy {{activeOption}}"}'),Vu=(0,ve.wZ)("ydb-explain-result",{en:Zu}),Wu=(0,d.cn)("ydb-query-explain-graph");function $u(e){let{explain:t,theme:a}=e;const{links:n,nodes:s,version:r}=null!==t&&void 0!==t?t:{},i=r===Sd.v2,o=n&&s&&s.length;return i&&o?(0,c.jsx)("div",{className:Wu("canvas-container"),children:(0,c.jsx)(gc,{data:{links:n,nodes:s}},a)}):(0,c.jsx)("div",{className:Wu("text-message"),children:Vu("description.graph-is-not-supported")})}const Ju=(0,d.cn)("ydb-query-explain-text");function Ku(e){let{explain:t}=e;return(0,c.jsx)(ea(),{data:t,isExpanded:()=>!0,className:Ju("inspector"),searchOptions:{debounceTime:300}})}const Xu=(0,d.cn)("ydb-query-explain-result"),Yu={schema:"schema",json:"json",ast:"ast",simplified:"simplified"},em={[Yu.schema]:Vu("action.schema"),[Yu.json]:Vu("action.json"),[Yu.ast]:Vu("action.ast"),[Yu.simplified]:Vu("action.explain-plan")},tm=[{value:Yu.schema,content:em[Yu.schema]},{value:Yu.simplified,content:em[Yu.simplified]},{value:Yu.json,content:em[Yu.json]},{value:Yu.ast,content:em[Yu.ast]}];function am(e){let{theme:t,result:a,tenantName:s,onCollapseResults:r,onExpandResults:i,isResultsCollapsed:l}=e;const d=(0,y.zL)(),[u,m]=n.useState(Yu.schema),[p,h]=n.useTransition(),{error:v,isLoading:g,queryId:x}=a,{plan:b,ast:f,simplifiedPlan:j}=a.data||{};n.useEffect((()=>()=>{d((0,ac.vj)())}),[d]);const N=()=>(0,c.jsx)("div",{className:Xu("text-message"),children:Vu("description.empty-result",{activeOption:em[u]})}),S=(()=>{switch(u){case Yu.json:return null===b||void 0===b?void 0:b.pristine;case Yu.ast:return f;case Yu.simplified:return null===j||void 0===j?void 0:j.pristine;default:return}})(),w=(0,_.fm)(S);return(0,c.jsxs)(n.Fragment,{children:[(0,c.jsxs)("div",{className:Xu("controls"),children:[(0,c.jsxs)("div",{className:Xu("controls-right"),children:[(0,c.jsx)(Ec,{error:v,loading:g}),!v&&!g&&(0,c.jsxs)(n.Fragment,{children:[void 0!==(null===b||void 0===b?void 0:b.DurationUs)&&(0,c.jsx)(Tu,{duration:b.DurationUs}),(0,c.jsxs)(n.Fragment,{children:[(0,c.jsx)(Xd,{}),(0,c.jsx)($l.E,{options:tm,value:u,onUpdate:e=>{h((()=>m(e)))}})]})]}),g?(0,c.jsxs)(n.Fragment,{children:[(0,c.jsx)(ec,{className:Xu("elapsed-time")}),(0,c.jsx)(qc,{queryId:x,tenantName:s})]}):null]}),(0,c.jsxs)("div",{className:Xu("controls-left"),children:[w&&(0,c.jsx)(Jd.m,{text:w,view:"flat-secondary",title:Vu("action.copy",{activeOption:u})}),(0,c.jsx)(nc,{disabled:Boolean(v)}),(0,c.jsx)($d,{onCollapse:r,onExpand:i,isCollapsed:l,initialDirection:"bottom"})]})]}),g||jc(v)?null:(0,c.jsx)(Pu,{}),(0,c.jsx)(o.s,{loading:g||p,children:(0,c.jsx)(uc,{className:Xu("result"),children:(()=>{if(jc(v))return null;if(v)return(0,c.jsx)("div",{className:Xu("text-message"),children:(0,le.fV)(v)});switch(u){case Yu.json:return null!==b&&void 0!==b&&b.pristine?(0,c.jsx)(Ku,{explain:b.pristine}):N();case Yu.ast:return f?(0,c.jsx)(Gu,{ast:f,theme:t}):N();case Yu.schema:var e;return null!==b&&void 0!==b&&null!==(e=b.nodes)&&void 0!==e&&e.length?(0,c.jsx)($u,{theme:t,explain:b}):N();case Yu.simplified:{const{plan:e}=null!==j&&void 0!==j?j:{};return null!==e&&void 0!==e&&e.length?(0,c.jsx)(nu,{plan:e}):N()}default:return null}})()})})]})}const nm=de.h.injectEndpoints({endpoints:e=>({sendQuery:e.query({queryFn:async(e,t)=>{let{query:a,database:n,action:s}=e,{signal:r}=t;try{const e=await window.api.sendQuery({schema:"modern",query:a,database:n,action:s},{signal:r,withRetries:!0});return(0,le.gW)(e)?{error:e}:{data:(0,le.gY)(e)}}catch(i){return{error:i||new Error("Unauthorized")}}},providesTags:["All","PreviewData"]})}),overrideExisting:"throw"}),sm=(0,d.cn)("kv-preview"),rm=e=>{var t;let{database:a,path:n,type:s}=e;const r=(0,y.zL)(),i=(0,me.vp)(s),[o]=(0,y.Rj)(),l=`--!syntax_v1\nselect * from \`${n}\` limit 32`,{currentData:d,isFetching:u,error:m}=nm.useSendQueryQuery({database:a,query:l,action:(0,me.uL)(s)?"execute-query":"execute-scan"},{pollingInterval:o,skip:!i,refetchOnMountOrArgChange:!0}),p=null!==d&&void 0!==d?d:{},h=()=>{r((0,g.m7)(!1))};if(u&&void 0===d)return(0,c.jsx)("div",{className:sm("loader-container"),children:(0,c.jsx)(kn.a,{size:"m"})});let v;i?m&&(v=(0,c.jsx)("div",{className:sm("message-container","error"),children:(0,le.fV)(m)})):v=(0,c.jsx)("div",{className:sm("message-container"),children:dd("preview.not-available")});const x=null!==(t=v)&&void 0!==t?t:(0,c.jsx)("div",{className:sm("result"),children:(0,c.jsx)(Oc,{data:p.result,columns:p.columns})});return(0,c.jsxs)("div",{className:sm(),children:[(0,c.jsxs)("div",{className:sm("header"),children:[(0,c.jsxs)("div",{className:sm("title"),children:[dd("preview.title")," ",(0,c.jsx)("div",{className:sm("table-name"),children:n})]}),(0,c.jsxs)("div",{className:sm("controls-left"),children:[(0,c.jsx)(nc,{disabled:Boolean(m)}),(0,c.jsx)(es.z,{view:"flat-secondary",onClick:h,title:dd("preview.close"),children:(0,c.jsx)(Be.J,{data:ho.Z,size:18})})]})]}),(0,c.jsx)(uc,{children:x})]})};var im=a(21645),om=a(46089),lm=a(30831),dm=a(25822),cm=a(77264);function um(){const[e]=(0,y.yu)(x.DG,[]),t=(0,y.ix)(Cd.zC).toLowerCase();return t?e.filter((e=>e.body.toLowerCase().includes(t))):e}const mm=JSON.parse('{"action.save":"Save query","action.edit":"Edit query","action.save-as-new":"Save as new","action.edit-existing":"Edit existing","description":"The query will be saved in your browser","input-label":"Query name","input-placeholder":"Enter query name","button-apply":"Save","button-cancel":"Cancel","error.name-exists":"This name already exists","error.name-not-empty":"Name should not be empty"}'),pm=(0,ve.wZ)("ydb-save-query-dialog",{en:mm}),hm=(0,d.cn)("ydb-save-query");function vm(e){let{isSaveButtonDisabled:t}=e;const a=(0,y.zL)(),n=(0,y.ix)(Cd.g0),s=()=>{a((0,Cd.lm)("save")),a((0,Cd.y3)())},r=()=>{a((0,Cd.PM)(n)),a((0,Cd.y3)())};return n?(()=>{const e=[{action:r,text:pm("action.edit-existing")},{action:s,text:pm("action.save-as-new")}];return(0,c.jsx)(lm.h,{items:e,renderSwitcher:e=>(0,c.jsx)(es.z,{...e,disabled:t,children:pm("action.edit")}),popupProps:{placement:"top"}})})():(0,c.jsx)(es.z,{onClick:s,disabled:t,children:pm("action.save")})}function gm(){const e=um(),t=(0,y.zL)(),a=(0,y.ix)(Cd.oK),[s,r]=n.useState(""),[i,o]=n.useState(),l=()=>{t((0,Cd.lm)("idle")),r(""),o(void 0)};return(0,c.jsxs)(dm.V,{open:"save"===a,hasCloseButton:!1,size:"s",onClose:l,children:[(0,c.jsx)(dm.V.Header,{caption:pm("action.save")}),(0,c.jsxs)("form",{onSubmit:a=>{a.preventDefault();const n=(r=s)?e.some((e=>e.name.toLowerCase()===r.trim().toLowerCase()))?pm("error.name-exists"):void 0:pm("error.name-not-empty");var r;o(n),n||(t((0,Cd.PM)(s)),l())},children:[(0,c.jsxs)(dm.V.Body,{className:hm("dialog-body"),children:[(0,c.jsx)("div",{className:hm("dialog-row"),children:pm("description")}),(0,c.jsxs)("div",{className:hm("dialog-row"),children:[(0,c.jsx)("label",{htmlFor:"queryName",className:hm("field-title","required"),children:pm("input-label")}),(0,c.jsx)("div",{className:hm("control-wrapper"),children:(0,c.jsx)(cm.o,{id:"queryName",placeholder:pm("input-placeholder"),value:s,onUpdate:e=>{r(e),o(void 0)},hasClear:!0,autoFocus:!0,autoComplete:!1,validationState:i?"invalid":void 0,errorMessage:i})})]})]}),(0,c.jsx)(dm.V.Footer,{textButtonApply:pm("button-apply"),textButtonCancel:pm("button-cancel"),onClickButtonCancel:l,propsButtonApply:{type:"submit"}})]})]})}const xm=(0,d.cn)("ydb-query-editor-controls"),ym=e=>{let{onClick:t,runIsLoading:a}=e;const{changedCurrentSettings:n,changedCurrentSettingsDescriptions:s}=Fd(),r=n.length>0?{view:"outlined-info",selected:!0}:null;return(0,c.jsx)(bc.u,{disabled:0===n.length,content:(0,c.jsx)(wc,{prefix:dd("gear.tooltip"),querySettings:s}),openDelay:0,placement:["top-start"],children:(0,c.jsxs)(es.z,{onClick:t,loading:a,className:xm("gear-button"),...r,children:[(0,c.jsx)(Be.J,{data:im.Z,size:16}),r?(0,c.jsxs)("div",{className:xm("changed-settings"),children:["(",n.length,")"]}):null]})})},bm=e=>{let{disabled:t,isLoading:a,highlightedAction:n,handleSendExecuteClick:s,onSettingsButtonClick:r,handleGetExplainQueryClick:i}=e;const o="execute"===n?"action":void 0,l="explain"===n?"action":void 0;return(0,c.jsxs)("div",{className:xm(),children:[(0,c.jsxs)("div",{className:xm("left"),children:[(0,c.jsxs)(es.z,{onClick:()=>{s()},disabled:t,loading:a,view:o,className:xm("run-button"),children:[(0,c.jsx)(Be.J,{data:om.Z,size:14}),"Run"]}),(0,c.jsx)(es.z,{onClick:()=>{i()},disabled:t,loading:a,view:l,children:"Explain"}),(0,c.jsx)(ym,{onClick:r,runIsLoading:a})]}),(0,c.jsx)(vm,{isSaveButtonDisabled:t})]})};var fm=a(1341),jm=a(48450);const Nm=()=>-1,Sm=(0,d.cn)("ydb-query-settings-select");function wm(e){return(0,c.jsx)("div",{className:Sm("selector"),children:(0,c.jsx)(E.P,{id:e.id,options:e.settingOptions,value:[e.setting],onUpdate:t=>{e.onUpdateSetting(t[0])},getOptionHeight:Nm,popupClassName:Sm("popup"),renderOption:e=>(0,c.jsxs)("div",{className:Sm("item"),children:[(0,c.jsxs)("div",{className:Sm("item-title"),children:[e.content,e.isDefault?Dd("description.default"):""]}),e.text&&(0,c.jsx)("span",{className:Sm("item-description"),children:e.text})]}),width:"max"})})}const Tm=(0,d.cn)("ydb-query-settings-dialog");function Cm(){const e=(0,y.zL)(),t=(0,y.ix)(Cd.oK),[a,s]=(0,y.dU)(),r=n.useCallback((()=>{e((0,Cd.lm)("idle"))}),[e]),i=n.useCallback((e=>{s(e),r()}),[r,s]);return(0,c.jsxs)(dm.V,{open:"settings"===t,size:"s",onClose:r,className:Tm(),hasCloseButton:!1,children:[(0,c.jsx)(dm.V.Header,{caption:Dd("action.settings")}),(0,c.jsx)(Em,{initialValues:a,onSubmit:i,onClose:r})]})}function Em(e){let{initialValues:t,onSubmit:a,onClose:s}=e;const{control:r,handleSubmit:i,formState:{errors:o}}=(0,jm.cI)({defaultValues:t,resolver:(0,fm.F)(le.J7)}),l=(0,T.uY)();return(0,c.jsxs)("form",{onSubmit:i(a),children:[(0,c.jsxs)(dm.V.Body,{className:Tm("dialog-body"),children:[(0,c.jsxs)(Ja.k,{direction:"row",alignItems:"flex-start",className:Tm("dialog-row"),children:[(0,c.jsx)("label",{htmlFor:"queryMode",className:Tm("field-title"),children:Od.queryMode.title}),(0,c.jsx)("div",{className:Tm("control-wrapper",{queryMode:!0}),children:(0,c.jsx)(jm.Qr,{name:"queryMode",control:r,render:e=>{let{field:t}=e;return(0,c.jsx)(wm,{id:"queryMode",setting:t.value,onUpdateSetting:t.onChange,settingOptions:Od.queryMode.options})}})})]}),(0,c.jsxs)(Ja.k,{direction:"row",alignItems:"flex-start",className:Tm("dialog-row"),children:[(0,c.jsx)("label",{htmlFor:"timeout",className:Tm("field-title"),children:Od.timeout.title}),(0,c.jsx)("div",{className:Tm("control-wrapper"),children:(0,c.jsx)(jm.Qr,{name:"timeout",control:r,render:e=>{var t,a;let{field:s}=e;return(0,c.jsxs)(n.Fragment,{children:[(0,c.jsx)(cm.o,{id:"timeout",type:"number",...s,value:null===(t=s.value)||void 0===t?void 0:t.toString(),className:Tm("timeout"),placeholder:"60",validationState:o.timeout?"invalid":void 0,errorMessage:null===(a=o.timeout)||void 0===a?void 0:a.message,errorPlacement:"inside"}),(0,c.jsx)("span",{className:Tm("timeout-suffix"),children:Dd("form.timeout.seconds")})]})}})})]}),l&&(0,c.jsxs)(Ja.k,{direction:"row",alignItems:"flex-start",className:Tm("dialog-row"),children:[(0,c.jsx)("label",{htmlFor:"tracingLevel",className:Tm("field-title"),children:Od.tracingLevel.title}),(0,c.jsx)("div",{className:Tm("control-wrapper"),children:(0,c.jsx)(jm.Qr,{name:"tracingLevel",control:r,render:e=>{let{field:t}=e;return(0,c.jsx)(wm,{id:"tracingLevel",setting:t.value,onUpdateSetting:t.onChange,settingOptions:Od.tracingLevel.options})}})})]}),(0,c.jsxs)(Ja.k,{direction:"row",alignItems:"flex-start",className:Tm("dialog-row"),children:[(0,c.jsx)("label",{htmlFor:"transactionMode",className:Tm("field-title"),children:Od.transactionMode.title}),(0,c.jsx)("div",{className:Tm("control-wrapper",{transactionMode:!0}),children:(0,c.jsx)(jm.Qr,{name:"transactionMode",control:r,render:e=>{let{field:t}=e;return(0,c.jsx)(wm,{id:"transactionMode",setting:t.value,onUpdateSetting:t.onChange,settingOptions:Od.transactionMode.options})}})})]}),(0,c.jsxs)(Ja.k,{direction:"row",alignItems:"flex-start",className:Tm("dialog-row"),children:[(0,c.jsx)("label",{htmlFor:"statisticsMode",className:Tm("field-title"),children:Od.statisticsMode.title}),(0,c.jsx)("div",{className:Tm("control-wrapper",{statisticsMode:!0}),children:(0,c.jsx)(jm.Qr,{name:"statisticsMode",control:r,render:e=>{let{field:t}=e;return(0,c.jsx)(wm,{id:"statisticsMode",setting:t.value,onUpdateSetting:t.onChange,settingOptions:Od.statisticsMode.options})}})})]}),(0,c.jsxs)(Ja.k,{direction:"row",alignItems:"flex-start",className:Tm("dialog-row"),children:[(0,c.jsx)("label",{htmlFor:"limitRows",className:Tm("field-title"),children:Od.limitRows.title}),(0,c.jsx)("div",{className:Tm("control-wrapper"),children:(0,c.jsx)(jm.Qr,{name:"limitRows",control:r,render:e=>{var t,a;let{field:n}=e;return(0,c.jsx)(cm.o,{id:"limitRows",type:"number",...n,value:null===(t=n.value)||void 0===t?void 0:t.toString(),className:Tm("limit-rows"),placeholder:"10000",validationState:o.limitRows?"invalid":void 0,errorMessage:null===(a=o.limitRows)||void 0===a?void 0:a.message,errorPlacement:"inside"})}})})]})]}),(0,c.jsx)(dm.V.Footer,{textButtonApply:Dd("button-done"),textButtonCancel:Dd("button-cancel"),onClickButtonCancel:s,propsButtonApply:{type:"submit"},renderButtons:(e,t)=>(0,c.jsxs)("div",{className:Tm("buttons-container"),children:[(0,c.jsx)(Yr.r,{href:"https://ydb.tech/docs",target:"_blank",className:Tm("documentation-link"),children:Dd("docs")}),(0,c.jsxs)("div",{className:Tm("main-buttons"),children:[t,e]})]})})]})}const Pm={automaticLayout:!0,selectOnLineNumbers:!0,minimap:{enabled:!1}};const Im="navigation",Dm=(0,d.cn)("query-editor"),Rm={triggerExpand:!1,triggerCollapse:!1,collapsed:!0};const Am={saveQueryToHistory:mr.hO,goToPreviousQuery:mr.NU,goToNextQuery:mr.AJ,setShowPreview:g.m7,setTenantPath:mr.K0,setQueryAction:Cd.lm,setQueryResult:mr.Ae},_m=(0,ta.$j)((e=>({executeQuery:e.executeQuery,showPreview:e.schema.showPreview})),Am)((function(e){var t;const a=function(){const[e]=(0,y.yu)(x.y6),[t]=(0,y.yu)(x.XX);return n.useMemo((()=>{const a=Boolean(e);return{quickSuggestions:a,suggestOnTriggerCharacters:a,acceptSuggestionOnEnter:t?"on":"off",...Pm}}),[e,t])}(),{tenantName:s,path:r,setTenantPath:i,executeQuery:o,type:l,theme:d,changeUserInput:u,setQueryResult:m,showPreview:p}=e,{tenantPath:v}=o,g=Boolean(o.result),[b]=(0,y.dU)(),f=(0,T.uY)(),[j,N]=zd(),{resetBanner:S}=Fd(),[w]=(0,y.yu)(x.Rq),[C,E]=(0,y.yu)(x.w7),[P]=mr.mg.useExecuteQueryMutation(),[I]=Td.useExplainQueryMutation();n.useEffect((()=>{v!==s&&(v&&(u({input:""}),m()),i(s))}),[u,i,m,s,v]);const[D,R]=n.useReducer(Vd(x.eG),Rm);n.useEffect((()=>{R(Hd.triggerCollapse)}),[]),n.useEffect((()=>{e.showPreview||g?R(Hd.triggerExpand):R(Hd.triggerCollapse)}),[e.showPreview,g]);const A=(0,y.xd)((()=>{var e;const{history:t}=o;return(null===(e=t.queries[t.queries.length-1])||void 0===e?void 0:e.queryText)||""})),_=(0,y.xd)((t=>{const{input:a,history:n}=o,r=w?"multi":"modern",i=null!==t&&void 0!==t?t:a;E(le.Jf.execute),(0,pd.isEqual)(j,b)||(S(),N(b));const l=(0,hd.Z)();if(P({query:i,database:s,querySettings:b,schema:r,enableTracingLevel:f,queryId:l}),e.setShowPreview(!1),!t){var d;const{queries:t,currentIndex:s}=n;i!==(null===(d=t[s])||void 0===d?void 0:d.queryText)&&e.saveQueryToHistory(a,l)}R(Hd.triggerExpand)})),k=()=>{e.setQueryAction("settings")},M=(0,y.xd)((()=>{const{input:t}=o;E(le.Jf.explain),(0,pd.isEqual)(j,b)||(S(),N(b));const a=(0,hd.Z)();I({query:t,database:s,querySettings:b,enableTracingLevel:f,queryId:a}),e.setShowPreview(!1),R(Hd.triggerExpand)})),L=(0,y.xd)((()=>{C===le.Jf.explain?M():_()}));return(0,c.jsxs)("div",{className:Dm(),children:[(0,c.jsxs)(h,{direction:"vertical",defaultSizePaneKey:x.XN,triggerCollapse:D.triggerCollapse,triggerExpand:D.triggerExpand,minSize:[0,52],collapsedSizes:[100,0],onSplitStartDragAdditional:()=>{R(Hd.clear)},children:[(0,c.jsxs)("div",{className:Dm("pane-wrapper",{top:!0}),children:[(0,c.jsx)("div",{className:Dm("monaco-wrapper"),children:(0,c.jsx)("div",{className:Dm("monaco"),children:(0,c.jsx)(vd,{language:Bd,value:o.input,options:a,onChange:t=>{e.changeUserInput({input:t})},editorDidMount:(t,a)=>{const n=function(e){const{KeyMod:t,KeyCode:a}=e,n=t.CtrlCmd;return{sendQuery:n|a.Enter,sendSelectedQuery:n|t.Shift|e.KeyCode.Enter,selectPreviousQuery:n|a.UpArrow,selectNextQuery:n|a.DownArrow,saveQuery:n|a.KeyS,saveSelectedQuery:n|t.Shift|a.KeyS}}(a);!function(e){const t=O()((()=>{e.layout()}),100);e.layout(),window.addEventListener("resize",t),e.onDidDispose((()=>{window.removeEventListener("resize",t)}))}(t),function(e,t){Om(e.getValue(),t()),e.onDidChangeModelContent((()=>{Om(e.getValue(),t())})),e.onDidDispose((()=>{window.onbeforeunload=null}))}(t,A),t.focus(),t.addAction({id:"sendQuery",label:dd("action.send-query"),keybindings:[n.sendQuery],precondition:void 0,keybindingContext:void 0,contextMenuGroupId:Im,contextMenuOrder:1,run:()=>L()});const s=t.createContextKey("canSendSelectedText",!1);t.onDidChangeCursorSelection((e=>{let{selection:t,secondarySelections:a}=e;const n=t.selectionStartLineNumber!==t.positionLineNumber||t.selectionStartColumn!==t.positionColumn,r=a.length>0;s.set(n&&!r)})),t.addAction({id:"sendSelectedQuery",label:dd("action.send-selected-query"),keybindings:[n.sendSelectedQuery],precondition:"canSendSelectedText",contextMenuGroupId:Im,contextMenuOrder:1,run:e=>{const t=e.getSelection(),a=e.getModel();if(t&&a){const e=a.getValueInRange({startLineNumber:t.getSelectionStart().lineNumber,startColumn:t.getSelectionStart().column,endLineNumber:t.getPosition().lineNumber,endColumn:t.getPosition().column});_(e)}}}),t.addAction({id:"previous-query",label:dd("action.previous-query"),keybindings:[n.selectPreviousQuery],contextMenuGroupId:Im,contextMenuOrder:2,run:()=>{e.goToPreviousQuery()}}),t.addAction({id:"next-query",label:dd("action.next-query"),keybindings:[n.selectNextQuery],contextMenuGroupId:Im,contextMenuOrder:3,run:()=>{e.goToNextQuery()}}),t.addAction({id:"save-query",label:dd("action.save-query"),keybindings:[n.saveQuery],run:()=>{e.setQueryAction("save")}})},theme:`vs-${d}`})})}),(()=>{var e;return(0,c.jsx)(bm,{handleSendExecuteClick:_,onSettingsButtonClick:k,isLoading:Boolean(null===(e=o.result)||void 0===e?void 0:e.isLoading),handleGetExplainQueryClick:M,disabled:!o.input,highlightedAction:C})})()]}),(0,c.jsx)("div",{className:Dm("pane-wrapper"),children:(0,c.jsx)(km,{resultVisibilityState:D,onExpandResultHandler:()=>{R(Hd.triggerExpand)},onCollapseResultHandler:()=>{R(Hd.triggerCollapse)},type:l,theme:d,result:o.result,tenantName:s,path:r,showPreview:p},null===(t=o.result)||void 0===t?void 0:t.queryId)})]}),(0,c.jsx)(gm,{}),(0,c.jsx)(Cm,{})]})}));function km(e){let{resultVisibilityState:t,onExpandResultHandler:a,onCollapseResultHandler:n,type:s,theme:r,result:i,tenantName:o,path:l,showPreview:d}=e;return d?(0,c.jsx)(rm,{database:o,path:l,type:s}):(null===i||void 0===i?void 0:i.type)===xd.X.EXECUTE?(0,c.jsx)(Qu,{result:i,isResultsCollapsed:t.collapsed,onExpandResults:a,onCollapseResults:n,theme:r,tenantName:o}):(null===i||void 0===i?void 0:i.type)===xd.X.EXPLAIN?(0,c.jsx)(am,{result:i,theme:r,tenantName:o,isResultsCollapsed:t.collapsed,onExpandResults:a,onCollapseResults:n}):null}function Om(e,t){const a=!!e&&e!==t;window.onbeforeunload=a?e=>{e.preventDefault(),e.returnValue=""}:null}const Mm=[{id:f._0.newQuery,title:dd("tabs.newQuery")},{id:f._0.history,title:dd("tabs.history")},{id:f._0.saved,title:dd("tabs.saved")}],Lm=e=>{let{className:t,activeTab:a}=e;const n=(0,Oa.TH)(),s=(0,w.mB)(n);return(0,c.jsx)("div",{className:t,children:(0,c.jsx)(j.m,{size:"l",allowNotSelected:!0,activeTab:a,items:Mm,wrapTo:(e,t)=>{let{id:a}=e;const n=(0,qe.Sj)({...s,[qe.XV.queryTab]:a});return(0,c.jsx)(lr.h,{to:n,children:t},a)}})})};var zm=a(20847),qm=a(16459);const Fm=(0,d.cn)("ydb-saved-queries"),Qm=e=>{let{visible:t,queryName:a,onCancelClick:n,onConfirmClick:s}=e;return(0,c.jsxs)(dm.V,{open:t,hasCloseButton:!1,size:"s",onClose:n,onEnterKeyDown:s,children:[(0,c.jsx)(dm.V.Header,{caption:dd("delete-dialog.header")}),(0,c.jsxs)(dm.V.Body,{className:Fm("dialog-body"),children:[dd("delete-dialog.question"),(0,c.jsx)("span",{className:Fm("dialog-query-name"),children:` ${a}?`})]}),(0,c.jsx)(dm.V.Footer,{textButtonApply:dd("delete-dialog.delete"),textButtonCancel:dd("delete-dialog.cancel"),onClickButtonCancel:n,onClickButtonApply:s})]})},Bm=e=>{let{changeUserInput:t}=e;const a=um(),s=(0,y.zL)(),r=(0,y.ix)(Cd.zC),[i,o]=n.useState(!1),[l,d]=n.useState(""),u=()=>{o(!1),d("")},m=[{name:"name",header:"Name",render:e=>{let{row:t}=e;return(0,c.jsx)("div",{className:Fm("query-name"),children:t.name})},width:200},{name:"body",header:"Query Text",render:e=>{let{row:t}=e;return(0,c.jsxs)("div",{className:Fm("query"),children:[(0,c.jsx)("div",{className:Fm("query-body"),children:(0,c.jsx)(gr,{value:t.body,maxQueryHeight:Or})}),(0,c.jsxs)("span",{className:Fm("controls"),children:[(0,c.jsx)(es.z,{view:"flat-secondary",children:(0,c.jsx)(Be.J,{data:zm.Z})}),(0,c.jsx)(es.z,{view:"flat-secondary",onClick:(a=t.name,e=>{e.stopPropagation(),o(!0),d(a)}),children:(0,c.jsx)(Be.J,{data:qm.Z})})]})]});var a},sortable:!1,resizeMinWidth:650}];return(0,c.jsxs)(n.Fragment,{children:[(0,c.jsxs)(Ge.l,{className:Fm(),children:[(0,c.jsx)(Ge.l.Controls,{children:(0,c.jsx)(He.o,{onChange:e=>{s((0,Cd.b0)(e))},placeholder:dd("filter.text.placeholder"),className:Fm("search")})}),(0,c.jsx)(Ge.l.Table,{children:(0,c.jsx)(ie.G,{columnsWidthLSKey:"savedQueriesTableColumnsWidth",columns:m,data:a,settings:Mr,emptyDataMessage:dd(r?"history.empty-search":"saved.empty"),rowClassName:()=>Fm("row"),onRowClick:e=>{return a=e.body,n=e.name,t({input:a}),s((0,Cd.GC)(n)),void s((0,C.jk)(f._0.newQuery));var a,n},initialSortOrder:{columnId:"name",order:fe.ZP.ASCENDING}})})]}),(0,c.jsx)(Qm,{visible:i,queryName:l,onCancelClick:()=>{u()},onConfirmClick:()=>{u(),s((0,Cd.qF)(l)),d("")}})]})},Um=(0,d.cn)("ydb-query"),Hm=e=>{const t=(0,y.zL)(),{queryTab:a=f._0.newQuery}=(0,y.ix)((e=>e.tenant)),r=e=>{t((0,mr.B8)(e))},i=n.useMemo((()=>Mm.find((e=>{let{id:t}=e;return t===a}))),[a]);return(0,c.jsxs)("div",{className:Um(),children:[i?(0,c.jsx)(s.ql,{children:(0,c.jsx)("title",{children:i.title})}):null,(0,c.jsx)(Lm,{className:Um("tabs"),activeTab:a}),(0,c.jsx)("div",{className:Um("content"),children:(()=>{switch(a){case f._0.newQuery:return(0,c.jsx)(_m,{changeUserInput:r,...e});case f._0.history:return(0,c.jsx)(md,{changeUserInput:r});case f._0.saved:return(0,c.jsx)(Bm,{changeUserInput:r});default:return null}})()})]})};var Gm=a(68309),Zm=a(85807);const Vm=["query","diagnostics"],Wm={query:Gm.Z,diagnostics:Zm.Z};const $m=(0,d.cn)("ydb-tenant-navigation"),Jm=e=>{let{id:t,title:a,icon:n}=e;return{value:t,content:(0,c.jsxs)("span",{className:$m("item"),children:[(0,c.jsx)(Be.J,{data:n,size:16,className:$m("icon")}),(0,c.jsx)("span",{className:$m("text"),children:a})]})}},Km=()=>{const e=function(){const e=(0,Oa.k6)(),t=(0,Oa.TH)(),a=(0,w.mB)(t),[,s]=(0,y.yu)(x.pf),{tenantPage:r}=(0,y.ix)((e=>e.tenant)),i=n.useMemo((()=>{if(t.pathname!==w.ZP.tenant)return[];const n=Vm.map((t=>{const n=f.m2[t],i=(0,qe.Sj)({...a,[f.bS]:n});return{id:n,title:bn(`pages.${t}`),icon:Wm[t],path:i,current:r===n,onForward:()=>{s(n),e.push(i)}}}));return n}),[r,s,t.pathname,e,a]);return i}();return(0,c.jsx)("div",{className:$m(),children:(0,c.jsx)($l.E,{width:"auto",onUpdate:t=>{const a=e.find((e=>e.id===t));null===a||void 0===a||a.onForward()},size:"l",className:$m("body"),value:(e.find((e=>e.current))||e[0]).id,options:e.map(Jm)})})},Xm=(0,d.cn)("object-general");const Ym=function(e){const t=(0,b.C)(),{tenantPage:a}=(0,y.ix)((e=>e.tenant));return(0,c.jsxs)("div",{className:Xm(),children:[(0,c.jsx)(Km,{}),(()=>{const{type:n,additionalTenantProps:s,additionalNodesProps:r,tenantName:i,path:o}=e;return a===f.m2.query?(0,c.jsx)(Hm,{tenantName:i,path:o,theme:t,type:n}):(0,c.jsx)(od,{type:n,tenantName:i,path:o,additionalTenantProps:s,additionalNodesProps:r})})()]})};var ep=a(14495);const tp=de.h.injectEndpoints({endpoints:e=>({getSchemaAcl:e.query({queryFn:async(e,t)=>{let{path:a,database:n}=e,{signal:s}=t;try{const e=await window.api.getSchemaAcl({path:a,database:n},{signal:s});return{data:{acl:e.Common.ACL,effectiveAcl:e.Common.EffectiveACL,owner:e.Common.Owner,interruptInheritance:e.Common.InterruptInheritance}}}catch(r){return{error:r}}},providesTags:["All"]})}),overrideExisting:"throw"}),ap=JSON.parse('{"title_rights":"Access Rights","title_effective-rights":"Effective Access Rights","title_owner":"Owner","title_interupt-inheritance":"Interrupt inheritance","description_empty":"No Acl data"}'),np=(0,ve.wZ)("ydb-acl",{en:ap}),sp=(0,d.cn)("ydb-acl"),rp=e=>{if(e&&e.endsWith("@staff")&&!e.startsWith("svc_")){return e.split("@")[0]}return e},ip=["access","type","inheritance"],op={access:"Access",type:"Access type",inheritance:"Inheritance type"},lp="Allow",dp=new Set(["Object","Container"]);function cp(e){let{value:t}=e;const a="string"===typeof t?[t]:t;return(0,c.jsx)("div",{className:sp("definition-content"),children:a.map((e=>(0,c.jsx)("span",{children:e},e)))})}function up(e){if(!e||!e.length)return[];const t=function(e){return e.map((e=>{const{AccessRules:t=[],AccessRights:a=[],AccessType:n,InheritanceType:s,Subject:r}=e,i=t.concat(a),o=n===lp?void 0:n;let l;return((null===s||void 0===s?void 0:s.length)!==dp.size||s.some((e=>!dp.has(e))))&&(l=s),{access:i.length?i:void 0,type:o,inheritance:l,Subject:r}}))}(e);return t.map((e=>{let{Subject:t,...a}=e;const n=Object.entries(a).filter((e=>{let[t,a]=e;return Boolean(a)}));return 1===n.length&&"access"===n[0][0]?{name:t,content:(0,c.jsx)(cp,{value:n[0][1]}),multilineName:!0}:{label:(0,c.jsx)("span",{className:sp("group-label"),children:t}),items:ip.map((e=>{const t=a[e];if(t)return{name:op[e],content:(0,c.jsx)(cp,{value:t}),multilineName:!0}})).filter(Tn.D)}}))}const mp=e=>{let{path:t,database:a}=e;const{currentData:s,isFetching:r,error:i}=tp.useGetSchemaAclQuery({path:t,database:a}),o=r&&!s,{acl:l,effectiveAcl:d,owner:u,interruptInheritance:m}=s||{},p=up(l),h=up(d),v=function(e){const t=rp(e);return t?[{name:t,content:np("title_owner"),multilineName:!0}]:[]}(u),g=m?[{name:np("title_interupt-inheritance"),content:(0,c.jsx)(Be.J,{data:ep.Z,size:20}),multilineName:!0}]:[];if(o)return(0,c.jsx)(D.a,{});if(i)return(0,c.jsx)(I.V,{error:i});if(!l&&!u&&!d)return(0,c.jsx)(n.Fragment,{children:np("description_empty")});const x=v.concat(p);return(0,c.jsxs)("div",{className:sp(),children:[(0,c.jsx)(pp,{items:g}),(0,c.jsx)(pp,{items:x,title:np("title_rights")}),(0,c.jsx)(pp,{items:h,title:np("title_effective-rights")})]})};function pp(e){let{items:t,title:a}=e;return t.length?(0,c.jsxs)(n.Fragment,{children:[a&&(0,c.jsx)("div",{className:sp("list-title"),children:a}),(0,c.jsx)(Ua.w,{items:t,nameMaxWidth:200,className:sp("result",{"no-title":!a}),responsive:!0})]}):null}var hp=a(9593);const vp=(e,t,a)=>{const{setActivePath:n}=a;return{openPreview:()=>{t(de.h.util.invalidateTags(["PreviewData"])),t((0,g.m7)(!0)),t((0,C.Cs)(f.m2.query)),t((0,C.jk)(f._0.newQuery)),n(e)}}},gp=(e,t)=>(0,c.jsx)(es.z,{view:"flat-secondary",onClick:e.openPreview,title:bn("actions.openPreview"),size:t||"s",children:(0,c.jsx)(Be.J,{data:hp.Z})}),xp=(e,t,a)=>(n,s)=>{const r=vp(n,e,t),i=gp(r,a);return{async_replication:void 0,database:void 0,directory:void 0,table:i,column_table:i,index_table:void 0,topic:void 0,stream:void 0,index:void 0,external_table:i,external_data_source:void 0,view:i}[s]},yp=(e,t,a)=>(n,s)=>{const r=vp(n,e,t);return{preview:gp(r,a)}[s]};var bp=a(59687),fp=a(69886),jp=a.n(fp),Np=a(63660);const Sp=function(e){let{name:t,title:a,type:n,content:s}=e;return Np.m.add({name:null!==t&&void 0!==t?t:"Request succeeded",title:null!==a&&void 0!==a?a:"Request succeeded",theme:"error"===n?"danger":"success",content:s,isClosable:!0,autoHiding:"success"===n&&5e3})},wp=e=>`-- docs: https://ydb.tech/en/docs/yql/reference/syntax/create_table\nCREATE TABLE \`${e}/ydb_row_table\` (\n category_id Uint64 NOT NULL,\n id Uint64,\n expire_at Datetime,\n updated_on Datetime,\n name Text,\n \`binary-payload\` Bytes,\n attributes JsonDocument,\n -- uncomment to add a secondary index\n -- INDEX idx_row_table_id GLOBAL SYNC ON ( id ) COVER ( name, attributes ), -- Secondary indexes docs https://ydb.tech/en/docs/yql/reference/syntax/create_table#secondary_index\n PRIMARY KEY (category_id, id)\n) \nWITH (\n AUTO_PARTITIONING_BY_SIZE = ENABLED,\n AUTO_PARTITIONING_PARTITION_SIZE_MB = 2048,\n AUTO_PARTITIONING_BY_LOAD = ENABLED,\n AUTO_PARTITIONING_MIN_PARTITIONS_COUNT = 4,\n AUTO_PARTITIONING_MAX_PARTITIONS_COUNT = 1024\n -- uncomment to create a table with predefined partitions\n -- , UNIFORM_PARTITIONS = 4 -- The number of partitions for uniform initial table partitioning.\n -- The primary key's first column must have type Uint64 or Uint32.\n -- A created table is immediately divided into the specified number of partitions\n -- uncomment to launch read only replicas in every AZ\n -- , READ_REPLICAS_SETTINGS = 'PER_AZ:1' -- Enable read replicas for stale read, launch one replica in every availability zone\n -- uncomment to enable ttl\n -- , TTL = Interval("PT1H") ON expire_at -- Enable background deletion of expired rows https://ydb.tech/en/docs/concepts/ttl\n -- uncomment to create a table with a bloom filter\n -- , KEY_BLOOM_FILTER = ENABLED -- With a Bloom filter, you can more efficiently determine\n -- if some keys are missing in a table when making multiple single queries by the primary key.\n)`,Tp=e=>`-- docs: https://ydb.tech/en/docs/yql/reference/syntax/create_table#olap-tables\nCREATE TABLE \`${e}/ydb_column_table\` (\n id Int64 NOT NULL,\n author Text,\n title Text,\n body Text,\n PRIMARY KEY (id)\n)\nPARTITION BY HASH(id)\nWITH (STORE = COLUMN)`,Cp=()=>'CREATE OBJECT secret_name (TYPE SECRET) WITH value="secret_value";\n\nCREATE ASYNC REPLICATION my_replication\nFOR `/remote_database/table_name` AS `local_table_name` --[, `/remote_database/another_table_name` AS `another_local_table_name` ...]\nWITH (\n CONNECTION_STRING="grpcs://mydb.ydb.tech:2135/?database=/remote_database",\n TOKEN_SECRET_NAME = "secret_name"\n -- ENDPOINT="mydb.ydb.tech:2135",\n -- DATABASE=`/remote_database`,\n -- USER="user",\n -- PASSWORD_SECRET_NAME="your_password"\n);',Ep=e=>`ALTER TABLE \`${e}\`\n ADD COLUMN numeric_column Int32;`,Pp=e=>`SELECT *\n FROM \`${e}\`\n LIMIT 10;`,Ip=e=>`UPSERT INTO \`${e}\`\n ( \`id\`, \`name\` )\nVALUES ( );`,Dp=e=>`DROP EXTERNAL TABLE \`${e}\`;`,Rp=e=>`CREATE EXTERNAL TABLE \`${e.split("/").slice(0,-1).join("/")}/my_external_table\` (\n column1 Int,\n column2 Int\n) WITH (\n DATA_SOURCE="${e}",\n LOCATION="",\n FORMAT="json_as_string",\n \`file_pattern\`=""\n);`,Ap=e=>`-- docs: https://ydb.tech/en/docs/yql/reference/syntax/create_topic\nCREATE TOPIC \`${e}/my_topic\` (\n CONSUMER consumer1,\n CONSUMER consumer2 WITH (read_from = Datetime('1970-01-01T00:00:00Z')) -- Sets up the message write time starting from which the consumer will receive data.\n -- Value type: Datetime OR Timestamp OR integer (unix-timestamp in the numeric format). \n -- Default value: now\n) WITH (\n min_active_partitions = 1, -- Minimum number of topic partitions.\n partition_count_limit = 0, -- Maximum number of active partitions in the topic. 0 is interpreted as unlimited.\n retention_period = Interval('PT18H'), -- Data retention period in the topic. Value type: Interval.\n retention_storage_mb = 0, -- Limit on the maximum disk space occupied by the topic data. \n -- When this value is exceeded, the older data is cleared, like under a retention policy. \n -- 0 is interpreted as unlimited.\n partition_write_speed_bytes_per_second = 1048576, -- Maximum allowed write speed per partition.\n partition_write_burst_bytes = 0 -- Write quota allocated for write bursts. \n -- When set to zero, the actual write_burst value is equalled to \n -- the quota value (this allows write bursts of up to one second).\n);`,_p=e=>`-- docs: https://ydb.tech/en/docs/yql/reference/syntax/alter_topic\nALTER TOPIC \`${e}\`\n ADD CONSUMER new_consumer WITH (read_from = Datetime('1970-01-01T00:00:00Z')), -- Sets up the message write time starting from which the consumer will receive data.\n -- Value type: Datetime OR Timestamp OR integer (unix-timestamp in the numeric format).\n -- Default value: now\n ALTER CONSUMER consumer1 SET (read_from = Datetime('1970-01-01T00:00:00Z')),\n DROP CONSUMER consumer2,\n SET (\n min_active_partitions = 1, -- Minimum number of topic partitions.\n partition_count_limit = 0, -- Maximum number of active partitions in the topic. 0 is interpreted as unlimited.\n retention_period = Interval('PT18H'), -- Data retention period in the topic. Value type: Interval.\n retention_storage_mb = 0, -- Limit on the maximum disk space occupied by the topic data. \n -- When this value is exceeded, the older data is cleared, like under a retention policy. \n -- 0 is interpreted as unlimited.\n partition_write_speed_bytes_per_second = 1048576, -- Maximum allowed write speed per partition.\n partition_write_burst_bytes = 0 -- Write quota allocated for write bursts. \n -- When set to zero, the actual write_burst value is equalled to\n -- the quota value (this allows write bursts of up to one second).\n );`,kp=e=>`DROP TOPIC \`${e}\`;`,Op=e=>`CREATE VIEW \`${e}/my_view\` WITH (security_invoker = TRUE) AS SELECT 1;`,Mp=e=>`DROP VIEW \`${e}\`;`,Lp=e=>`DROP ASYNC REPLICATION \`${e}\`;`,zp=e=>`ALTER ASYNC REPLICATION \`${e}\` SET (STATE = "DONE", FAILOVER_MODE = "FORCE");`,qp=(e,t)=>(a,n)=>{const s=((e,t,a)=>{const{setActivePath:n,updateQueryExecutionSettings:s,showCreateDirectoryDialog:r}=a,i=(a,r)=>()=>{r&&s({queryMode:r}),t((0,mr.B8)({input:a(e)})),t((0,C.Cs)(f.m2.query)),t((0,C.jk)(f._0.newQuery)),n(e)};return{createDirectory:r?()=>{r(e)}:void 0,createTable:i(wp,"script"),createColumnTable:i(Tp,"script"),createAsyncReplication:i(Cp,"script"),alterAsyncReplication:i(zp,"script"),dropAsyncReplication:i(Lp,"script"),alterTable:i(Ep,"script"),selectQuery:i(Pp),upsertQuery:i(Ip),createExternalTable:i(Rp,"script"),dropExternalTable:i(Dp,"script"),selectQueryFromExternalTable:i(Pp,"query"),createTopic:i(Ap,"script"),alterTopic:i(_p,"script"),dropTopic:i(kp,"script"),createView:i(Op,"script"),dropView:i(Mp,"script"),copyPath:()=>{try{jp()(e),Sp({name:"Copied",title:bn("actions.copied"),type:"success"})}catch{Sp({name:"Not copied",title:bn("actions.notCopied"),type:"error"})}}}})(a,e,t),r={text:bn("actions.copyPath"),action:s.copyPath},i=[[r],[{text:bn("actions.createTable"),action:s.createTable},{text:bn("actions.createColumnTable"),action:s.createColumnTable},{text:bn("actions.createAsyncReplication"),action:s.createAsyncReplication},{text:bn("actions.createTopic"),action:s.createTopic},{text:bn("actions.createView"),action:s.createView}]];s.createDirectory&&i.splice(1,0,[{text:bn("actions.createDirectory"),action:s.createDirectory}]);const o=[[r],[{text:bn("actions.alterTable"),action:s.alterTable},{text:bn("actions.selectQuery"),action:s.selectQuery},{text:bn("actions.upsertQuery"),action:s.upsertQuery}]],l=[[r],[{text:bn("actions.alterTopic"),action:s.alterTopic},{text:bn("actions.dropTopic"),action:s.dropTopic}]],d=[[r],[{text:bn("actions.selectQuery"),action:s.selectQueryFromExternalTable}],[{text:bn("actions.dropTable"),action:s.dropExternalTable}]],c=[[r],[{text:bn("actions.createExternalTable"),action:s.createExternalTable}]],u=[[r],[{text:bn("actions.selectQuery"),action:s.selectQuery}],[{text:bn("actions.dropView"),action:s.dropView}]],m=[r];return{async_replication:[[r],[{text:bn("actions.alterReplication"),action:s.alterAsyncReplication},{text:bn("actions.dropReplication"),action:s.dropAsyncReplication}]],database:i,directory:i,table:o,column_table:o,index_table:m,topic:l,stream:m,index:m,external_table:d,external_data_source:c,view:u}[n]},Fp=(0,d.cn)("ydb-schema-create-directory-dialog"),Qp="relativePath";function Bp(e){let{open:t,onClose:a,database:s,parentPath:r,onSuccess:i}=e;const[o,l]=n.useState(""),[d,u]=n.useState(""),[m,p]=g.m3.useCreateDirectoryMutation(),h=()=>{l(""),p.reset()},v=()=>{a(),u(""),h()};return(0,c.jsxs)(dm.V,{open:t,onClose:v,size:"s",children:[(0,c.jsx)(dm.V.Header,{caption:bn("schema.tree.dialog.header")}),(0,c.jsxs)("form",{onSubmit:e=>{e.preventDefault();const t=(a=d)?/\s/.test(a)?bn("schema.tree.dialog.whitespace"):"":bn("schema.tree.dialog.empty");var a;l(t),t||m({database:s,path:`${r}/${d}`}).unwrap().then((()=>{v(),i(d)}))},children:[(0,c.jsxs)(dm.V.Body,{children:[(0,c.jsxs)("label",{htmlFor:Qp,className:Fp("label"),children:[(0,c.jsx)("span",{className:Fp("description"),children:bn("schema.tree.dialog.description")}),`${r}/`]}),(0,c.jsx)("div",{className:Fp("input-wrapper"),children:(0,c.jsx)(cm.o,{placeholder:bn("schema.tree.dialog.placeholder"),value:d,onUpdate:e=>{u(e),h()},autoFocus:!0,hasClear:!0,autoComplete:!1,disabled:p.isLoading,validationState:o?"invalid":void 0,id:Qp,errorMessage:o})}),p.isError&&(0,c.jsx)(I.V,{error:p.error,defaultMessage:bn("schema.tree.dialog.invalid")})]}),(0,c.jsx)(dm.V.Footer,{loading:p.isLoading,textButtonApply:bn("schema.tree.dialog.buttonApply"),textButtonCancel:bn("schema.tree.dialog.buttonCancel"),onClickButtonCancel:v,propsButtonApply:{type:"submit"}})]})]})}function Up(e){const t=(0,T.j0)(),{rootPath:a,rootName:s,rootType:r,currentPath:i,onActivePathUpdate:o}=e,l=(0,y.zL)(),[d,u]=(0,y.dU)(),[m,p]=n.useState(!1),[h,v]=n.useState(""),[x,b]=n.useState("");n.useEffect((()=>{null!==i&&void 0!==i&&i.startsWith(a)||o(a)}),[i,o,a]);return(0,c.jsxs)(n.Fragment,{children:[(0,c.jsx)(Bp,{onClose:()=>{p(!1)},open:m,database:a,parentPath:h,onSuccess:e=>{const t=`${h}/${e}`;o(t),b(t)}}),(0,c.jsx)(bp.f,{rootState:{path:a,name:s,type:(0,me.lZ)(r),collapsed:!1},fetchPath:async e=>{let t;for(;;){const n=l(g.m3.endpoints.getSchema.initiate({path:e,database:a},{forceRefetch:!0})),{data:s,originalArgs:r}=await n;if(n.unsubscribe(),(null===r||void 0===r?void 0:r.path)===e){t=null===s||void 0===s?void 0:s[e];break}}if(!t)throw new Error(`no describe data about path ${e}`);const{PathDescription:{Children:n=[]}={}}=t;return n.map((e=>{const{Name:t="",PathType:a,PathSubType:n}=e;return{name:t,type:(0,me.lZ)(a,n),expandable:!(0,me.Sb)(a,n)}}))},getActions:qp(l,{setActivePath:o,updateQueryExecutionSettings:e=>u({...d,...e}),showCreateDirectoryDialog:t?e=>{v(e),p(!0)}:void 0}),renderAdditionalNodeElements:xp(l,{setActivePath:o}),activePath:i,onActivePathUpdate:o,cache:!1,virtualize:!0},x)]})}const Hp=JSON.parse('{"title_navigation":"Navigation","field_source-type":"Source Type","field_data-source":"Data Source","action_copySchemaPath":"Copy schema path","action_openInDiagnostics":"Open in Diagnostics","field_type":"Type","field_subtype":"SubType","field_id":"Id","field_version":"Version","field_created":"Created","field_data-size":"Data size","field_row-count":"Row count","field_partitions":"Partitions count","field_paths":"Paths","field_shards":"Shards","field_state":"State","field_mode":"Mode","field_format":"Format","field_retention":"Retention"}'),Gp=(0,ve.wZ)("ydb-object-summary",{en:Hp}),Zp=(0,d.cn)("ydb-object-summary");function Vp(e){var t;let{tenantName:a,path:n}=e;const{data:s={},isLoading:i}=(0,g.hz)({path:a,database:a}),o=null===s||void 0===s||null===(t=s.PathDescription)||void 0===t?void 0:t.Self,[,l]=(0,r.useQueryParam)("schema",r.StringParam);return!o&&i?(0,c.jsx)("div",{children:(0,c.jsx)(D.a,{})}):(0,c.jsxs)("div",{className:Zp("tree-wrapper"),children:[(0,c.jsx)("div",{className:Zp("tree-header"),children:Gp("title_navigation")}),(0,c.jsx)("div",{className:Zp("tree"),children:o?(0,c.jsx)(Up,{rootPath:a,rootName:o.Name||a,rootType:o.PathType,currentPath:n,onActivePathUpdate:l}):null})]})}var Wp=a(47471);function $p(){const e=(0,y.zL)(),{diagnosticsTab:t,tenantPage:a}=(0,y.ix)((e=>e.tenant)),n=a===f.m2.diagnostics&&t===f.qQ.schema;return(0,c.jsx)("div",{children:!n&&(0,c.jsx)(es.z,{title:Gp("action_openInDiagnostics"),onClick:()=>{e((0,C.Cs)(f.m2.diagnostics)),e((0,C.$v)(f.qQ.schema))},size:"s",children:(0,c.jsx)(Be.J,{data:Wp.Z,size:14})})})}function Jp(e,t){const a=e.replace(/^\/+|\/+$/g,""),n=t.replace(/^\/+|\/+$/g,"");if(!a.startsWith(n))return a||"/";let s=a.slice(n.length);return s=s.replace(/^\/+/,"")||"/",s}const Kp=()=>({triggerExpand:!1,triggerCollapse:!1,collapsed:Boolean(localStorage.getItem(x.Mn))});function Xp(e){var t;let{type:a,subType:s,tenantName:i,path:o,onCollapseSummary:l,onExpandSummary:d,isCollapsed:u}=e;const m=(0,y.zL)(),[,p]=(0,r.useQueryParam)("schema",r.StringParam),[v,b]=n.useReducer(Vd(x.Mn),void 0,Kp),{summaryTab:S=f.uw.overview}=(0,y.ix)((e=>e.tenant)),T=(0,Oa.TH)(),E=xt().parse(T.search,{ignoreQueryPrefix:!0}),{data:P}=(0,g.hz)({path:o,database:i}),I=null===P||void 0===P||null===(t=P.PathDescription)||void 0===t?void 0:t.Self;n.useEffect((()=>{const e=(0,me.vp)(a);!a||e||qe.Cc.find((e=>e.id===S))||m((0,C.Tu)(f.uw.overview))}),[m,a,S]);const D=()=>{const e=(0,me.vp)(a)?[...qe.Cc,...qe.c7]:qe.Cc;return(0,c.jsx)("div",{className:Zp("tabs"),children:(0,c.jsxs)(Ja.k,{className:Zp("tabs-inner"),justifyContent:"space-between",alignItems:"center",children:[(0,c.jsx)(j.m,{size:"l",items:e,activeTab:S,wrapTo:(e,t)=>{let{id:a}=e;const n=(0,w.ax)(w.ZP.tenant,void 0,{...E,name:i,[qe.XV.summaryTab]:a});return(0,c.jsx)(N.rU,{to:n,className:Zp("tab"),children:t},a)},allowNotSelected:!0}),S===f.uw.schema&&(0,c.jsx)($p,{})]})})},R=()=>{switch(S){case f.uw.acl:return(0,c.jsx)(mp,{path:o,database:i});case f.uw.schema:return(0,c.jsx)(ze,{type:a,path:o,tenantName:i});default:return(()=>{var e;if(!I)return;const{CreateStep:t,PathType:a,PathSubType:n,PathId:s,PathVersion:r}=I,i=[];i.push({label:Gp("field_type"),value:null===a||void 0===a?void 0:a.replace(/^EPathType/,"")}),n!==Oe.mR.EPathSubTypeEmpty&&i.push({label:Gp("field_subtype"),value:null===n||void 0===n?void 0:n.replace(/^EPathSubType/,"")}),i.push({label:Gp("field_id"),value:s}),i.push({label:Gp("field_version"),value:r}),i.push({label:Gp("field_created"),value:(0,_.o0)(t)});const{PathDescription:o}=P;if(null!==o&&void 0!==o&&o.TableStats){const{DataSize:e,RowCount:t}=o.TableStats;i.push({label:Gp("field_data-size"),value:pa(e)},{label:Gp("field_row-count"),value:(0,_.uf)(t)})}const l=(0,c.jsx)(fn,{data:o}),d=()=>{var e;const{PathsInside:t,ShardsInside:a,PathsLimit:n,ShardsLimit:s}=null!==(e=null===o||void 0===o?void 0:o.DomainDescription)&&void 0!==e?e:{};let r=(0,_.uf)(t),i=(0,_.uf)(a);return r&&n&&(r=`${r} / ${(0,_.uf)(n)}`),i&&s&&(i=`${i} / ${(0,_.uf)(s)}`),[{label:Gp("field_paths"),value:r},{label:Gp("field_shards"),value:i}]},u={[Oe.gb.EPathTypeInvalid]:void 0,[Oe.gb.EPathTypeDir]:void 0,[Oe.gb.EPathTypeTable]:()=>{var e;return[{label:Gp("field_partitions"),value:null===o||void 0===o||null===(e=o.TablePartitions)||void 0===e?void 0:e.length}]},[Oe.gb.EPathTypeSubDomain]:d,[Oe.gb.EPathTypeTableIndex]:void 0,[Oe.gb.EPathTypeExtSubDomain]:d,[Oe.gb.EPathTypeColumnStore]:()=>{var e,t;return[{label:Gp("field_partitions"),value:null===o||void 0===o||null===(e=o.ColumnStoreDescription)||void 0===e||null===(t=e.ColumnShards)||void 0===t?void 0:t.length}]},[Oe.gb.EPathTypeColumnTable]:()=>{var e,t,a;return[{label:Gp("field_partitions"),value:null===o||void 0===o||null===(e=o.ColumnTableDescription)||void 0===e||null===(t=e.Sharding)||void 0===t||null===(a=t.ColumnShards)||void 0===a?void 0:a.length}]},[Oe.gb.EPathTypeCdcStream]:()=>{const{Mode:e,Format:t}=(null===o||void 0===o?void 0:o.CdcStreamDescription)||{};return[{label:Gp("field_mode"),value:null===e||void 0===e?void 0:e.replace(/^ECdcStreamMode/,"")},{label:Gp("field_format"),value:null===t||void 0===t?void 0:t.replace(/^ECdcStreamFormat/,"")}]},[Oe.gb.EPathTypePersQueueGroup]:()=>{var e,t,a;const n=null===o||void 0===o?void 0:o.PersQueueGroup,s=null===n||void 0===n||null===(e=n.PQTabletConfig)||void 0===e||null===(t=e.PartitionConfig)||void 0===t?void 0:t.LifetimeSeconds;return[{label:Gp("field_partitions"),value:null===n||void 0===n||null===(a=n.Partitions)||void 0===a?void 0:a.length},{label:Gp("field_retention"),value:s&&(0,_.xh)(s)}]},[Oe.gb.EPathTypeExternalTable]:()=>{var e,t;const a=(0,w.vF)({...E,schema:null===o||void 0===o||null===(e=o.ExternalTableDescription)||void 0===e?void 0:e.DataSourcePath}),{SourceType:n,DataSourcePath:s}=(null===o||void 0===o?void 0:o.ExternalTableDescription)||{},r=(null===s||void 0===s||null===(t=s.match(/([^/]*)\/*$/))||void 0===t?void 0:t[1])||"";return[{label:Gp("field_source-type"),value:n},{label:Gp("field_data-source"),value:s&&(0,c.jsx)("span",{title:s,children:(0,c.jsx)(Ma.j,{title:r||"",url:a})})}]},[Oe.gb.EPathTypeExternalDataSource]:()=>{var e;return[{label:Gp("field_source-type"),value:null===o||void 0===o||null===(e=o.ExternalDataSourceDescription)||void 0===e?void 0:e.SourceType}]},[Oe.gb.EPathTypeView]:void 0,[Oe.gb.EPathTypeReplication]:()=>{var e;const t=null===o||void 0===o||null===(e=o.ReplicationDescription)||void 0===e?void 0:e.State;return t?[{label:Gp("field_state"),value:(0,c.jsx)(Ka,{state:t})}]:[]}},m=a&&(null===(e=u[a])||void 0===e?void 0:e.call(u))||[];return i.push(...m),(0,c.jsx)(Ci._,{title:l,info:i.filter((e=>e.value))})})()}},A=()=>{b(Hd.triggerCollapse)},k=()=>{b(Hd.triggerExpand)},O=()=>{b(Hd.clear)},M=()=>{const e=(0,me.vp)(a)&&!(0,me.dC)(s);return(0,c.jsxs)(n.Fragment,{children:[e&&yp(m,{setActivePath:p},"m")(o,"preview"),(0,c.jsx)(Jd.m,{text:o,view:"flat-secondary",title:Gp("action_copySchemaPath")}),(0,c.jsx)($d,{onCollapse:A,onExpand:k,isCollapsed:v.collapsed,initialDirection:"bottom"})]})},L=()=>{const{Status:e,Reason:t}=null!==P&&void 0!==P?P:{};let n;return!a&&e&&t&&(n=`${e}: ${t}`),a?(0,c.jsx)("div",{className:Zp("entity-type"),children:a.replace("EPathType","")}):(0,c.jsx)("div",{className:Zp("entity-type",{error:!0}),children:(0,c.jsx)(bt.J,{content:n,offset:{left:0}})})};return(0,c.jsxs)("div",{className:Zp(),children:[(0,c.jsx)("div",{className:Zp({hidden:u}),children:(0,c.jsxs)(h,{direction:"vertical",defaultSizePaneKey:x.wr,onSplitStartDragAdditional:O,triggerCollapse:v.triggerCollapse,triggerExpand:v.triggerExpand,minSize:[200,52],collapsedSizes:[100,0],children:[(0,c.jsx)(Vp,{tenantName:i,path:o}),(0,c.jsxs)("div",{className:Zp("info"),children:[(0,c.jsxs)("div",{className:Zp("sticky-top"),children:[(0,c.jsxs)("div",{className:Zp("info-header"),children:[(0,c.jsxs)("div",{className:Zp("info-title"),children:[L(),(0,c.jsx)("div",{className:Zp("path-name"),children:Jp(o,i)})]}),(0,c.jsx)("div",{className:Zp("info-controls"),children:M()})]}),D()]}),(0,c.jsx)("div",{className:Zp("overview-wrapper"),children:R()})]})]})}),(0,c.jsx)($d,{onCollapse:l,onExpand:d,isCollapsed:u,initialDirection:"left",className:Zp("action-button")})]})}const Yp=(0,d.cn)("tenant-page"),eh=()=>({triggerExpand:!1,triggerCollapse:!1,collapsed:Boolean(localStorage.getItem(x.sO))});function th(e){var t;const[l,d]=n.useReducer(Vd(x.sO),void 0,eh),[{name:u,schema:m}]=(0,r.useQueryParams)({name:r.StringParam,schema:r.StringParam});if(!u)throw new Error("Tenant name is not defined");const p=n.useRef();n.useEffect((()=>{if(p.current!==u){(async()=>{const{registerYQLCompletionItemProvider:e}=await a.e(9079).then(a.bind(a,99079));e(u)})().catch(console.error),p.current=u}}),[u]);const b=(0,y.zL)();n.useEffect((()=>{b((0,v.J)("tenant",{tenantName:u}))}),[u,b]);const f=null!==m&&void 0!==m?m:u,{data:j,error:N,isLoading:S}=(0,g.hz)({path:f,database:u}),{PathType:w,PathSubType:T}=(null===j||void 0===j||null===(t=j.PathDescription)||void 0===t?void 0:t.Self)||{},C=(0,i.u)(N),[E,P]=n.useState(!0);E&&!S&&P(!1);const I=f||bn("page.title");return(0,c.jsxs)("div",{className:Yp(),children:[(0,c.jsx)(s.ql,{defaultTitle:`${I} \u2014 YDB Monitoring`,titleTemplate:`%s \u2014 ${I} \u2014 YDB Monitoring`}),(0,c.jsx)(o.s,{loading:E,children:(0,c.jsx)(i.S,{error:C?N:void 0,children:(0,c.jsxs)(h,{defaultSizePaneKey:x.z4,defaultSizes:[25,75],triggerCollapse:l.triggerCollapse,triggerExpand:l.triggerExpand,minSize:[36,200],onSplitStartDragAdditional:()=>{d(Hd.clear)},children:[(0,c.jsx)(Xp,{type:w,subType:T,tenantName:u,path:f,onCollapseSummary:()=>{d(Hd.triggerCollapse)},onExpandSummary:()=>{d(Hd.triggerExpand)},isCollapsed:l.collapsed}),(0,c.jsx)("div",{className:Yp("main"),children:(0,c.jsx)(Ym,{type:w,additionalTenantProps:e.additionalTenantProps,additionalNodesProps:e.additionalNodesProps,tenantName:u,path:f})})]})})})]})}},76386:(e,t,a)=>{"use strict";a.d(t,{_:()=>s});var n=a(51688);const s=a(905).h.injectEndpoints({endpoints:e=>({getTablet:e.query({queryFn:async(e,t)=>{let{id:a,database:s,nodeId:r}=e,{signal:i}=t;try{const[e,t,o]=await Promise.all([window.api.getTablet({id:a,database:s,nodeId:r},{signal:i}),window.api.getTabletHistory({id:a,database:s,nodeId:r},{signal:i}),window.api.getNodesList({signal:i})]),l=(0,n.dn)(o),d=Object.keys(t).reduce(((e,a)=>{var n;const s=null===(n=t[a])||void 0===n?void 0:n.TabletStateInfo;if(s&&s.length){const t=s.find((e=>e.Leader))||s[0],{ChangeTime:n,Generation:r,State:i,Leader:o,FollowerId:d}=t,c=l&&a?l.get(Number(a)):void 0;"Dead"!==i&&e.push({nodeId:a,generation:r,changeTime:n,state:i,leader:o,followerId:d,fqdn:c})}return e}),[]),{TabletStateInfo:c=[]}=e,[u={}]=c,{TabletId:m}=u;return{data:{id:m,data:u,history:d}}}catch(o){return{error:o}}},providesTags:(e,t,a)=>["All",{type:"Tablet",id:a.id}]}),getTabletDescribe:e.query({queryFn:async(e,t)=>{let{tenantId:a}=e,{signal:n}=t;try{const e=await window.api.getTabletDescribe(a,{signal:n}),{SchemeShard:t,PathId:s}=a;return{data:(null===e||void 0===e?void 0:e.Path)||`${t}:${s}`}}catch(s){return{error:s}}},providesTags:["All"]}),getAdvancedTableInfo:e.query({queryFn:async(e,t)=>{let{id:a,hiveId:n}=e,{signal:s}=t;try{return{data:await window.api.getTabletFromHive({id:a,hiveId:n},{signal:s})}}catch(r){return{error:r}}},providesTags:(e,t,a)=>["All",{type:"Tablet",id:a.id}]}),killTablet:e.mutation({queryFn:async e=>{let{id:t}=e;try{return{data:await window.api.killTablet(t)}}catch(a){return{error:a}}},invalidatesTags:(e,t,a)=>[{type:"Tablet",id:a.id},{type:"Tablet",id:"LIST"}]}),stopTablet:e.mutation({queryFn:async e=>{let{id:t,hiveId:a}=e;try{return{data:await window.api.stopTablet(t,a)}}catch(n){return{error:n}}},invalidatesTags:(e,t,a)=>[{type:"Tablet",id:a.id},{type:"Tablet",id:"LIST"}]}),resumeTablet:e.mutation({queryFn:async e=>{let{id:t,hiveId:a}=e;try{return{data:await window.api.resumeTablet(t,a)}}catch(n){return{error:n}}},invalidatesTags:(e,t,a)=>[{type:"Tablet",id:a.id},{type:"Tablet",id:"LIST"}]})}),overrideExisting:"throw"})},24960:()=>{},26759:()=>{},56272:()=>{}}]); \ No newline at end of file
diff --git a/ydb/core/viewer/monitoring/static/js/5410.ff2baaff.chunk.js b/ydb/core/viewer/monitoring/static/js/5410.5b33035f.chunk.js
index d9c3779a04..ca5a42acd7 100644
--- a/ydb/core/viewer/monitoring/static/js/5410.ff2baaff.chunk.js
+++ b/ydb/core/viewer/monitoring/static/js/5410.5b33035f.chunk.js
@@ -1 +1 @@
-"use strict";(self.webpackChunkydb_embedded_ui=self.webpackChunkydb_embedded_ui||[]).push([[5410],{65070:(e,t,s)=>{s.d(t,{U:()=>r});var i=s(68963),a=s(17176),n=s(68330),o=s(86793),l=s(45743),d=s(75859);function r(e){let{children:t,onConfirmAction:s,onConfirmActionSuccess:r,dialogHeader:c,dialogText:u,retryButtonText:v,buttonDisabled:p=!1,buttonView:h="action",buttonClassName:k,withPopover:D=!1,popoverContent:g,popoverPlacement:b="right",popoverDisabled:x=!0}=e;const[m,y]=i.useState(!1),[f,j]=i.useState(!1),[I,N]=i.useState(!1),w=()=>(0,d.jsx)(a.z,{onClick:()=>y(!0),view:h,disabled:p,loading:!p&&f,className:k,children:t});return(0,d.jsxs)(i.Fragment,{children:[(0,d.jsx)(o.g,{visible:m,header:c,text:u,withRetry:I,retryButtonText:v,onConfirm:async e=>{j(!0),await s(e)},onConfirmActionSuccess:async()=>{N(!1);try{await(null===r||void 0===r?void 0:r())}finally{j(!1)}},onConfirmActionError:e=>{N((0,l.q)(e)),j(!1)},onClose:()=>{y(!1)}}),D?(0,d.jsx)(n.J,{content:g,placement:b,disabled:x,children:w()}):w()]})}},86793:(e,t,s)=>{s.d(t,{g:()=>D});var i=s(68963),a=s(76506),n=s(71586),o=s(48897),l=s(25822),d=s(88776),r=s(24362),c=s(30817);const u=JSON.parse('{"default-error":"Something went wrong, action cannot be completed","no-rights-error":"You don\'t have enough rights to complete the operation","button-confirm":"Confirm","button-retry":"Retry","button-cancel":"Cancel","button-close":"Close","checkbox-text":"I understand what I\'m doing"}'),v=(0,c.wZ)("ydb-critical-action-dialog",{en:u});var p=s(75859);const h=(0,r.cn)("ydb-critical-dialog"),k=e=>403===e.status?v("no-rights-error"):e.statusText?e.statusText:v("default-error");function D(e){let{visible:t,header:s,text:r,withRetry:c,retryButtonText:u,withCheckBox:D,onClose:g,onConfirm:b,onConfirmActionSuccess:x,onConfirmActionError:m}=e;const[y,f]=i.useState(!1),[j,I]=i.useState(),[N,w]=i.useState(!1),S=async e=>(f(!0),b(e).then((()=>{x(),g()})).catch((e=>{m(e),I(e)})).finally((()=>{f(!1)})));return(0,p.jsx)(l.V,{open:t,hasCloseButton:!1,className:h(),size:"s",onClose:g,onTransitionExited:()=>{I(void 0),w(!1)},children:j?(0,p.jsxs)(i.Fragment,{children:[(0,p.jsx)(l.V.Header,{caption:s}),(0,p.jsx)(l.V.Body,{className:h("body"),children:(0,p.jsxs)("div",{className:h("body-message",{error:!0}),children:[(0,p.jsx)("span",{className:h("error-icon"),children:(0,p.jsx)(a.Z,{width:"24",height:"22"})}),k(j)]})}),(0,p.jsx)(l.V.Footer,{loading:!1,preset:"default",textButtonApply:c?u||v("button-retry"):void 0,textButtonCancel:v("button-close"),onClickButtonApply:()=>S(!0),onClickButtonCancel:g})]}):(0,p.jsxs)(i.Fragment,{children:[(0,p.jsx)(l.V.Header,{caption:s}),(0,p.jsxs)(l.V.Body,{className:h("body"),children:[(0,p.jsxs)("div",{className:h("body-message",{warning:!0}),children:[(0,p.jsx)("span",{className:h("warning-icon"),children:(0,p.jsx)(d.J,{data:n.Z,size:24})}),r]}),D?(0,p.jsx)(o.X,{checked:N,onUpdate:w,children:v("checkbox-text")}):null]}),(0,p.jsx)(l.V.Footer,{loading:y,preset:"default",textButtonApply:v("button-confirm"),textButtonCancel:v("button-cancel"),propsButtonApply:{type:"submit",disabled:D&&!N},onClickButtonCancel:g,onClickButtonApply:()=>S()})]})})}},45743:(e,t,s)=>{s.d(t,{q:()=>i});const i=e=>Boolean(e&&"object"===typeof e&&"retryPossible"in e&&e.retryPossible)},30832:(e,t,s)=>{s.d(t,{a:()=>l});var i=s(24362),a=s(98366),n=s(75859);const o=(0,i.cn)("ydb-entity-page-title");function l(e){let{entityName:t,status:s,id:i,className:l}=e;return(0,n.jsxs)("div",{className:o(null,l),children:[(0,n.jsx)("span",{className:o("prefix"),children:t}),(0,n.jsx)(a.J,{className:o("icon"),status:s,size:"s"}),i]})}},91816:(e,t,s)=>{s.d(t,{b:()=>c});var i=s(68963),a=s(56711),n=s(24362),o=s(42587),l=s(75859);const d=(0,n.cn)("ydb-info-viewer-skeleton"),r=()=>(0,l.jsxs)("div",{className:d("label"),children:[(0,l.jsx)(a.O,{className:d("label__text")}),(0,l.jsx)("div",{className:d("label__dots")})]}),c=e=>{let{rows:t=8,className:s,delay:n=600}=e;const[c]=(0,o.$)(n);let u=(0,l.jsxs)(i.Fragment,{children:[(0,l.jsx)(r,{}),(0,l.jsx)(a.O,{className:d("value")})]});return c||(u=null),(0,l.jsx)("div",{className:d(null,s),children:[...new Array(t)].map(((e,t)=>(0,l.jsx)("div",{className:d("row"),children:u},`skeleton-row-${t}`)))})}},27174:(e,t,s)=>{s.d(t,{B:()=>v});var i=s(77796),a=s(24362),n=s(50422),o=s(56711),l=s(42587),d=s(75859);const r=e=>{let{delay:t=600,className:s}=e;const[i]=(0,l.$)(t);return i?(0,d.jsx)(o.O,{className:s}):null},c=(0,a.cn)("ydb-page-meta");function u(e){let{items:t,loading:s}=e;return(0,d.jsx)("div",{className:c("info"),children:s?(0,d.jsx)(r,{className:c("skeleton")}):t.filter((e=>Boolean(e))).join("\xa0\xa0\xb7\xa0\xa0")})}function v(e){let{className:t,...s}=e;return(0,d.jsxs)(i.k,{gap:1,alignItems:"center",justifyContent:"space-between",className:c(null,t),children:[(0,d.jsx)(u,{...s}),(0,d.jsx)(n.q,{})]})}},22200:(e,t,s)=>{s.d(t,{K:()=>y});s(68963);var i=s(54665),a=s(14146),n=s(5922),o=s(24362),l=s(34301),d=s(48169),r=s(92666),c=s(17096),u=s(55850),v=s(69214),p=s(62206),h=s(32270),k=s(67359),D=s(30817);const g=JSON.parse('{"slot-id":"VDisk Slot Id","pool-name":"Storage Pool Name","kind":"Kind","guid":"GUID","incarnation-guid":"Incarnation GUID","instance-guid":"Instance GUID","replication-status":"Replicated","state-status":"VDisk State","space-status":"Disk Space","fresh-rank-satisfaction":"Fresh Rank Satisfaction","level-rank-satisfaction":"Level Rank Satisfaction","front-queues":"Front Queues","has-unreadable-blobs":"Has Unreadable Blobs","size":"Size","read-throughput":"Read Throughput","write-throughput":"Write Throughput","links":"Links","vdisk-page":"VDisk Page","developer-ui":"Developer UI","yes":"Yes","no":"No","vdiks-title":"VDisk"}'),b=(0,D.wZ)("ydb-vDisk-info",{en:g});var x=s(75859);const m=(0,o.cn)("ydb-vdisk-info");function y(e){var t,s;let{data:o,withVDiskPageLink:r,withTitle:D,...g}=e;const y=(0,c.ix)(a.VH),{AllocatedSize:j,DiskSpace:I,FrontQueues:N,Guid:w,Replicated:S,VDiskState:V,VDiskSlotId:C,Kind:P,SatisfactionRank:B,AvailableSize:T,HasUnreadableBlobs:A,IncarnationGuid:F,InstanceGuid:R,StoragePoolName:$,ReadThroughput:q,WriteThroughput:z,PDiskId:G,NodeId:H}=o||{},_=[];var E,U;((0,n.D)(C)&&_.push({label:b("slot-id"),value:C}),(0,n.D)($)&&_.push({label:b("pool-name"),value:$}),(0,n.D)(V)&&_.push({label:b("state-status"),value:V}),Number(j)>=0&&Number(T)>=0&&_.push({label:b("size"),value:(0,x.jsx)(k.y,{value:j,capacity:Number(j)+Number(T),formatValues:l.q3,colorizeProgress:!0})}),(0,n.D)(P)&&_.push({label:b("kind"),value:P}),(0,n.D)(w)&&_.push({label:b("guid"),value:w}),(0,n.D)(F)&&_.push({label:b("incarnation-guid"),value:F}),(0,n.D)(R)&&_.push({label:b("instance-guid"),value:R}),(0,n.D)(S)&&_.push({label:b("replication-status"),value:b(S?"yes":"no")}),(0,n.D)(I)&&_.push({label:b("space-status"),value:(0,x.jsx)(v.A,{status:I})}),(0,n.D)(null===B||void 0===B||null===(t=B.FreshRank)||void 0===t?void 0:t.Flag))&&_.push({label:b("fresh-rank-satisfaction"),value:(0,x.jsx)(v.A,{status:null===B||void 0===B||null===(E=B.FreshRank)||void 0===E?void 0:E.Flag})});(0,n.D)(null===B||void 0===B||null===(s=B.LevelRank)||void 0===s?void 0:s.Flag)&&_.push({label:b("level-rank-satisfaction"),value:(0,x.jsx)(v.A,{status:null===B||void 0===B||null===(U=B.LevelRank)||void 0===U?void 0:U.Flag})});(0,n.D)(N)&&_.push({label:b("front-queues"),value:(0,x.jsx)(v.A,{status:N})}),(0,n.D)(A)&&_.push({label:b("has-unreadable-blobs"),value:b(A?"yes":"no")}),(0,n.D)(q)&&_.push({label:b("read-throughput"),value:(0,u.Qt)(q)}),(0,n.D)(z)&&_.push({label:b("write-throughput"),value:(0,u.Qt)(z)});if((0,n.D)(G)&&(0,n.D)(H)&&(0,n.D)(C)){const e=[];if(r){const t=(0,i.By)(C,G,H);e.push((0,x.jsx)(h.j,{title:b("vdisk-page"),url:t,external:!1},t))}if(y){const t=(0,d.yf)({nodeId:H,pDiskId:G,vDiskSlotId:C});e.push((0,x.jsx)(h.j,{title:b("developer-ui"),url:t},t))}e.length&&_.push({label:b("links"),value:(0,x.jsx)("div",{className:m("links"),children:e})})}const J=o&&D?(0,x.jsx)(f,{data:o}):null;return(0,x.jsx)(p._P,{info:_,title:J,...g})}function f(e){let{data:t}=e;return(0,x.jsxs)("div",{className:m("title"),children:[b("vdiks-title"),(0,x.jsx)(v.A,{status:(0,r.b2)(t.Severity),name:(0,l.a2)(t.VDiskId)})]})}},65410:(e,t,s)=>{s.r(t),s.d(t,{VDiskPage:()=>A});var i=s(68963),a=s(42154),n=s(88776),o=s(17095),l=s(49352),d=s(52846),r=s(65070),c=s(30832),u=s(26688),v=s(91816),p=s(27174),h=s(22200),k=s(905),D=s(14146),g=s(17880),b=s(79061),x=s(92666),m=s(3764),y=s(51688);const f=k.h.injectEndpoints({endpoints:e=>({getVDiskData:e.query({queryFn:async(e,t)=>{let{nodeId:s,pDiskId:i,vDiskSlotId:a}=e,{signal:n}=t;try{const e=function(e){var t,s,i,a,n,o,l;let[d,r,c]=e;const u=null===(t=d.VDiskStateInfo)||void 0===t?void 0:t[0],v=(0,m.w)(u),p=null===(s=r.PDiskStateInfo)||void 0===s?void 0:s[0],h=(0,m.b)(p),k=null===(i=c.SystemStateInfo)||void 0===i?void 0:i[0],D=(0,y.Ns)(k),g=null!==(a=null!==(n=v.NodeId)&&void 0!==n?n:h.NodeId)&&void 0!==a?a:D.NodeId,b=D.Host,x=null===(o=D.Roles)||void 0===o?void 0:o[0],f=D.DC,j=null!==(l=v.PDiskId)&&void 0!==l?l:h.PDiskId,I=h.Type;return{...v,NodeId:g,NodeHost:b,NodeType:x,NodeDC:f,PDiskId:j,PDiskType:I}}(await Promise.all([window.api.getVDiskInfo({nodeId:s,pDiskId:i,vDiskSlotId:a},{signal:n}),window.api.getNodeWhiteboardPDiskInfo({nodeId:s,pDiskId:i},{signal:n}),window.api.getNodeInfo(s,{signal:n})]));return{data:e}}catch(o){return{error:o}}},providesTags:(e,t,s)=>["All",{type:"VDiskData",id:(0,x.FR)(s.nodeId,s.pDiskId,s.vDiskSlotId)}]})}),overrideExisting:"throw"});var j=s(5922),I=s(24362),N=s(34301),w=s(17096),S=s(45578),V=s(30817);const C=JSON.parse('{"fqdn":"FQDN","node":"Node","pdisk":"PDisk","vdisk":"VDisk","storage":"Storage","evict-vdisk-button":"Evict VDisk","force-evict-vdisk-button":"Evict anyway","evict-vdisk-dialog-header":"Evict VDisk","evict-vdisk-dialog-text":"VDisk will be evicted. Do you want to proceed?","evict-vdisk-not-allowed":"You don\'t have enough rights to evict VDisk"}'),P=(0,V.wZ)("ydb-vDisk-page",{en:C});var B=s(75859);const T=(0,I.cn)("ydb-vdisk-page");function A(){const e=(0,w.zL)(),t=(0,w.ix)(D.VH),s=(0,g.X_)(),[{nodeId:m,pDiskId:y,vDiskSlotId:I}]=(0,d.useQueryParams)({nodeId:d.StringParam,pDiskId:d.StringParam,vDiskSlotId:d.StringParam});i.useEffect((()=>{e((0,b.J)("vDisk",{nodeId:m,pDiskId:y,vDiskSlotId:I}))}),[e,m,y,I]);const[V]=(0,w.Rj)(),C=(0,j.D)(m)&&(0,j.D)(y)&&(0,j.D)(I)?{nodeId:m,pDiskId:y,vDiskSlotId:I}:o.CN,{currentData:A={},isFetching:F,error:R}=f.useGetVDiskDataQuery(C,{pollingInterval:V}),$=F&&void 0===A,{NodeHost:q,NodeId:z,NodeType:G,NodeDC:H,PDiskId:_,PDiskType:E,Severity:U,VDiskId:J}=A,{GroupID:O,GroupGeneration:Q,Ring:L,Domain:Z,VDisk:K}=J||{},Y=(0,j.D)(O)&&(0,j.D)(Q)&&(0,j.D)(L)&&(0,j.D)(Z)&&(0,j.D)(K),W=async e=>{if(Y)return window.api[s?"evictVDisk":"evictVDiskOld"]({groupId:O,groupGeneration:Q,failRealmIdx:L,failDomainIdx:Z,vDiskIdx:K,force:e}).then((e=>{if(!1===(null===e||void 0===e?void 0:e.result)){throw{statusText:e.error,retryPossible:e.forceRetryPossible}}}))},M=()=>{e(k.h.util.invalidateTags([{type:"VDiskData",id:(0,x.FR)(m||0,y||0,I||0)},"StorageData"]))};return(0,B.jsxs)("div",{className:T(null),children:[(()=>{const e=I?`${P("vdisk")} ${I}`:P("vdisk"),t=y?`${P("pdisk")} ${y}`:P("pdisk"),s=q||P("node");return(0,B.jsx)(l.ql,{titleTemplate:`%s - ${e} - ${t} \u2014 ${s} \u2014 YDB Monitoring`,defaultTitle:`${e} - ${t} \u2014 ${s} \u2014 YDB Monitoring`})})(),(()=>{const e=q?`${P("fqdn")}: ${q}`:void 0,t=z?`${P("node")}: ${z}`:void 0,s=z?`${P("pdisk")}: ${_}`:void 0;return(0,B.jsx)(p.B,{className:T("meta"),loading:$,items:[e,t,G,H,s,E]})})(),(0,B.jsx)(c.a,{className:T("title"),entityName:P("vdisk"),status:(0,x.b2)(U),id:(0,N.a2)(null===A||void 0===A?void 0:A.VDiskId)}),(0,B.jsx)("div",{className:T("controls"),children:(0,B.jsxs)(r.U,{onConfirmAction:W,onConfirmActionSuccess:M,buttonDisabled:!Y||!t,buttonView:"normal",dialogHeader:P("evict-vdisk-dialog-header"),dialogText:P("evict-vdisk-dialog-text"),retryButtonText:P("force-evict-vdisk-button"),withPopover:!0,popoverContent:P("evict-vdisk-not-allowed"),popoverDisabled:t,children:[(0,B.jsx)(n.J,{data:a.Z}),P("evict-vdisk-button")]})}),$?(0,B.jsx)(v.b,{rows:20}):(0,B.jsxs)(i.Fragment,{children:[R?(0,B.jsx)(u.V,{error:R}):null,(0,B.jsx)(h.K,{data:A,className:T("info")}),(0,j.D)(O)&&(0,j.D)(m)?(0,B.jsxs)(i.Fragment,{children:[(0,B.jsx)("div",{className:T("storage-title"),children:P("storage")}),(0,B.jsx)(S.K,{groupId:O,nodeId:m})]}):null]})]})}}}]); \ No newline at end of file
+"use strict";(self.webpackChunkydb_embedded_ui=self.webpackChunkydb_embedded_ui||[]).push([[5410],{65070:(e,t,s)=>{s.d(t,{U:()=>r});var i=s(68963),a=s(17176),n=s(68330),o=s(86793),l=s(45743),d=s(75859);function r(e){let{children:t,onConfirmAction:s,onConfirmActionSuccess:r,dialogHeader:c,dialogText:u,retryButtonText:v,buttonDisabled:p=!1,buttonView:h="action",buttonClassName:k,withPopover:D=!1,popoverContent:g,popoverPlacement:b="right",popoverDisabled:x=!0}=e;const[m,y]=i.useState(!1),[f,j]=i.useState(!1),[I,N]=i.useState(!1),w=()=>(0,d.jsx)(a.z,{onClick:()=>y(!0),view:h,disabled:p,loading:!p&&f,className:k,children:t});return(0,d.jsxs)(i.Fragment,{children:[(0,d.jsx)(o.g,{visible:m,header:c,text:u,withRetry:I,retryButtonText:v,onConfirm:async e=>{j(!0),await s(e)},onConfirmActionSuccess:async()=>{N(!1);try{await(null===r||void 0===r?void 0:r())}finally{j(!1)}},onConfirmActionError:e=>{N((0,l.q)(e)),j(!1)},onClose:()=>{y(!1)}}),D?(0,d.jsx)(n.J,{content:g,placement:b,disabled:x,children:w()}):w()]})}},86793:(e,t,s)=>{s.d(t,{g:()=>D});var i=s(68963),a=s(76506),n=s(71586),o=s(48897),l=s(25822),d=s(88776),r=s(24362),c=s(30817);const u=JSON.parse('{"default-error":"Something went wrong, action cannot be completed","no-rights-error":"You don\'t have enough rights to complete the operation","button-confirm":"Confirm","button-retry":"Retry","button-cancel":"Cancel","button-close":"Close","checkbox-text":"I understand what I\'m doing"}'),v=(0,c.wZ)("ydb-critical-action-dialog",{en:u});var p=s(75859);const h=(0,r.cn)("ydb-critical-dialog"),k=e=>403===e.status?v("no-rights-error"):e.statusText?e.statusText:v("default-error");function D(e){let{visible:t,header:s,text:r,withRetry:c,retryButtonText:u,withCheckBox:D,onClose:g,onConfirm:b,onConfirmActionSuccess:x,onConfirmActionError:m}=e;const[y,f]=i.useState(!1),[j,I]=i.useState(),[N,w]=i.useState(!1),S=async e=>(f(!0),b(e).then((()=>{x(),g()})).catch((e=>{m(e),I(e)})).finally((()=>{f(!1)})));return(0,p.jsx)(l.V,{open:t,hasCloseButton:!1,className:h(),size:"s",onClose:g,onTransitionExited:()=>{I(void 0),w(!1)},children:j?(0,p.jsxs)(i.Fragment,{children:[(0,p.jsx)(l.V.Header,{caption:s}),(0,p.jsx)(l.V.Body,{className:h("body"),children:(0,p.jsxs)("div",{className:h("body-message",{error:!0}),children:[(0,p.jsx)("span",{className:h("error-icon"),children:(0,p.jsx)(a.Z,{width:"24",height:"22"})}),k(j)]})}),(0,p.jsx)(l.V.Footer,{loading:!1,preset:"default",textButtonApply:c?u||v("button-retry"):void 0,textButtonCancel:v("button-close"),onClickButtonApply:()=>S(!0),onClickButtonCancel:g})]}):(0,p.jsxs)(i.Fragment,{children:[(0,p.jsx)(l.V.Header,{caption:s}),(0,p.jsxs)(l.V.Body,{className:h("body"),children:[(0,p.jsxs)("div",{className:h("body-message",{warning:!0}),children:[(0,p.jsx)("span",{className:h("warning-icon"),children:(0,p.jsx)(d.J,{data:n.Z,size:24})}),r]}),D?(0,p.jsx)(o.X,{checked:N,onUpdate:w,children:v("checkbox-text")}):null]}),(0,p.jsx)(l.V.Footer,{loading:y,preset:"default",textButtonApply:v("button-confirm"),textButtonCancel:v("button-cancel"),propsButtonApply:{type:"submit",disabled:D&&!N},onClickButtonCancel:g,onClickButtonApply:()=>S()})]})})}},45743:(e,t,s)=>{s.d(t,{q:()=>i});const i=e=>Boolean(e&&"object"===typeof e&&"retryPossible"in e&&e.retryPossible)},30832:(e,t,s)=>{s.d(t,{a:()=>l});var i=s(24362),a=s(98366),n=s(75859);const o=(0,i.cn)("ydb-entity-page-title");function l(e){let{entityName:t,status:s,id:i,className:l}=e;return(0,n.jsxs)("div",{className:o(null,l),children:[(0,n.jsx)("span",{className:o("prefix"),children:t}),(0,n.jsx)(a.J,{className:o("icon"),status:s,size:"s"}),i]})}},91816:(e,t,s)=>{s.d(t,{b:()=>c});var i=s(68963),a=s(56711),n=s(24362),o=s(42587),l=s(75859);const d=(0,n.cn)("ydb-info-viewer-skeleton"),r=()=>(0,l.jsxs)("div",{className:d("label"),children:[(0,l.jsx)(a.O,{className:d("label__text")}),(0,l.jsx)("div",{className:d("label__dots")})]}),c=e=>{let{rows:t=8,className:s,delay:n=600}=e;const[c]=(0,o.$)(n);let u=(0,l.jsxs)(i.Fragment,{children:[(0,l.jsx)(r,{}),(0,l.jsx)(a.O,{className:d("value")})]});return c||(u=null),(0,l.jsx)("div",{className:d(null,s),children:[...new Array(t)].map(((e,t)=>(0,l.jsx)("div",{className:d("row"),children:u},`skeleton-row-${t}`)))})}},27174:(e,t,s)=>{s.d(t,{B:()=>v});var i=s(77796),a=s(24362),n=s(50422),o=s(56711),l=s(42587),d=s(75859);const r=e=>{let{delay:t=600,className:s}=e;const[i]=(0,l.$)(t);return i?(0,d.jsx)(o.O,{className:s}):null},c=(0,a.cn)("ydb-page-meta");function u(e){let{items:t,loading:s}=e;return(0,d.jsx)("div",{className:c("info"),children:s?(0,d.jsx)(r,{className:c("skeleton")}):t.filter((e=>Boolean(e))).join("\xa0\xa0\xb7\xa0\xa0")})}function v(e){let{className:t,...s}=e;return(0,d.jsxs)(i.k,{gap:1,alignItems:"center",justifyContent:"space-between",className:c(null,t),children:[(0,d.jsx)(u,{...s}),(0,d.jsx)(n.q,{})]})}},22200:(e,t,s)=>{s.d(t,{K:()=>y});s(68963);var i=s(54665),a=s(14146),n=s(5922),o=s(24362),l=s(34301),d=s(48169),r=s(92666),c=s(17096),u=s(55850),v=s(69214),p=s(62206),h=s(32270),k=s(67359),D=s(30817);const g=JSON.parse('{"slot-id":"VDisk Slot Id","pool-name":"Storage Pool Name","kind":"Kind","guid":"GUID","incarnation-guid":"Incarnation GUID","instance-guid":"Instance GUID","replication-status":"Replicated","state-status":"VDisk State","space-status":"Disk Space","fresh-rank-satisfaction":"Fresh Rank Satisfaction","level-rank-satisfaction":"Level Rank Satisfaction","front-queues":"Front Queues","has-unreadable-blobs":"Has Unreadable Blobs","size":"Size","read-throughput":"Read Throughput","write-throughput":"Write Throughput","links":"Links","vdisk-page":"VDisk Page","developer-ui":"Developer UI","yes":"Yes","no":"No","vdiks-title":"VDisk"}'),b=(0,D.wZ)("ydb-vDisk-info",{en:g});var x=s(75859);const m=(0,o.cn)("ydb-vdisk-info");function y(e){var t,s;let{data:o,withVDiskPageLink:r,withTitle:D,...g}=e;const y=(0,c.ix)(a.VH),{AllocatedSize:j,DiskSpace:I,FrontQueues:N,Guid:w,Replicated:S,VDiskState:V,VDiskSlotId:C,Kind:P,SatisfactionRank:B,AvailableSize:T,HasUnreadableBlobs:A,IncarnationGuid:F,InstanceGuid:R,StoragePoolName:$,ReadThroughput:q,WriteThroughput:z,PDiskId:G,NodeId:H}=o||{},_=[];var E,U;((0,n.D)(C)&&_.push({label:b("slot-id"),value:C}),(0,n.D)($)&&_.push({label:b("pool-name"),value:$}),(0,n.D)(V)&&_.push({label:b("state-status"),value:V}),Number(j)>=0&&Number(T)>=0&&_.push({label:b("size"),value:(0,x.jsx)(k.y,{value:j,capacity:Number(j)+Number(T),formatValues:l.q3,colorizeProgress:!0})}),(0,n.D)(P)&&_.push({label:b("kind"),value:P}),(0,n.D)(w)&&_.push({label:b("guid"),value:w}),(0,n.D)(F)&&_.push({label:b("incarnation-guid"),value:F}),(0,n.D)(R)&&_.push({label:b("instance-guid"),value:R}),(0,n.D)(S)&&_.push({label:b("replication-status"),value:b(S?"yes":"no")}),(0,n.D)(I)&&_.push({label:b("space-status"),value:(0,x.jsx)(v.A,{status:I})}),(0,n.D)(null===B||void 0===B||null===(t=B.FreshRank)||void 0===t?void 0:t.Flag))&&_.push({label:b("fresh-rank-satisfaction"),value:(0,x.jsx)(v.A,{status:null===B||void 0===B||null===(E=B.FreshRank)||void 0===E?void 0:E.Flag})});(0,n.D)(null===B||void 0===B||null===(s=B.LevelRank)||void 0===s?void 0:s.Flag)&&_.push({label:b("level-rank-satisfaction"),value:(0,x.jsx)(v.A,{status:null===B||void 0===B||null===(U=B.LevelRank)||void 0===U?void 0:U.Flag})});(0,n.D)(N)&&_.push({label:b("front-queues"),value:(0,x.jsx)(v.A,{status:N})}),(0,n.D)(A)&&_.push({label:b("has-unreadable-blobs"),value:b(A?"yes":"no")}),(0,n.D)(q)&&_.push({label:b("read-throughput"),value:(0,u.Qt)(q)}),(0,n.D)(z)&&_.push({label:b("write-throughput"),value:(0,u.Qt)(z)});if((0,n.D)(G)&&(0,n.D)(H)&&(0,n.D)(C)){const e=[];if(r){const t=(0,i.By)(C,G,H);e.push((0,x.jsx)(h.j,{title:b("vdisk-page"),url:t,external:!1},t))}if(y){const t=(0,d.yf)({nodeId:H,pDiskId:G,vDiskSlotId:C});e.push((0,x.jsx)(h.j,{title:b("developer-ui"),url:t},t))}e.length&&_.push({label:b("links"),value:(0,x.jsx)("div",{className:m("links"),children:e})})}const J=o&&D?(0,x.jsx)(f,{data:o}):null;return(0,x.jsx)(p._P,{info:_,title:J,...g})}function f(e){let{data:t}=e;return(0,x.jsxs)("div",{className:m("title"),children:[b("vdiks-title"),(0,x.jsx)(v.A,{status:(0,r.b2)(t.Severity),name:(0,l.a2)(t.VDiskId)})]})}},65410:(e,t,s)=>{s.r(t),s.d(t,{VDiskPage:()=>A});var i=s(68963),a=s(42154),n=s(88776),o=s(17095),l=s(49352),d=s(98994),r=s(65070),c=s(30832),u=s(26688),v=s(91816),p=s(27174),h=s(22200),k=s(905),D=s(14146),g=s(17880),b=s(79061),x=s(92666),m=s(3764),y=s(51688);const f=k.h.injectEndpoints({endpoints:e=>({getVDiskData:e.query({queryFn:async(e,t)=>{let{nodeId:s,pDiskId:i,vDiskSlotId:a}=e,{signal:n}=t;try{const e=function(e){var t,s,i,a,n,o,l;let[d,r,c]=e;const u=null===(t=d.VDiskStateInfo)||void 0===t?void 0:t[0],v=(0,m.w)(u),p=null===(s=r.PDiskStateInfo)||void 0===s?void 0:s[0],h=(0,m.b)(p),k=null===(i=c.SystemStateInfo)||void 0===i?void 0:i[0],D=(0,y.Ns)(k),g=null!==(a=null!==(n=v.NodeId)&&void 0!==n?n:h.NodeId)&&void 0!==a?a:D.NodeId,b=D.Host,x=null===(o=D.Roles)||void 0===o?void 0:o[0],f=D.DC,j=null!==(l=v.PDiskId)&&void 0!==l?l:h.PDiskId,I=h.Type;return{...v,NodeId:g,NodeHost:b,NodeType:x,NodeDC:f,PDiskId:j,PDiskType:I}}(await Promise.all([window.api.getVDiskInfo({nodeId:s,pDiskId:i,vDiskSlotId:a},{signal:n}),window.api.getNodeWhiteboardPDiskInfo({nodeId:s,pDiskId:i},{signal:n}),window.api.getNodeInfo(s,{signal:n})]));return{data:e}}catch(o){return{error:o}}},providesTags:(e,t,s)=>["All",{type:"VDiskData",id:(0,x.FR)(s.nodeId,s.pDiskId,s.vDiskSlotId)}]})}),overrideExisting:"throw"});var j=s(5922),I=s(24362),N=s(34301),w=s(17096),S=s(57180),V=s(30817);const C=JSON.parse('{"fqdn":"FQDN","node":"Node","pdisk":"PDisk","vdisk":"VDisk","storage":"Storage","evict-vdisk-button":"Evict VDisk","force-evict-vdisk-button":"Evict anyway","evict-vdisk-dialog-header":"Evict VDisk","evict-vdisk-dialog-text":"VDisk will be evicted. Do you want to proceed?","evict-vdisk-not-allowed":"You don\'t have enough rights to evict VDisk"}'),P=(0,V.wZ)("ydb-vDisk-page",{en:C});var B=s(75859);const T=(0,I.cn)("ydb-vdisk-page");function A(){const e=(0,w.zL)(),t=(0,w.ix)(D.VH),s=(0,g.X_)(),[{nodeId:m,pDiskId:y,vDiskSlotId:I}]=(0,d.useQueryParams)({nodeId:d.StringParam,pDiskId:d.StringParam,vDiskSlotId:d.StringParam});i.useEffect((()=>{e((0,b.J)("vDisk",{nodeId:m,pDiskId:y,vDiskSlotId:I}))}),[e,m,y,I]);const[V]=(0,w.Rj)(),C=(0,j.D)(m)&&(0,j.D)(y)&&(0,j.D)(I)?{nodeId:m,pDiskId:y,vDiskSlotId:I}:o.CN,{currentData:A={},isFetching:F,error:R}=f.useGetVDiskDataQuery(C,{pollingInterval:V}),$=F&&void 0===A,{NodeHost:q,NodeId:z,NodeType:G,NodeDC:H,PDiskId:_,PDiskType:E,Severity:U,VDiskId:J}=A,{GroupID:O,GroupGeneration:Q,Ring:L,Domain:Z,VDisk:K}=J||{},Y=(0,j.D)(O)&&(0,j.D)(Q)&&(0,j.D)(L)&&(0,j.D)(Z)&&(0,j.D)(K),W=async e=>{if(Y)return window.api[s?"evictVDisk":"evictVDiskOld"]({groupId:O,groupGeneration:Q,failRealmIdx:L,failDomainIdx:Z,vDiskIdx:K,force:e}).then((e=>{if(!1===(null===e||void 0===e?void 0:e.result)){throw{statusText:e.error,retryPossible:e.forceRetryPossible}}}))},M=()=>{e(k.h.util.invalidateTags([{type:"VDiskData",id:(0,x.FR)(m||0,y||0,I||0)},"StorageData"]))};return(0,B.jsxs)("div",{className:T(null),children:[(()=>{const e=I?`${P("vdisk")} ${I}`:P("vdisk"),t=y?`${P("pdisk")} ${y}`:P("pdisk"),s=q||P("node");return(0,B.jsx)(l.ql,{titleTemplate:`%s - ${e} - ${t} \u2014 ${s} \u2014 YDB Monitoring`,defaultTitle:`${e} - ${t} \u2014 ${s} \u2014 YDB Monitoring`})})(),(()=>{const e=q?`${P("fqdn")}: ${q}`:void 0,t=z?`${P("node")}: ${z}`:void 0,s=z?`${P("pdisk")}: ${_}`:void 0;return(0,B.jsx)(p.B,{className:T("meta"),loading:$,items:[e,t,G,H,s,E]})})(),(0,B.jsx)(c.a,{className:T("title"),entityName:P("vdisk"),status:(0,x.b2)(U),id:(0,N.a2)(null===A||void 0===A?void 0:A.VDiskId)}),(0,B.jsx)("div",{className:T("controls"),children:(0,B.jsxs)(r.U,{onConfirmAction:W,onConfirmActionSuccess:M,buttonDisabled:!Y||!t,buttonView:"normal",dialogHeader:P("evict-vdisk-dialog-header"),dialogText:P("evict-vdisk-dialog-text"),retryButtonText:P("force-evict-vdisk-button"),withPopover:!0,popoverContent:P("evict-vdisk-not-allowed"),popoverDisabled:t,children:[(0,B.jsx)(n.J,{data:a.Z}),P("evict-vdisk-button")]})}),$?(0,B.jsx)(v.b,{rows:20}):(0,B.jsxs)(i.Fragment,{children:[R?(0,B.jsx)(u.V,{error:R}):null,(0,B.jsx)(h.K,{data:A,className:T("info")}),(0,j.D)(O)&&(0,j.D)(m)?(0,B.jsxs)(i.Fragment,{children:[(0,B.jsx)("div",{className:T("storage-title"),children:P("storage")}),(0,B.jsx)(S.K,{groupId:O,nodeId:m})]}):null]})]})}}}]); \ No newline at end of file
diff --git a/ydb/core/viewer/monitoring/static/js/6123.bcc7dc27.chunk.js b/ydb/core/viewer/monitoring/static/js/6123.bcc7dc27.chunk.js
new file mode 100644
index 0000000000..12cb0dd27a
--- /dev/null
+++ b/ydb/core/viewer/monitoring/static/js/6123.bcc7dc27.chunk.js
@@ -0,0 +1 @@
+"use strict";(self.webpackChunkydb_embedded_ui=self.webpackChunkydb_embedded_ui||[]).push([[6123],{30832:(e,a,l)=>{l.d(a,{a:()=>o});var s=l(24362),t=l(98366),n=l(75859);const r=(0,s.cn)("ydb-entity-page-title");function o(e){let{entityName:a,status:l,id:s,className:o}=e;return(0,n.jsxs)("div",{className:r(null,o),children:[(0,n.jsx)("span",{className:r("prefix"),children:a}),(0,n.jsx)(t.J,{className:r("icon"),status:l,size:"s"}),s]})}},91816:(e,a,l)=>{l.d(a,{b:()=>c});var s=l(68963),t=l(56711),n=l(24362),r=l(42587),o=l(75859);const i=(0,n.cn)("ydb-info-viewer-skeleton"),u=()=>(0,o.jsxs)("div",{className:i("label"),children:[(0,o.jsx)(t.O,{className:i("label__text")}),(0,o.jsx)("div",{className:i("label__dots")})]}),c=e=>{let{rows:a=8,className:l,delay:n=600}=e;const[c]=(0,r.$)(n);let d=(0,o.jsxs)(s.Fragment,{children:[(0,o.jsx)(u,{}),(0,o.jsx)(t.O,{className:i("value")})]});return c||(d=null),(0,o.jsx)("div",{className:i(null,l),children:[...new Array(a)].map(((e,a)=>(0,o.jsx)("div",{className:i("row"),children:d},`skeleton-row-${a}`)))})}},27174:(e,a,l)=>{l.d(a,{B:()=>p});var s=l(77796),t=l(24362),n=l(50422),r=l(56711),o=l(42587),i=l(75859);const u=e=>{let{delay:a=600,className:l}=e;const[s]=(0,o.$)(a);return s?(0,i.jsx)(r.O,{className:l}):null},c=(0,t.cn)("ydb-page-meta");function d(e){let{items:a,loading:l}=e;return(0,i.jsx)("div",{className:c("info"),children:l?(0,i.jsx)(u,{className:c("skeleton")}):a.filter((e=>Boolean(e))).join("\xa0\xa0\xb7\xa0\xa0")})}function p(e){let{className:a,...l}=e;return(0,i.jsxs)(s.k,{gap:1,alignItems:"center",justifyContent:"space-between",className:c(null,a),children:[(0,i.jsx)(d,{...l}),(0,i.jsx)(n.q,{})]})}},35953:(e,a,l)=>{l.r(a),l.d(a,{StorageGroupPage:()=>P});var s=l(68963),t=l(17095),n=l(49352),r=l(98994),o=l(30832),i=l(26688),u=l(91816),c=l(27174),d=l(77796),p=l(5922),g=l(34301),m=l(1504),v=l(55850),h=l(69214),b=l(62206),y=l(67359),x=l(30817);const N=JSON.parse('{"encryption":"Encryption","overall":"Overall","disk-space":"Disk Space","media-type":"Media Type","erasure-species":"Erasure Species","used-space":"Used Space","usage":"Usage","read-throughput":"Read Throughput","write-throughput":"Write Throughput","yes":"Yes","no":"No","group-generation":"Group Generation","latency":"Latency","allocation-units":"Units","state":"State","missing-disks":"Missing Disks","available":"Available Space","latency-put-tablet-log":"Latency (Put Tablet Log)","latency-put-user-data":"Latency (Put User Data)","latency-get-fast":"Latency (Get Fast)"}'),f=(0,x.wZ)("storage-group-info",{en:N});var j=l(75859);function w(e){let{data:a,className:l,...s}=e;const{Encryption:t,Overall:n,DiskSpace:r,MediaType:o,ErasureSpecies:i,Used:u,Limit:c,Usage:x,Read:N,Write:w,GroupGeneration:D,Latency:k,AllocationUnits:E,State:Z,MissingDisks:S,Available:G,LatencyPutTabletLogMs:M,LatencyPutUserDataMs:A,LatencyGetFastMs:O}=a||{},L=[];(0,p.D)(D)&&L.push({label:f("group-generation"),value:D}),(0,p.D)(i)&&L.push({label:f("erasure-species"),value:i}),(0,p.D)(o)&&L.push({label:f("media-type"),value:o}),(0,p.D)(t)&&L.push({label:f("encryption"),value:f(t?"yes":"no")}),(0,p.D)(n)&&L.push({label:f("overall"),value:(0,j.jsx)(h.A,{status:n})}),(0,p.D)(Z)&&L.push({label:f("state"),value:Z}),(0,p.D)(S)&&L.push({label:f("missing-disks"),value:S});const P=[];return(0,p.D)(u)&&(0,p.D)(c)&&P.push({label:f("used-space"),value:(0,j.jsx)(y.y,{value:Number(u),capacity:Number(c),formatValues:g.q3,colorizeProgress:!0})}),(0,p.D)(G)&&P.push({label:f("available"),value:(0,g.q3)(Number(G))}),(0,p.D)(x)&&P.push({label:f("usage"),value:`${x.toFixed(2)}%`}),(0,p.D)(r)&&P.push({label:f("disk-space"),value:(0,j.jsx)(h.A,{status:r})}),(0,p.D)(k)&&P.push({label:f("latency"),value:(0,j.jsx)(h.A,{status:k})}),(0,p.D)(M)&&P.push({label:f("latency-put-tablet-log"),value:(0,m.zm)(M)}),(0,p.D)(A)&&P.push({label:f("latency-put-user-data"),value:(0,m.zm)(A)}),(0,p.D)(O)&&P.push({label:f("latency-get-fast"),value:(0,m.zm)(O)}),(0,p.D)(E)&&P.push({label:f("allocation-units"),value:E}),(0,p.D)(N)&&P.push({label:f("read-throughput"),value:(0,v.Qt)(Number(N))}),(0,p.D)(w)&&P.push({label:f("write-throughput"),value:(0,v.Qt)(Number(w))}),(0,j.jsxs)(d.k,{className:l,gap:2,direction:"row",wrap:!0,children:[(0,j.jsx)(b._P,{info:L,...s}),(0,j.jsx)(b._P,{info:P,...s})]})}var D=l(17880),k=l(79061),E=l(33058),Z=l(75850),S=l(24362),G=l(17096),M=l(57180);const A=JSON.parse('{"storage-group":"Storage Group","storage":"Storage","pool-name":"Pool Name"}'),O=(0,x.wZ)("ydb-storage-group-page",{en:A}),L=(0,S.cn)("ydb-storage-group-page");function P(){var e,a;const l=(0,G.zL)(),[{groupId:d}]=(0,r.useQueryParams)({groupId:r.StringParam});s.useEffect((()=>{l((0,k.J)("storageGroup",{groupId:d}))}),[l,d]);const[g]=(0,G.Rj)(),m=(0,D.tS)(),v=(0,D.rU)(),h=E.y.useGetStorageGroupsInfoQuery((0,p.D)(d)?{groupId:d,shouldUseGroupsHandler:m,with:"all"}:t.CN,{pollingInterval:g,skip:!v}),b=null===(e=h.data)||void 0===e||null===(a=e.groups)||void 0===a?void 0:a[0],y=h.isFetching&&void 0===b;return(0,j.jsxs)("div",{className:L(null),children:[(()=>{const e=d?`${O("storage-group")} ${d}`:O("storage-group");return(0,j.jsx)(n.ql,{titleTemplate:`%s - ${e} \u2014 YDB Monitoring`,defaultTitle:`${e} \u2014 YDB Monitoring`})})(),(()=>{if(!d)return null;const e=[`${O("pool-name")}: ${null===b||void 0===b?void 0:b.PoolName}`];return(0,j.jsx)(c.B,{className:L("meta"),loading:y,items:e})})(),(0,j.jsx)(o.a,{className:L("title"),entityName:O("storage-group"),status:(null===b||void 0===b?void 0:b.Overall)||Z.K.Grey,id:d}),h.error?(0,j.jsx)(i.V,{error:h.error}):null,y?(0,j.jsx)(u.b,{className:L("info"),rows:10}):(0,j.jsx)(w,{data:b,className:L("info")}),d?(0,j.jsxs)(s.Fragment,{children:[(0,j.jsx)("div",{className:L("storage-title"),children:O("storage")}),(0,j.jsx)(M.K,{groupId:d})]}):null]})}},57225:(e,a,l)=>{l.d(a,{Z:()=>t});var s=l(68963);const t=e=>s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),s.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M15 8A7 7 0 1 1 1 8a7 7 0 0 1 14 0Zm-6 2.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM8.75 5a.75.75 0 0 0-1.5 0v2.5a.75.75 0 0 0 1.5 0V5Z",clipRule:"evenodd"}))},67585:(e,a,l)=>{l.d(a,{Z:()=>t});var s=l(68963);const t=e=>s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),s.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14Zm1-9.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM8 7.75a.75.75 0 0 1 .75.75V11a.75.75 0 0 1-1.5 0V8.5A.75.75 0 0 1 8 7.75Z",clipRule:"evenodd"}))},71549:(e,a,l)=>{l.d(a,{Z:()=>t});var s=l(68963);const t=e=>s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),s.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"m3.003 4.702 4.22-2.025a1.796 1.796 0 0 1 1.554 0l4.22 2.025a.886.886 0 0 1 .503.8V6a8.55 8.55 0 0 1-3.941 7.201l-.986.631a1.063 1.063 0 0 1-1.146 0l-.986-.63A8.55 8.55 0 0 1 2.5 6v-.498c0-.341.196-.652.503-.8Zm3.57-3.377L2.354 3.35A2.387 2.387 0 0 0 1 5.502V6a10.05 10.05 0 0 0 4.632 8.465l.986.63a2.563 2.563 0 0 0 2.764 0l.986-.63A10.05 10.05 0 0 0 15 6v-.498c0-.918-.526-1.755-1.354-2.152l-4.22-2.025a3.296 3.296 0 0 0-2.852 0ZM9.5 7a1.5 1.5 0 0 1-.75 1.3v1.95a.75.75 0 0 1-1.5 0V8.3A1.5 1.5 0 1 1 9.5 7Z",clipRule:"evenodd"}))},71586:(e,a,l)=>{l.d(a,{Z:()=>t});var s=l(68963);const t=e=>s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),s.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M5.836 2.244c.962-1.665 3.366-1.665 4.328 0l4.917 8.505c.964 1.666-.239 3.751-2.164 3.751H3.083c-1.925 0-3.128-2.085-2.164-3.751l4.917-8.505ZM8 5a.75.75 0 0 1 .75.75v2a.75.75 0 1 1-1.5 0v-2A.75.75 0 0 1 8 5Zm1 5.75a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z",clipRule:"evenodd"}))},56711:(e,a,l)=>{l.d(a,{O:()=>n});var s=l(68963);const t=(0,l(36951).Ge)("skeleton");function n(e){let{className:a,style:l,qa:n}=e;return s.createElement("div",{className:t(null,a),style:l,"data-qa":n})}},27320:(e,a,l)=>{l.d(a,{u:()=>c});var s=l(68963),t=l(48027),n=l(79004),r=l(44920),o=l(10288);const i=(0,l(36951).Ge)("tooltip"),u=["bottom","top"],c=e=>{const{children:a,content:l,disabled:c,placement:d=u,qa:p,id:g,className:m,style:v,disablePortal:h,contentClassName:b,openDelay:y=1e3,closeDelay:x}=e,[N,f]=s.useState(null),j=(0,n.p)(N,{openDelay:y,closeDelay:x,preventTriggerOnFocus:!0}),w=s.Children.only(a),D=w.ref,k=(0,t.c)(f,D);return s.createElement(s.Fragment,null,s.cloneElement(w,{ref:k}),N?s.createElement(r.G,{id:g,role:"tooltip",className:i(null,m),style:v,open:j&&!c,placement:d,anchorRef:{current:N},disablePortal:h,disableEscapeKeyDown:!0,disableOutsideClick:!0,disableLayer:!0,qa:p},s.createElement("div",{className:i("content",b)},s.createElement(o.x,{variant:"body-short",color:"complementary"},l))):null)}}}]); \ No newline at end of file
diff --git a/ydb/core/viewer/monitoring/static/js/6194.f467f444.chunk.js b/ydb/core/viewer/monitoring/static/js/6194.f467f444.chunk.js
new file mode 100644
index 0000000000..ef50c15de8
--- /dev/null
+++ b/ydb/core/viewer/monitoring/static/js/6194.f467f444.chunk.js
@@ -0,0 +1 @@
+(self.webpackChunkydb_embedded_ui=self.webpackChunkydb_embedded_ui||[]).push([[6194],{65070:(e,t,a)=>{"use strict";a.d(t,{U:()=>c});var n=a(68963),r=a(17176),s=a(68330),i=a(86793),o=a(45743),l=a(75859);function c(e){let{children:t,onConfirmAction:a,onConfirmActionSuccess:c,dialogHeader:d,dialogText:u,retryButtonText:m,buttonDisabled:p=!1,buttonView:h="action",buttonClassName:v,withPopover:g=!1,popoverContent:x,popoverPlacement:y="right",popoverDisabled:b=!0}=e;const[f,j]=n.useState(!1),[N,S]=n.useState(!1),[T,w]=n.useState(!1),E=()=>(0,l.jsx)(r.z,{onClick:()=>j(!0),view:h,disabled:p,loading:!p&&N,className:v,children:t});return(0,l.jsxs)(n.Fragment,{children:[(0,l.jsx)(i.g,{visible:f,header:d,text:u,withRetry:T,retryButtonText:m,onConfirm:async e=>{S(!0),await a(e)},onConfirmActionSuccess:async()=>{w(!1);try{await(null===c||void 0===c?void 0:c())}finally{S(!1)}},onConfirmActionError:e=>{w((0,o.q)(e)),S(!1)},onClose:()=>{j(!1)}}),g?(0,l.jsx)(s.J,{content:x,placement:y,disabled:b,children:E()}):E()]})}},86793:(e,t,a)=>{"use strict";a.d(t,{g:()=>g});var n=a(68963),r=a(76506),s=a(71586),i=a(48897),o=a(25822),l=a(88776),c=a(24362),d=a(30817);const u=JSON.parse('{"default-error":"Something went wrong, action cannot be completed","no-rights-error":"You don\'t have enough rights to complete the operation","button-confirm":"Confirm","button-retry":"Retry","button-cancel":"Cancel","button-close":"Close","checkbox-text":"I understand what I\'m doing"}'),m=(0,d.wZ)("ydb-critical-action-dialog",{en:u});var p=a(75859);const h=(0,c.cn)("ydb-critical-dialog"),v=e=>403===e.status?m("no-rights-error"):e.statusText?e.statusText:m("default-error");function g(e){let{visible:t,header:a,text:c,withRetry:d,retryButtonText:u,withCheckBox:g,onClose:x,onConfirm:y,onConfirmActionSuccess:b,onConfirmActionError:f}=e;const[j,N]=n.useState(!1),[S,T]=n.useState(),[w,E]=n.useState(!1),C=async e=>(N(!0),y(e).then((()=>{b(),x()})).catch((e=>{f(e),T(e)})).finally((()=>{N(!1)})));return(0,p.jsx)(o.V,{open:t,hasCloseButton:!1,className:h(),size:"s",onClose:x,onTransitionExited:()=>{T(void 0),E(!1)},children:S?(0,p.jsxs)(n.Fragment,{children:[(0,p.jsx)(o.V.Header,{caption:a}),(0,p.jsx)(o.V.Body,{className:h("body"),children:(0,p.jsxs)("div",{className:h("body-message",{error:!0}),children:[(0,p.jsx)("span",{className:h("error-icon"),children:(0,p.jsx)(r.Z,{width:"24",height:"22"})}),v(S)]})}),(0,p.jsx)(o.V.Footer,{loading:!1,preset:"default",textButtonApply:d?u||m("button-retry"):void 0,textButtonCancel:m("button-close"),onClickButtonApply:()=>C(!0),onClickButtonCancel:x})]}):(0,p.jsxs)(n.Fragment,{children:[(0,p.jsx)(o.V.Header,{caption:a}),(0,p.jsxs)(o.V.Body,{className:h("body"),children:[(0,p.jsxs)("div",{className:h("body-message",{warning:!0}),children:[(0,p.jsx)("span",{className:h("warning-icon"),children:(0,p.jsx)(l.J,{data:s.Z,size:24})}),c]}),g?(0,p.jsx)(i.X,{checked:w,onUpdate:E,children:m("checkbox-text")}):null]}),(0,p.jsx)(o.V.Footer,{loading:j,preset:"default",textButtonApply:m("button-confirm"),textButtonCancel:m("button-cancel"),propsButtonApply:{type:"submit",disabled:g&&!w},onClickButtonCancel:x,onClickButtonApply:()=>C()})]})})}},45743:(e,t,a)=>{"use strict";a.d(t,{q:()=>n});const n=e=>Boolean(e&&"object"===typeof e&&"retryPossible"in e&&e.retryPossible)},97482:(e,t,a)=>{"use strict";a.d(t,{f:()=>i});var n=a(14979),r=a(83496),s=a(75859);function i(e){let{state:t}=e;return(0,s.jsx)(n._,{theme:(0,r.KR)(t),children:t})}},42635:(e,t,a)=>{"use strict";a.d(t,{J:()=>Q});var n=a(66950),r=a(10288),s=a(88776),i=a(17095),o=a(65070),l=a(41919),c=a(69214),d=a(26688),u=a(74170),m=a(2098),p=a(22692),h=a(97482),v=a(54665),g=a(14146),x=a(76386),y=a(36313),b=a(85690),f=a.n(b),j=a(905),N=a(99337);const S=j.h.injectEndpoints({endpoints:e=>({getTabletsInfo:e.query({queryFn:async(e,t)=>{let{signal:a}=t;try{return{data:await window.api.getTabletsInfo(e,{signal:a})}}catch(n){return{error:n}}},providesTags:["All",{type:"Tablet",id:"LIST"}]})}),overrideExisting:"throw"}),T=(0,y.P1)((e=>e),(e=>S.endpoints.getTabletsInfo.select(e)),{argsMemoize:y.PP,argsMemoizeOptions:{equalityCheck:f()}}),w=(0,y.P1)((e=>e),((e,t)=>T(t)),((e,t)=>t(e).data)),E=(0,y.P1)(((e,t)=>w(e,t)),(e=>(0,N.s)(e)),((e,t)=>null!==e&&void 0!==e&&e.TabletStateInfo?t?e.TabletStateInfo.map((e=>{const a=void 0===e.NodeId?void 0:t.get(e.NodeId);return{...e,fqdn:a}})):e.TabletStateInfo:[]));var C=a(28164),I=a(24362),P=a(52317),R=a(34301),D=a(48169),_=a(17096),A=a(92398),O=a(30817);const k=JSON.parse('{"noTabletsData":"No tablets data","Type":"Type","Tablet":"Tablet","State":"State","Node ID":"Node ID","Node FQDN":"Node FQDN","Generation":"Generation","Uptime":"Uptime","dialog.kill-header":"Restart tablet","dialog.kill-text":"The tablet will be restarted. Do you want to proceed?","controls.kill-not-allowed":"You don\'t have enough rights to restart tablet"}'),L=(0,O.wZ)("ydb-tablets",{en:k});var M=a(75859);const q=(0,I.cn)("tablets");function z(e){let{database:t}=e;return[{name:"Type",get header(){return L("Type")},render:e=>{let{row:t}=e;const a=!1===t.Leader;return(0,M.jsxs)("span",{children:[t.Type," ",a?(0,M.jsx)(r.x,{color:"secondary",children:"follower"}):""]})}},{name:"TabletId",width:220,get header(){return L("Tablet")},render:e=>{var a;let{row:n}=e;if(!n.TabletId)return P.jX;const r=(0,v.fK)(n.TabletId,{nodeId:n.NodeId,type:n.Type,tenantName:t});return(0,M.jsx)(c.A,{name:null===(a=n.TabletId)||void 0===a?void 0:a.toString(),path:r,hasClipboardButton:!0,showStatus:!1,additionalControls:(0,M.jsx)(l.Q,{href:(0,D.wz)(n.TabletId)})})}},{name:"State",get header(){return L("State")},render:e=>{let{row:t}=e;return(0,M.jsx)(h.f,{state:t.State})}},{name:"NodeId",get header(){return L("Node ID")},render:e=>{let{row:t}=e;const a=void 0===t.NodeId?void 0:(0,A.a3)(t.NodeId);return(0,M.jsx)(u.h,{to:a,children:t.NodeId})},align:"right"},{name:"fqdn",get header(){return L("Node FQDN")},render:e=>{let{row:t}=e;return t.fqdn?(0,M.jsx)(c.A,{name:t.fqdn,showStatus:!1,hasClipboardButton:!0}):(0,M.jsx)("span",{children:"\u2014"})}},{name:"Generation",get header(){return L("Generation")},align:"right"},{name:"Uptime",get header(){return L("Uptime")},render:e=>{let{row:t}=e;return(0,R.fG)(t.ChangeTime)},sortAccessor:e=>-Number(e.ChangeTime),align:"right"},{name:"Actions",sortable:!1,resizeable:!1,header:"",render:e=>{let{row:t}=e;return(0,M.jsx)(F,{...t})}}]}function F(e){const t=e.State===C.g.Stopped,a=(0,_.ix)(g.VH),[r]=x._.useKillTabletMutation(),i=e.TabletId;return i?(0,M.jsx)(o.U,{buttonView:"outlined",dialogHeader:L("dialog.kill-header"),dialogText:L("dialog.kill-text"),onConfirmAction:()=>r({id:i}).unwrap(),buttonDisabled:t||!a,withPopover:!0,popoverContent:L("controls.kill-not-allowed"),popoverDisabled:a,children:(0,M.jsx)(s.J,{data:n.Z})}):null}function Q(e){let{nodeId:t,path:a,database:n,className:r}=e;const[s]=(0,_.Rj)();let o={};const l=void 0===t?void 0:String(t);void 0!==l?o={nodeId:l,database:n}:a&&(o={path:a,database:n});const{currentData:c,isFetching:u,error:h}=S.useGetTabletsInfoQuery(0===Object.keys(o).length?i.CN:o,{pollingInterval:s}),v=u&&void 0===c,g=(0,_.ix)((e=>E(e,o)));return v?(0,M.jsx)(p.h,{}):(0,M.jsxs)("div",{className:q(null,r),children:[h?(0,M.jsx)(d.V,{error:h}):null,c?(0,M.jsx)(m.G,{columns:z({database:n}),data:g,settings:P.LE,emptyDataMessage:L("noTabletsData")}):null]})}},83709:(e,t,a)=>{"use strict";a.r(t),a.d(t,{Tenant:()=>Uh});var n=a(68963),r=a(49352),s=a(98994),i=a(1440),o=a(96409),l=a(93838),c=a(24362),d=a(75859);const u=(0,c.cn)("kv-split"),m=[0,100],p=[50,50];const h=function(e){const[t,a]=n.useState(),r=t=>{const{defaultSizePaneKey:a}=e;localStorage.setItem(a,t.join(","))};return n.useEffect((()=>{const{collapsedSizes:t,triggerCollapse:n}=e;if(n){const e=t||m;r(e),a(e)}}),[e.triggerCollapse]),n.useEffect((()=>{const{triggerExpand:t,defaultSizes:n}=e,s=n||p;t&&(r(s),a(s))}),[e.triggerExpand]),(0,d.jsx)(n.Fragment,{children:(0,d.jsx)(l.Z,{direction:e.direction||"horizontal",sizes:t||(()=>{var t;const{defaultSizePaneKey:a,defaultSizes:n=p,initialSizes:r}=e;if(r)return r;return(null===(t=localStorage.getItem(a))||void 0===t?void 0:t.split(",").map(Number))||n})(),minSize:e.minSize||[0,0],onDrag:t=>{const{onSplitDragAdditional:a}=e;a&&a(),r(t)},className:u(null,e.direction||"horizontal"),gutterSize:8,onDragStart:()=>{const{onSplitStartDragAdditional:t}=e;t&&t(),a(void 0)},expandToMin:!0,children:e.children})})};var v=a(79061),g=a(905);const x=g.h.injectEndpoints({endpoints:e=>({getOverview:e.query({queryFn:async(e,t)=>{let{paths:a,database:n}=e,{signal:r}=t;try{const[e,...t]=await Promise.all(a.map((e=>window.api.getDescribe({path:e,database:n},{signal:r}))));return{data:{data:e,additionalData:t}}}catch(s){return{error:s}}},keepUnusedDataFor:0,providesTags:["All"]})})});var y=a(52317),b=a(17096),f=a(64270),j=a(24015),N=a(8179),S=a(83203),T=a(50422),w=a(54665),E=a(17880),C=a(8511),I=a(2418),P=a(48897),R=a(26688),D=a(62776),_=a(93717),A=a(3027),O=a(34301),k=a(43832),L=a.n(k),M=a(27102);const q=(0,c.cn)("heatmap"),z={width:0,height:0},F=10,Q=2,U=e=>{const[t,a]=n.useState(z),{tablets:r}=e,s=n.useRef(null),i=n.useRef(null);n.useEffect((()=>{const e=s.current,a=e.getContext("2d");a.clearRect(0,0,e.offsetWidth,e.offsetHeight),r.map(function(e){return(a,n)=>{const{columnsCount:r}=t,s=n%r*(F+Q),i=Math.floor(n/r)*(F+Q);e.fillStyle=a.color||"grey",e.fillRect(s,i,F,F)}}(a))})),n.useLayoutEffect((()=>{const e=i.current;if(e){const t=e.offsetWidth-15,n=Math.floor(t/(F+Q)),s=Math.ceil(r.length/n);a({width:t,height:s*(F+Q),columnsCount:n,rowsCount:s})}}),[]);const o=()=>{let e=s.current,t=0;for(;e;)t+=e.offsetTop,e=e.offsetParent;return t},l=()=>{let e=s.current,t=0;for(;e;)t+=e.offsetLeft,e=e.offsetParent;return t},c=(e,a)=>{const{columnsCount:n}=t,r=F+Q,s=F+Q,i=Math.floor(e/r);return n*Math.floor(a/s)+i},u=L()(((t,a)=>{const n=new CustomEvent("scroll");window.dispatchEvent(n);const s=e.parentRef.current,i=t-l()+s.scrollLeft,d=a-o()+s.scrollTop,u=c(i,d),m=r[u];if(m){const n={name:m.currentMetric,value:m.formattedValue};e.showTooltip(void 0,m,"tablet",n,{left:t-20,top:a-20})}else e.hideTooltip()}),20);return(0,d.jsx)("div",{ref:i,className:q("canvas-container"),onMouseLeave:()=>{setTimeout((()=>{e.hideTooltip()}),40)},children:(0,d.jsx)("canvas",{ref:s,width:t.width,height:t.height,onClick:t=>{const a=e.parentRef.current,n=t.clientX-l()+a.scrollLeft,s=t.clientY-o()+a.scrollTop,i=c(n,s),d=r[i];d&&window.open((e=>{const{TabletId:t}=e,a=window.location.hostname,n=(0,w.fK)(t);return`https://${[a,M.EZ,n].map((e=>e.startsWith("/")?e.slice(1):e)).filter(Boolean).join("/")}`})(d),"_blank")},onMouseMove:e=>u(e.clientX,e.clientY)})})},B={r:255,g:4,b:0},G={r:255,g:219,b:77},$={r:59,g:201,b:53},H={CPU:{min:0,max:1e6},Network:{min:0,max:1e9},Storage:{min:0,max:2e9},DataSize:{min:0,max:2e9},RowCount:{min:0},IndexSize:{min:0}},V=e=>{const t=e.toString(16);return 1===t.length?`0${t}`:t},Z=(e,t,a)=>{if(1===e)return[t];if(2===e)return[t,a];const n=(t.r-a.r)/(e-1),r=(t.g-a.g)/(e-1),s=(t.b-a.b)/(e-1),i=[];for(let o=0;o<e;o++)i.push({r:Math.round(t.r-n*o),g:Math.round(t.g-r*o),b:Math.round(t.b-s*o)});return i.map((e=>(e=>{let{r:t,g:a,b:n}=e;return`#${V(t)}${V(a)}${V(n)}`})(e)))},W=e=>{const t=Math.floor(e/2),a=t+1;return[...Z(e%2===0?t:t+1,$,G),...Z(a,G,B).slice(1)]},J=(e,t)=>{const a=new Set,n=H[e]||{};t.forEach((t=>{var n;a.add(Number(null===(n=t.metrics)||void 0===n?void 0:n[e]))})),Number.isInteger(n.min)&&a.add(n.min),Number.isInteger(n.max)&&a.add(n.max);const r=Array.from(a.values()).sort(((e,t)=>e-t));return{min:r[0],max:r[r.length-1]}},K=(0,c.cn)("histogram"),Y=e=>{const t=n.useRef(),{data:a={},maxCount:r}=e,{count:s,leftBound:i,rightBound:o,color:l}=a,c=s/r*100;return(0,d.jsx)("div",{ref:t,className:K("item"),style:{backgroundColor:l,height:`${c}%`},onMouseEnter:()=>{const a=t.current;e.showTooltip(a,{count:s,leftBound:i,rightBound:o},"histogram")},onMouseLeave:e.hideTooltip})},X=e=>{const{tablets:t,currentMetric:a}=e,{min:n,max:r}=J(a,t),s=W(50),i=(r-n)/50,o=s.map(((e,t)=>({color:e,count:0,leftBound:(0,O.uf)(n+t*i),rightBound:(0,O.uf)(n+(t+1)*i)})));let l=0;t.forEach((e=>{var t,n;const r=a&&Number(null===(t=e.metrics)||void 0===t?void 0:t[a]),s=Math.floor(r/i),c=(null===(n=o[s])||void 0===n?void 0:n.count)+1;c>l&&(l=c),o[s]={...o[s],count:c}}));return(0,d.jsx)("div",{className:K(),children:(0,d.jsxs)("div",{className:K("chart"),children:[Boolean(r)&&o.map(((t,a)=>(0,d.jsx)(Y,{data:t,maxCount:l,showTooltip:e.showTooltip,hideTooltip:e.hideTooltip},a))),(0,d.jsx)("div",{className:K("x-min"),children:(0,O.uf)(n)}),(0,d.jsx)("div",{className:K("x-max"),children:(0,O.uf)(r)}),(0,d.jsx)("div",{className:K("y-min"),children:"0"}),(0,d.jsx)("div",{className:K("y-max"),children:(0,O.uf)(l)})]})})},ee=(0,c.cn)("heatmap"),te=W(500),ae=e=>{let{path:t,database:a}=e;const r=(0,b.zL)(),s=n.createRef(),[i]=(0,b.Rj)(),{currentData:o,isFetching:l,error:c}=_.Vc.useGetHeatmapTabletsInfoQuery({path:t,database:a},{pollingInterval:i}),u=l&&void 0===o,{tablets:m=[],metrics:p}=o||{},{sort:h,heatmap:v,currentMetric:g}=(0,b.ix)((e=>e.heatmap)),x=function(){r((0,A.hJ)(...arguments))},y=()=>{r((0,A.i8)())},f=e=>{r((0,_.U_)({currentMetric:e[0]}))},j=()=>{r((0,_.U_)({sort:!h}))},N=()=>{r((0,_.U_)({heatmap:!v}))},S=()=>{const{min:e,max:t}=J(g,m),a=m.map((a=>{var n;const r=g&&Number(null===(n=a.metrics)||void 0===n?void 0:n[g]),s=((e,t,a)=>0===a?0:Math.round((e-t)/(a-t)*499))(r,e,t),i=te[s];return{...a,color:i,value:r,formattedValue:(0,O.uf)(r),currentMetric:g}})),n=h?a.sort(((e,t)=>Number(t.value)-Number(e.value))):a;return(0,d.jsx)("div",{ref:s,className:ee("items"),children:(0,d.jsx)(U,{tablets:n,parentRef:s,showTooltip:x,hideTooltip:y})})};return u?(0,d.jsx)(D.a,{}):(()=>{const{min:e,max:t}=J(g,m);let a;return c&&!o||(a=v?S():(0,d.jsx)(X,{tablets:m,currentMetric:g,showTooltip:x,hideTooltip:y})),(0,d.jsxs)("div",{className:ee(),children:[(0,d.jsxs)("div",{className:ee("filters"),children:[(0,d.jsx)(I.P,{className:ee("heatmap-select"),value:g?[g]:[],options:p,onUpdate:f,width:200}),(0,d.jsx)("div",{className:ee("sort-checkbox"),children:(0,d.jsx)(P.X,{onUpdate:j,checked:h,children:"Sort"})}),(0,d.jsx)("div",{className:ee("histogram-checkbox"),children:(0,d.jsx)(P.X,{onUpdate:N,checked:v,children:"Heatmap"})}),(0,d.jsxs)("div",{className:ee("limits"),children:[(0,d.jsxs)("div",{className:ee("limits-block"),children:[(0,d.jsx)("div",{className:ee("limits-title"),children:"min:"}),(0,d.jsx)("div",{className:ee("limits-value"),children:Number.isInteger(e)?(0,O.uf)(e):"\u2014"})]}),(0,d.jsxs)("div",{className:ee("limits-block"),children:[(0,d.jsx)("div",{className:ee("limits-title"),children:"max:"}),(0,d.jsx)("div",{className:ee("limits-value"),children:Number.isInteger(t)?(0,O.uf)(t):"\u2014"})]}),(0,d.jsxs)("div",{className:ee("limits-block"),children:[(0,d.jsx)("div",{className:ee("limits-title"),children:"count:"}),(0,d.jsx)("div",{className:ee("limits-value"),children:(0,O.uf)(m.length)})]})]})]}),c?(0,d.jsx)(R.V,{error:c}):null,a]})})()};var ne=a(9870),re=a(10582),se=a(42635),ie=a(17095),oe=a(2098),le=a(22692),ce=a(39623);function de(e){return`SELECT * FROM \`${e}\` LIMIT 0`}const ue=g.h.injectEndpoints({endpoints:e=>({getViewSchema:e.query({queryFn:async e=>{let{database:t,path:a}=e;try{const e=await window.api.sendQuery({schema:"modern",query:de(a),database:t,action:"execute-scan"},{withRetries:!0});return(0,ce.gW)(e)?{error:e}:{data:(null===e||void 0===e?void 0:e.columns)||[]}}catch(n){return{error:n}}},providesTags:["All"]})}),overrideExisting:"throw"});var me=a(6523),pe=a(14979),he=a(94790),ve=a(30817);const ge=JSON.parse('{"column-title.id":"Id","column-title.name":"Name","column-title.type":"Type","column-title.notNull":"NotNull","column-title.autoIncrement":"AutoIncrement","column-title.defaultValue":"Default","column-title.family":"Family","column-title.media":"Media","column-title.compression":"Compression","primary-key.title":"Primary key:","partitioning-key.title":"Partitioning key:"}'),xe=(0,ve.wZ)("ydb-schema-viewer",{en:ge}),ye=(0,c.cn)("schema-viewer");const be=e=>{let{tableData:t,extended:a,type:n}=e;const r="primary"===n?function(e){return e.filter((e=>e.isKeyColumn&&e.name)).map((e=>e.name))}(t):function(e){return e.filter((e=>e.isPartitioningKeyColumn&&e.name)).map((e=>e.name))}(t),s=a?3:r.length,i=r.slice(0,s),o=r.slice(s);return r.length>0?(0,d.jsxs)("div",{className:ye("keys",{summary:!a,type:n}),children:[(0,d.jsx)("div",{className:ye("keys-header"),children:xe("primary"===n?"primary-key.title":"partitioning-key.title")}),(0,d.jsxs)("div",{className:ye("keys-values"),children:[" "+i.join(", "),o.length?(0,d.jsx)(he.f,{className:ye("more-badge"),placement:["bottom"],hasArrow:!1,pinOnClick:!0,content:(0,d.jsx)("div",{className:ye("popup-content"),children:o.map((e=>(0,d.jsx)("div",{className:ye("popup-item"),children:e},e)))}),children:(0,d.jsx)(pe._,{className:ye("keys-label"),children:`+${o.length}`})}):null]})]}):null};var fe=a(19812);const je="autoIncrement",Ne="defaultValue",Se="familyName",Te="prefferedPoolKind",we="columnCodec",Ee={name:"id",get header(){return xe("column-title.id")},width:60,render:e=>{let{row:t}=e;return t.id}},Ce={name:"name",get header(){return xe("column-title.name")},width:100,render:e=>{let{row:t}=e;return t.name}},Ie={name:"type",get header(){return xe("column-title.type")},width:100,render:e=>{let{row:t}=e;return t.type}},Pe={name:"notNull",get header(){return xe("column-title.notNull")},width:100,defaultOrder:fe.ZP.DESCENDING,render:e=>{let{row:t}=e;if(t.notNull)return"\u2713"}},Re={name:je,get header(){return xe("column-title.autoIncrement")},width:100,defaultOrder:fe.ZP.DESCENDING,render:e=>{let{row:t}=e;if(t.autoIncrement)return"\u2713"}},De={name:Ne,get header(){return xe("column-title.defaultValue")},width:100,render:e=>{let{row:t}=e;return String(t.defaultValue)}},_e={name:Se,get header(){return xe("column-title.family")},width:100,render:e=>{let{row:t}=e;return t.familyName}},Ae={name:Te,get header(){return xe("column-title.media")},width:100,render:e=>{let{row:t}=e;return t.prefferedPoolKind}},Oe={name:we,get header(){return xe("column-title.compression")},width:100,render:e=>{let{row:t}=e;return t.columnCodec}};var ke=a(35638);function Le(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=function(e){var t,a,n;return null!==(t=null===e||void 0===e||null===(a=e.PartitionConfig)||void 0===a||null===(n=a.ColumnFamilies)||void 0===n?void 0:n.reduce(((e,t)=>t.Id?{...e,[t.Id]:t}:e),{}))&&void 0!==t?t:{}}(e),{Columns:a,KeyColumnIds:n}=e,r=null===a||void 0===a?void 0:a.map((e=>{var a,r;const{Id:s,Name:i,NotNull:o,Type:l,Family:c,DefaultFromSequence:d,DefaultFromLiteral:u}=e,m=Boolean(null===n||void 0===n?void 0:n.find((e=>e===s))),p=c?t[c].Name:void 0,h=c?null===(a=t[c].StorageConfig)||void 0===a||null===(r=a.Data)||void 0===r?void 0:r.PreferredPoolKind:void 0,v=c?function(e){if(e)return e===ke.C6.ColumnCodecPlain?"None":e.replace("ColumnCodec","").toLocaleLowerCase()}(t[c].ColumnCodec):void 0;return{id:s,name:i,isKeyColumn:m,type:l,notNull:o,autoIncrement:Boolean(d),defaultValue:Object.values((null===u||void 0===u?void 0:u.value)||{})[0]||"-",familyName:p,prefferedPoolKind:h,columnCodec:v}}));return[...(null===r||void 0===r?void 0:r.filter((e=>e.isKeyColumn)))||[],...(null===r||void 0===r?void 0:r.filter((e=>!e.isKeyColumn)))||[]]}function Me(e,t){const{Table:a,ColumnTableDescription:n,ExternalTableDescription:r}=(null===t||void 0===t?void 0:t.PathDescription)||{};return(0,me.fd)(e)?Le(a):(0,me.Jp)(e)?function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{Schema:t={},Sharding:a={}}=e,{Columns:n,KeyColumnNames:r}=t,{HashSharding:s={}}=a,{Columns:i=[]}=s,o=null===n||void 0===n?void 0:n.map((e=>{const{Id:t,Name:a,Type:n,NotNull:s}=e,o=Boolean(null===r||void 0===r?void 0:r.find((e=>e===a))),l=Boolean(null===i||void 0===i?void 0:i.find((e=>e===a)));return{id:t,name:a,isKeyColumn:o,isPartitioningKeyColumn:l,type:n,notNull:s}}));return[...(null===o||void 0===o?void 0:o.filter((e=>e.isKeyColumn)))||[],...(null===o||void 0===o?void 0:o.filter((e=>!e.isKeyColumn)))||[]]}(n):(0,me.uL)(e)?function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{Columns:t}=e;return(null===t||void 0===t?void 0:t.map((e=>{const{Id:t,Name:a,Type:n,NotNull:r}=e;return{id:t,name:a,type:n,notNull:r}})))||[]}(r):[]}const qe=e=>{let{type:t,path:a,tenantName:r,extended:s=!1}=e;const[i]=(0,b.Rj)(),{currentData:o,isLoading:l}=x.useGetOverviewQuery({paths:[a],database:r},{pollingInterval:i}),{data:c}=null!==o&&void 0!==o?o:{},u=(0,me.$J)(t)?{path:a,database:r}:ie.CN,{data:m,isLoading:p}=ue.useGetViewSchemaQuery(u),h=n.useMemo((()=>(0,me.$J)(t)?function(e){return(null===e||void 0===e?void 0:e.map((e=>{var t;return{type:null!==(t=e.type)&&void 0!==t&&t.endsWith("?")?e.type.slice(0,-1):e.type,name:e.name}})))||[]}(m):Me(t,c)),[c,t,m]),v=n.useMemo((()=>h.some((e=>e.autoIncrement))),[h]),g=n.useMemo((()=>h.some((e=>e.defaultValue))),[h]),f=n.useMemo((()=>(0,me.$J)(t)?[Ce,Ie]:(0,me.uL)(t)||(0,me.Jp)(t)?[Ee,Ce,Ie,Pe]:(0,me.fd)(t)?function(e,t,a){const n=[Ee,Ce,Ie,Pe];return a&&n.push(De),e&&n.push(_e,Ae,Oe),t&&n.push(Re),n}(s,v,g):[]),[t,s,v,g]);return l||p?(0,d.jsx)(le.h,{}):(0,d.jsxs)(n.Fragment,{children:[(0,d.jsxs)("div",{className:ye("keys-wrapper"),children:[(0,d.jsx)(be,{tableData:h,extended:s,type:"primary"}),(0,d.jsx)(be,{tableData:h,extended:s,type:"partitioning"})]}),(0,d.jsx)("div",{className:ye(),children:(0,d.jsx)(oe.G,{columnsWidthLSKey:"schemaTableColumnsWidth",data:h,columns:f,settings:y.LE})})]})};var ze=a(95478),Fe=a(7692),Qe=a(68330),Ue=a(88776),Be=a(68291),Ge=a(11551),$e=a(47101);const He=JSON.parse('{"td-feature-flag":"Feature flag","td-default":"Default","td-current":"Current","enabled":"Enabled","disabled":"Disabled","flag-touched":"Flag is changed","search-placeholder":"Search by feature flag","search-empty":"Empty search result","no-data":"No data"}'),Ve=(0,ve.wZ)("ydb-diagnostics-configs",{en:He}),Ze=(0,c.cn)("ydb-diagnostics-configs"),We=[{name:"Touched",header:"",render:e=>{let{row:t}=e;return t.Current?(0,d.jsx)(Qe.J,{content:Ve("flag-touched"),className:Ze("icon-touched"),placement:"left",children:(0,d.jsx)(Ue.J,{data:Fe.Z})}):null},width:36,sortable:!1,resizeable:!1},{name:"Name",get header(){return Ve("td-feature-flag")},render:e=>{let{row:t}=e;return t.Current?(0,d.jsx)("b",{children:t.Name}):t.Name},width:400,sortable:!0,sortAccessor:e=>{let{Current:t,Name:a}=e;return Number(!t)+a.toLowerCase()}},{name:"Default",get header(){return Ve("td-default")},render:e=>{let{row:t}=e;switch(t.Default){case!0:return Ve("enabled");case!1:return Ve("disabled");default:return"-"}},width:100,sortable:!1,resizeable:!1},{name:"Current",get header(){return Ve("td-current")},render:e=>{var t;let{row:a}=e;return(0,d.jsx)(Be.r,{disabled:!0,checked:(null!==(t=a.Current)&&void 0!==t?t:a.Default)||!1})},width:100,sortable:!1,resizeable:!1}],Je=e=>{let{database:t}=e;const[a,n]=(0,s.useQueryParam)("search",s.StringParam),{currentData:r=[],isFetching:i,error:o}=C.$1.useGetClusterConfigQuery({database:t}),l=null===a||void 0===a?void 0:a.toLocaleLowerCase(),c=l?r.filter((e=>e.Name.toLocaleLowerCase().includes(l))):r;return(0,d.jsxs)($e.l,{children:[(0,d.jsx)($e.l.Controls,{children:(0,d.jsx)(Ge.o,{value:l,onChange:e=>{n(e||void 0,"replaceIn")},placeholder:Ve("search-placeholder")})}),(0,d.jsx)($e.l.Table,{loading:i,children:o?(0,d.jsx)(R.V,{error:o}):(0,d.jsx)(oe.G,{emptyDataMessage:Ve(l?"search-empty":"no-data"),columnsWidthLSKey:"featureFlagsColumnsWidth",columns:We,data:c,settings:y.LE})})]})};var Ke=a(43680),Ye=a.n(Ke),Xe=a(36313),et=a(81854),tt=a(1504);const at=g.h.injectEndpoints({endpoints:e=>({getTopic:e.query({queryFn:async e=>{try{const t=await window.api.getTopic(e);return"object"!==typeof t?{error:{}}:{data:t}}catch(t){return{error:t}}},providesTags:["All"]})}),overrideExisting:"throw"}),nt=(0,Xe.P1)(((e,t)=>({path:e,database:t})),(e=>at.endpoints.getTopic.select(e))),rt=(0,Xe.P1)((e=>e),((e,t,a)=>nt(t,a)),((e,t)=>{var a;return null===(a=t(e).data)||void 0===a?void 0:a.topic_stats})),st=(0,Xe.P1)((e=>e),((e,t,a)=>nt(t,a)),((e,t)=>{var a;return null===(a=t(e).data)||void 0===a?void 0:a.consumers})),it=(0,Xe.P1)(st,(e=>null===e||void 0===e?void 0:e.map((e=>null===e||void 0===e?void 0:e.name)).filter((e=>void 0!==e)))),ot=(0,Xe.P1)(rt,(e=>{if(!e)return;const{store_size_bytes:t="0",min_last_write_time:a,max_write_time_lag:n,bytes_written:r}=e||{};return{storeSize:t,partitionsIdleTime:(0,tt.lE)(a),partitionsWriteLag:(0,tt.DA)(n),writeSpeed:(0,et.c4)(r)}})),lt=(0,Xe.P1)(st,(e=>null===e||void 0===e?void 0:e.map((e=>{const{name:t,consumer_stats:a}=e||{},{min_partitions_last_read_time:n,max_read_time_lag:r,max_write_time_lag:s,bytes_read:i}=a||{};return{name:t,readSpeed:(0,et.c4)(i),writeLag:(0,tt.DA)(s),readLag:(0,tt.DA)(r),readIdleTime:(0,tt.lE)(n)}})))),ct=JSON.parse('{"averageSpeed":"Average speed","perMinute":"per minute","perHour":"per hour","perDay":"per day"}'),dt=JSON.parse('{"averageSpeed":"\u0421\u0440\u0435\u0434\u043d\u044f\u044f \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c","perMinute":"\u0437\u0430 \u043c\u0438\u043d\u0443\u0442\u0443","perHour":"\u0437\u0430 \u0447\u0430\u0441","perDay":"\u0437\u0430 \u0434\u0435\u043d\u044c"}'),ut=(0,ve.wZ)("ydb-components-speed-multimeter",{ru:dt,en:ct}),mt=(0,c.cn)("speed-multimeter"),pt=e=>{let{data:t,speedSize:a="kb",withValue:r=!0,withPopover:s=!0}=e;const{perMinute:i=0,perHour:o=0,perDay:l=0}=t||{},c=[i,o,l],u=e=>(0,et.td)({value:e,size:a,withSpeedLabel:!0}),m=[{value:u(i),label:ut("perMinute")},{value:u(o),label:ut("perHour")},{value:u(l),label:ut("perDay")}],[p,h]=n.useState(i),[v,g]=n.useState(r?0:void 0),[x,y]=n.useState(),b=(e,t)=>{h(e[t]),g(t),y(t)},f=e=>v===e,j=e=>x===e;return(0,d.jsx)("div",{className:mt(),children:(0,d.jsxs)("div",{className:mt("content"),children:[r&&(0,d.jsx)("div",{className:mt("displayed-value"),children:u(p)}),(0,d.jsx)(Qe.J,{content:(0,d.jsxs)("div",{className:mt("popover-content"),children:[(0,d.jsx)("span",{className:mt("popover-header"),children:ut("averageSpeed")}),m.map(((e,t)=>{return(0,d.jsx)("span",{className:mt("popover-row",(a=f(t),a?{color:"primary"}:{color:"secondary"})),children:`${e.label}: ${e.value}`},t);var a}))]}),className:mt("popover-container"),placement:"bottom",disabled:!s,hasArrow:!0,size:"s",children:(0,d.jsx)("div",{className:mt("bars"),onMouseLeave:()=>{h(i),g(r?0:void 0),y(void 0)},children:(()=>{const e=Math.max(...c,0)||1;return c.map(((t,a)=>(0,d.jsx)("div",{className:mt("bar-container",{highlighted:j(a)}),onMouseEnter:b.bind(null,c,a),children:(0,d.jsx)("div",{className:mt("bar",{color:f(a)?"dark":"light"}),style:{width:100*t/e+"%"}})},a)))})()})})]})})},ht=(0,c.cn)("ydb-diagnostics-consumers-topic-stats"),vt=e=>{let{data:t}=e;const{writeSpeed:a,partitionsWriteLag:n,partitionsIdleTime:r}=t||{},s=[{label:"Write speed",value:(0,d.jsx)(pt,{data:a})},{label:"Write lag",value:(0,O.gC)(n||0)},{label:"Write idle time",value:(0,O.gC)(r||0)}];return(0,d.jsx)("div",{className:ht("wrapper"),children:s.map(((e,t)=>(0,d.jsxs)("div",{className:ht("item"),children:[(0,d.jsx)("div",{className:ht("label"),children:e.label}),(0,d.jsx)("div",{className:ht("value"),children:e.value})]},t)))})};var gt=a(63041),xt=a.n(gt),yt=a(74170),bt=a(21986);const ft=e=>{let{text:t,popoverContent:a,popoverClassName:n,className:r,contentClassName:s,buttonProps:i}=e;return(0,d.jsxs)("div",{className:r,children:[t,"\xa0",(0,d.jsx)(bt.J,{className:n,buttonProps:i,content:a,contentClassName:s})]})},jt=70,Nt=54,St=268,Tt="#ADE8F5",wt="#f5be9d",Et=e=>{let{width:t,height:a,transform:n}=e;return(0,d.jsx)("path",{d:`M-${t/2} 0 c0 -${a}, ${t} -${a}, ${t} 0`,fill:"none",strokeDasharray:"4,6",stroke:"#28f",strokeWidth:"1.6",transform:n})},Ct=e=>{let{width:t}=e;return(0,d.jsx)("path",{fill:"none",strokeWidth:"2",d:`M0 0 h${t} l-10 -5 m0 10 l10 -5`})},It=()=>(0,d.jsxs)("g",{fill:"var(--g-color-text-primary)",fontSize:"12",children:[(0,d.jsx)("g",{transform:"translate(0, 27)",stroke:wt,children:(0,d.jsx)(Ct,{width:203})}),(0,d.jsxs)("g",{transform:"translate(30, 0)",children:[(0,d.jsxs)("g",{transform:"translate(35, 27)",children:[(0,d.jsx)(Et,{width:jt,height:15}),(0,d.jsx)("text",{x:"0",y:"-15",textAnchor:"middle",children:(0,d.jsx)("tspan",{x:"0",dy:"0",children:"write lag"})})]}),(0,d.jsxs)("g",{transform:"translate(119, 27)",children:[(0,d.jsx)(Et,{width:98,height:15}),(0,d.jsx)("text",{x:"0",y:"-15",textAnchor:"middle",children:(0,d.jsx)("tspan",{x:"0",dy:"0",children:"write idle time"})})]})]}),(0,d.jsxs)("g",{transform:"translate(30, 0)",children:[(0,d.jsxs)("g",{transform:"translate(0, 27)",children:[(0,d.jsx)("use",{y:"-10",xlinkHref:"#check",stroke:wt}),(0,d.jsx)("text",{x:"0",y:"20",textAnchor:"middle",children:(0,d.jsx)("tspan",{x:"0",dy:"0",children:"create time"})})]}),(0,d.jsxs)("g",{transform:"translate(70, 27)",children:[(0,d.jsx)("use",{y:"-10",xlinkHref:"#check",stroke:wt}),(0,d.jsx)("text",{x:"0",y:"20",textAnchor:"middle",children:(0,d.jsx)("tspan",{x:"0",dy:"0",children:"write time"})})]}),(0,d.jsx)("g",{transform:"translate(168, 27)",children:(0,d.jsx)("text",{x:"0",y:"20",textAnchor:"middle",children:(0,d.jsx)("tspan",{x:"0",dy:"0",children:"now"})})})]})]}),Pt=()=>(0,d.jsxs)("g",{fill:"var(--g-color-text-primary)",fontSize:"12",children:[(0,d.jsx)("g",{transform:"translate(0, 27)",stroke:Tt,children:(0,d.jsx)(Ct,{width:St})}),(0,d.jsxs)("g",{transform:"translate(30, 0)",children:[(0,d.jsxs)("g",{transform:"translate(105, 27)",children:[(0,d.jsx)(Et,{width:jt,height:15}),(0,d.jsx)("text",{x:"0",y:"-15",textAnchor:"middle",children:(0,d.jsx)("tspan",{x:"0",dy:"0",children:"read lag"})})]}),(0,d.jsxs)("g",{transform:"translate(35, 27)",children:[(0,d.jsx)(Et,{width:jt,height:15}),(0,d.jsx)("text",{x:"0",y:"-15",textAnchor:"middle",children:(0,d.jsx)("tspan",{x:"0",dy:"0",children:"write lag"})})]}),(0,d.jsxs)("g",{transform:"translate(182, 27)",children:[(0,d.jsx)(Et,{width:91,height:15}),(0,d.jsx)("text",{x:"0",y:"-15",textAnchor:"middle",children:(0,d.jsx)("tspan",{x:"0",dy:"0",children:"read idle time"})})]})]}),(0,d.jsxs)("g",{transform:"translate(30, 27)",children:[(0,d.jsxs)("g",{transform:"translate(0, 0)",children:[(0,d.jsx)("use",{y:"-10",xlinkHref:"#check",stroke:Tt}),(0,d.jsx)("text",{x:"0",y:"20",textAnchor:"middle",children:(0,d.jsx)("tspan",{x:"0",dy:"0",children:"create time"})})]}),(0,d.jsxs)("g",{transform:"translate(70, 0)",children:[(0,d.jsx)("use",{y:"-10",xlinkHref:"#check",stroke:Tt}),(0,d.jsx)("text",{x:"0",y:"20",textAnchor:"middle",children:(0,d.jsx)("tspan",{x:"0",dy:"0",children:"write time"})})]}),(0,d.jsxs)("g",{transform:"translate(140, 0)",children:[(0,d.jsx)("use",{x:"-2",y:"-10",xlinkHref:"#check",stroke:Tt}),(0,d.jsx)("text",{x:"0",y:"20",textAnchor:"middle",children:(0,d.jsx)("tspan",{x:"0",dy:"0",children:"read time"})})]}),(0,d.jsx)("g",{transform:"translate(224, 0)",children:(0,d.jsx)("text",{x:"0",y:"20",textAnchor:"middle",children:(0,d.jsx)("tspan",{x:"0",dy:"0",children:"now"})})})]})]}),Rt=e=>{let{id:t,fill:a}=e;return(0,d.jsx)("pattern",{id:t,x:"0",y:"0",width:"8",height:"8",patternUnits:"userSpaceOnUse",children:(0,d.jsx)("path",{d:"M0 5L5 0H8L0 8V5M5 8L8 5V8Z",fill:a})})},Dt=()=>(0,d.jsxs)("svg",{className:"paint",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 268 54",width:St,height:Nt,children:[(0,d.jsxs)("defs",{children:[(0,d.jsx)("g",{id:"check",children:(0,d.jsx)("path",{d:"M0 3 v14",strokeWidth:"2"})}),(0,d.jsx)(Rt,{id:"latest-read",fill:Tt}),(0,d.jsx)(Rt,{id:"latest-write",fill:wt})]}),(0,d.jsx)(It,{})]}),_t=()=>(0,d.jsxs)("svg",{className:"paint",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 268 54",width:St,height:Nt,children:[(0,d.jsxs)("defs",{children:[(0,d.jsx)("g",{id:"check",children:(0,d.jsx)("path",{d:"M0 3 v14",strokeWidth:"2"})}),(0,d.jsx)(Rt,{id:"latest-read",fill:Tt}),(0,d.jsx)(Rt,{id:"latest-write",fill:wt})]}),(0,d.jsx)(Pt,{})]}),At=(0,c.cn)("ydb-lag-popover-content"),Ot=e=>{let{text:t,type:a}=e;return(0,d.jsxs)("div",{className:At({type:a}),children:[(0,d.jsx)("div",{className:At("text"),children:t}),(0,d.jsx)("div",{children:"read"===a?(0,d.jsx)(_t,{}):(0,d.jsx)(Dt,{})})]})},kt=JSON.parse('{"noConsumersMessage.topic":"This topic has no consumers","noConsumersMessage.stream":"This changefeed has no consumers","lagsPopover.readLags":"Read lags statistics, maximum among all consumer partitions (time format dd hh:mm:ss)","table.emptyDataMessage":"No consumers match the current search","controls.search":"Consumer"}'),Lt=JSON.parse('{"noConsumersMessage.topic":"\u0423 \u044d\u0442\u043e\u0433\u043e \u0442\u043e\u043f\u0438\u043a\u0430 \u043d\u0435\u0442 \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u0435\u0439","noConsumersMessage.stream":"\u0423 \u044d\u0442\u043e\u0433\u043e \u0441\u0442\u0440\u0438\u043c\u0430 \u043d\u0435\u0442 \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u0435\u0439","lagsPopover.readLags":"\u0421\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0430 \u043b\u0430\u0433\u043e\u0432 \u0447\u0442\u0435\u043d\u0438\u044f, \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0441\u0440\u0435\u0434\u0438 \u0432\u0441\u0435\u0445 \u043f\u0430\u0440\u0442\u0438\u0446\u0438\u0439 \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u044f (\u0444\u043e\u0440\u043c\u0430\u0442 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0434\u0434 \u0447\u0447:\u043c\u043c:\u0441\u0441)","table.emptyDataMessage":"\u041f\u043e \u0437\u0430\u0434\u0430\u043d\u043d\u043e\u043c\u0443 \u043f\u043e\u0438\u0441\u043a\u0443 \u043d\u0435\u0442 \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u0435\u0439","controls.search":"Consumer"}'),Mt=(0,ve.wZ)("ydb-diagnostics-consumers",{ru:Lt,en:kt}),qt="consumer",zt="readSpeed",Ft="readLags",Qt={[qt]:"Consumer",[zt]:"Read speed",[Ft]:"Read lags, duration"},Ut="writeLag",Bt="readLag",Gt="readIdleTime",$t={[Ut]:"write lag",[Bt]:"read lag",[Gt]:"read idle time"},Ht=(0,c.cn)("ydb-diagnostics-consumers-columns-header"),Vt=()=>(0,d.jsx)(ft,{className:Ht("lags"),text:Qt[Ft],popoverContent:(0,d.jsx)(Ot,{text:Mt("lagsPopover.readLags"),type:"read"})}),Zt=(0,c.cn)("ydb-diagnostics-consumers-columns"),Wt=[{name:qt,header:Qt[qt],align:fe.ZP.LEFT,render:e=>{let{row:t}=e;if(!t.name)return"\u2013";const a=xt().parse(location.search,{ignoreQueryPrefix:!0});return(0,d.jsx)(yt.h,{to:(0,w.ax)(w.ZP.tenant,void 0,{...a,[ze.XV.diagnosticsTab]:j.qQ.partitions,selectedConsumer:t.name}),children:t.name})}},{name:zt,header:Qt[zt],align:fe.ZP.RIGHT,resizeMinWidth:140,sortAccessor:e=>e.readSpeed.perMinute,render:e=>{let{row:t}=e;return(0,d.jsx)(pt,{data:t.readSpeed})}},{name:Ft,header:(0,d.jsx)(Vt,{}),className:Zt("lags-header"),sub:[{name:Ut,header:$t[Ut],align:fe.ZP.RIGHT,render:e=>{let{row:t}=e;return(0,O.gC)(t.writeLag)}},{name:Bt,header:$t[Bt],align:fe.ZP.RIGHT,render:e=>{let{row:t}=e;return(0,O.gC)(t.readLag)}},{name:Gt,header:$t[Gt],align:fe.ZP.RIGHT,render:e=>{let{row:t}=e;return(0,O.gC)(t.readIdleTime)}}]}],Jt=(0,c.cn)("ydb-diagnostics-consumers"),Kt=e=>{let{path:t,database:a,type:r}=e;const s=(0,me.zf)(r),[i,o]=n.useState(""),[l]=(0,b.Rj)(),{currentData:c,isFetching:u,error:m}=at.useGetTopicQuery({path:t,database:a},{pollingInterval:l}),p=u&&void 0===c,h=(0,b.ix)((e=>lt(e,t,a))),v=(0,b.ix)((e=>ot(e,t,a))),g=n.useMemo((()=>{if(!h)return[];const e=new RegExp(Ye()(i),"i");return h.filter((t=>e.test(String(t.name))))}),[h,i]);return p?(0,d.jsx)(D.a,{size:"m"}):m||h&&h.length?(0,d.jsxs)("div",{className:Jt(),children:[(0,d.jsxs)("div",{className:Jt("controls"),children:[(0,d.jsx)(Ge.o,{onChange:e=>{o(e)},placeholder:Mt("controls.search"),className:Jt("search"),value:i}),v&&(0,d.jsx)(vt,{data:v})]}),m?(0,d.jsx)(R.V,{error:m}):null,h?(0,d.jsx)("div",{className:Jt("table-wrapper"),children:(0,d.jsx)("div",{className:Jt("table-content"),children:(0,d.jsx)(oe.G,{columnsWidthLSKey:"consumersColumnsWidth",wrapperClassName:Jt("table"),data:g,columns:Wt,settings:y.LE,emptyDataMessage:Mt("table.emptyDataMessage")})})}):null]}):(0,d.jsx)("div",{children:Mt("noConsumersMessage."+(s?"stream":"topic"))})};var Yt=a(19797),Xt=a(83326),ea=a.n(Xt),ta=a(87555),aa=a(6748);a(55895);const na=(0,c.cn)("ydb-describe"),ra=new Map,sa={},ia=e=>{let{path:t,database:a,type:n}=e;const[r]=(0,b.Rj)(),s=(0,me.St)(n),i=(0,b.ix)((e=>(0,aa.eU)(e,t,n,a)),ta.wU);let o=[];s?i&&(o=[t,...i]):o=[t];const{currentDescribe:l,currentData:c,isFetching:u,error:m}=x.useGetOverviewQuery(o.length?{paths:o,database:a}:ie.CN,{pollingInterval:r,selectFromResult:e=>{const{currentData:t}=e;if(!t)return{currentDescribe:sa,...e};return{currentDescribe:[t.data,...t.additionalData].reduce(((e,t)=>(null!==t&&void 0!==t&&t.Path&&(e[t.Path]=t),e)),{}),...e}}}),p=u&&void 0===c;let h;if(l){const e=Object.keys(l);h=1===e.length?l[e[0]]:l}return p||s&&!i?(0,d.jsx)(D.a,{size:"m"}):h||m?(0,d.jsxs)("div",{className:na(),children:[m?(0,d.jsx)(R.V,{error:m}):null,h?(0,d.jsxs)("div",{className:na("result"),children:[(0,d.jsx)(ea(),{data:h,className:na("tree"),onClick:e=>{let{path:t}=e;const a=!ra.get(t);ra.set(t,a)},searchOptions:{debounceTime:300},isExpanded:e=>ra.get(e)||!1}),(0,d.jsx)(Yt.m,{view:"flat-secondary",text:JSON.stringify(h),className:na("copy")})]}):null]}):(0,d.jsx)("div",{className:na("message-container"),children:"Empty"})};var oa=a(62206);const la=e=>{const{PathType:t,PathSubType:a}=(null===e||void 0===e?void 0:e.Self)||{};return(0,me.d)(t,a)},ca=e=>{var t;return null===e||void 0===e||null===(t=e.UserAttributes)||void 0===t?void 0:t.some((e=>{let{Key:t,Value:a}=e;return"__async_replica"===t&&"true"===a}))};var da=a(31954),ua=a(93849);const ma=(0,ua.a)({values:{PathType:e=>null===e||void 0===e?void 0:e.substring("EPathType".length),CreateStep:O.o0},labels:{PathType:(0,da.Z)("common.type"),CreateStep:(0,da.Z)("common.created")}}),pa=e=>{let{value:t,withSpeedLabel:a,...n}=e;const r=(0,et.td)({value:t,withSpeedLabel:a,...n}),s=(0,et.td)({value:t,withSpeedLabel:a,size:"b"});return(0,d.jsx)("span",{title:s,children:r})},ha=(e,t)=>e?(0,d.jsx)(pa,{value:e,significantDigits:2,...t}):null,va=(0,ua.a)({values:{Type:e=>null===e||void 0===e?void 0:e.substring(10),State:e=>null===e||void 0===e?void 0:e.substring(11),KeyColumnNames:e=>null===e||void 0===e?void 0:e.join(", "),DataColumnNames:e=>null===e||void 0===e?void 0:e.join(", "),DataSize:ha},labels:{KeyColumnNames:"Columns",DataColumnNames:"Includes"}}),ga={[ke.tB.METERING_MODE_REQUEST_UNITS]:"request-units",[ke.tB.METERING_MODE_RESERVED_CAPACITY]:"reserved-capacity"},xa=(0,ua.a)({values:{Partitions:e=>(0,O.uf)((null===e||void 0===e?void 0:e.length)||0),PQTabletConfig:e=>{const t=Math.round(e.PartitionConfig.LifetimeSeconds/y.RQ*100)/100;return`${(0,O.uf)(t)} hours`}},labels:{Partitions:"Partitions count",PQTabletConfig:"Retention"}}),ya=(0,ua.a)({values:{Codecs:e=>e&&Object.values(e.Codecs||{}).join(", "),MeteringMode:e=>e&&ga[e]},labels:{MeteringMode:"Metering mode"}}),ba=(0,ua.a)({values:{StorageLimitBytes:O.td,WriteSpeedInBytesPerSecond:O.t$},labels:{StorageLimitBytes:"Retention storage",WriteSpeedInBytesPerSecond:"Partitions write speed"}}),fa=(0,ua.a)({values:{Mode:e=>null===e||void 0===e?void 0:e.substring("ECdcStreamMode".length),Format:e=>null===e||void 0===e?void 0:e.substring("ECdcStreamFormat".length)}}),ja=(0,ua.a)({values:{CPU:O.LO,Memory:ha,Storage:ha,Network:O.t$,ReadThroughput:O.t$,WriteThroughput:O.t$},defaultValueFormatter:O.uf}),Na=(0,ua.a)({values:{FollowerCount:O.uf},labels:{FollowerCountPerDataCenter:"FollowerCountPerDC"},defaultValueFormatter:e=>e&&String(e)}),Sa=(0,ua.a)({values:{FollowerCount:O.uf,CrossDataCenterFollowerCount:O.uf}}),Ta=(0,ua.a)({values:{DataSize:ha,IndexSize:ha,LastAccessTime:O.o0,LastUpdateTime:O.o0},defaultValueFormatter:O.uf}),wa=new Set(["Type","State","DataSize","KeyColumnNames","DataColumnNames"]),Ea=e=>{var t;let{data:a}=e;const n=la(null===a||void 0===a?void 0:a.PathDescription);if(!a)return(0,d.jsxs)("div",{className:"error",children:["No ",n," data"]});const r=null===(t=a.PathDescription)||void 0===t?void 0:t.TableIndex,s=[];let i;for(i in r)wa.has(i)&&s.push(va(i,null===r||void 0===r?void 0:r[i]));return(0,d.jsx)(oa._P,{title:n,info:s})};var Ca=a(69214);const Ia=JSON.parse('{"external-objects.source-type":"Source Type","external-objects.data-source":"Data Source","external-objects.location":"Location","external-objects.auth-method":"Auth Method","external-objects.auth-method.none":"None","external-objects.auth-method.service-account":"Service Account","view.query-text":"Query Text"}'),Pa=(0,ve.wZ)("ydb-tenant-objects-info",{en:Ia}),Ra=(0,c.cn)("ydb-external-data-source-info"),Da=e=>{var t,a,n,r;return[{label:Pa("external-objects.source-type"),value:null===(t=e.PathDescription)||void 0===t||null===(a=t.ExternalDataSourceDescription)||void 0===a?void 0:a.SourceType},ma("CreateStep",null===(n=e.PathDescription)||void 0===n||null===(r=n.Self)||void 0===r?void 0:r.CreateStep)]},_a=e=>{var t;const{Location:a,Auth:n}=(null===(t=e.PathDescription)||void 0===t?void 0:t.ExternalDataSourceDescription)||{};return[...Da(e),{label:Pa("external-objects.location"),value:(0,d.jsx)(Ca.A,{name:a,showStatus:!1,hasClipboardButton:!0,clipboardButtonAlwaysVisible:!0,className:Ra("location")})},{label:Pa("external-objects.auth-method"),value:null!==n&&void 0!==n&&n.ServiceAccount?Pa("external-objects.auth-method.service-account"):Pa("external-objects.auth-method.none")}]},Aa=e=>{let{data:t,prepareData:a}=e;const n=la(null===t||void 0===t?void 0:t.PathDescription);return t?(0,d.jsx)(oa._P,{title:n,info:a(t)}):(0,d.jsxs)("div",{className:"error",children:["No ",n," data"]})},Oa=e=>{let{data:t}=e;return(0,d.jsx)(Aa,{data:t,prepareData:_a})};var ka=a(86974),La=a(32270);const Ma=(0,c.cn)("ydb-external-table-info"),qa=(e,t)=>{var a,n;const{CreateStep:r}=(null===(a=e.PathDescription)||void 0===a?void 0:a.Self)||{},{SourceType:s,DataSourcePath:i}=(null===(n=e.PathDescription)||void 0===n?void 0:n.ExternalTableDescription)||{},o=null===i||void 0===i?void 0:i.split("/").pop();return[{label:Pa("external-objects.source-type"),value:s},ma("CreateStep",r),{label:Pa("external-objects.data-source"),value:i&&(0,d.jsx)("span",{title:i,children:(0,d.jsx)(La.j,{title:o||"",url:t})})}]},za=(e,t)=>{var a,n;const r=null===(a=e.PathDescription)||void 0===a||null===(n=a.ExternalTableDescription)||void 0===n?void 0:n.Location;return[...qa(e,t),{label:Pa("external-objects.location"),value:(0,d.jsx)(Ca.A,{name:r,showStatus:!1,hasClipboardButton:!0,clipboardButtonAlwaysVisible:!0,className:Ma("location")})}]},Fa=e=>{var t,a;let{data:n,prepareData:r}=e;const s=(0,ka.TH)(),i=(0,w.mB)(s),o=(0,w.vF)({...i,schema:null===n||void 0===n||null===(t=n.PathDescription)||void 0===t||null===(a=t.ExternalTableDescription)||void 0===a?void 0:a.DataSourcePath}),l=la(null===n||void 0===n?void 0:n.PathDescription);return n?(0,d.jsx)(oa._P,{title:l,info:r(n,o)}):(0,d.jsxs)("div",{className:"error",children:["No ",l," data"]})},Qa=e=>{let{data:t}=e;return(0,d.jsx)(Fa,{data:t,prepareData:za})};var Ua=a(10288),Ba=a(55334);const Ga=JSON.parse('{"no-data":"No data"}'),$a=(0,ve.wZ)("ydb-definition-list",{en:Ga}),Ha=(0,c.cn)("ydb-definition-list");function Va(e){let{title:t,items:a,nameMaxWidth:n=220,copyPosition:r="outside",className:s,itemClassName:i,...o}=e;return(0,d.jsxs)("div",{className:Ha(null),children:[t?(0,d.jsx)("div",{className:Ha("title"),children:t}):null,a.length?(0,d.jsx)(Ba.w,{items:a,nameMaxWidth:n,copyPosition:r,className:Ha("properties-list",s),itemClassName:Ha("item",i),...o}):$a("no-data")]})}const Za=e=>{var t,a;const n=null===(t=e.PathDescription)||void 0===t||null===(a=t.ViewDescription)||void 0===a?void 0:a.QueryText;return[{name:Pa("view.query-text"),copyText:n,content:(0,d.jsx)(Ua.x,{variant:"code-2",wordBreak:"break-word",children:n})}]};function Wa(e){let{data:t}=e;const a=la(null===t||void 0===t?void 0:t.PathDescription);if(!t)return(0,d.jsxs)("div",{className:"error",children:["No ",a," data"]});const n=Za(t);return(0,d.jsx)(Va,{title:a,items:n})}var Ja=a(77796);function Ka(e){let{state:t}=e;return t?"StandBy"in t?(0,d.jsx)(pe._,{theme:"info",children:"Standby"}):"Paused"in t?(0,d.jsx)(pe._,{theme:"info",children:"Paused"}):"Done"in t?(0,d.jsx)(pe._,{theme:"success",children:"Done"}):"Error"in t?(0,d.jsx)(pe._,{theme:"danger",children:"Error"}):(0,d.jsx)(pe._,{size:"s",children:"Unknown"}):null}const Ya=JSON.parse('{"column.dstPath.name":"Dist","column.srcPath.name":"Source","everythingWithPrefix":"Everything with prefix:","noData":"No data.","title":"Replicated Paths"}'),Xa=(0,ve.wZ)("ydb-diagnostics-async-replication-paths",{en:Ya}),en=(0,c.cn)("ydb-async-replication-paths"),tn=[{name:Xa("column.srcPath.name"),render:e=>{let{row:t}=e;return t.SrcPath},sortAccessor:e=>e.SrcPath},{name:Xa("column.dstPath.name"),render:e=>{let{row:t}=e;return t.DstPath},sortAccessor:e=>e.DstPath}];function an(e){let{config:t}=e;if(!t)return null;let a=Xa("noData");var n,r;t.Everything&&(a=(0,d.jsxs)("span",{children:[Xa("everythingWithPrefix")," ",(0,d.jsx)(Ua.x,{variant:"code-inline-2",children:null!==(n=null===(r=t.Everything)||void 0===r?void 0:r.DstPrefix)&&void 0!==n?n:"undefined"}),"."]}));return t.Specific&&(a=(0,d.jsx)(oe.G,{data:t.Specific.Targets,settings:y.E6,columns:tn})),(0,d.jsxs)("div",{className:en(),children:[(0,d.jsx)("div",{className:en("title"),children:Xa("title")}),a]})}function nn(e){let{connection:t}=e;return t?t.StaticCredentials?(0,d.jsx)(pe._,{value:t.StaticCredentials.User,theme:"normal",children:"user"}):"OAuthToken"in t?"OAuth":"unknown":null}const rn=JSON.parse('{"credentials.label":"Credentials","noData":"No data for entity:","srcConnection.database.label":"Source Database Path","srcConnection.endpoint.label":"Source Cluster Endpoint","state.label":"State"}'),sn=(0,ve.wZ)("ydb-diagnostics-async-replication-info",{en:rn});function on(e){var t,a;let{data:n}=e;const r=la(null===n||void 0===n?void 0:n.PathDescription);if(!n)return(0,d.jsxs)("div",{className:"error",children:[sn("noData")," ",r]});const s=function(e){var t,a;const n=(null===(t=e.PathDescription)||void 0===t?void 0:t.ReplicationDescription)||{},r=n.State,s=(null===(a=n.Config)||void 0===a?void 0:a.SrcConnectionParams)||{},{Endpoint:i,Database:o}=s,l=[];r&&l.push({name:sn("state.label"),content:(0,d.jsx)(Ka,{state:r})});i&&l.push({name:sn("srcConnection.endpoint.label"),copyText:i,content:(0,d.jsx)(Ua.x,{variant:"code-inline-2",children:i})});o&&l.push({name:sn("srcConnection.database.label"),copyText:o,content:(0,d.jsx)(Ua.x,{variant:"code-inline-2",children:o})});s&&l.push({name:sn("credentials.label"),content:(0,d.jsx)(nn,{connection:s})});return l}(n);return(0,d.jsxs)(Ja.k,{direction:"column",gap:"4",children:[(0,d.jsx)(Va,{title:r,items:s}),(0,d.jsx)(an,{config:null===(t=n.PathDescription)||void 0===t||null===(a=t.ReplicationDescription)||void 0===a?void 0:a.Config})]})}const ln=JSON.parse('{"writeLagPopover":"Write lag, maximum among all topic partitions","writeIdleTimePopover":"Write idle time, maximum among all topic partitions"}'),cn=JSON.parse('{"writeLagPopover":"\u041b\u0430\u0433 \u0437\u0430\u043f\u0438\u0441\u0438, \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0441\u0440\u0435\u0434\u0438 \u0432\u0441\u0435\u0445 \u043f\u0430\u0440\u0442\u0438\u0446\u0438\u0439 \u0442\u043e\u043f\u0438\u043a\u0430","writeIdleTimePopover":"\u0412\u0440\u0435\u043c\u044f \u0431\u0435\u0437 \u0437\u0430\u043f\u0438\u0441\u0438, \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0441\u0440\u0435\u0434\u0438 \u0432\u0441\u0435\u0445 \u043f\u0430\u0440\u0442\u0438\u0446\u0438\u0439 \u0442\u043e\u043f\u0438\u043a\u0430"}'),dn=(0,ve.wZ)("ydb-diagnostics-overview-topic-stats",{ru:cn,en:ln}),un=(0,c.cn)("ydb-overview-topic-stats"),mn=e=>[{label:"Store size",value:(0,O.td)(e.storeSize)},{label:(0,d.jsx)(ft,{text:"Write idle time",popoverContent:(0,d.jsx)(Ot,{text:dn("writeIdleTimePopover"),type:"write"})}),value:(0,tt.tt)(e.partitionsIdleTime)},{label:(0,d.jsx)(ft,{text:"Write lag",popoverContent:(0,d.jsx)(Ot,{text:dn("writeLagPopover"),type:"write"})}),value:(0,tt.tt)(e.partitionsWriteLag)},{label:"Average write speed",value:(0,d.jsx)(pt,{data:e.writeSpeed,withValue:!1})}],pn=e=>{const t=e.writeSpeed;return[{label:"per minute",value:(0,O.t$)(t.perMinute)},{label:"per hour",value:(0,O.t$)(t.perHour)},{label:"per day",value:(0,O.t$)(t.perDay)}]},hn=e=>{let{path:t,database:a}=e;const[r]=(0,b.Rj)(),{currentData:s,isFetching:i,error:o}=at.useGetTopicQuery({path:t,database:a},{pollingInterval:r}),l=i&&void 0===s,c=(0,b.ix)((e=>ot(e,t,a)));if(l)return(0,d.jsx)("div",{className:un(),children:(0,d.jsx)(D.a,{size:"s"})});const u=o||!c?(0,d.jsx)(R.V,{error:o}):null;return(0,d.jsxs)("div",{className:un(),children:[(0,d.jsx)("div",{className:un("title"),children:"Stats"}),u,c?(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)("div",{className:un("info"),children:(0,d.jsx)(oa._P,{info:mn(c),multilineLabels:!0})}),(0,d.jsx)("div",{className:un("bytes-written"),children:(0,d.jsx)(oa._P,{info:pn(c)})})]}):null]})},vn=e=>{var t;const a=null===e||void 0===e||null===(t=e.PathDescription)||void 0===t?void 0:t.PersQueueGroup;if(!a)return[];const{Partitions:n=[],PQTabletConfig:r={PartitionConfig:{LifetimeSeconds:0}}}=a,{Codecs:s,MeteringMode:i}=r,{WriteSpeedInBytesPerSecond:o,StorageLimitBytes:l}=r.PartitionConfig;return[...(0,oa.Z6)(xa,{Partitions:n,PQTabletConfig:r}),...(0,oa.Z6)(ba,{StorageLimitBytes:l,WriteSpeedInBytesPerSecond:o}),...(0,oa.Z6)(ya,{Codecs:s,MeteringMode:i})]},gn=(e,t)=>{var a,n,r;if(!e&&!t)return[];const s=null===e||void 0===e||null===(a=e.PathDescription)||void 0===a?void 0:a.CdcStreamDescription,{Mode:i,Format:o}=s||{};return[ma("CreateStep",null===e||void 0===e||null===(n=e.PathDescription)||void 0===n||null===(r=n.Self)||void 0===r?void 0:r.CreateStep),...(0,oa.Z6)(fa,{Mode:i,Format:o}),...vn(t)]},xn=e=>{let{path:t,database:a,data:n,topic:r}=e;const s=la(null===n||void 0===n?void 0:n.PathDescription);return n&&r?(0,d.jsxs)("div",{children:[(0,d.jsx)(oa._P,{title:s,info:gn(n,r)}),(0,d.jsx)(hn,{path:t,database:a})]}):(0,d.jsxs)("div",{className:"error",children:["No ",s," data"]})},yn=JSON.parse('{"page.title":"Database","pages.query":"Query","pages.diagnostics":"Diagnostics","summary.navigation":"Navigation","summary.showPreview":"Show preview","summary.source-type":"Source Type","summary.data-source":"Data Source","summary.copySchemaPath":"Copy schema path","summary.type":"Type","summary.subtype":"SubType","summary.id":"Id","summary.version":"Version","summary.created":"Created","summary.data-size":"Data size","summary.row-count":"Row count","summary.partitions":"Partitions count","summary.paths":"Paths","summary.shards":"Shards","summary.state":"State","summary.mode":"Mode","summary.format":"Format","summary.retention":"Retention","label.read-only":"ReadOnly","actions.copied":"The path is copied to the clipboard","actions.notCopied":"Couldn\u2019t copy the path","actions.copyPath":"Copy path","actions.openPreview":"Open preview","actions.createTable":"Create table...","actions.createExternalTable":"Create external table...","actions.createTopic":"Create topic...","actions.createColumnTable":"Create column table...","actions.createAsyncReplication":"Create async replication...","actions.createView":"Create view...","actions.dropTable":"Drop table...","actions.dropTopic":"Drop topic...","actions.dropView":"Drop view...","actions.alterTable":"Alter table...","actions.alterTopic":"Alter topic...","actions.selectQuery":"Select query...","actions.upsertQuery":"Upsert query...","actions.alterReplication":"Alter async replicaton...","actions.dropReplication":"Drop async replicaton...","actions.createDirectory":"Create directory","schema.tree.dialog.placeholder":"Relative path","schema.tree.dialog.invalid":"Invalid path","schema.tree.dialog.whitespace":"Whitespace is not allowed","schema.tree.dialog.empty":"Path is empty","schema.tree.dialog.header":"Create directory","schema.tree.dialog.description":"Inside","schema.tree.dialog.buttonCancel":"Cancel","schema.tree.dialog.buttonApply":"Create"}'),bn=(0,ve.wZ)("ydb-tenant",{en:yn});function fn(e){let{data:t}=e;const a=la(t);return ca(t)?(0,d.jsxs)(Ja.k,{gap:1,wrap:"nowrap",children:[a," ",(0,d.jsx)(pe._,{children:bn("label.read-only")})]}):a}const jn=JSON.parse('{"tableStats":"Table Stats","tabletMetrics":"Tablet Metrics","partitionConfig":"Partition Config","label.ttl":"TTL for rows","value.ttl":"column: \'{{columnName}}\', expire after: {{expireTime}}","label.standalone":"Standalone","label.partitioning":"Partitioning","label.partitioning-by-size":"Partitioning by size","value.partitioning-by-size.enabled":"Enabled, split size: {{size}}","label.partitioning-by-load":"Partitioning by load","label.partitions-min":"Min number of partitions","label.partitions-max":"Max number of partitions","label.read-replicas":"Read replicas (followers)","label.bloom-filter":"Bloom filter","enabled":"Enabled","disabled":"Disabled"}'),Nn=(0,ve.wZ)("ydb-diagnostics-overview-table-info",{en:jn});var Sn=a(87863),Tn=a.n(Sn),wn=a(5922),En=a(55850);const Cn=e=>e.SchemaPresetName&&void 0!==e.SchemaPresetId,In=e=>{if(e.Enabled&&e.Enabled.ColumnName&&void 0!==e.Enabled.ExpireAfterSeconds){const t=Nn("value.ttl",{columnName:e.Enabled.ColumnName,expireTime:(0,tt.tt)(1e3*e.Enabled.ExpireAfterSeconds,1)});return{label:Nn("label.ttl"),value:t}}};const Pn=(e,t)=>{if(!e)return{};const{PathDescription:a={}}=e,{TableStats:n={},TabletMetrics:r={},Table:{PartitionConfig:s={},TTLSettings:i}={},ColumnTableDescription:o={}}=a,{PartCount:l,RowCount:c,DataSize:u,IndexSize:m,ByKeyFilterSize:p,LastAccessTime:h,LastUpdateTime:v,ImmediateTxCompleted:g,PlannedTxCompleted:x,TxRejectedByOverload:y,TxRejectedBySpace:b,TxCompleteLagMsec:f,InFlightTxCount:j,RowUpdates:N,RowDeletes:S,RowReads:T,RangeReads:w,RangeReadRows:E}=n,{FollowerGroups:C,FollowerCount:I,CrossDataCenterFollowerCount:P}=s;let R=[];switch(t){case ke.gb.EPathTypeTable:R=((e,t)=>{var a;const{PartitioningPolicy:n={},FollowerGroups:r,EnableFilterByKey:s}=e,i=[],o=n.SizeToSplit&&Number(n.SizeToSplit)>0?Nn("value.partitioning-by-size.enabled",{size:(0,O.td)(n.SizeToSplit)}):Nn("disabled"),l=null!==(a=n.SplitByLoadSettings)&&void 0!==a&&a.Enabled?Nn("enabled"):Nn("disabled");if(i.push({label:Nn("label.partitioning-by-size"),value:o},{label:Nn("label.partitioning-by-load"),value:l},{label:Nn("label.partitions-min"),value:(0,O.uf)(n.MinPartitionsCount||0)}),n.MaxPartitionsCount&&i.push({label:Nn("label.partitions-max"),value:(0,O.uf)(n.MaxPartitionsCount)}),r&&r.length){const{RequireAllDataCenters:e,FollowerCountPerDataCenter:t,FollowerCount:a}=r[0];let n;n=e&&t?`PER_AZ: ${a}`:`ANY_AZ: ${a}`,i.push({label:Nn("label.read-replicas"),value:n})}if(t){const e=In(t);e&&i.push(e)}return(0,wn.D)(s)&&i.push({label:Nn("label.bloom-filter"),value:Nn(s?"enabled":"disabled")}),i})(s,i);break;case ke.gb.EPathTypeColumnTable:R=function(e){var t,a;const n=[];if(n.push({label:Nn("label.standalone"),value:String(!Cn(e))}),null!==(t=e.Sharding)&&void 0!==t&&null!==(a=t.HashSharding)&&void 0!==a&&a.Columns){const t=`PARTITION BY HASH(${e.Sharding.HashSharding.Columns.join(", ")})`;n.push({label:Nn("label.partitioning"),value:(0,d.jsx)(Ua.x,{variant:"code-2",wordBreak:"break-word",children:t})})}if(e.TtlSettings){const t=In(null===e||void 0===e?void 0:e.TtlSettings);t&&n.push(t)}return n}(o)}const D=(0,oa.Z6)(Ta,{PartCount:l,RowCount:c,DataSize:u,IndexSize:m});(0,En.kE)(p)&&(s.EnableFilterByKey||Number(p)>0)&&D.push({label:"BloomFilterSize",value:ha(p)});const _=[D,(0,oa.Z6)(Ta,{LastAccessTime:h,LastUpdateTime:v}),(0,oa.Z6)(Ta,{ImmediateTxCompleted:g,PlannedTxCompleted:x,TxRejectedByOverload:y,TxRejectedBySpace:b,TxCompleteLagMsec:f,InFlightTxCount:j}),(0,oa.Z6)(Ta,{RowUpdates:N,RowDeletes:S,RowReads:T,RangeReads:w,RangeReadRows:E})],A=(0,oa.Z6)(ja,Tn()(r,["GroupReadIops","GroupReadThroughput","GroupWriteIops","GroupWriteThroughput"]));let k=[];return Array.isArray(C)&&C.length>0?k=(0,oa.Z6)(Na,C[0]):void 0!==I?k.push(Sa("FollowerCount",I)):void 0!==P&&k.push(Sa("CrossDataCenterFollowerCount",P)),{generalInfo:R,tableStatsInfo:_,tabletMetricsInfo:A,partitionConfigInfo:k}},Rn=(0,c.cn)("ydb-diagnostics-table-info"),Dn=e=>{let{data:t,type:a}=e;const r=(0,d.jsx)(fn,{data:null===t||void 0===t?void 0:t.PathDescription}),{generalInfo:s,tableStatsInfo:i,tabletMetricsInfo:o=[],partitionConfigInfo:l=[]}=n.useMemo((()=>Pn(t,a)),[t,a]);return(0,d.jsxs)("div",{className:Rn(),children:[(0,d.jsx)(oa._P,{info:s,title:r,className:Rn("info-block"),renderEmptyState:()=>(0,d.jsx)("div",{className:Rn("title"),children:r})}),(0,d.jsxs)("div",{className:Rn("row"),children:[i?(0,d.jsx)("div",{className:Rn("col"),children:i.map(((e,t)=>(0,d.jsx)(oa._P,{info:e,title:0===t?Nn("tableStats"):void 0,className:Rn("info-block"),renderEmptyState:()=>null},t)))}):null,o.length>0||l.length>0?(0,d.jsxs)("div",{className:Rn("col"),children:[(0,d.jsx)(oa._P,{info:o,title:Nn("tabletMetrics"),className:Rn("info-block"),renderEmptyState:()=>null}),(0,d.jsx)(oa._P,{info:l,title:Nn("partitionConfig"),className:Rn("info-block"),renderEmptyState:()=>null})]}):null]})]})},_n=e=>{let{data:t,path:a,database:n}=e;const r=la(null===t||void 0===t?void 0:t.PathDescription);return t?(0,d.jsxs)("div",{children:[(0,d.jsx)(oa._P,{title:r,info:vn(t)}),(0,d.jsx)(hn,{path:a,database:n})]}):(0,d.jsxs)("div",{className:"error",children:["No ",r," data"]})};const An=function(e){let{type:t,path:a,database:r}=e;const[s]=(0,b.Rj)(),i=(0,me.St)(t),o=(0,b.ix)((e=>(0,aa.eU)(e,a,t,r)),ta.wU);let l=[];i?o&&(l=[a,...o]):l=[a];const{currentData:c,isFetching:u,error:m}=x.useGetOverviewQuery(l.length?{paths:l,database:r}:ie.CN,{pollingInterval:s}),p=u&&void 0===c,{data:h,additionalData:v}=c||{};return p||i&&!o?(0,d.jsx)(D.a,{size:"m"}):(0,d.jsxs)(n.Fragment,{children:[m?(0,d.jsx)(R.V,{error:m}):null,m&&!h?null:(()=>{var e;const n=null!==h&&void 0!==h?h:void 0,s={[ke.gb.EPathTypeInvalid]:void 0,[ke.gb.EPathTypeDir]:void 0,[ke.gb.EPathTypeTable]:void 0,[ke.gb.EPathTypeSubDomain]:void 0,[ke.gb.EPathTypeTableIndex]:()=>(0,d.jsx)(Ea,{data:n}),[ke.gb.EPathTypeExtSubDomain]:void 0,[ke.gb.EPathTypeColumnStore]:void 0,[ke.gb.EPathTypeColumnTable]:void 0,[ke.gb.EPathTypeCdcStream]:()=>{var e;return(0,d.jsx)(xn,{path:a,database:r,data:n,topic:null!==(e=null===v||void 0===v?void 0:v[0])&&void 0!==e?e:void 0})},[ke.gb.EPathTypePersQueueGroup]:()=>(0,d.jsx)(_n,{data:n,path:a,database:r}),[ke.gb.EPathTypeExternalTable]:()=>(0,d.jsx)(Qa,{data:n}),[ke.gb.EPathTypeExternalDataSource]:()=>(0,d.jsx)(Oa,{data:n}),[ke.gb.EPathTypeView]:()=>(0,d.jsx)(Wa,{data:n}),[ke.gb.EPathTypeReplication]:()=>(0,d.jsx)(on,{data:n})};return t&&(null===(e=s[t])||void 0===e?void 0:e.call(s))||(0,d.jsx)(Dn,{data:n,type:t})})()]})};var On=a(2982),kn=a(49687),Ln=a(8978),Mn=a(95280),qn=a(67141),zn=a(39633);const Fn=["#7EB26D","#EAB839","#6ED0E0","#EF843C","#E24D42","#1F78C1","#BA43A9","#705DA0","#508642","#CCA300"];const Qn=e=>{switch(e){case"ms":return Un;case"size":return Bn;case"percent":return Gn;default:return}};function Un(e){return null===e?y.jX:(0,tt.zm)((0,O.W0)($n(e),2))}function Bn(e){return null===e?y.jX:(0,et.td)({value:$n(e),precision:3})}function Gn(e){return null===e?y.jX:Math.round(100*$n(e))+"%"}function $n(e){return(0,En.kE)(e)?Number(e):0}const Hn={"30m":30*y.sU,"1h":y.RQ,"1d":y.ii,"1w":7*y.ii},Vn=JSON.parse('{"not-supported":"Charts are not supported on current ydb version"}'),Zn=(0,ve.wZ)("ydb-metric-chart",{en:Vn}),Wn=g.h.injectEndpoints({endpoints:e=>({getChartData:e.query({queryFn:async(e,t)=>{let{signal:a}=t;try{const t=await async function(e){let{database:t,metrics:a,timeFrame:n,maxDataPoints:r}=e,{signal:s}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const i=a.map((e=>`target=${e.target}`)).join("&"),o=Math.round(Date.now()/1e3),l=o-Hn[n];return window.api.getChartData({target:i,from:l,until:o,maxDataPoints:r,database:t},{signal:s})}(e,{signal:a});if(Array.isArray(t)){const a=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;const a=e.map((e=>{let{datapoints:a,target:n}=e;const r=t.find((e=>e.target===n));if(!r)return;const s=a.map((e=>e[0]));return{...r,data:s}})).filter((e=>void 0!==e));return{timeline:e[0].datapoints.map((e=>1e3*e[1])),metrics:a}}(t,e.metrics);return{data:a}}return{error:new Error("string"===typeof t?Zn("not-supported"):t.error)}}catch(n){return{error:n}}},providesTags:["All"],keepUnusedDataFor:0})}),overrideExisting:"throw"}),Jn=(0,c.cn)("ydb-metric-chart");Ln.X.set({plugins:[qn.YagrPlugin]});const Kn=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{dataType:a,scaleRange:n}=t,r=Qn(a),s=!e.metrics.length,i=e.metrics.map(((e,t)=>{const a=e.color||Fn[t],n=function(e,t){const a=(0,zn.Vi)(e);if(!a.isValid())throw new Error("Invalid color is passed");return a.alpha(t).toRgbString()}(a,.1);return{id:e.target,name:e.title||e.target,data:e.data,formatter:r,lineColor:a,color:n,legendColorKey:"lineColor"}}));return{data:{timeline:e.timeline,graphs:i},libraryConfig:{chart:{size:{padding:s?[10,0,10,0]:void 0},series:{type:"area",spanGaps:!0,lineWidth:1.5},select:{zoom:!1}},scales:{y:{type:"linear",range:"nice",min:(null===n||void 0===n?void 0:n.min)||0,max:null===n||void 0===n?void 0:n.max}},axes:{y:{values:r?(e,t)=>t.map(r):void 0}},tooltip:{show:!0,tracking:"sticky"}}}},Yn={timeline:[],metrics:[]},Xn=e=>{let{database:t,title:a,metrics:r,timeFrame:s="1h",autorefresh:i,width:o=400,height:l=o/1.5,chartOptions:c,onChartDataStatusChange:u,isChartVisible:m}=e;const{currentData:p,error:h,isFetching:v,status:g}=Wn.useGetChartDataQuery({database:t,metrics:r,timeFrame:s,maxDataPoints:o/2},{pollingInterval:i}),x=v&&!p;n.useEffect((()=>null===u||void 0===u?void 0:u("fulfilled"===g?"success":"loading")),[g,u]);const y=Kn(p||Yn,c);return(0,d.jsxs)("div",{className:Jn(null),style:{height:l,width:o},children:[(0,d.jsx)("div",{className:Jn("title"),children:a}),x?(0,d.jsx)(D.a,{}):m?(0,d.jsxs)("div",{className:Jn("chart"),children:[(0,d.jsx)(Mn.ZP,{type:"yagr",data:y}),h?(0,d.jsx)(R.V,{className:Jn("error"),error:h}):null]}):null]})};var er=a(17176);const tr=(0,c.cn)("ydb-timeframe-selector"),ar=e=>{let{value:t,onChange:a,className:n}=e;return(0,d.jsx)("div",{className:tr(null,n),children:Object.keys(Hn).map((e=>(0,d.jsx)(er.z,{view:"flat",selected:t===e,onClick:()=>a(e),children:e},e)))})},nr=(0,c.cn)("ydb-tenant-dashboard"),rr=e=>{let{database:t,charts:a}=e;const[r,i]=n.useState(!0),[o="1h",l]=(0,s.useQueryParam)("timeframe",s.StringParam),[c]=(0,b.Rj)(),u=r?0:c,m=e=>{"success"===e&&i(!1)},p=1===a.length?872:428;return(0,d.jsxs)("div",{className:nr(null),style:{display:r?"none":void 0},children:[(0,d.jsx)("div",{className:nr("controls"),children:(0,d.jsx)(ar,{value:o,onChange:l})}),(0,d.jsx)("div",{className:nr("charts"),children:a.map((e=>{const a=e.metrics.map((e=>{let{target:t}=e;return t})).join("&");return(0,d.jsx)(Xn,{database:t,title:e.title,metrics:e.metrics,timeFrame:o,chartOptions:e.options,autorefresh:u,width:p,height:285.3333333333333,onChartDataStatusChange:m,isChartVisible:!r},a)}))})]})},sr=JSON.parse('{"no-data":"No data","no-pools-data":"No pools data","top-nodes.empty-data":"No such nodes","top-groups.empty-data":"No such groups","top":"Top","nodes":"nodes","shards":"shards","groups":"groups","queries":"queries","tables":"tables","by-pools-usage":"by pools usage","by-cpu-time":"by cpu time, {{executionPeriod}}","by-cpu-usage":"by cpu usage","by-load":"by load","by-memory":"by memory","by-usage":"by usage","by-size":"by size","cards.cpu-label":"CPU","cards.storage-label":"Storage","cards.memory-label":"Memory","charts.queries-per-second":"Queries per second","charts.transaction-latency":"Transactions latencies {{percentile}}","charts.cpu-usage":"CPU usage by pool","charts.storage-usage":"Tablet storage usage","charts.memory-usage":"Memory usage","storage.tablet-storage-title":"Tablet storage","storage.tablet-storage-description":"Size of user data and indexes stored in schema objects (tables, topics, etc.)","storage.db-storage-title":"Database storage","storage.db-storage-description":"Size of data stored in distributed storage with all overheads for redundancy","executed-last-hour":"executed in the last hour"}'),ir=(0,ve.wZ)("ydb-diagnostics-tenant-overview",{en:sr}),or=[{title:ir("charts.queries-per-second"),metrics:[{target:"queries.requests",title:ir("charts.queries-per-second")}]},{title:ir("charts.transaction-latency",{percentile:""}),metrics:[{target:"queries.latencies.p50",title:ir("charts.transaction-latency",{percentile:"p50"})},{target:"queries.latencies.p75",title:ir("charts.transaction-latency",{percentile:"p75"})},{target:"queries.latencies.p90",title:ir("charts.transaction-latency",{percentile:"p90"})},{target:"queries.latencies.p99",title:ir("charts.transaction-latency",{percentile:"p99"})}],options:{dataType:"ms"}}],lr=e=>{let{database:t}=e;return(0,d.jsx)(rr,{database:t,charts:or})},cr=g.h.injectEndpoints({endpoints:e=>({getHealthcheckInfo:e.query({queryFn:async(e,t)=>{let{database:a,maxLevel:n}=e,{signal:r}=t;try{return{data:await window.api.getHealthcheckInfo({database:a,maxLevel:n},{signal:r})}}catch(s){return{error:s}}},providesTags:["All"]})}),overrideExisting:"throw"}),dr={RED:0,ORANGE:1,YELLOW:2,BLUE:3,GREEN:4},ur=e=>e.sort(((e,t)=>(dr[e.status]||0)-(dr[t.status]||0))),mr=e=>{let{issue:t,data:a}=e;return ur(a.filter((e=>t.reason&&-1!==t.reason.indexOf(e.id))))},pr=e=>ur(e.filter((t=>!e.find((e=>e.reason&&-1!==e.reason.indexOf(t.id)))))),hr=e=>{let{data:t,roots:a}=e;return a?a.map((e=>{const a=hr({roots:mr({issue:e,data:t}),data:t});return{...e,reasonsItems:a}})):[]},vr=e=>{const t={};for(const a of e)t[a.status]||(t[a.status]=0),t[a.status]++;return Object.entries(t).sort(((e,t)=>{let[a]=e,[n]=t;return(dr[a]||0)-(dr[n]||0)}))},gr=(0,Xe.P1)((e=>e),(e=>cr.endpoints.getHealthcheckInfo.select({database:e}))),xr=(0,Xe.P1)((e=>e),((e,t)=>gr(t)),((e,t)=>{var a;return(null===(a=t(e).data)||void 0===a?void 0:a.issue_log)||[]})),yr=(0,Xe.P1)(xr,(function(){return pr(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[])})),br=(0,Xe.P1)([xr,yr],(function(){return hr({data:arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],roots:arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]})})),fr=(0,Xe.P1)(xr,(function(){return vr(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[])}));let jr,Nr;!function(e){e.UNSPECIFIED="UNSPECIFIED",e.GOOD="GOOD",e.DEGRADED="DEGRADED",e.MAINTENANCE_REQUIRED="MAINTENANCE_REQUIRED",e.EMERGENCY="EMERGENCY"}(jr||(jr={})),function(e){e.UNSPECIFIED="UNSPECIFIED",e.GREY="GREY",e.GREEN="GREEN",e.BLUE="BLUE",e.YELLOW="YELLOW",e.ORANGE="ORANGE",e.RED="RED"}(Nr||(Nr={}));const Sr=function(e){let{autorefresh:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{currentData:a,isFetching:n,error:r,refetch:s}=cr.useGetHealthcheckInfoQuery({database:e},{pollingInterval:t}),i=(null===a||void 0===a?void 0:a.self_check_result)||jr.UNSPECIFIED,o=(0,b.ix)((t=>fr(t,e)));return{issueTrees:(0,b.ix)((t=>br(t,e))),issuesStatistics:o,loading:void 0===a&&n,error:r,refetch:s,selfCheckResult:i}};var Tr=a(40067),wr=a(75850);const Er={[Nr.UNSPECIFIED]:wr.K.Grey,[Nr.GREY]:wr.K.Grey,[Nr.GREEN]:wr.K.Green,[Nr.BLUE]:wr.K.Blue,[Nr.YELLOW]:wr.K.Yellow,[Nr.ORANGE]:wr.K.Orange,[Nr.RED]:wr.K.Red},Cr=(0,c.cn)("issue-tree-item"),Ir=e=>{let{status:t,message:a,type:n,onClick:r}=e;return(0,d.jsxs)("div",{className:Cr(),onClick:r,children:[(0,d.jsx)("div",{className:Cr("field",{status:!0}),children:(0,d.jsx)(Ca.A,{mode:"icons",status:t,name:n})}),(0,d.jsx)("div",{className:Cr("field",{message:!0}),children:a})]})},Pr=(0,c.cn)("issue-tree"),Rr=e=>{let{issueTree:t}=e;const[a,r]=n.useState({}),s=n.useCallback((e=>e?(0,d.jsx)("div",{className:Pr("info-panel"),children:(0,d.jsx)(ea(),{data:e,search:!1,isExpanded:()=>!0,className:Pr("inspector")})}):null),[]),i=n.useCallback((e=>e.map((e=>{const{id:t}=e,{status:n,message:o,type:l,reasonsItems:c,level:u,...m}=e,p="undefined"===typeof a[t]||a[t],h=()=>{r((e=>({...e,[t]:!p})))};return(0,d.jsxs)(Tr.L,{name:(0,d.jsx)(Ir,{status:Er[n],message:o,type:l}),collapsed:p,hasArrow:!0,onClick:h,onArrowClick:h,level:u-1,children:[s(Tn()(m,["reason"])),i(c||[])]},t)}))),[a,s]);return(0,d.jsx)("div",{className:Pr(),children:(0,d.jsx)("div",{className:Pr("block"),children:i([t])})})},Dr=JSON.parse('{"title.healthcheck":"Healthcheck","label.update":"Update","label.show-details":"Show details","label.issues":"Issues:","status_message.ok":"No issues","no-data":"no healthcheck data"}'),_r=JSON.parse('{"title.healthcheck":"Healthcheck","label.update":"\u041e\u0431\u043d\u043e\u0432\u0438\u0442\u044c","label.show-details":"\u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e\u0441\u0442\u0438","label.issues":"\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u044b:","status_message.ok":"\u041d\u0435\u0442 \u043f\u0440\u043e\u0431\u043b\u0435\u043c","no-data":"\u043d\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0445 healthcheck"}'),Ar=(0,ve.wZ)("ydb-diagnostics-healthcheck",{ru:_r,en:Dr}),Or=(0,c.cn)("healthcheck");function kr(e){let{tenantName:t}=e;const[a]=(0,b.Rj)(),{issueTrees:r,loading:s,error:i}=Sr(t,{autorefresh:a});return(0,d.jsx)("div",{className:Or("details"),children:(0,d.jsx)("div",{className:Or("details-content-wrapper"),children:i?(0,d.jsx)(R.V,{error:i,defaultMessage:Ar("no-data")}):s?(0,d.jsx)(D.a,{size:"m"}):r&&r.length?(0,d.jsx)(n.Fragment,{children:r.map((e=>(0,d.jsx)(Rr,{issueTree:e},e.id)))}):Ar("status_message.ok")})})}var Lr=a(35240),Mr=a(32257),qr=a(96261),zr=a(68010),Fr=a(80518),Qr=a(71586);const Ur=(0,c.cn)("ydb-diagnostic-card");function Br(e){let{children:t,className:a,active:n}=e;return(0,d.jsx)("div",{className:Ur({active:n},a),children:t})}const Gr=(0,c.cn)("healthcheck"),$r={[jr.UNSPECIFIED]:Mr.Z,[jr.GOOD]:qr.Z,[jr.DEGRADED]:zr.Z,[jr.MAINTENANCE_REQUIRED]:Fr.Z,[jr.EMERGENCY]:Qr.Z};function Hr(e){const{tenantName:t,active:a}=e,[n]=(0,b.Rj)(),{currentData:r,isFetching:s,error:i}=cr.useGetHealthcheckInfoQuery({database:t},{pollingInterval:n}),o=s&&void 0===r;return(0,d.jsxs)(Br,{className:Gr("preview"),active:a,children:[(0,d.jsx)("div",{className:Gr("preview-header"),children:(0,d.jsx)("div",{className:Gr("preview-title-wrapper"),children:(0,d.jsx)("div",{className:Gr("preview-title"),children:Ar("title.healthcheck")})})}),(()=>{if(i)return(0,d.jsx)(R.V,{error:i,defaultMessage:Ar("no-data")});if(o)return(0,d.jsx)(D.a,{size:"m"});const e=(null===r||void 0===r?void 0:r.self_check_result)||jr.UNSPECIFIED,t=e.toLowerCase();return(0,d.jsx)("div",{className:Gr("preview-content"),children:(0,d.jsxs)("div",{className:Gr("preview-issue",{[t]:!0}),children:[(0,d.jsx)(Ue.J,{className:Gr("preview-status-icon"),data:$r[e]}),(0,d.jsx)("div",{className:Gr("self-check-status-indicator"),children:e.replace(/_/g," ")})]})})})()]})}var Vr=a(67359),Zr=a(98366);const Wr=(0,c.cn)("ydb-metrics-card"),Jr=e=>{let t;return"Warning"===e&&(t=wr.K.Yellow),"Danger"===e&&(t=wr.K.Red),t?(0,d.jsx)(Zr.J,{status:t,mode:"icons",size:"l"}):null};function Kr(e){let{active:t,label:a,status:n,metrics:r}=e;return(0,d.jsxs)(Br,{className:Wr({active:t}),active:t,children:[(0,d.jsxs)("div",{className:Wr("header"),children:[a&&(0,d.jsx)("div",{className:Wr("label"),children:a}),Jr(n)]}),(0,d.jsx)("div",{className:Wr("content"),children:r.map(((e,t)=>{let{title:a,...n}=e;return(0,d.jsxs)("div",{className:Wr("metric"),children:[(0,d.jsx)("div",{className:Wr("metric-title"),children:a}),(0,d.jsx)(Vr.y,{size:"xs",colorizeProgress:!0,...n})]},t)}))})]})}const Yr=(0,c.cn)("metrics-cards");function Xr(e){let{poolsCpuStats:t,memoryStats:a,blobStorageStats:n,tabletStorageStats:r,tenantName:s}=e;const i=(0,ka.TH)(),{metricsTab:o}=(0,b.ix)((e=>e.tenant)),l=(0,w.mB)(i),c=e=>e===o?"":e,u={[j.Xk.cpu]:(0,ze.Sj)({...l,[ze.XV.metricsTab]:c(j.Xk.cpu)}),[j.Xk.storage]:(0,ze.Sj)({...l,[ze.XV.metricsTab]:c(j.Xk.storage)}),[j.Xk.memory]:(0,ze.Sj)({...l,[ze.XV.metricsTab]:c(j.Xk.memory)}),[j.Xk.healthcheck]:(0,ze.Sj)({...l,[ze.XV.metricsTab]:c(j.Xk.healthcheck)})};return(0,d.jsxs)("div",{className:Yr(),children:[(0,d.jsx)(S.rU,{to:u.cpu,className:Yr("tab"),children:(0,d.jsx)(es,{poolsCpuStats:t,active:o===j.Xk.cpu})}),(0,d.jsx)(S.rU,{to:u.storage,className:Yr("tab"),children:(0,d.jsx)(ts,{blobStorageStats:n,tabletStorageStats:r,active:o===j.Xk.storage})}),(0,d.jsx)(S.rU,{to:u.memory,className:Yr("tab"),children:(0,d.jsx)(as,{memoryStats:a,active:o===j.Xk.memory})}),(0,d.jsx)(S.rU,{to:u.healthcheck,className:Yr("tab"),children:(0,d.jsx)(Hr,{tenantName:s,active:o===j.Xk.healthcheck})})]})}function es(e){let{poolsCpuStats:t=[],active:a}=e,n=Lr.L.Unspecified;const r=t.filter((e=>!("Batch"===e.name||"IO"===e.name))).map((e=>{const{name:t,usage:a,limit:r,used:s}=e,i=(0,kn.Vn)(a);return Lr.l[i]>Lr.l[n]&&(n=i),{title:t,value:s,capacity:r,warningThreshold:kn.hJ,dangerThreshold:kn.Gz}}));return(0,d.jsx)(Kr,{label:ir("cards.cpu-label"),active:a,metrics:r,status:n})}function ts(e){let{blobStorageStats:t=[],tabletStorageStats:a,active:n}=e,r=Lr.L.Unspecified;const s=(a||t).map((e=>{const{name:t,used:a,limit:n,usage:s}=e,i=(0,kn._W)(s);return Lr.l[i]>Lr.l[r]&&(r=i),{title:t,value:a,capacity:n,warningThreshold:kn._g,dangerThreshold:kn.nD,formatValues:O.QO}}));return(0,d.jsx)(Kr,{label:ir("cards.storage-label"),active:n,metrics:s,status:r})}function as(e){let{active:t,memoryStats:a=[]}=e,n=Lr.L.Unspecified;const r=a.map((e=>{const{name:t,used:a,limit:r,usage:s}=e,i=(0,kn.Lv)(s);return Lr.l[i]>Lr.l[n]&&(n=i),{title:t,value:a,capacity:r,warningThreshold:kn.B8,dangerThreshold:kn.nr,formatValues:O.QO}}));return(0,d.jsx)(Kr,{label:ir("cards.memory-label"),active:t,metrics:r,status:n})}var ns=a(3534),rs=a(69),ss=a(54997);const is=(0,c.cn)("tenant-overview");function os(e){let{title:t,error:a,loading:r,tableClassNameModifiers:s={},...i}=e;return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)("div",{className:is("title"),children:t}),a?(0,d.jsx)(R.V,{error:a}):null,(0,d.jsx)("div",{className:is("table",s),children:a&&0===i.data.length?null:r?(0,d.jsx)(le.h,{rows:y.fl}):(0,d.jsx)(oe.G,{settings:y.E6,...i})})]})}var ls=a(68036);const cs=e=>{let{prefix:t=ir("top"),entity:a,postfix:r,link:s,onClick:i}=e;return s?(0,d.jsxs)(n.Fragment,{children:[t," ",(0,d.jsx)(ls.h,{to:s,onClick:i,children:a})," ",r]}):`${t} ${a} ${r}`};function ds(e){let{tenantName:t,additionalNodesProps:a}=e;const n=(0,b.A3)(),[r]=(0,b.Rj)(),s=(0,rs.LF)(null===a||void 0===a?void 0:a.getNodeRef),{currentData:i,isFetching:o,error:l}=ns.k.useGetNodesQuery({tenant:t,type:"any",sort:"-CPU",limit:y.fl},{pollingInterval:r}),c=o&&void 0===i,u=(null===i||void 0===i?void 0:i.Nodes)||[],m=cs({entity:ir("nodes"),postfix:ir("by-pools-usage"),link:(0,ze.Sj)({...n,[ze.XV.diagnosticsTab]:j.qQ.nodes})});return(0,d.jsx)(os,{columnsWidthLSKey:ss.t5,data:u,columns:s,title:m,loading:c,error:l,emptyDataMessage:ir("top-nodes.empty-data")})}function us(e){let{tenantName:t,additionalNodesProps:a}=e;const n=(0,b.A3)(),[r]=(0,b.Rj)(),s=(0,rs.sQ)(null===a||void 0===a?void 0:a.getNodeRef),{currentData:i,isFetching:o,error:l}=ns.k.useGetNodesQuery({tenant:t,type:"any",sort:"-LoadAverage",limit:y.fl},{pollingInterval:r}),c=o&&void 0===i,u=(null===i||void 0===i?void 0:i.Nodes)||[],m=cs({entity:ir("nodes"),postfix:ir("by-load"),link:(0,ze.Sj)({...n,[ze.XV.diagnosticsTab]:j.qQ.nodes})});return(0,d.jsx)(os,{columnsWidthLSKey:ss.t5,data:u,columns:s,title:m,loading:c,error:l,emptyDataMessage:ir("top-nodes.empty-data")})}var ms=a(83786),ps=a(30667),hs=a(99683);const vs=(0,c.cn)("kv-truncated-query"),gs=e=>{let{value:t="",maxQueryHeight:a=6}=e;const r=t.split("\n");if(r.length>a){const e=r.slice(0,a).join("\n"),t="\n...\nThe request was truncated. Click on the line to show the full query on the query tab";return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)("span",{className:vs(),children:e}),(0,d.jsx)("span",{className:vs("message",{color:"secondary"}),children:t})]})}return(0,d.jsx)(n.Fragment,{children:t})},xs=e=>{let{value:t=""}=e;return(0,d.jsx)(hs.l,{contentClassName:vs("popover-content"),content:t,children:t})},ys="CPUTime",bs="QueryText",fs="EndTime",js="ReadRows",Ns="ReadBytes",Ss="UserSID",Ts="OneLineQueryText",ws="QueryHash",Es="Duration",Cs="CPUCores",Is="PeakTime",Ps="IntervalEnd",Rs=[Cs,"DataSize","InFlightTxCount"],Ds=[ys,fs,js,Ns,Ss,Es],_s=e=>Object.values(Rs).includes(e);var As=a(47694),Os=a.n(As);const ks=6,Ls={...y.LE,dynamicRenderType:"variable"},Ms=JSON.parse('{"no-data":"No data","filter.text.placeholder":"Search by query text...","mode_top":"Top","mode_running":"Running","col_user":"User","col_start-time":"Start time","col_query-text":"Query text","col_app":"Application"}'),qs=(0,ve.wZ)("ydb-diagnostics-top-queries",{en:Ms}),zs=(0,c.cn)("kv-top-queries"),Fs="topQueriesColumnsWidth",Qs={name:ys,sortAccessor:e=>Number(e.CPUTimeUs),render:e=>{var t;let{row:a}=e;return(0,tt.zm)((0,tt.BO)(null!==(t=a.CPUTimeUs)&&void 0!==t?t:void 0))},width:120,align:fe.ZP.RIGHT,sortable:!1},Us={name:bs,sortAccessor:e=>Number(e.CPUTimeUs),render:e=>{var t;let{row:a}=e;return(0,d.jsx)("div",{className:zs("query"),children:(0,d.jsx)(gs,{value:null===(t=a.QueryText)||void 0===t?void 0:t.toString(),maxQueryHeight:ks})})},sortable:!1,width:500},Bs={name:fs,render:e=>{let{row:t}=e;return(0,O.o0)(new Date(t.EndTime).getTime())},align:fe.ZP.RIGHT,width:200},Gs={name:js,render:e=>{let{row:t}=e;return(0,O.uf)(t.ReadRows)},sortAccessor:e=>Number(e.ReadRows),align:fe.ZP.RIGHT,width:150},$s={name:Ns,render:e=>{let{row:t}=e;return(0,O.uf)(t.ReadBytes)},sortAccessor:e=>Number(e.ReadBytes),align:fe.ZP.RIGHT,width:150},Hs={name:Ss,render:e=>{let{row:t}=e;return(0,d.jsx)("div",{className:zs("user-sid"),children:t.UserSID||"\u2013"})},sortAccessor:e=>String(e.UserSID),align:fe.ZP.LEFT},Vs={name:Ts,header:"QueryText",render:e=>{var t;let{row:a}=e;return(0,d.jsx)(xs,{value:null===(t=a.QueryText)||void 0===t?void 0:t.toString()})},sortable:!1,width:500},Zs={name:ws,render:e=>{let{row:t}=e;return a=String(t.QueryText),(Os().str(a)>>>0).toString(16).toUpperCase().padStart(8,"0");var a},width:130,sortable:!1},Ws={name:Es,header:"Duration",render:e=>{var t;let{row:a}=e;return(0,tt.zm)((0,tt.BO)(null!==(t=a.Duration)&&void 0!==t?t:void 0))},sortAccessor:e=>Number(e.Duration),align:fe.ZP.RIGHT,width:150},Js={name:"QueryStartAt",get header(){return qs("col_start-time")},render:e=>{let{row:t}=e;return(0,O.o0)(new Date(t.QueryStartAt).getTime())},sortable:!0,resizeable:!1,defaultOrder:fe.ZP.DESCENDING},Ks=[Qs,Us,Bs,Ws,Gs,$s,Hs],Ys=[Zs,Vs,Qs],Xs=[Hs,Js,Us,{name:"ApplicationName",get header(){return qs("col_app")},render:e=>{let{row:t}=e;return(0,d.jsx)("div",{className:zs("user-sid"),children:t.ApplicationName||"\u2013"})},sortable:!0}];function ei(e){let{tenantName:t}=e;const a=(0,b.zL)(),r=(0,ka.TH)(),s=(0,ka.k6)(),i=(0,w.mB)(r),[o]=(0,b.Rj)(),l=Ys,{currentData:c,isFetching:u,error:m}=ps.MU.useGetTopQueriesQuery({database:t},{pollingInterval:o}),p=u&&void 0===c,{result:h}=c||{},v=n.useCallback((e=>{const{QueryText:t}=e;a((0,ms.B8)({input:t}));const n=(0,w.mB)(r),i=(0,ze.Sj)({...n,[j.bS]:j.m2.query,[ze.XV.queryTab]:j._0.newQuery});s.push(i)}),[a,s,r]),g=cs({entity:ir("queries"),postfix:ir("by-cpu-time",{executionPeriod:ir("executed-last-hour")}),onClick:()=>{a((0,ps.Im)({from:void 0,to:void 0}))},link:(0,ze.Sj)({...i,[ze.XV.diagnosticsTab]:j.qQ.topQueries})});return(0,d.jsx)(os,{columnsWidthLSKey:Fs,data:h||[],columns:l,onRowClick:v,title:g,loading:p,error:(0,ce.fV)(m),rowClassName:()=>is("top-queries-row")})}function ti(e,t){return`SELECT\n ${t?`CAST(SUBSTRING(CAST(Path AS String), ${t.length}) AS Utf8) AS Path`:"Path"},\n TabletId,\n CPUCores,\nFROM \`.sys/partition_stats\`\nWHERE\n Path='${e}'\n OR Path LIKE '${e}/%'\nORDER BY CPUCores DESC\nLIMIT ${y.fl}`}const ai=g.h.injectEndpoints({endpoints:e=>({getTopShards:e.query({queryFn:async(e,t)=>{let{database:a,path:n=""}=e,{signal:r}=t;try{const e=await window.api.sendQuery({schema:"modern",query:ti(n,a),database:a,action:"execute-scan"},{signal:r,withRetries:!0});return(0,ce.gW)(e)?{error:e}:{data:(0,ce.gY)(e)}}catch(s){return{error:s||new Error("Unauthorized")}}},providesTags:["All"]})}),overrideExisting:"throw"});var ni=a(41919),ri=a(86017);function si(e){let{path:t,location:a,...n}=e;const r=(0,w.mB)(a),s=(0,w.vF)({...r,schema:t});return(0,d.jsx)(ri.r,{view:"normal",...n,href:s})}var ii=a(80816);const oi=(0,a(99106).p)(60,80,["success","warning","danger"]);var li=a(48169),ci=a(92398);const di="topShardsColumnsWidth",ui="TabletId",mi="CPUCores",pi="DataSize",hi="Path",vi="NodeId",gi="InFlightTxCount",xi={TabletId:"TabletId",CPUCores:"CPUCores",DataSize:"DataSize (B)",Path:"Path",NodeId:"NodeId",PeakTime:"PeakTime",InFlightTxCount:"InFlightTxCount",IntervalEnd:"IntervalEnd"};const yi=(e,t)=>({name:hi,header:xi[hi],render:a=>{let{row:n}=a;return(0,d.jsx)(si,{path:e+n.Path,location:t,children:n.Path})},sortable:!1,width:300}),bi={name:mi,header:xi[mi],render:e=>{let{row:t}=e;return a=t.CPUCores||0,`${(0,O.W0)(100*Number(a),2)}%`;var a},align:fe.ZP.RIGHT},fi={name:pi,header:xi[pi],render:e=>{let{row:t}=e;return(0,O.uf)(t.DataSize)},align:fe.ZP.RIGHT},ji={name:ui,header:xi[ui],render:e=>{var t;let{row:a}=e;return a.TabletId?(0,d.jsx)(Ca.A,{name:null===(t=a.TabletId)||void 0===t?void 0:t.toString(),path:(0,w.fK)(a.TabletId),hasClipboardButton:!0,showStatus:!1,additionalControls:(0,d.jsx)(ni.Q,{href:(0,li.wz)(a.TabletId)})}):"\u2013"},sortable:!1,width:220},Ni={name:vi,header:xi[vi],render:e=>{let{row:t}=e;return t.NodeId?(0,d.jsx)(yt.h,{to:(0,ci.a3)(t.NodeId),children:t.NodeId}):"\u2013"},align:fe.ZP.RIGHT},Si={name:mi,header:xi[mi],render:e=>{let{row:t}=e;return(0,d.jsx)(ii.a,{value:(0,O.W0)(100*Number(t.CPUCores),2),theme:oi(100*Number(t.CPUCores))})},align:fe.ZP.RIGHT,sortable:!1,width:140,resizeMinWidth:140},Ti={name:gi,header:xi[gi],render:e=>{let{row:t}=e;return(0,O.uf)(t.InFlightTxCount)},align:fe.ZP.RIGHT},wi=e=>{let{tenantName:t,path:a}=e;const n=(0,ka.TH)(),r=(0,w.mB)(n),[s]=(0,b.Rj)(),{currentData:i,isFetching:o,error:l}=ai.useGetTopShardsQuery({database:t,path:a},{pollingInterval:s}),c=o&&void 0===i,{result:u}=i||{},m=((e,t)=>[ji,yi(e,t),Si])(t,n),p=cs({entity:ir("shards"),postfix:ir("by-cpu-usage"),link:(0,ze.Sj)({...r,[ze.XV.diagnosticsTab]:j.qQ.topShards})});return(0,d.jsx)(os,{columnsWidthLSKey:di,data:u||[],columns:m,title:p,loading:c,error:(0,ce.fV)(l)})},Ei=[{title:ir("charts.cpu-usage"),metrics:["IC","IO","Batch","User","System"].map((e=>({target:`resources.cpu.${e}.usage`,title:e}))),options:{dataType:"percent",scaleRange:{min:0,max:1}}}];function Ci(e){let{tenantName:t,additionalNodesProps:a}=e;return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)(rr,{database:t,charts:Ei}),(0,d.jsx)(us,{tenantName:t,additionalNodesProps:a}),(0,d.jsx)(ds,{tenantName:t,additionalNodesProps:a}),(0,d.jsx)(wi,{tenantName:t,path:t}),(0,d.jsx)(ei,{tenantName:t})]})}function Ii(e){let{tenantName:t,additionalNodesProps:a}=e;const n=(0,b.A3)(),[r]=(0,b.Rj)(),s=(0,rs.Cj)({getNodeRef:null===a||void 0===a?void 0:a.getNodeRef}),{currentData:i,isFetching:o,error:l}=ns.k.useGetNodesQuery({tenant:t,type:"any",tablets:!0,sort:"-Memory",limit:y.fl},{pollingInterval:r}),c=o&&void 0===i,u=(null===i||void 0===i?void 0:i.Nodes)||[],m=cs({entity:ir("nodes"),postfix:ir("by-memory"),link:(0,ze.Sj)({...n,[ze.XV.diagnosticsTab]:j.qQ.nodes})});return(0,d.jsx)(os,{columnsWidthLSKey:ss.t5,data:u,columns:s,title:m,loading:c,error:l,emptyDataMessage:ir("top-nodes.empty-data")})}const Pi=[{title:ir("charts.memory-usage"),metrics:[{target:"resources.memory.used_bytes",title:ir("charts.memory-usage")}],options:{dataType:"size"}}];function Ri(e){let{tenantName:t}=e;return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)(rr,{database:t,charts:Pi}),(0,d.jsx)(Ii,{tenantName:t})]})}var Di=a(23373),_i=a(33058),Ai=a(6130),Oi=a(51323);const ki=e=>{const{groups:t=[]}=e||{},a=[...t].sort(((e,t)=>t.Usage-e.Usage));return a.slice(0,y.fl)};function Li(e){let{tenant:t}=e;const a=(0,b.A3)(),r=(0,E.rU)(),s=(0,E.tS)(),[i]=(0,b.Rj)(),o=(0,Ai.m)(),{currentData:l,isFetching:c,error:u}=_i.y.useGetStorageGroupsInfoQuery({tenant:t,sort:"-Usage",with:"all",limit:y.fl,shouldUseGroupsHandler:s},{pollingInterval:i,skip:!r}),m=c&&void 0===l,p=n.useMemo((()=>ki(l)),[l]),h=cs({entity:ir("groups"),postfix:ir("by-usage"),link:(0,ze.Sj)({...a,[ze.XV.diagnosticsTab]:j.qQ.storage})});return(0,d.jsx)(os,{columnsWidthLSKey:Oi.Ty,data:p,columns:o,title:h,loading:m||!r,error:u})}const Mi=e=>`\nSELECT\n Path, SUM(DataSize) as Size\nFROM \`${e}/.sys/partition_stats\`\nGROUP BY Path\n ORDER BY Size DESC\n LIMIT ${y.fl}\n`,qi=g.h.injectEndpoints({endpoints:e=>({getTopTables:e.query({queryFn:async(e,t)=>{let{path:a}=e,{signal:n}=t;try{const e=await window.api.sendQuery({schema:"modern",query:Mi(a),database:a,action:"execute-scan"},{signal:n,withRetries:!0});return(0,ce.gW)(e)?{error:e}:{data:(0,ce.gY)(e)}}catch(r){return{error:r||"Unauthorized"}}},providesTags:["All"]})}),overrideExisting:"throw"}),zi="topTablesTableColumnsWidth";function Fi(e){let{path:t}=e;const a=(0,ka.TH)(),[n]=(0,b.Rj)(),{currentData:r,error:s,isFetching:i}=qi.useGetTopTablesQuery({path:t},{pollingInterval:n}),o=i&&void 0===r,{result:l}=r||{},c=[{name:"Size",width:100,sortable:!1,render:e=>{let{row:t}=e;return(e=>{const t=(0,et.dT)(null!==l&&void 0!==l&&l.length?Number(l[0].Size):0,0);return(0,et.td)({value:e,size:t,precision:1})})(Number(t.Size))},align:fe.ZP.RIGHT},{name:"Path",width:700,sortable:!1,render:e=>{let{row:t}=e;return t.Path?(0,d.jsx)(hs.l,{content:t.Path,children:(0,d.jsx)(si,{path:String(t.Path),location:a,children:t.Path})}):null}}],u=cs({entity:ir("tables"),postfix:ir("by-size")});return(0,d.jsx)(os,{columnsWidthLSKey:zi,data:l||[],columns:c,title:u,loading:o,error:(0,ce.fV)(s)})}const Qi=[{title:ir("charts.storage-usage"),metrics:[{target:"resources.storage.used_bytes",title:ir("charts.storage-usage")}],options:{dataType:"size"}}];function Ui(e){let{tenantName:t,metrics:a}=e;const{blobStorageUsed:r,tabletStorageUsed:s,blobStorageLimit:i,tabletStorageLimit:o}=a,l=[{label:(0,d.jsx)(ft,{text:ir("storage.tablet-storage-title"),popoverContent:ir("storage.tablet-storage-description")}),value:(0,d.jsx)(Vr.y,{value:s,capacity:o,formatValues:O.QO,colorizeProgress:!0,warningThreshold:75,dangerThreshold:85})},{label:(0,d.jsx)(ft,{text:ir("storage.db-storage-title"),popoverContent:ir("storage.db-storage-description")}),value:(0,d.jsx)(Vr.y,{value:r,capacity:i,formatValues:O.QO,colorizeProgress:!0,warningThreshold:75,dangerThreshold:85})}];return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)(rr,{database:t,charts:Qi}),(0,d.jsx)(Di._,{className:is("storage-info"),title:"Storage details",info:l}),(0,d.jsx)(Fi,{path:t}),(0,d.jsx)(Li,{tenant:t})]})}function Bi(e){var t,a,n;let{tenantName:r,additionalTenantProps:s,additionalNodesProps:i}=e;const{metricsTab:o}=(0,b.ix)((e=>e.tenant)),[l]=(0,b.Rj)(),{currentData:c,isFetching:u}=C.$1.useGetTenantInfoQuery({path:r},{pollingInterval:l}),m=u&&void 0===c,{Name:p,Type:h,Overall:v}=c||{},g=(0,me.TV)(h),{currentData:f}=x.useGetOverviewQuery({paths:[r],database:r},{pollingInterval:l}),{data:N}=null!==f&&void 0!==f?f:{},{Tables:S,Topics:T}=(null===N||void 0===N||null===(t=N.PathDescription)||void 0===t||null===(a=t.DomainDescription)||void 0===a?void 0:a.DiskSpaceUsage)||{},w=[null===S||void 0===S?void 0:S.TotalSize,null===T||void 0===T?void 0:T.AccountSize,null===T||void 0===T?void 0:T.DataSize,null===T||void 0===T?void 0:T.ReserveSize,null===T||void 0===T?void 0:T.UsedReserveSize].reduce(((e,t)=>t?e+Number(t):e),0),E={...c,Metrics:{...null===c||void 0===c?void 0:c.Metrics,Storage:String(w)}},{blobStorage:I,tabletStorage:P,blobStorageLimit:R,tabletStorageLimit:D,poolsStats:_,memoryStats:A,blobStorageStats:O,tabletStorageStats:k}=(0,kn.HH)(E),L={blobStorageUsed:I,blobStorageLimit:R,tabletStorageUsed:P,tabletStorageLimit:D};return m?(0,d.jsx)("div",{className:is("loader"),children:(0,d.jsx)(On.a,{size:"m"})}):(0,d.jsxs)("div",{className:is(),children:[(0,d.jsxs)("div",{className:is("info"),children:[(0,d.jsx)("div",{className:is("top-label"),children:g}),(0,d.jsxs)("div",{className:is("top"),children:[(0,d.jsx)("div",{className:is("tenant-name-wrapper"),children:(0,d.jsx)(Ca.A,{status:v,name:p||y.FU,withLeftTrim:!0,hasClipboardButton:Boolean(c),clipboardButtonAlwaysVisible:!0})}),null===s||void 0===s||null===(n=s.getMonitoringLink)||void 0===n?void 0:n.call(s,p,h)]}),(0,d.jsx)(Xr,{poolsCpuStats:_,memoryStats:A,blobStorageStats:O,tabletStorageStats:k,tenantName:r})]}),(()=>{switch(o){case j.Xk.cpu:return(0,d.jsx)(Ci,{tenantName:r,additionalNodesProps:i});case j.Xk.storage:return(0,d.jsx)(Ui,{tenantName:r,metrics:L});case j.Xk.memory:return(0,d.jsx)(Ri,{tenantName:r});case j.Xk.healthcheck:return(0,d.jsx)(kr,{tenantName:r});default:return(0,d.jsx)(lr,{database:r})}})()]})}const Gi=(0,c.cn)("kv-detailed-overview");const $i=function(e){const{type:t,tenantName:a,path:n,additionalTenantProps:r,additionalNodesProps:s}=e,i=a===n;return(0,d.jsx)("div",{className:Gi(),children:i?(0,d.jsx)("div",{className:Gi("section"),children:(0,d.jsx)(Bi,{tenantName:a,additionalTenantProps:r,additionalNodesProps:s})}):(0,d.jsx)(An,{type:t,path:n,database:a})})},Hi={id:j.qQ.overview,title:"Info"},Vi={id:j.qQ.schema,title:"Schema"},Zi={id:j.qQ.topQueries,title:"Queries"},Wi={id:j.qQ.topShards,title:"Top shards"},Ji={id:j.qQ.nodes,title:"Nodes"},Ki={id:j.qQ.tablets,title:"Tablets"},Yi={id:j.qQ.storage,title:"Storage"},Xi={id:j.qQ.network,title:"Network"},eo={id:j.qQ.describe,title:"Describe"},to={id:j.qQ.hotKeys,title:"Hot keys"},ao={id:j.qQ.graph,title:"Graph"},no={id:j.qQ.consumers,title:"Consumers"},ro={id:j.qQ.partitions,title:"Partitions"},so=[Hi,Ki,eo],io=[Hi,Zi,Wi,Ji,Ki,Yi,Xi,eo,{id:j.qQ.configs,title:"Configs"}],oo=[Hi,Vi,Wi,Ji,ao,Ki,to,eo],lo=[Hi,Vi,Wi,Ji,Ki,eo],co=[Hi,Wi,Ji,eo],uo=[Hi,no,ro,Ji,Ki,eo],mo=[Hi,no,ro,Ji,Ki,eo],po=[Hi,eo],ho=[Hi,Vi,eo],vo=[Hi,Vi,eo],go={[ke.gb.EPathTypeInvalid]:void 0,[ke.gb.EPathTypeSubDomain]:io,[ke.gb.EPathTypeExtSubDomain]:io,[ke.gb.EPathTypeColumnStore]:io,[ke.gb.EPathTypeTable]:oo,[ke.gb.EPathTypeColumnTable]:lo,[ke.gb.EPathTypeDir]:co,[ke.gb.EPathTypeTableIndex]:co,[ke.gb.EPathTypeCdcStream]:uo,[ke.gb.EPathTypePersQueueGroup]:mo,[ke.gb.EPathTypeExternalDataSource]:po,[ke.gb.EPathTypeExternalTable]:ho,[ke.gb.EPathTypeView]:vo,[ke.gb.EPathTypeReplication]:so},xo=e=>e&&go[e]||co,yo=e=>{let{hasFeatureFlags:t}=e;return t?io:io.filter((e=>e.id!==j.qQ.configs))};var bo=a(77280),fo=a(91387);const jo=g.h.injectEndpoints({endpoints:e=>({getHotKeys:e.query({queryFn:async(e,t)=>{let{path:a,database:n}=e,{signal:r}=t;try{var s;const e=await window.api.getHotKeys({path:a,database:n,enableSampling:!0},{signal:r});if(Array.isArray(e.hotkeys))return{data:e.hotkeys};await Promise.race([new Promise((e=>{setTimeout(e,5e3)})),new Promise(((e,t)=>{r.addEventListener("abort",t)}))]);return{data:null!==(s=(await window.api.getHotKeys({path:a,database:n,enableSampling:!1},{signal:r})).hotkeys)&&void 0!==s?s:null}}catch(i){return{error:i}}},providesTags:["All"]})}),overrideExisting:"throw"}),No=JSON.parse('{"hot-keys-collecting":"Please wait a little while we are collecting hot keys samples...","no-data":"No information about hot keys","help":"Hot keys contains a list of table primary key values that are accessed most often. Sample is collected upon request to the tab during 5s time interval. Samples column indicates how many requests to the particular key value were registered during collection phase."}'),So=(0,ve.wZ)("ydb-hot-keys",{en:No});var To;function wo(){return wo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},wo.apply(this,arguments)}const Eo=function(e){return n.createElement("svg",wo({viewBox:"0 0 12 7",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),To||(To=n.createElement("path",{d:"M8 7h3V5h1V2H6.66C6.085.79 4.86 0 3.5 0 1.57 0 0 1.57 0 3.5S1.57 7 3.5 7c1.36 0 2.59-.79 3.16-2H8v2zm2-1H9V4H5.97l-.115.335a2.5 2.5 0 110-1.67L5.97 3H11v1h-1v2zM3.5 5a1.5 1.5 0 110-3 1.5 1.5 0 010 3zM3 3.5a.5.5 0 111 0 .5.5 0 01-1 0z"})))},Co=(0,c.cn)("ydb-hot-keys"),Io={accessSample:"accessSample",keyValues:"keyValues"},Po=function(){return[...(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(((e,t)=>({name:e,header:(0,d.jsxs)("div",{className:Co("primary-key-column"),children:[(0,d.jsx)(Ue.J,{data:Eo,width:12,height:7}),e]}),render:e=>{let{row:a}=e;return a.keyValues[t]},align:fe.ZP.RIGHT,sortable:!1}))),{name:Io.accessSample,header:"Samples",render:e=>{let{row:t}=e;return t.accessSample},align:fe.ZP.RIGHT,sortable:!1}]};function Ro(e){var t,a;let{path:r,database:s}=e;const{currentData:i,isFetching:o,error:l}=jo.useGetHotKeysQuery({path:r,database:s}),c=o&&void 0===i,[u]=(0,b.Rj)(),{currentData:m,isLoading:p}=x.useGetOverviewQuery({paths:[r],database:s},{pollingInterval:u}),{data:h}=null!==m&&void 0!==m?m:{},v=null===h||void 0===h||null===(t=h.PathDescription)||void 0===t||null===(a=t.Table)||void 0===a?void 0:a.KeyColumnNames,g=n.useMemo((()=>Po(v)),[v]);return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)(Do,{}),c||p?(0,d.jsx)("div",{children:So("hot-keys-collecting")}):l?(0,d.jsx)(R.V,{error:l}):i?(0,d.jsx)(oe.G,{wrapperClassName:Co("table"),columns:g,data:i,settings:y.LE,initialSortOrder:{columnId:Io.accessSample,order:fe.ZP.DESCENDING}}):(0,d.jsx)("div",{children:So("no-data")})]})}function Do(){const[e,t]=(0,b.yu)(y.RI);return e?null:(0,d.jsxs)(fo.Z,{theme:"info",view:"filled",type:"container",className:Co("help-card"),children:[So("help"),(0,d.jsx)(er.z,{className:Co("help-card__close-button"),view:"flat",onClick:()=>t(!0),children:(0,d.jsx)(Ue.J,{data:bo.Z,size:18})})]})}var _o=a(56350),Ao=a(74221);const Oo=g.h.injectEndpoints({endpoints:e=>({getNetworkInfo:e.query({queryFn:async(e,t)=>{let{signal:a}=t;try{return{data:await window.api.getNetwork({path:e,database:e},{signal:a})}}catch(n){return{error:n}}},providesTags:["All"]})}),overrideExisting:"throw"});var ko=a(80839);const Lo=(0,c.cn)("node-network");function Mo(){}function qo(e){let{nodeId:t,connected:a,capacity:r,rack:s,status:i,onClick:o=Mo,onMouseEnter:l=Mo,onMouseLeave:c=Mo,showID:u,isBlurred:m}=e;const p=n.useRef(null),h=i||function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;const a=Math.floor(e/t*100);return 100===a?wr.K.Green:a>=70?wr.K.Yellow:a>=1?wr.K.Red:wr.K.Grey}(a,r);return(0,d.jsx)("div",{ref:p,className:Lo({[h.toLowerCase()]:!0,id:u,blur:m}),onMouseEnter:()=>{l(p.current,{nodeId:t,connected:a,capacity:r,rack:s},"node")},onMouseLeave:()=>{c()},onClick:()=>o(t),children:u?t:null})}const zo=e=>null===e||void 0===e?void 0:e.reduce(((e,t)=>t.Connected?e+1:e),0);var Fo,Qo,Uo,Bo,Go,$o,Ho,Vo,Zo,Wo,Jo,Ko,Yo,Xo,el;function tl(){return tl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},tl.apply(this,arguments)}const al=function(e){return n.createElement("svg",tl({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 221 204"},e),Fo||(Fo=n.createElement("path",{d:"M68.46 2.529v25.227c0 1.227.876 2.278 2.102 2.511 16.643 2.979 29.14 17.812 28.498 35.448-.642 18.045-15.359 32.703-33.345 33.403-17.636.643-32.41-11.854-35.448-28.44a2.562 2.562 0 00-2.51-2.102H2.528c-1.519 0-2.687 1.285-2.512 2.745 3.446 32.703 31.243 58.106 64.939 57.814 35.155-.292 63.829-29.024 64.121-64.18.292-33.695-25.17-61.492-57.873-64.938-1.46-.175-2.744.993-2.744 2.512z",fill:"#EBF2FA"})),Qo||(Qo=n.createElement("path",{d:"M22.736 18.354l17.811 17.812c.876.876 2.278.992 3.329.233 4.146-3.095 9.052-5.197 14.366-6.19 1.226-.233 2.102-1.226 2.102-2.511V2.528a2.502 2.502 0 00-2.803-2.51C44.46 1.418 32.488 6.674 22.91 14.674c-1.168.935-1.226 2.628-.175 3.68zm-9.403 6.133C6.093 33.83 1.303 45.16.02 57.54c-.176 1.46 1.05 2.745 2.51 2.745H27.7a2.562 2.562 0 002.511-2.103c.818-4.672 2.628-9.051 5.14-12.847a2.642 2.642 0 00-.293-3.212L17.13 24.312c-1.05-1.11-2.861-.993-3.796.175zm67.275 107.392h32.995c1.868 0 3.387 1.518 3.445 3.445v65.231a3.451 3.451 0 01-3.445 3.445H80.608a3.452 3.452 0 01-3.446-3.445v-65.231a3.451 3.451 0 013.446-3.445zm77.844 27.097h-32.878a3.514 3.514 0 00-3.503 3.504v37.959a3.514 3.514 0 003.503 3.504h32.878a3.515 3.515 0 003.504-3.504V162.48a3.515 3.515 0 00-3.504-3.504zm12.205 18.28h32.586a3.639 3.639 0 013.621 3.62v19.388a3.639 3.639 0 01-3.621 3.621h-32.586a3.639 3.639 0 01-3.62-3.621v-19.388a3.638 3.638 0 013.62-3.62z",fill:"#EBF2FA"})),Uo||(Uo=n.createElement("path",{d:"M134.275 171.532h-113c-5.84 0-10.628-4.789-10.628-10.629v-73.23c0-5.84 4.788-10.629 10.628-10.629h112.941c5.84 0 10.629 4.789 10.629 10.629v73.23c.058 5.899-4.731 10.629-10.57 10.629v0z",stroke:"#2EE5C0",strokeWidth:4,strokeLinecap:"round",strokeLinejoin:"round"})),Bo||(Bo=n.createElement("path",{d:"M21.625 90.769a3.037 3.037 0 100-6.074 3.037 3.037 0 000 6.074zM31.494 90.769a3.037 3.037 0 100-6.074 3.037 3.037 0 000 6.074zM41.363 90.769a3.037 3.037 0 100-6.074 3.037 3.037 0 000 6.074z",fill:"#2EE5C0"})),Go||(Go=n.createElement("path",{d:"M10.822 98.592h133.673",stroke:"#2EE5C0",strokeWidth:4,strokeLinecap:"round",strokeLinejoin:"round"})),$o||($o=n.createElement("path",{d:"M184.555 149.164L57.89 156.172c-4.263.234-7.767-3.037-7.767-7.3V51.114c0-4.263 3.504-7.533 7.767-7.3l126.665 7.008c3.27.176 5.898 3.33 5.898 7.008v84.327c0 3.679-2.628 6.832-5.898 7.007z",fill:"#027BF3"})),Ho||(Ho=n.createElement("path",{d:"M65.13 54.151c0 1.986-1.576 3.504-3.562 3.387-1.985-.058-3.562-1.752-3.562-3.737 0-1.986 1.635-3.504 3.562-3.387 1.927.058 3.562 1.752 3.562 3.737zm11.506.466a3.38 3.38 0 01-3.504 3.388c-1.927-.059-3.504-1.753-3.504-3.68a3.38 3.38 0 013.504-3.387c1.927.117 3.504 1.752 3.504 3.68zm7.825 3.855c1.869.117 3.387-1.402 3.387-3.329 0-1.927-1.518-3.562-3.387-3.62-1.927-.117-3.445 1.401-3.445 3.328 0 1.927 1.576 3.562 3.445 3.62z",fill:"#fff"})),Vo||(Vo=n.createElement("path",{d:"M75.467 142.974V85.277c-3.971-.525-8.584-.409-13.899.7v57.64l13.899-.643zM88.84 90.651v51.799l-11.096.467v-57.23c4.322.934 7.942 2.745 11.096 4.964zm13.431 13.899a1.618 1.618 0 01-.146-.176 1.487 1.487 0 00-.146-.175c-.42-.51-.841-1.026-1.265-1.546-2.875-3.522-5.874-7.197-9.538-10.25v49.93l11.095-.467V104.55zm13.432 5.722c-3.913-.058-7.709-.701-11.096-3.445v34.922l11.096-.468v-31.009zm13.431-.409c-2.764-.173-5.529.006-8.246.181-.957.062-1.907.123-2.849.169v30.951l11.095-.467v-30.834zm24.002 29.841l-8.234.35v-22.191c8.176 9.285 8.234 21.841 8.234 21.841zM140.113 113.6a19.774 19.774 0 012.453 1.927v24.644l-11.096.467v-30.483c2.92.467 5.782 1.46 8.643 3.445z",fill:"#00236B"})),Zo||(Zo=n.createElement("path",{d:"M55.745 76.436a2 2 0 103.123 2.499l-3.123-2.499zm5.766-4.006l1.575-1.233a2 2 0 00-3.136-.017l1.561 1.25zm2.63 6.605a2 2 0 103.15-2.465l-3.15 2.465zm107.94 53.502a2 2 0 00-2.499 3.123l2.499-3.123zm4.006 5.766l1.214 1.59a1.999 1.999 0 00.036-3.151l-1.25 1.561zm-6.644 2.557a1.999 1.999 0 102.427 3.179l-2.427-3.179zM58.868 78.935l4.205-5.256-3.123-2.499-4.205 5.256 3.123 2.499zm1.068-5.273l4.205 5.373 3.15-2.465-4.205-5.373-3.15 2.465zm109.646 61.998l5.256 4.205 2.499-3.123-5.256-4.205-2.499 3.123zm5.292 1.054l-5.431 4.146 2.427 3.179 5.431-4.146-2.427-3.179zM147.137 69.146a2 2 0 10-.149 3.998l.149-3.998zm29.634 5.107a2 2 0 10.149-3.997l-.149 3.997zm-29.657 5.404a2 2 0 00-.102 3.999l.102-3.999zm29.681 4.758a2 2 0 00.102-3.999l-.102 4zm-29.72 5.928a2 2 0 10-.023 4l.023-4zm29.759 4.176a2 2 0 10.024-4l-.024 4zm-29.846-21.375l29.783 1.11.149-3.998-29.783-1.11-.149 3.998zm.024 10.512l29.783.76.102-4-29.783-.759-.102 3.999zm.04 10.687l29.782.176.024-4-29.783-.175-.023 4zM143.442 71.202a2.458 2.458 0 01-2.57 2.453c-1.401-.058-2.569-1.285-2.569-2.686 0-1.402 1.168-2.57 2.569-2.453 1.46.058 2.57 1.285 2.57 2.686zm.001 10.396a2.458 2.458 0 01-2.57 2.453c-1.401-.059-2.569-1.285-2.569-2.686 0-1.46 1.168-2.57 2.569-2.453 1.46.058 2.57 1.284 2.57 2.686zm-2.57 12.848a2.458 2.458 0 002.57-2.453c0-1.402-1.11-2.628-2.57-2.686-1.401-.117-2.569 1.05-2.569 2.452s1.168 2.628 2.569 2.687z",fill:"#fff"})),Wo||(Wo=n.createElement("path",{opacity:.2,d:"M190.452 91.875V57.771c0-3.68-2.628-6.833-5.899-7.008l-23.651-1.285a35.18 35.18 0 00-1.752 10.98c0 17.635 12.79 31.826 28.09 31.65 1.051.06 2.16-.058 3.212-.233z",fill:"#00236B"})),Jo||(Jo=n.createElement("path",{d:"M220.645 58.883c0-16.585-11.621-30.775-26.454-31.651-15.3-.876-28.089 12.672-28.089 30.308s12.789 31.827 28.089 31.652c14.833-.117 26.454-13.724 26.454-30.309z",fill:"#FF4645"})),Ko||(Ko=n.createElement("path",{d:"M215.329 40.372c-4.788-7.475-12.38-12.614-21.14-13.14v31.01l21.14-17.87z",fill:"#FC0"})),Yo||(Yo=n.createElement("path",{d:"M215.329 40.372l-21.14 17.87 26.455.642c0-6.89-1.986-13.315-5.315-18.512z",fill:"#00236B"})),Xo||(Xo=n.createElement("path",{d:"M194.248 58.24V27.233c-15.301-.876-28.09 12.672-28.09 30.308l28.09.7z",fill:"#FF4645"})),el||(el=n.createElement("path",{d:"M161.151 14.734a2 2 0 10-4 0h4zm-4 4.204a2 2 0 004 0h-4zm4 8.876a2 2 0 10-4 0h4zm-4 4.555a2 2 0 004 0h-4zm10.819-6.816a2 2 0 000-4v4zm-4.263-4a2 2 0 100 4v-4zm-9.169 4a2 2 0 100-4v4zm-4.263-4a2 2 0 000 4v-4zm6.876-6.82v4.205h4v-4.204h-4zm0 13.08v4.556h4v-4.555h-4zm10.819-6.26h-4.263v4h4.263v-4zm-13.432 0h-4.263v4h4.263v-4z",fill:"#2EE5C0"})))},nl=(0,c.cn)("network");function rl(e){var t,a;let{tenantName:r}=e;const[s]=(0,b.Rj)(),i=(0,b.ix)(ko.qz),o=(0,b.zL)(),[l,c]=n.useState(),[u,m]=n.useState(!1),[p,h]=n.useState(!1),{currentData:v,isFetching:g,error:x}=Oo.useGetNetworkInfoQuery(r,{pollingInterval:s});if(g&&void 0===v)return(0,d.jsx)("div",{className:"loader",children:(0,d.jsx)(On.a,{size:"l"})});const y=v,f=null!==(t=(null===y||void 0===y?void 0:y.Tenants)&&y.Tenants[0].Nodes)&&void 0!==t?t:[];if(!x&&0===f.length)return(0,d.jsx)("div",{className:"error",children:"no nodes data"});const j=il(f,"NodeType"),N=l?il(null!==(a=l.Peers)&&void 0!==a?a:[],"NodeType"):{};return(0,d.jsxs)("div",{className:nl(),children:[x?(0,d.jsx)(R.V,{error:x}):null,f.length>0?(0,d.jsx)("div",{className:nl("inner"),children:(0,d.jsxs)("div",{className:nl("nodes-row"),children:[(0,d.jsxs)("div",{className:nl("left"),children:[(0,d.jsx)("div",{className:nl("controls-wrapper"),children:(0,d.jsxs)("div",{className:nl("controls"),children:[(0,d.jsx)(Ao.T,{value:i,onChange:e=>{o((0,ko.M6)(e))},className:nl("problem-filter")}),(0,d.jsx)("div",{className:nl("checkbox-wrapper"),children:(0,d.jsx)(P.X,{onUpdate:()=>{m(!u)},checked:u,children:"ID"})}),(0,d.jsx)("div",{className:nl("checkbox-wrapper"),children:(0,d.jsx)(P.X,{onUpdate:()=>{h(!p)},checked:p,children:"Racks"})})]})}),(0,d.jsx)(sl,{nodes:j,showId:u,showRacks:p,clickedNode:l,onClickNode:c})]}),(0,d.jsx)("div",{className:nl("right"),children:l?(0,d.jsxs)("div",{children:[(0,d.jsxs)("div",{className:nl("label"),children:["Connectivity of node"," ",(0,d.jsx)(S.rU,{className:nl("link"),to:(0,ci.a3)(l.NodeId),children:l.NodeId})," ","to other nodes"]}),(0,d.jsx)("div",{className:nl("nodes-row"),children:(0,d.jsx)(sl,{nodes:N,isRight:!0,showId:u,showRacks:p,clickedNode:l,onClickNode:c})})]}):(0,d.jsxs)("div",{className:nl("placeholder"),children:[(0,d.jsx)("div",{className:nl("placeholder-img"),children:(0,d.jsx)(Ue.J,{data:al,width:221,height:204})}),(0,d.jsx)("div",{className:nl("placeholder-text"),children:"Select node to see its connectivity to other nodes"})]})})]})}):null]})}function sl(e){let{nodes:t,isRight:a,showId:n,showRacks:r,clickedNode:s,onClickNode:i}=e;const o=(0,b.ix)(ko.qz),l=(0,b.zL)();let c=0;const u=Object.keys(t).map(((e,u)=>{const m=il(t[e],"Rack");return(0,d.jsxs)("div",{className:nl("nodes-container",{right:a}),children:[(0,d.jsxs)("div",{className:nl("nodes-title"),children:[e," nodes"]}),(0,d.jsx)("div",{className:nl("nodes"),children:r?Object.keys(m).map(((e,t)=>(0,d.jsxs)("div",{className:nl("rack-column"),children:[(0,d.jsx)("div",{className:nl("rack-index"),children:"undefined"===e?"?":e}),m[e].map(((e,t)=>{let r,u;return!a&&"Peers"in e&&e.Peers&&(r=Object.keys(e.Peers).length,u=zo(e.Peers)),o===ko.pu.PROBLEMS&&r!==u||o===ko.pu.ALL||a?(c++,(0,d.jsx)(qo,{nodeId:e.NodeId,showID:n,rack:e.Rack,status:"ConnectStatus"in e?e.ConnectStatus:void 0,capacity:r,connected:u,onMouseEnter:function(){l((0,A.hJ)(...arguments))},onMouseLeave:()=>{l((0,A.i8)())},onClick:a?void 0:()=>{i(s&&e.NodeId===s.NodeId?void 0:e)},isBlurred:!a&&s&&s.NodeId!==e.NodeId},t)):null}))]},t))):t[e].map(((e,t)=>{let r,u;const m=e&&"Peers"in e?e.Peers:void 0;return!a&&"Peers"in e&&e.Peers&&(r=e.Peers.length,u=zo(m)),o===ko.pu.PROBLEMS&&r!==u||o===ko.pu.ALL||a?(c++,(0,d.jsx)(qo,{nodeId:e.NodeId,showID:n,rack:e.Rack,status:"ConnectStatus"in e?e.ConnectStatus:void 0,capacity:null===m||void 0===m?void 0:m.length,connected:u,onMouseEnter:function(){l((0,A.hJ)(...arguments))},onMouseLeave:()=>{l((0,A.i8)())},onClick:a?void 0:()=>{i(s&&e.NodeId===s.NodeId?void 0:e)},isBlurred:!a&&s&&s.NodeId!==e.NodeId},t)):null}))})]},u)}));return o===ko.pu.PROBLEMS&&0===c?(0,d.jsx)(_o.Q,{name:"thumbsUp",width:"200"}):u}function il(e,t){return e.reduce(((e,a)=>(e[a[t]]?e[a[t]].push(a):e[a[t]]=[a],e)),{})}var ol=a(99337),ll=a(42703),cl=a(48857),dl=a(30629);const ul=JSON.parse('{"lagsPopover.writeLags":"Write lags statistics (time format dd hh:mm:ss)","lagsPopover.readLags":"Read lags statistics (time format dd hh:mm:ss)","headers.unread":"End offset - Last read offset","headers.uncommited":"End offset - Committed offset","controls.consumerSelector":"Consumer:","controls.consumerSelector.emptyOption":"No consumer","controls.partitionSearch":"Partition ID","controls.generalSearch":"Host, Host ID, Reader, Read Session ID","table.emptyDataMessage":"No partitions match the current search","noConsumersMessage.topic":"This topic has no consumers","noConsumersMessage.stream":"This changefeed has no consumers"}'),ml=JSON.parse('{"lagsPopover.writeLags":"\u0421\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0430 \u043b\u0430\u0433\u043e\u0432 \u0437\u0430\u043f\u0438\u0441\u0438 (\u0444\u043e\u0440\u043c\u0430\u0442 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0434\u0434 \u0447\u0447:\u043c\u043c:\u0441\u0441)","lagsPopover.readLags":"\u0421\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0430 \u043b\u0430\u0433\u043e\u0432 \u0447\u0442\u0435\u043d\u0438\u044f (\u0444\u043e\u0440\u043c\u0430\u0442 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0434\u0434 \u0447\u0447:\u043c\u043c:\u0441\u0441)","headers.unread":"End offset - Last read offset","headers.uncommited":"End offset - Committed offset","controls.consumerSelector":"\u0427\u0438\u0442\u0430\u0442\u0435\u043b\u044c:","controls.consumerSelector.emptyOption":"\u041d\u0435\u0442 \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u044f","controls.partitionSearch":"Partition ID","controls.generalSearch":"Host, Host ID, Reader, Read Session ID","table.emptyDataMessage":"\u041f\u043e \u0437\u0430\u0434\u0430\u043d\u043d\u043e\u043c\u0443 \u043f\u043e\u0438\u0441\u043a\u0443 \u043d\u0435\u0442 \u043f\u0430\u0440\u0442\u0438\u0446\u0438\u0439","noConsumersMessage.topic":"\u0423 \u044d\u0442\u043e\u0433\u043e \u0442\u043e\u043f\u0438\u043a\u0430 \u043d\u0435\u0442 \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u0435\u0439","noConsumersMessage.stream":"\u0423 \u044d\u0442\u043e\u0433\u043e \u0441\u0442\u0440\u0438\u043c\u0430 \u043d\u0435\u0442 \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u0435\u0439"}'),pl=(0,ve.wZ)("ydb-diagnostics-partitions",{ru:ml,en:ul}),hl={PARTITION_ID:"partitionId",STORE_SIZE:"storeSize",WRITE_SPEED:"writeSpeed",READ_SPEED:"readSpeed",WRITE_LAGS:"writeLags",READ_LAGS:"readLags",UNCOMMITED_MESSAGES:"uncommitedMessages",UNREAD_MESSAGES:"unreadMessages",START_OFFSET:"startOffset",END_OFFSET:"endOffset",COMMITED_OFFSET:"commitedOffset",READ_SESSION_ID:"readSessionId",READER_NAME:"readerName",PARTITION_HOST:"partitionHost",CONNECTION_HOST:"connectionHost"},vl={[hl.PARTITION_ID]:"Partition ID",[hl.STORE_SIZE]:"Store size",[hl.WRITE_SPEED]:"Write speed",[hl.READ_SPEED]:"Read speed",[hl.WRITE_LAGS]:"Write lags, duration",[hl.READ_LAGS]:"Read lags, duration",[hl.UNCOMMITED_MESSAGES]:"Uncommited messages",[hl.UNREAD_MESSAGES]:"Unread messages",[hl.START_OFFSET]:"Start offset",[hl.END_OFFSET]:"End offset",[hl.COMMITED_OFFSET]:"Commited offset",[hl.READ_SESSION_ID]:"Read session ID",[hl.READER_NAME]:"Reader name",[hl.PARTITION_HOST]:"Partition host",[hl.CONNECTION_HOST]:"Connection host"},gl="partitionWriteLag",xl="partitionWriteIdleTime",yl={[gl]:"write lag",[xl]:"write idle time"},bl="consumerWriteLag",fl="consumerReadLag",jl="consumerReadIdleTime",Nl={[bl]:"write lag",[fl]:"read lag",[jl]:"read idle time"},Sl=[hl.PARTITION_ID,hl.STORE_SIZE,hl.WRITE_SPEED,hl.WRITE_LAGS,hl.START_OFFSET,hl.END_OFFSET,hl.PARTITION_HOST],Tl=Object.values(hl),wl=e=>{let{consumers:t,selectedConsumer:a,onSelectedConsumerChange:r,selectDisabled:s,partitions:i,onSearchChange:o,hiddenColumns:l,onHiddenColumnsChange:c,initialColumnsIds:u}=e;const[m,p]=n.useState(""),[h,v]=n.useState("");n.useEffect((()=>{if(!i)return;const e=new RegExp(Ye()(h),"i"),t=new RegExp(Ye()(m),"i"),a=i.filter((a=>{const{partitionId:n,readerName:r,readSessionId:s,partitionNodeId:i,connectionNodeId:o,partitionHost:l,connectionHost:c}=a,d=e.test(n),u=[r,s,i,o,l,c].filter(Boolean).map(String),m=0===u.length||u.some((e=>t.test(e)));return d&&m}));o(a)}),[h,m,i,o]);const g=n.useMemo((()=>{const e=t&&t.length?t.map((e=>({value:e,content:e}))):[];return[{value:"",content:pl("controls.consumerSelector.emptyOption")},...e]}),[t]),x=n.useMemo((()=>{const e=[];for(const t of u){const a=t===hl.PARTITION_ID,n={title:vl[t],selected:Boolean(!l.includes(t)),id:t,required:a,sticky:a?"start":void 0};a?e.unshift(n):e.push(n)}return e}),[u,l]),y=e=>(0,d.jsx)("div",{className:Ll("select-option",{empty:""===e.value}),children:e.content});return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)(I.P,{className:Ll("consumer-select"),label:pl("controls.consumerSelector"),options:g,value:[a],onUpdate:e=>{r(e[0])},filterable:t&&t.length>5,disabled:s||!t||!t.length,renderOption:y,renderSelectedOption:y}),(0,d.jsx)(dl.o,{onChange:e=>{v(e)},placeholder:pl("controls.partitionSearch"),className:Ll("search",{partition:!0}),value:h}),(0,d.jsx)(dl.o,{onChange:e=>{p(e)},placeholder:pl("controls.generalSearch"),className:Ll("search",{general:!0}),value:m}),(0,d.jsx)(cl.N,{popupWidth:242,items:x,showStatus:!0,onUpdate:e=>{const t=[...l];e.forEach((e=>{e.selected||l.includes(e.id)?e.selected&&l.includes(e.id)&&t.splice(l.indexOf(e.id)):t.push(e.id)})),c(t)},sortable:!1},"TableColumnSetup")]})},El=(0,c.cn)("ydb-diagnostics-partitions-columns-header"),Cl=e=>{let{title:t}=e;return(0,d.jsx)("div",{className:El("multiline"),children:t})},Il=()=>(0,d.jsx)("div",{className:El("read-session"),children:vl[hl.READ_SESSION_ID]}),Pl=()=>(0,d.jsx)(ft,{className:El("lags"),text:vl[hl.WRITE_LAGS],popoverContent:(0,d.jsx)(Ot,{text:pl("lagsPopover.writeLags"),type:"write"})}),Rl=()=>(0,d.jsx)(ft,{className:El("lags"),text:vl[hl.READ_LAGS],popoverContent:(0,d.jsx)(Ot,{text:pl("lagsPopover.readLags"),type:"read"})}),Dl=()=>(0,d.jsx)(ft,{className:El("messages"),text:vl[hl.UNREAD_MESSAGES],popoverContent:(0,d.jsx)("div",{className:El("messages-popover-content"),children:pl("headers.unread")})}),_l=()=>(0,d.jsx)(ft,{className:El("messages"),text:vl[hl.UNCOMMITED_MESSAGES],popoverContent:(0,d.jsx)("div",{className:El("messages-popover-content"),children:pl("headers.uncommited")})}),Al=(0,c.cn)("ydb-diagnostics-partitions-columns"),Ol=[{name:hl.PARTITION_ID,header:(0,d.jsx)(Cl,{title:vl[hl.PARTITION_ID]}),sortAccessor:e=>(0,En.kE)(e.partitionId)&&Number(e.partitionId),align:fe.ZP.LEFT,render:e=>{let{row:t}=e;return t.partitionId}},{name:hl.STORE_SIZE,header:(0,d.jsx)(Cl,{title:vl[hl.STORE_SIZE]}),align:fe.ZP.RIGHT,render:e=>{let{row:t}=e;return(0,O.td)(t.storeSize)}},{name:hl.WRITE_SPEED,header:vl[hl.WRITE_SPEED],align:fe.ZP.LEFT,resizeMinWidth:140,sortAccessor:e=>e.writeSpeed.perMinute,render:e=>{let{row:t}=e;return(0,d.jsx)(pt,{data:t.writeSpeed})}},{name:hl.READ_SPEED,header:vl[hl.READ_SPEED],align:fe.ZP.LEFT,resizeMinWidth:140,sortAccessor:e=>{var t;return null===(t=e.readSpeed)||void 0===t?void 0:t.perMinute},render:e=>{let{row:t}=e;return(0,d.jsx)(pt,{data:t.readSpeed})}},{name:hl.WRITE_LAGS,header:(0,d.jsx)(Pl,{}),className:Al("lags-header"),sub:[{name:gl,header:yl[gl],align:fe.ZP.RIGHT,render:e=>{let{row:t}=e;return(0,O.gC)(t.partitionWriteLag)}},{name:xl,header:yl[xl],align:fe.ZP.RIGHT,render:e=>{let{row:t}=e;return(0,O.gC)(t.partitionWriteIdleTime)}}]},{name:hl.READ_LAGS,header:(0,d.jsx)(Rl,{}),className:Al("lags-header"),sub:[{name:bl,header:Nl[bl],align:fe.ZP.RIGHT,render:e=>{let{row:t}=e;return(0,O.gC)(t.consumerWriteLag)}},{name:fl,header:Nl[fl],align:fe.ZP.RIGHT,render:e=>{let{row:t}=e;return(0,O.gC)(t.consumerReadLag)}},{name:jl,header:Nl[jl],align:fe.ZP.RIGHT,render:e=>{let{row:t}=e;return(0,O.gC)(t.consumerReadIdleTime)}}]},{name:hl.UNCOMMITED_MESSAGES,header:(0,d.jsx)(_l,{}),align:fe.ZP.RIGHT,render:e=>{let{row:t}=e;return t.uncommitedMessages}},{name:hl.UNREAD_MESSAGES,header:(0,d.jsx)(Dl,{}),align:fe.ZP.RIGHT,render:e=>{let{row:t}=e;return t.unreadMessages}},{name:hl.START_OFFSET,header:(0,d.jsx)(Cl,{title:vl[hl.START_OFFSET]}),sortAccessor:e=>(0,En.kE)(e.startOffset)&&Number(e.startOffset),align:fe.ZP.RIGHT,render:e=>{let{row:t}=e;return t.startOffset}},{name:hl.END_OFFSET,header:(0,d.jsx)(Cl,{title:vl[hl.END_OFFSET]}),sortAccessor:e=>(0,En.kE)(e.endOffset)&&Number(e.endOffset),align:fe.ZP.RIGHT,render:e=>{let{row:t}=e;return t.endOffset}},{name:hl.COMMITED_OFFSET,header:(0,d.jsx)(Cl,{title:vl[hl.COMMITED_OFFSET]}),sortAccessor:e=>(0,En.kE)(e.commitedOffset)&&Number(e.commitedOffset),align:fe.ZP.RIGHT,render:e=>{let{row:t}=e;return t.commitedOffset}},{name:hl.READ_SESSION_ID,header:(0,d.jsx)(Il,{}),align:fe.ZP.LEFT,width:150,render:e=>{let{row:t}=e;return t.readSessionId?(0,d.jsx)(Ca.A,{name:t.readSessionId,showStatus:!1,hasClipboardButton:!0}):"\u2013"}},{name:hl.READER_NAME,header:(0,d.jsx)(Cl,{title:vl[hl.READER_NAME]}),align:fe.ZP.LEFT,width:150,render:e=>{let{row:t}=e;return t.readerName?(0,d.jsx)(Ca.A,{name:t.readerName,showStatus:!1,hasClipboardButton:!0}):"\u2013"}},{name:hl.PARTITION_HOST,header:(0,d.jsx)(Cl,{title:vl[hl.PARTITION_HOST]}),align:fe.ZP.LEFT,width:200,render:e=>{let{row:t}=e;return t.partitionNodeId&&t.partitionHost?(0,d.jsx)(Ca.A,{name:t.partitionHost,path:(0,ci.a3)(t.partitionNodeId),showStatus:!1,hasClipboardButton:!0}):"\u2013"}},{name:hl.CONNECTION_HOST,header:(0,d.jsx)(Cl,{title:vl[hl.CONNECTION_HOST]}),align:fe.ZP.LEFT,width:200,render:e=>{let{row:t}=e;return t.connectionNodeId&&t.connectionHost?(0,d.jsx)(Ca.A,{name:t.connectionHost,path:(0,ci.a3)(t.connectionNodeId),showStatus:!1,hasClipboardButton:!0}):"\u2013"}}],kl=Ol.filter((e=>Sl.includes(e.name))),Ll=(0,c.cn)("ydb-diagnostics-partitions"),Ml=e=>{let{path:t,database:a}=e;const r=(0,b.zL)(),[s,i]=n.useState([]),o=(0,b.ix)((e=>it(e,t,a))),[l]=(0,b.Rj)(),{selectedConsumer:c}=(0,b.ix)((e=>e.partitions)),{currentData:u,isFetching:m,error:p}=at.useGetTopicQuery({path:t,database:a}),h=m&&void 0===u,{currentData:v,isFetching:g,error:x}=ol.W.useGetNodesListQuery(void 0),f=g&&void 0===v,j=(0,b.ix)(ol.s),[N,S]=(0,b.yu)(y.ZY),[T,w]=(e=>{const[t,a]=n.useState([]),[r,s]=n.useState([]);return n.useEffect((()=>{e?(a(Ol),s(Tl)):(a(kl),s(Sl))}),[e]),[t,r]})(c),E=h?ie.CN:{path:t,database:a,consumerName:c},{currentData:C,isFetching:I,error:P}=ll.TB.useGetPartitionsQuery(E,{pollingInterval:l}),D=I&&void 0===C,_=C,A=n.useMemo((()=>function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return null===e||void 0===e?void 0:e.map((e=>{const a=e.partitionNodeId&&t?t.get(e.partitionNodeId):void 0,n=e.connectionNodeId&&t?t.get(e.connectionNodeId):void 0;return{...e,partitionHost:a,connectionHost:n}}))}(_,j)),[_,j]);n.useEffect((()=>{const e=!h&&!o,t=c&&o&&!o.includes(c);(e||t)&&r((0,ll.M$)(""))}),[r,h,c,o]);const O=n.useMemo((()=>T.filter((e=>!N.includes(e.name)))),[T,N]),k=e=>{S(e)},L=e=>{r((0,ll.M$)(e))},M=h||f||D,q=x||p||P;return(0,d.jsxs)("div",{className:Ll(),children:[(0,d.jsx)("div",{className:Ll("controls"),children:(0,d.jsx)(wl,{consumers:o,selectedConsumer:c,onSelectedConsumerChange:L,selectDisabled:Boolean(q)||M,partitions:A,onSearchChange:i,hiddenColumns:N,onHiddenColumnsChange:k,initialColumnsIds:w})}),q?(0,d.jsx)(R.V,{error:q}):null,(0,d.jsx)("div",{className:Ll("table-wrapper"),children:(0,d.jsx)("div",{className:Ll("table-content"),children:C?M?(0,d.jsx)(le.h,{className:Ll("loader")}):(0,d.jsx)(oe.G,{columnsWidthLSKey:"partitionsColumnsWidth",wrapperClassName:Ll("table"),data:s,columns:O,settings:y.LE,emptyDataMessage:pl("table.emptyDataMessage")}):null})})]})};var ql=a(79734),zl=a(95408),Fl=a(45998);const Ql=JSON.parse('{"date-format":"MM/DD/YYYY","date-time-format":"MM/DD/YYYY HH:mm"}'),Ul=JSON.parse('{"date-format":"DD.MM.YYYY","date-time-format":"DD.MM.YYYY HH:mm"}'),Bl=(0,ve.wZ)("ydb-date-range",{ru:Ul,en:Ql});var Gl=a(396);function $l(e){var t,a,n,r;return"relative"===(null===e||void 0===e||null===(t=e.start)||void 0===t?void 0:t.type)&&"relative"===(null===e||void 0===e||null===(a=e.end)||void 0===a?void 0:a.type)?"s":"relative"===(null===e||void 0===e||null===(n=e.start)||void 0===n?void 0:n.type)||"relative"===(null===e||void 0===e||null===(r=e.end)||void 0===r?void 0:r.type)?"m":"l"}const Hl=(0,c.cn)("date-range"),Vl={start:{value:"now-1h",type:"relative"},end:{value:"now",type:"relative"}},Zl=e=>{let{from:t,to:a,className:r,onChange:s}=e;const i=n.useCallback((e=>null===s||void 0===s?void 0:s(function(e){var t,a,n,r,s,i;return{from:"relative"===(null===e||void 0===e||null===(t=e.start)||void 0===t?void 0:t.type)?e.start.value.toString():String(null===(a=(0,Gl.J)(null===e||void 0===e||null===(n=e.start)||void 0===n?void 0:n.value))||void 0===a?void 0:a.valueOf()),to:"relative"===(null===e||void 0===e||null===(r=e.end)||void 0===r?void 0:r.type)?e.end.value.toString():String(null===(s=(0,Gl.J)(null===e||void 0===e||null===(i=e.end)||void 0===i?void 0:i.value))||void 0===s?void 0:s.valueOf())}}(e))),[s]),o=n.useMemo((()=>{if(t||a)return function(e){var t,a;const n=(0,Gl.KN)(null!==(t=e.from)&&void 0!==t?t:""),r=(0,Gl.KN)(null!==(a=e.to)&&void 0!==a?a:"");return{start:e.from?{type:n?"relative":"absolute",value:n?e.from:(0,Gl.J)(Number(e.from))}:null,end:e.to?{type:r?"relative":"absolute",value:r?e.to:(0,Gl.J)(Number(e.to))}:null}}({from:t,to:a})}),[t,a]),l=Intl.DateTimeFormat().resolvedOptions().timeZone;return(0,d.jsx)("div",{className:Hl(null,r),children:(0,d.jsx)(Fl.H,{withPresets:!0,className:Hl("range-input",{[$l(o)]:!0}),timeZone:l,value:o||Vl,allowNullableValues:!0,size:"m",format:Bl("date-time-format"),onUpdate:i,placeholder:`${Bl("date-time-format")} - ${Bl("date-time-format")}`,withApplyButton:!0})})},Wl=e=>{let{database:t}=e;const[a]=(0,b.Rj)(),r=(0,b.ix)((e=>e.executeTopQueries)),{currentData:s,isFetching:i,error:o}=ps.MU.useGetRunningQueriesQuery({database:t,filters:r},{pollingInterval:a});return(0,d.jsxs)(n.Fragment,{children:[o?(0,d.jsx)(R.V,{error:(0,ce.fV)(o)}):null,(0,d.jsx)($e.l.Table,{loading:i&&void 0===s,children:(0,d.jsx)(oe.G,{emptyDataMessage:qs("no-data"),columnsWidthLSKey:"runningQueriesColumnsWidth",columns:Xs,data:s||[],settings:Ls})})]})},Jl=(0,c.cn)("kv-top-queries"),Kl=e=>{let{database:t,onRowClick:a}=e;const[r]=(0,b.Rj)(),s=(0,b.ix)((e=>e.executeTopQueries)),{currentData:i,isFetching:o,error:l}=ps.MU.useGetTopQueriesQuery({database:t,filters:s},{pollingInterval:r}),{result:c}=i||{},u=Ks.map((e=>{return{...e,sortable:(t=e.name,Object.values(Ds).includes(t))};var t}));return(0,d.jsxs)(n.Fragment,{children:[l?(0,d.jsx)(R.V,{error:(0,ce.fV)(l)}):null,(0,d.jsx)($e.l.Table,{loading:o&&void 0===i,children:(0,d.jsx)(oe.G,{emptyDataMessage:qs("no-data"),columnsWidthLSKey:Fs,columns:u,data:c||[],settings:Ls,onRowClick:e=>a(e.QueryText),rowClassName:()=>Jl("row")})})]})},Yl=(0,c.cn)("kv-top-queries"),Xl={top:"top",running:"running"},ec=[{value:Xl.top,get content(){return qs("mode_top")}},{value:Xl.running,get content(){return qs("mode_running")}}],tc=zl.z.nativeEnum(Xl).catch(Xl.top),ac=e=>{let{tenantName:t}=e;const a=(0,b.zL)(),r=(0,ka.TH)(),i=(0,ka.k6)(),[o=Xl.top,l]=(0,s.useQueryParam)("queryMode",s.StringParam),c=tc.parse(o),u=c===Xl.top,m=(0,b.ix)((e=>e.executeTopQueries)),p=n.useCallback((e=>{a((0,ms.B8)({input:e}));const t=(0,w.mB)(r),n=(0,ze.Sj)({...t,[j.bS]:j.m2.query,[ze.XV.queryTab]:j._0.newQuery});i.push(n)}),[a,i,r]);return(0,d.jsxs)($e.l,{children:[(0,d.jsxs)($e.l.Controls,{children:[(0,d.jsx)(ql.E,{options:ec,value:c,onUpdate:l}),(0,d.jsx)(Ge.o,{value:m.text,onChange:e=>{a((0,ps.Im)({text:e}))},placeholder:qs("filter.text.placeholder"),className:Yl("search")}),u?(0,d.jsx)(Zl,{from:m.from,to:m.to,onChange:e=>{a((0,ps.Im)(e))}}):null]}),u?(0,d.jsx)(Kl,{database:t,onRowClick:p}):(0,d.jsx)(Wl,{database:t})]})};var nc=a(9345),rc=a(58660);const sc=JSON.parse('{"no-data":"No data","filters.mode.immediate":"Immediate","filters.mode.history":"Historical","description":"Historical data only tracks shards with CPU load over 70%"}'),ic=JSON.parse('{"no-data":"\u041d\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0445","filters.mode.immediate":"\u041c\u0433\u043d\u043e\u0432\u0435\u043d\u043d\u044b\u0435","filters.mode.history":"\u0418\u0441\u0442\u043e\u0440\u0438\u0447\u0435\u0441\u043a\u0438\u0435","description":"\u0418\u0441\u0442\u043e\u0440\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0445\u0440\u0430\u043d\u044f\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u043e \u0448\u0430\u0440\u0434\u0430\u0445 \u0441 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u043e\u0439 CPU \u0432\u044b\u0448\u0435 70%"}'),oc=(0,ve.wZ)("ydb-diagnostics-top-shards",{ru:ic,en:sc}),lc=e=>{let{value:t,onChange:a}=e;const r=t.mode===rc.F.Immediate?void 0:t.from,s=t.mode===rc.F.Immediate?void 0:t.to;return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsxs)(ql.E,{value:t.mode,onUpdate:e=>{if(!((e,t)=>Object.values(e).includes(t))(rc.F,e)){const t=Object.values(rc.F).join(", ");throw new Error(`Unexpected TopShards mode "${e}". Should be one of: ${t}`)}a({mode:e})},children:[(0,d.jsx)(ql.E.Option,{value:rc.F.Immediate,children:oc("filters.mode.immediate")}),(0,d.jsx)(ql.E.Option,{value:rc.F.History,children:oc("filters.mode.history")})]}),(0,d.jsx)(Zl,{from:r,to:s,onChange:e=>{a({mode:rc.F.History,...e})}})]})},cc=(0,c.cn)("top-shards"),dc={...y.LE,dynamicRender:!1,externalSort:!0,disableSortReset:!0,defaultOrder:fe.ZP.DESCENDING};function uc(e){return e?(0,O.o0)(new Date(e).getTime()):"\u2013"}function mc(e){return e?e.split(",").map((e=>({columnId:e,order:fe.ZP.DESCENDING}))):void 0}function pc(e){return e.to="now",e.from="now-1h",e}const hc=e=>{let{tenantName:t,path:a,type:r}=e;const s=(0,b.zL)(),i=(0,ka.TH)(),[o]=(0,b.Rj)(),l=(0,b.ix)((e=>e.shardsWorkload)),[c,u]=n.useState((()=>{const e={...l};return e.mode||(e.mode=rc.F.Immediate),e.from||e.to||pc(e),e})),[m,p]=n.useState(Cs),{currentData:h,isFetching:v,error:g}=nc.Ag.useSendShardQueryQuery({database:t,path:a,sortOrder:(x=m,x?x.split(",").map((e=>({columnId:e,order:"DESC"}))):void 0),filters:c},{pollingInterval:o});var x;const y=v&&void 0===h,{result:f}=null!==h&&void 0!==h?h:{},j=e=>{p(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return(Array.isArray(e)?e:[e]).map((e=>{let{columnId:t}=e;return t})).join(",")}(e))},N=e=>{const t={...e};if(!l.from&&!l.to&&!e.from&&!e.to)switch(e.mode){case rc.F.Immediate:t.from=t.to=void 0;break;case rc.F.History:pc(t)}s((0,nc.K2)(e)),u((e=>({...e,...t})))},S=n.useMemo((()=>{const e=((e,t)=>[yi(e,t),bi,fi,ji,Ni,Ti])(t,i),a=e.map((e=>({...e,sortable:_s(e.name)})));return c.mode===rc.F.History&&(a.splice(5,0,{name:Is,render:e=>{let{row:t}=e;return uc(t.PeakTime)},sortable:!1}),a.push({name:Ps,render:e=>{let{row:t}=e;return uc(t.IntervalEnd)}})),a}),[c.mode,i,t]);return(0,d.jsxs)($e.l,{children:[(0,d.jsx)($e.l.Controls,{children:(0,d.jsx)(lc,{value:c,onChange:N})}),c.mode===rc.F.History&&(0,d.jsx)("div",{className:cc("hint"),children:oc("description")}),g?(0,d.jsx)(R.V,{error:(0,ce.fV)(g)}):null,(0,d.jsx)($e.l.Table,{loading:y,children:g&&!f?null:!f||(0,me.Jp)(r)?oc("no-data"):(0,d.jsx)(oe.G,{columnsWidthLSKey:di,columns:S,data:f,settings:dc,onSort:j,sortOrder:mc(m)})})]})},vc=(0,c.cn)("kv-tenant-diagnostics");const gc=function(e){const t=n.useRef(null),a=(0,b.zL)(),{diagnosticsTab:i=j.qQ.overview}=(0,b.ix)((e=>e.tenant)),[o]=(0,s.useQueryParams)({name:s.StringParam,schema:s.StringParam,backend:s.StringParam,clusterName:s.StringParam}),l=(0,me.dw)(e.type)?e.path:e.tenantName,c=(0,me.dw)(e.type)||e.path===e.tenantName,u=(0,E.bq)(),m=c?yo({hasFeatureFlags:u}):xo(e.type);let p=m.find((e=>e.id===i));return p||(p=m[0]),n.useEffect((()=>{p&&p.id!==i&&a((0,C.$v)(p.id))}),[p,i,a]),(0,d.jsxs)("div",{className:vc(),ref:t,children:[p?(0,d.jsx)(r.ql,{children:(0,d.jsx)("title",{children:p.title})}):null,(()=>{var e;return(0,d.jsx)("div",{className:vc("header-wrapper"),children:(0,d.jsxs)("div",{className:vc("tabs"),children:[(0,d.jsx)(N.m,{size:"l",items:m,activeTab:null===(e=p)||void 0===e?void 0:e.id,wrapTo:(e,t)=>{let{id:a}=e;const n=(0,w.ax)(w.ZP.tenant,void 0,{...o,[ze.XV.diagnosticsTab]:a});return(0,d.jsx)(S.rU,{to:n,className:vc("tab"),children:t},a)},allowNotSelected:!0}),(0,d.jsx)(T.q,{})]})})})(),(0,d.jsx)("div",{className:vc("page-wrapper"),children:(()=>{var a;const{type:n,path:r}=e;switch(null===(a=p)||void 0===a?void 0:a.id){case j.qQ.overview:return(0,d.jsx)($i,{type:n,tenantName:l,path:r,additionalTenantProps:e.additionalTenantProps,additionalNodesProps:e.additionalNodesProps});case j.qQ.schema:return(0,d.jsx)(qe,{path:r,tenantName:l,type:n,extended:!0});case j.qQ.topQueries:return(0,d.jsx)(ac,{tenantName:l});case j.qQ.topShards:return(0,d.jsx)(hc,{tenantName:l,path:r,type:n});case j.qQ.nodes:return(0,d.jsx)(ne.G,{path:r,database:l,additionalNodesProps:e.additionalNodesProps,parentContainer:t.current});case j.qQ.tablets:return(0,d.jsx)(se.J,{path:r,database:l});case j.qQ.storage:return(0,d.jsx)(re.V,{database:l,parentContainer:t.current});case j.qQ.network:return(0,d.jsx)(rl,{tenantName:l});case j.qQ.describe:return(0,d.jsx)(ia,{path:r,database:l,type:n});case j.qQ.hotKeys:return(0,d.jsx)(Ro,{path:r,database:l});case j.qQ.graph:return(0,d.jsx)(ae,{path:r,database:l});case j.qQ.consumers:return(0,d.jsx)(Kt,{path:r,database:l,type:n});case j.qQ.partitions:return(0,d.jsx)(Ml,{path:r,database:l});case j.qQ.configs:return(0,d.jsx)(Je,{database:l});default:return(0,d.jsx)("div",{children:"No data..."})}})()})]})},xc=JSON.parse('{"controls.query-mode-selector_type":"Query type:","tabs.newQuery":"Editor","tabs.history":"History","tabs.saved":"Saved","history.empty":"History is empty","history.empty-search":"Search result is empty","saved.empty":"There are no saved queries","delete-dialog.header":"Delete query","delete-dialog.question":"Are you sure you want to delete query","delete-dialog.delete":"Delete","delete-dialog.cancel":"Cancel","preview.title":"Preview","preview.not-available":"Preview is not available","preview.close":"Close preview","method-description.script":"For YQL-scripts combining DDL and DML.\\nAPI call: schema.scripting","method-description.scan":"Read-only queries, potentially reading a lot of data.\\nAPI call: table.ExecuteScan","method-description.data":"DML queries for changing and fetching data in serialization mode.\\nAPI call: table.executeDataQuery","method-description.query":"Any query. An experimental API call supposed to replace all existing methods.\\nAPI Call: query.ExecuteScript","method-description.pg":"Queries in postgresql syntax.\\nAPI call: query.ExecuteScript","transaction-mode-description.serializable":"Provides the strictest isolation level for custom transactions","transaction-mode-description.onlinero":"Each read operation in the transaction is reading the data that is most recent at execution time","transaction-mode-description.stalero":"Read operations within a transaction may return results that are slightly out-of-date (lagging by fractions of a second)","transaction-mode-description.snapshot":"All the read operations within a transaction access the database snapshot. All the data reads are consistent","transaction-mode-description.implicit":"No transaction","tracing-level-description.basic":"Spans of main component operations","tracing-level-description.detailed":"Highest detail applicable for diagnosing problems in production","tracing-level-description.diagnostic":"Detailed debugging information for developers","tracing-level-description.off":"No tracing","tracing-level-description.toplevel":"Lowest detail, no more than two spans per request to the component","tracing-level-description.trace":"Very detailed debugging information","statistics-mode-description.none":"Don\'t collect statistics","statistics-mode-description.basic":"Collect statistics","statistics-mode-description.full":"Collect statistics and query plan","statistics-mode-description.profile":"Collect statistics for individual tasks","query-duration.description":"Duration of server-side query execution","action.send-query":"Send query","action.send-selected-query":"Send selected query","action.previous-query":"Previous query in history","action.next-query":"Next query in history","action.save-query":"Save query","action.stop":"Stop","filter.text.placeholder":"Search by query text...","gear.tooltip":"Query execution settings have been changed for ","banner.query-settings.message":"Query results are displayed for ","history.queryText":"Query text","history.endTime":"End time","history.duration":"Duration"}'),yc=(0,ve.wZ)("ydb-query-editor",{en:xc}),bc=(0,c.cn)("ydb-queries-history"),fc="queriesHistoryTableColumnsWidth";const jc=function(e){let{changeUserInput:t}=e;const a=(0,b.zL)(),n=(0,b.ix)(ms.qV),r=(0,b.ix)(ms.vS),s=[...n].reverse(),i=[{name:"queryText",header:yc("history.queryText"),render:e=>{let{row:t}=e;return(0,d.jsx)("div",{className:bc("query"),children:(0,d.jsx)(gs,{value:t.queryText,maxQueryHeight:ks})})},sortable:!1,width:600},{name:"EndTime",header:yc("history.endTime"),render:e=>{let{row:t}=e;return t.endTime?(0,O.o0)(t.endTime.toString()):"-"},align:"right",width:200,sortable:!1},{name:"Duration",header:yc("history.duration"),render:e=>{let{row:t}=e;return t.durationUs?(0,tt.zm)((0,tt.BO)(t.durationUs)):"-"},align:"right",width:150,sortable:!1}];return(0,d.jsxs)($e.l,{className:bc(),children:[(0,d.jsx)($e.l.Controls,{children:(0,d.jsx)(Ge.o,{value:r,onChange:e=>{a((0,ms.u$)(e))},placeholder:yc("filter.text.placeholder"),className:bc("search")})}),(0,d.jsx)($e.l.Table,{children:(0,d.jsx)(oe.G,{columnsWidthLSKey:fc,columns:i,data:s,settings:Ls,emptyDataMessage:yc(r?"history.empty-search":"history.empty"),onRowClick:e=>(t({input:e.queryText}),void a((0,C.jk)(j._0.newQuery))),rowClassName:()=>bc("table-row")})})]})};var Nc=a(84433),Sc=a(77212);const Tc=(0,a(30410).k)((async()=>({Editor:(await Promise.resolve().then(a.bind(a,93757))).default})),"Editor");var wc=a(6544),Ec=a(90117);const Cc=new Set(["PlanNodeId","PlanNodeType","Node Type","Plans"]);function Ic(e){const t=[];if(e.Operators){const a=[];for(const t of e.Operators){const e={name:t.Name,items:[]};for(const[a,n]of Object.entries(t)){if("Name"===a)continue;const t="string"===typeof n?n:JSON.stringify(n);e.items.push({name:a,value:t})}a.push(e)}t.push({group:"Operators",stats:a})}if("Connection"===e.PlanNodeType){const a=[];for(const[t,n]of Object.entries(e))Cc.has(t)||a.push({name:t,value:"string"===typeof n?n:JSON.stringify(n)});a.length>0&&t.push({group:"Attributes",stats:a})}if(e.Stats){const a=[];for(const[t,n]of Object.entries(e.Stats))a.push({name:t,value:"string"===typeof n?n:JSON.stringify(n)});t.push({group:"Stats",stats:a})}return t}function Pc(e){switch(e.PlanNodeType){case"Connection":return"connection";case"ResultSet":return"result";case"Query":return"query";default:return"stage"}}function Rc(e){const t=[],a=[];const n=e,r={name:String(n.PlanNodeId),data:{id:n.PlanNodeId,type:Pc(n),name:n["Node Type"]}};return t.push(r),function e(){let n=arguments.length>1?arguments[1]:void 0;(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach((r=>{var s;const i={name:String(r.PlanNodeId),data:{id:r.PlanNodeId,type:Pc(r),name:r["Node Type"],operators:null===(s=r.Operators)||void 0===s?void 0:s.map((e=>e.Name)),stats:Ic(r),tables:r.Tables}};t.push(i),a.push({from:n,to:i.name}),e(r.Plans,i.name)}))}(n.Plans,r.name),{nodes:t,links:a}}function Dc(e){const t=[],a=e.map((e=>({node:e})));for(;a.length>0;){var n;const{node:e,subNodes:r}=a.pop(),s=e.Plans,i=null===(n=e.Operators)||void 0===n?void 0:n[0],o=r||t;if(i){const{"A-Cpu":e,"A-Rows":t,"E-Cost":n,"E-Rows":r,"E-Size":l,SsaProgram:c,Name:d,...u}=i,m={name:d,operationParams:u,aCpu:e,aRows:t,eCost:n,eRows:r,eSize:l,children:[]};if(o.push(m),s)for(let i=s.length-1;i>=0;i--)a.push({node:s[i],subNodes:m.children})}else if(s)for(let t=s.length-1;t>=0;t--)a.push({node:s[t],subNodes:o})}return t}const _c={v2:"0.2"},Ac=Object.values(_c),Oc=g.h.injectEndpoints({endpoints:e=>({explainQuery:e.mutation({queryFn:async(e,t)=>{let{query:a,database:n,querySettings:r,enableTracingLevel:s,queryId:i}=e,{signal:o,dispatch:l}=t,c="explain",d=ce.jM.yql;l((0,ms.Ae)({type:Ec.X.EXPLAIN,queryId:i,isLoading:!0})),"pg"===(null===r||void 0===r?void 0:r.queryMode)?(c="explain-query",d=ce.jM.pg):null!==r&&void 0!==r&&r.queryMode&&(c=`explain-${null===r||void 0===r?void 0:r.queryMode}`);try{const e=await window.api.sendQuery({query:a,database:n,action:c,syntax:d,stats:null===r||void 0===r?void 0:r.statisticsMode,tracingLevel:null!==r&&void 0!==r&&r.tracingLevel&&s?wc.u[null===r||void 0===r?void 0:r.tracingLevel]:void 0,transaction_mode:"implicit"===(null===r||void 0===r?void 0:r.transactionMode)||null===r||void 0===r?void 0:r.transactionMode,timeout:(0,En.kE)(null===r||void 0===r?void 0:r.timeout)?1e3*Number(null===r||void 0===r?void 0:r.timeout):void 0,query_id:i},{signal:o});if((0,ce.gW)(e))return l((0,ms.Ae)({type:Ec.X.EXPLAIN,error:e,queryId:i,isLoading:!1})),{error:e};const t=(e=>{const{plan:t,ast:a}=(0,ce.CC)(e);if(!t)return{ast:a};const{tables:n,meta:r,Plan:s,SimplifiedPlan:i}=(0,ce.y5)(t);if(-1===Ac.indexOf(r.version))return{plan:{pristine:t,version:r.version},ast:a};let o,l=[],c=[];if(s){const e=Rc(s);l=e.links,c=e.nodes}return i&&(o=Dc([i])),{plan:{links:l,nodes:c,tables:n,version:r.version,pristine:t},simplifiedPlan:{plan:o,pristine:i},ast:a}})(e);return l((0,ms.Ae)({type:Ec.X.EXPLAIN,data:t,queryId:i,isLoading:!1})),{data:null}}catch(u){return l((0,ms.Ae)({type:Ec.X.EXPLAIN,error:u,queryId:i,isLoading:!1})),{error:u}}}})}),overrideExisting:"throw"});var kc=a(89003);function Lc(e,t){const a=new Map(Object.entries(e)),n=new Map(Object.entries(t));return Array.from(a.keys()).filter((e=>a.has(e)&&void 0!==a.get(e)&&a.get(e)!==n.get(e)))}const Mc=JSON.parse('{"action.settings":"Query settings","form.query-mode":"Query type","form.timeout":"Timeout","form.transaction-mode":"Transaction mode","form.statistics-mode":"Statistics collection mode","form.tracing-level":"Tracing level","form.limit-rows":"Limit rows","button-done":"Save","button-cancel":"Cancel","form.timeout.seconds":"sec","form.validation.timeout":"Must be positive","form.validation.limitRows":"Must be between 1 and 100000","description.default":" (default)","docs":"Documentation"}'),qc=JSON.parse('{"action.settings":"\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0437\u0430\u043f\u0440\u043e\u0441\u0430","form.query-mode":"\u0422\u0438\u043f \u0437\u0430\u043f\u0440\u043e\u0441\u0430","form.timeout":"\u0422\u0430\u0439\u043c\u0430\u0443\u0442","form.transaction-mode":"\u0423\u0440\u043e\u0432\u0435\u043d\u044c \u0438\u0437\u043e\u043b\u044f\u0446\u0438\u0438","form.statistics-mode":"\u0420\u0435\u0436\u0438\u043c \u0441\u0431\u043e\u0440\u0430 \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0438","form.tracing-level":"Tracing level","form.limit-rows":"\u041b\u0438\u043c\u0438\u0442 \u0441\u0442\u0440\u043e\u043a","button-done":"\u0413\u043e\u0442\u043e\u0432\u043e","button-cancel":"\u041e\u0442\u043c\u0435\u043d\u0438\u0442\u044c","form.timeout.seconds":"\u0441\u0435\u043a","form.validation.timeout":"\u0422\u0430\u0439\u043c\u0430\u0443\u0442 \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u043f\u043e\u043b\u043e\u0436\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u043c","form.validation.limitRows":"\u041b\u0438\u043c\u0438\u0442 \u0441\u0442\u0440\u043e\u043a \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u043c\u0435\u0436\u0434\u0443 1 \u0438 100000","description.default":" (default)","docs":"\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f"}'),zc=(0,ve.wZ)("ydb-query-settings-dialog",{en:Mc,ru:qc}),Fc=[{value:ce.cy.implicit,content:ce.Nf[ce.cy.implicit],text:yc("transaction-mode-description.implicit"),isDefault:!0},{value:ce.cy.serializable,content:ce.Nf[ce.cy.serializable],text:yc("transaction-mode-description.serializable")},{value:ce.cy.onlinero,content:ce.Nf[ce.cy.onlinero],text:yc("transaction-mode-description.onlinero")},{value:ce.cy.stalero,content:ce.Nf[ce.cy.stalero],text:yc("transaction-mode-description.stalero")},{value:ce.cy.snapshot,content:ce.Nf[ce.cy.snapshot],text:yc("transaction-mode-description.snapshot")}],Qc=[{value:ce.wZ.query,content:ce.U4[ce.wZ.query],text:yc("method-description.query"),isDefault:!0},{value:ce.wZ.script,content:ce.U4[ce.wZ.script],text:yc("method-description.script")},{value:ce.wZ.scan,content:ce.U4[ce.wZ.scan],text:yc("method-description.scan")},{value:ce.wZ.data,content:ce.U4[ce.wZ.data],text:yc("method-description.data")},{value:ce.wZ.pg,content:ce.U4[ce.wZ.pg],text:yc("method-description.pg")}],Uc=[{value:ce.$E.none,content:ce.Ie[ce.$E.none],text:yc("statistics-mode-description.none"),isDefault:!0},{value:ce.$E.basic,content:ce.Ie[ce.$E.basic],text:yc("statistics-mode-description.basic")},{value:ce.$E.full,content:ce.Ie[ce.$E.full],text:yc("statistics-mode-description.full")},{value:ce.$E.profile,content:ce.Ie[ce.$E.profile],text:yc("statistics-mode-description.profile")}],Bc=[{value:ce.Rm.off,content:ce.Vj[ce.Rm.off],text:yc("tracing-level-description.off")},{value:ce.Rm.toplevel,content:ce.Vj[ce.Rm.toplevel],text:yc("tracing-level-description.toplevel")},{value:ce.Rm.basic,content:ce.Vj[ce.Rm.basic],text:yc("tracing-level-description.basic")},{value:ce.Rm.detailed,content:ce.Vj[ce.Rm.detailed],text:yc("tracing-level-description.detailed"),isDefault:!0},{value:ce.Rm.diagnostic,content:ce.Vj[ce.Rm.diagnostic],text:yc("tracing-level-description.diagnostic")},{value:ce.Rm.trace,content:ce.Vj[ce.Rm.trace],text:yc("tracing-level-description.trace")}],Gc={transactionMode:{title:zc("form.transaction-mode"),options:Fc},queryMode:{title:zc("form.query-mode"),options:Qc},statisticsMode:{title:zc("form.statistics-mode"),options:Uc},tracingLevel:{title:zc("form.tracing-level"),options:Bc},timeout:{title:zc("form.timeout")},limitRows:{title:zc("form.limit-rows")}};function $c(e){let{currentSettings:t,defaultSettings:a}=e;const n=Lc(t,a),r={};return n.forEach((e=>{const a=Gc[e],n=t[e];if("options"in a){var s;const e=null===(s=a.options.find((e=>e.value===n)))||void 0===s?void 0:s.content;e&&(r[a.title]=e)}else n&&(r[a.title]=String(n))})),r}var Hc=a(14709);const Vc=()=>{const[e,t]=(0,Hc.y)(y.RE);let a;try{a=ce.J7.parse(e)}catch(n){a=void 0}return[a,t]};var Zc=a(66213);const Wc=()=>{const[e,t]=(0,Hc.y)(y.Rn),[a]=Vc(),[n]=(0,Zc.d)(),r=a?Lc(a,ce.hl):[],s=n?Lc(n,ce.hl):[],i=r.length>0,o=a?$c({currentSettings:a,defaultSettings:ce.hl}):{},l=n?$c({currentSettings:n,defaultSettings:ce.hl}):{},c=e&&Date.now()-e<1e3*y.nU;return{isBannerShown:i&&!c,isIndicatorShown:i&&c,closeBanner:()=>t(Date.now()),resetBanner:()=>t(void 0),changedCurrentSettings:s,changedCurrentSettingsDescriptions:l,changedLastExucutionSettings:r,changedLastExecutionSettingsDescriptions:o}},Jc="s-expression",Kc="yql";var Yc=a(44822);let Xc;!function(e){e.triggerCollapse="triggerCollapse",e.triggerExpand="triggerExpand",e.clear="clear"}(Xc||(Xc={}));const ed=e=>{localStorage.setItem(e,"true")},td=e=>{localStorage.removeItem(e)};function ad(e){return function(t,a){switch(a){case Xc.triggerCollapse:return ed(e),{...t,triggerCollapse:!0,triggerExpand:!1,collapsed:!0};case Xc.triggerExpand:return td(e),{...t,triggerCollapse:!1,triggerExpand:!0,collapsed:!1};case Xc.clear:return td(e),{triggerCollapse:!1,triggerExpand:!1,collapsed:!1};default:return t}}}const nd=(0,c.cn)("kv-pane-visibility-button");function rd(e){let{onCollapse:t,onExpand:a,isCollapsed:r,initialDirection:s="top",className:i}=e;return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)(er.z,{view:"flat-secondary",onClick:t,className:nd({hidden:r},i),title:"Collapse",children:(0,d.jsx)(Ue.J,{data:Yc.Z,className:nd({[s]:!0})})}),(0,d.jsx)(er.z,{view:"flat-secondary",onClick:a,className:nd({hidden:!r},i),title:"Expand",children:(0,d.jsx)(Ue.J,{data:Yc.Z,className:nd({[s]:!0},"rotate")})})]})}var sd=a(90861);const id=(0,c.cn)("kv-divider");const od=function(){return(0,d.jsx)("div",{className:id()})},ld=(0,c.cn)("ydb-query-elapsed-time");function cd(e){let{className:t}=e;const[,a]=n.useState({}),[r]=n.useState(Date.now()),s=Date.now()-r;n.useEffect((()=>{const e=setInterval((()=>{a({})}),y.NO);return()=>{clearInterval(e)}}),[]);const i=s>y.RQ*y.NO?(0,Gl.x9)(s).format("hh:mm:ss"):(0,Gl.x9)(s).format("mm:ss");return(0,d.jsx)(pe._,{className:ld(null,t),children:i})}var dd=a(4140),ud=a(56963);const md=function(e){let{disabled:t}=e;const a=(0,b.zL)();return(0,d.jsx)(er.z,{onClick:()=>{a((0,ud.Xl)())},view:"flat-secondary",disabled:t,title:"Fullscreen",children:(0,d.jsx)(Ue.J,{data:dd.Z})})};var pd,hd=a(57107);function vd(){return vd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},vd.apply(this,arguments)}const gd=function(e){return n.createElement("svg",vd({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),pd||(pd=n.createElement("path",{fill:"currentColor",d:"M13.383 6.5a.309.309 0 00.305-.305V5.18a.328.328 0 00-.305-.305H11.25V2.742a.328.328 0 00-.305-.304H9.93a.309.309 0 00-.305.304v3.149c0 .355.254.609.61.609h3.148zm-7.008-.61V2.743a.328.328 0 00-.305-.304H5.055a.309.309 0 00-.305.304v2.133H2.617a.309.309 0 00-.304.305v1.015c0 .178.126.305.304.305h3.149c.33 0 .609-.254.609-.61zm0 7.618v-3.149c0-.33-.28-.609-.61-.609H2.618a.309.309 0 00-.304.305v1.015c0 .178.126.305.304.305H4.75v2.133c0 .178.127.305.305.305H6.07a.309.309 0 00.305-.305zm4.875 0v-2.133h2.133a.309.309 0 00.305-.305v-1.015a.328.328 0 00-.305-.305h-3.149c-.355 0-.609.28-.609.61v3.148c0 .178.127.305.305.305h1.015a.309.309 0 00.305-.305z"})))};var xd;const yd=(0,c.cn)("ydb-fullscreen"),bd=null!==(xd=document.getElementById("fullscreen-root"))&&void 0!==xd?xd:void 0;const fd=function(e){let{children:t,className:a}=e;const r=(0,b.ix)((e=>e.fullscreen)),s=(0,b.zL)(),i=n.useCallback((()=>{s((0,ud.vj)())}),[s]);n.useEffect((()=>{const e=e=>{"Escape"===e.key&&i()};return document.addEventListener("keydown",e,!1),()=>{document.removeEventListener("keydown",e,!1)}}),[i]);const[o,l]=n.useState(null);n.useEffect((()=>{const e=document.createElement("div");return null===bd||void 0===bd||bd.appendChild(e),e.style.display="contents",l(e),()=>{l(null),e.remove()}}),[]);const c=n.useRef(null);return n.useLayoutEffect((()=>{var e;o&&(r?null===bd||void 0===bd||bd.appendChild(o):null===(e=c.current)||void 0===e||e.appendChild(o))}),[o,r]),o?(0,d.jsx)("div",{ref:c,style:{display:"contents"},children:(0,d.jsx)(hd.h,{container:o,children:(0,d.jsxs)("div",{className:yd({fullscreen:r},a),children:[(0,d.jsx)(er.z,{onClick:i,view:"raised",className:yd("close-button"),children:(0,d.jsx)(Ue.J,{data:gd})}),t]})})}):null};var jd=a(2128);function Nd(e){const t=n.useRef(null),a=n.useId(),{data:r,opts:s,shapes:i}=e;return n.useEffect((()=>{const e=t.current;if(!e)return;e.innerHTML="",e.style.setProperty("width","100vw"),e.style.setProperty("height","100vh");const a=(0,jd.hP)(e.id,r,s,i);return a.render(),e.style.setProperty("width","100%"),e.style.setProperty("height","100%"),()=>{a.destroy()}}),[r,s,i]),(0,d.jsx)("div",{id:a,ref:t,style:{overflow:"auto"}})}const Sd={renderNodeTitle:e=>{const t=e.name.split("|");return t.length>1?t[1]:e.name},textOverflow:"normal",initialZoomFitsCanvas:!0},Td={node:jd.od};function wd(e){return(0,d.jsx)(Nd,{...e,opts:Sd,shapes:Td})}var Ed=a(65375),Cd=a(22155),Id=a(27320),Pd=a(39934);function Rd(e){var t;const a=(0,ce.dt)(e);return"object"===typeof a&&"Query was cancelled"===(null===(t=a.error)||void 0===t?void 0:t.message)}var Dd=a(30490);const _d=(0,c.cn)("ydb-query-settings-description"),Ad=e=>{let{querySettings:t,prefix:a}=e;return(0,d.jsxs)("div",{className:_d("message"),children:[a,Object.entries(t).map(((e,t,a)=>{let[n,r]=e;return(0,d.jsxs)("span",{className:_d("description-item"),children:[`${n}: ${r}`,t<a.length-1?", ":null]},t)}))]})},Od=(0,c.cn)("kv-query-execution-status"),kd=()=>{const{isIndicatorShown:e,changedLastExecutionSettingsDescriptions:t}=Wc();return e?(0,d.jsx)(Id.u,{openDelay:0,content:(0,d.jsx)(Ad,{prefix:yc("banner.query-settings.message"),querySettings:t}),children:(0,d.jsx)(Ue.J,{data:zr.Z,className:Od("query-settings-icon")})}):null},Ld=e=>{let t,a,{className:n,error:r,loading:s}=e;if(s)t=(0,d.jsx)(Pd.y,{size:"xs"}),a="Running";else if((0,Dd.IZ)(r)&&"ECONNABORTED"===r.code)t=(0,d.jsx)(Ue.J,{data:Ed.Z}),a="Connection aborted";else if(Rd(r))t=(0,d.jsx)(Ue.J,{data:Cd.Z}),a="Stopped";else{const e=Boolean(r);t=(0,d.jsx)(Ue.J,{data:e?Fr.Z:qr.Z,className:Od("result-status-icon",{error:e})}),a=e?"Failed":"Completed"}return(0,d.jsxs)("div",{className:Od(null,n),children:[t,a,Rd(r)||s?null:(0,d.jsx)(kd,{})]})},Md=n.memo((function(e){const{className:t,value:a}=e,n=(0,b.zL)();return(0,d.jsx)("span",{className:Bd("cell",t),onClick:e=>n((0,A.hJ)(e.target,a,"cell")),children:a})})),qd=JSON.parse('{"empty":"Table is empty"}'),zd=JSON.parse('{"empty":"\u0422\u0430\u0431\u043b\u0438\u0446\u0430 \u043f\u0443\u0441\u0442\u0430\u044f"}'),Fd=(0,ve.wZ)("ydb-query-result-table",{ru:zd,en:qd}),Qd=e=>{let{data:t,name:a}=e,n=a.length;if(t)for(const r of t){const e=r[a]?String(r[a]).length:0;if(n=Math.max(n,e),10*n+20>=600)return 600}return 10*n+20},Ud={...y.LE,stripedRows:!0,dynamicRenderType:"variable",dynamicItemSizeGetter:()=>40,sortable:!1},Bd=(0,c.cn)("ydb-query-result-table"),Gd=(e,t)=>t,$d=e=>{const{columns:t,data:a,...r}=e,s=n.useMemo((()=>(0,ce.Xh)(a)),[a]),i=n.useMemo((()=>t?((e,t)=>{if(!e.length)return[];const a=null===t||void 0===t?void 0:t.slice(0,100);return e.map((e=>{let{name:t,type:n}=e;const r=(0,ce.T$)(n);return{name:t,width:Qd({data:a,name:t}),align:"number"===r?fe.ZP.RIGHT:fe.ZP.LEFT,render:e=>{let{row:a}=e;return(0,d.jsx)(Md,{value:String(a[t])})}}}))})(t,s):(e=>{if(!e.length)return[];const t=null===e||void 0===e?void 0:e.slice(0,100);return Object.keys(e[0]).map((a=>({name:a,width:Qd({data:t,name:a}),align:(0,En.kE)(e[0][a])?fe.ZP.RIGHT:fe.ZP.LEFT,render:e=>{let{row:t}=e;return(0,d.jsx)(Md,{value:String(t[a])})}})))})(s)),[s,t]);return Array.isArray(a)?i.length?(0,d.jsx)(oe.G,{data:s,columns:i,settings:Ud,rowKey:Gd,...r}):(0,d.jsx)("div",{className:Bd("message"),children:Fd("empty")}):null};var Hd=a(77936);const Vd=g.h.injectEndpoints({endpoints:e=>({cancelQuery:e.mutation({queryFn:async(e,t)=>{let{queryId:a,database:n}=e,{signal:r}=t;try{const e=await window.api.sendQuery({database:n,action:"cancel-query",query_id:a},{signal:r});if((0,ce.gW)(e))return{error:e};return{data:(0,ce.gY)(e)}}catch(s){return{error:s}}}})}),overrideExisting:"throw"}),Zd=(0,c.cn)("cancel-query-button");function Wd(e){let{queryId:t,tenantName:a}=e;const[r,s]=Vd.useCancelQueryMutation(),i=n.useCallback((()=>{r({queryId:t,database:a})}),[t,r,a]);return(0,d.jsxs)(er.z,{loading:s.isLoading,onClick:i,className:Zd("stop-button",{error:Boolean(s.error)}),children:[(0,d.jsx)(Ue.J,{data:Hd.Z,size:16}),yc("action.stop")]})}var Jd=a(34147),Kd=a(89799),Yd=a(24829);const Xd=(0,c.cn)("ydb-query-explain-simplified-plan");function eu(e){let{value:t,formatter:a}=e;if(!(0,En.kE)(t))return;const n=a(Number(t));return(0,d.jsx)("div",{className:Xd("metrics-cell"),children:n})}var tu=a(33569);const au={Table:"var(--g-color-text-info)",Predicate:"var(--g-color-text-positive)",Condition:"var(--g-color-text-utility)"};function nu(e){return e in au?au[e]:"var(--g-color-text-secondary)"}function ru(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=[],a=Object.entries(e);if(1===a.length){const e=a[0][1],n=nu(a[0][0]);t.push((0,d.jsx)("span",{style:{color:n},children:(0,O.fm)(e)},"param"))}else{const a=function(e){const t=[],{Table:a,Predicate:n,Condition:r,...s}=e;return a&&t.push(["Table",a]),n&&t.push(["Predicate",n]),r&&t.push(["Condition",r]),t.concat(Object.entries(s))}(e);for(let e=0;e<a.length;e++){const[n,r]=a[e],s=nu(n);e>0&&t.push(", "),t.push((0,d.jsxs)("span",{style:{color:s},children:[n,": ",(0,O.fm)(r)]},e))}}return t}function su(e){let{params:t}=e;return t?(0,d.jsxs)("span",{className:Xd("operation-params"),children:["(",ru(t),")"]}):null}const iu=25,ou=9;function lu(e){let{modifiers:t,left:a}=e;return(0,d.jsx)("div",{className:Xd("divider",t),style:{left:a}})}function cu(e){let{row:t,depth:a=0,params:r}=e;const{name:s,operationParams:i,lines:o=""}=r,l=t.getLeafRows().length>0&&t.getIsExpanded(),c=n.useMemo((()=>function(e,t){const a=e.split(".").map(Number),n=[];for(let r=0;r<a.length;r++)r===a.length-1&&0!==r&&(a[r]?n.push((0,d.jsx)(lu,{modifiers:{horizontal:!0},left:ou+1+iu*(r-1)},"last")):n.push((0,d.jsx)(lu,{modifiers:{last:!0},left:ou+iu*(r-1)},"last"))),r===a.length-1&&t&&n.push((0,d.jsx)(lu,{modifiers:{first:!0},left:ou+iu*r},"first")),a[r]&&n.push((0,d.jsx)(lu,{left:ou+iu*(r-1)},r));return n}(o,l)),[o,l]);return(0,d.jsxs)("div",{style:{paddingLeft:iu*a},className:Xd("operation-name"),children:[c,(0,d.jsxs)(Ja.k,{gap:1,alignItems:"flex-start",className:Xd("operation-content"),children:[t.getCanExpand()&&(0,d.jsx)(er.z,{view:"flat",size:"xs",onClick:t.getToggleExpandedHandler(),children:(0,d.jsx)(er.z.Icon,{children:(0,d.jsx)(tu.F,{direction:t.getIsExpanded()?"bottom":"right",size:14})})}),(0,d.jsx)("div",{className:Xd("operation-name-content"),children:(0,d.jsxs)("div",{children:[s,"\xa0",(0,d.jsx)(su,{params:i})]})})]})]})}function du(e){return(0,d.jsx)(eu,{value:e.getValue(),formatter:e=>e<1e8?(0,Yd.X)(e).format():(0,En.t_)(e,1)})}function uu(e){let{name:t}=e;return(0,d.jsx)("div",{className:Xd("table-header-content"),children:t})}const mu=[{accessorKey:"name",accessorFn:function(e){return{name:e.name,operationParams:e.operationParams,lines:e.lines}},header:()=>(0,d.jsx)(uu,{name:"Operation"}),size:600,cell:e=>(0,d.jsx)(cu,{row:e.row,depth:e.row.depth,params:e.getValue()})},{accessorKey:"aCpu",header:()=>(0,d.jsx)(uu,{name:"A-Cpu"}),size:90,minSize:100,cell:function(e){return(0,d.jsx)(eu,{value:e.getValue(),formatter:e=>(0,tt.zm)(Math.round(e))})},meta:{align:"right",verticalAlign:"top"}},{accessorKey:"aRows",header:()=>(0,d.jsx)(uu,{name:"A-Rows"}),size:90,minSize:100,cell:du,meta:{align:"right",verticalAlign:"top"}},{accessorKey:"eCost",header:()=>(0,d.jsx)(uu,{name:"E-Cost"}),size:90,minSize:100,cell:du,meta:{align:"right",verticalAlign:"top"}},{accessorKey:"eRows",header:()=>(0,d.jsx)(uu,{name:"E-Rows"}),size:90,minSize:100,cell:du,meta:{align:"right",verticalAlign:"top"}},{accessorKey:"eSize",header:()=>(0,d.jsx)(uu,{name:"E-Size"}),size:90,minSize:100,cell:du,meta:{align:"right",verticalAlign:"top"}}];function pu(e){let{plan:t}=e;const a=n.useMemo((()=>function(e){if(!e)return[];const t=[{items:e,prefix:arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",parentIndex:-1,parentArray:[]}],a=[];for(;t.length>0;){const{items:e,prefix:n,parentIndex:r,parentArray:s}=t.pop(),i=[];for(let a=0;a<e.length;a++){const r={...e[a]},s=a<e.length-1?1:0;let o=`${n}.${s}`;n||(o=String(s)),r.lines=o,i.push(r),r.children&&t.push({items:r.children,prefix:o,parentIndex:a,parentArray:i})}-1===r?a.push(...i):s[r].children=i}return a}(t)),[t]),[r,s]=n.useState(!0),i=(0,Jd.x)({columns:mu,data:a,getSubRows:e=>e.children,enableExpanding:!0,onExpandedChange:s,state:{expanded:r}});return(0,d.jsx)("div",{className:Xd(),children:(0,d.jsx)(Kd.i,{table:i,headerCellClassName:e=>{var t;let{column:a}=e;const n=null===(t=a.columnDef.meta)||void 0===t?void 0:t.align;return Xd("table-header-cell",{align:n})},cellClassName:e=>{var t,a;const n=null===e||void 0===e||null===(t=e.column.columnDef.meta)||void 0===t?void 0:t.align,r=null===e||void 0===e||null===(a=e.column.columnDef.meta)||void 0===a?void 0:a.verticalAlign;return Xd("table-cell",{align:n,"vertical-align":r})},className:Xd("table"),stickyHeader:!0})})}var hu=a(67585),vu=a(57225),gu=a(76506);const xu=JSON.parse('{"default_collapse_label":"Show less","default_expand_label":"Show more","chars_count":[" ({{count}} symbol)"," ({{count}} symbols)"," ({{count}} symbols)"," ({{count}} symbols)"]}'),yu=JSON.parse('{"default_collapse_label":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u043c\u0435\u043d\u044c\u0448\u0435","default_expand_label":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0435\u0449\u0451","chars_count":[" ({{count}} \u0441\u0438\u043c\u0432\u043e\u043b)"," ({{count}} \u0441\u0438\u043c\u0432\u043e\u043b\u0430)"," ({{count}} \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432)"," ({{count}} \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432)"]}'),bu=(0,ve.wZ)("ydb-shorty-string",{ru:yu,en:xu}),fu=(0,c.cn)("kv-shorty-string");function ju(e){let{value:t="",limit:a=200,strict:r=!1,displayLength:s=!0,render:i=(e=>e),onToggle:o,expandLabel:l=bu("default_expand_label"),collapseLabel:c=bu("default_collapse_label")}=e;const[u,m]=n.useState(!1),p=(u?c:l)+(s&&!u?bu("chars_count",{count:t.length}):""),h=t.length>a+(r?0:p.length),v=u||!h?t:t.slice(0,a-4)+"\xa0...";return(0,d.jsxs)("div",{className:fu(),children:[i(v),h?(0,d.jsx)(ri.r,{className:fu("toggle"),href:"#",onClick:e=>{e.stopPropagation(),e.preventDefault(),m((e=>!e)),null===o||void 0===o||o()},children:p}):null]})}const Nu=["S_FATAL","S_ERROR","S_WARNING","S_INFO"];function Su(e){return function(e){return!!e&&void 0!==Nu[e]}(e)?Nu[e]:"S_INFO"}const Tu=(0,c.cn)("kv-result-issues"),wu=(0,c.cn)("kv-issues"),Eu=(0,c.cn)("kv-issue");function Cu(e){let{data:t}=e;const[a,r]=n.useState(!1),s="string"===typeof t||null===t||void 0===t?void 0:t.issues,i=Array.isArray(s)&&s.length>0;return(0,d.jsxs)("div",{className:Tu(),children:[(0,d.jsxs)("div",{className:Tu("error-message"),children:[(()=>{let e;if("string"===typeof t)e=t;else{var a,r;const s=Su(null===t||void 0===t||null===(a=t.error)||void 0===a?void 0:a.severity);e=(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)(Au,{severity:s})," ",(0,d.jsx)("span",{className:Tu("error-message-text"),children:null===t||void 0===t||null===(r=t.error)||void 0===r?void 0:r.message})]})}return e})(),i&&(0,d.jsx)(er.z,{view:"normal",onClick:()=>r(!a),children:a?"Hide details":"Show details"})]}),i&&a&&(0,d.jsx)(Iu,{issues:s})]})}function Iu(e){let{issues:t}=e;const a=null===t||void 0===t?void 0:t.reduce(((e,t)=>{var a;const n=null!==(a=t.severity)&&void 0!==a?a:10;return Math.min(e,n)}),10);return(0,d.jsx)("div",{className:wu(null),children:null===t||void 0===t?void 0:t.map(((e,t)=>(0,d.jsx)(Pu,{issue:e,expanded:e===a},t)))})}function Pu(e){let{issue:t,level:a=0}=e;const[r,s]=n.useState(!0),i=Su(t.severity),o=function(e){const{position:t}=e;if("object"!==typeof t||null===t||!(0,En.kE)(t.row))return"";const{row:a,column:n}=t;return(0,En.kE)(n)?`${a}:${n}`:`line ${a}`}(t),l=t.issues,c=Array.isArray(l)&&l.length>0,u=r?"bottom":"right";return(0,d.jsxs)("div",{className:Eu({leaf:!c,"has-issues":c}),children:[(0,d.jsxs)("div",{className:Eu("line"),children:[c&&(0,d.jsx)(er.z,{view:"flat-secondary",onClick:()=>s(!r),className:Eu("arrow-toggle"),children:(0,d.jsx)(tu.F,{direction:u,size:16})}),(0,d.jsx)(Au,{severity:i}),(0,d.jsxs)("span",{className:Eu("message"),children:[o&&(0,d.jsx)("span",{className:Eu("place-text"),title:"Position",children:o}),(0,d.jsx)("div",{className:Eu("message-text"),children:(0,d.jsx)(ju,{value:t.message,expandLabel:"Show full message"})})]}),t.issue_code?(0,d.jsxs)("span",{className:Eu("code"),children:["Code: ",t.issue_code]}):null]}),c&&r&&(0,d.jsx)("div",{className:Eu("issues"),children:(0,d.jsx)(Ru,{issues:l,level:a+1,expanded:r})})]})}function Ru(e){const{issues:t,level:a,expanded:n}=e;return(0,d.jsx)("div",{className:Eu("list"),children:t.map(((e,t)=>(0,d.jsx)(Pu,{issue:e,level:a,expanded:n},t)))})}const Du={S_INFO:hu.Z,S_WARNING:vu.Z,S_ERROR:Qr.Z,S_FATAL:gu.Z},_u=(0,c.cn)("yql-issue-severity");function Au(e){let{severity:t}=e;const a=t.slice(2).toLowerCase();return(0,d.jsxs)("span",{className:_u({severity:a}),children:[(0,d.jsx)(Ue.J,{className:_u("icon"),data:Du[t]}),(0,d.jsx)("span",{className:_u("title"),children:a})]})}const Ou=(0,c.cn)("ydb-query-duration"),ku=e=>{let{duration:t}=e;if(!t)return null;const a=(0,tt.tt)((0,tt.BO)(t),1);return(0,d.jsx)("span",{className:Ou(),children:(0,d.jsx)(ft,{className:Ou("item-with-popover"),contentClassName:Ou("popover-content"),text:a,popoverClassName:Ou("popover"),popoverContent:yc("query-duration.description"),buttonProps:{className:Ou("popover-button")}})})};var Lu=a(68750);const Mu=(0,c.cn)("ydb-query-settings-banner");function qu(){const{isBannerShown:e,changedLastExecutionSettingsDescriptions:t,closeBanner:a}=Wc();return e?(0,d.jsx)(Lu.b,{className:Mu(),theme:"info",align:"baseline",message:(0,d.jsx)(Ad,{prefix:yc("banner.query-settings.message"),querySettings:t}),onClose:a}):null}function zu(e){return e.replaceAll("\\","\\\\").replaceAll("\n","\\n").replaceAll("\r","\\r").replaceAll("\t","\\t")}var Fu=a(39683),Qu=a(77915);const Uu=g.h.injectEndpoints({endpoints:e=>({checkTrace:e.query({queryFn:async(e,t)=>{let{url:a}=e,{signal:n}=t;try{return{data:await window.api.checkTrace({url:a},{signal:n})}}catch(r){return{error:r}}}})}),overrideExisting:"throw"});var Bu=a(42587);function Gu(e,t){return e.replace(/\${(\w+)}/g,((e,a)=>t[a]||e))}const $u=JSON.parse('{"description.graph-is-not-supported":"Graph can not be rendered","action.result":"Result","action.stats":"Stats","action.schema":"Schema","action.explain-plan":"Explain Plan","action.copy":"Copy {{activeSection}}","trace":"Trace","title.truncated":"Truncated","title.result":"Result"}'),Hu=(0,ve.wZ)("ydb-execute-result",{en:$u}),Vu=15*y.NO;function Zu(e){let{traceId:t}=e;const{traceCheck:a,traceView:r}=(0,Qu.kW)(),s=null!==a&&void 0!==a&&a.url?Gu(a.url,{traceId:t}):"",i=null!==r&&void 0!==r&&r.url?Gu(r.url,{traceId:t}):"",[o,l]=(0,Bu.$)(Vu);n.useEffect((()=>{l()}),[t,l]);const{isFetching:c}=Uu.useCheckTraceQuery({url:s},{skip:!s||!o});if(!i)return null;const u=!o||c;return(0,d.jsxs)(er.z,{view:u?"flat-secondary":"flat-info",loading:u,href:i,target:"_blank",children:[Hu("trace"),(0,d.jsx)(er.z.Icon,{children:(0,d.jsx)(Fu.Z,{})})]})}const Wu=(0,c.cn)("ydb-query-execute-result"),Ju={result:"result",stats:"stats",schema:"schema",simplified:"simplified"};function Ku(e){var t,a;let{result:r,isResultsCollapsed:s,theme:i,tenantName:l,onCollapseResults:c,onExpandResults:u}=e;const[m,p]=n.useState(0),[h,v]=n.useState(Ju.result),g=(0,b.zL)(),{error:x,isLoading:y,queryId:f,data:j}=r,S=null===j||void 0===j?void 0:j.stats,T=null===j||void 0===j||null===(t=j.resultSets)||void 0===t?void 0:t.length,w=T&&T>0,E=w?null===j||void 0===j||null===(a=j.resultSets)||void 0===a?void 0:a[m]:j,{plan:C,simplifiedPlan:I}=n.useMemo((()=>function(e){var t,a,n;if(!e)return{};const{plan:r}=e;if(r){const e=(0,ce.y5)(r);if(e.meta.version!==_c.v2)return{};const{Plan:t,SimplifiedPlan:a}=e;return{plan:t?{...Rc(t),tables:e.tables}:void 0,simplifiedPlan:{plan:a?Dc([a]):void 0,pristine:a}}}const{stats:s}=e,i=null===s||void 0===s||null===(t=s.Executions)||void 0===t||null===(a=t[0])||void 0===a||null===(n=a.TxPlansWithStats)||void 0===n?void 0:n[0];if(!i)return{};try{return{plan:Rc(JSON.parse(i))}}catch(o){return{}}}(j)),[j]),P=[{value:Ju.result,content:Hu("action.result")},{value:Ju.stats,content:Hu("action.stats")}];C&&P.push({value:Ju.schema,content:Hu("action.schema")}),null!==I&&void 0!==I&&I.plan&&P.push({value:Ju.simplified,content:Hu("action.explain-plan")});const R=(0,ce.dt)(x);n.useEffect((()=>()=>{g((0,ud.vj)())}),[g]);const D=()=>{switch(h){case Ju.result:{const e=function(e){if(null===e||void 0===e||!e.length)return"";const t=Object.keys(e[0]),a=[t.map(zu).join("\t")];for(const n of e){const e=[];for(const a of t){const t=n[a];e.push(zu("object"===typeof t?JSON.stringify(t):`${t}`))}a.push(e.join("\t"))}return a.join("\n")}(null===E||void 0===E?void 0:E.result);return e}case Ju.stats:return S;case Ju.simplified:return null===I||void 0===I?void 0:I.pristine;default:return}};return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsxs)("div",{className:Wu("controls"),children:[(0,d.jsxs)("div",{className:Wu("controls-right"),children:[(0,d.jsx)(Ld,{error:x,loading:y}),!x&&!y&&(0,d.jsxs)(n.Fragment,{children:[void 0!==(null===S||void 0===S?void 0:S.DurationUs)&&(0,d.jsx)(ku,{duration:Number(S.DurationUs)}),P&&h&&(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)(od,{}),(0,d.jsx)(ql.E,{options:P,value:h,onUpdate:e=>{v(e)}})]})]}),y?(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)(cd,{className:Wu("elapsed-time")}),(0,d.jsx)(Wd,{queryId:f,tenantName:l})]}):null,null!==j&&void 0!==j&&j.traceId?(0,d.jsx)(Zu,{traceId:j.traceId}):null]}),(0,d.jsxs)("div",{className:Wu("controls-left"),children:[(()=>{const e=D(),t=(0,O.fm)(e);return t?(0,d.jsx)(sd.m,{text:t,view:"flat-secondary",title:Hu("action.copy",{activeSection:h})}):null})(),(0,d.jsx)(md,{}),(0,d.jsx)(rd,{onCollapse:c,onExpand:u,isCollapsed:s,initialDirection:"bottom"})]})]}),y||Rd(x)?null:(0,d.jsx)(qu,{}),(0,d.jsx)(o.s,{loading:y,children:(0,d.jsx)(fd,{children:x&&!Rd(x)?R?"object"===typeof R?(0,d.jsx)(Cu,{data:R}):(0,d.jsx)("div",{className:Wu("error"),children:R}):null:h===Ju.result?(()=>{var e;return(0,d.jsxs)("div",{className:Wu("result-wrapper"),children:[w&&T>1&&(0,d.jsx)("div",{children:(0,d.jsx)(N.m,{className:Wu("result-tabs"),size:"l",items:(0,wn.c$)(T).map((e=>{var t,a;return{id:String(e),title:`Result #${e+1}${null!==j&&void 0!==j&&null!==(t=j.resultSets)&&void 0!==t&&null!==(a=t[e])&&void 0!==a&&a.truncated?" (T)":""}`}})),activeTab:String(m),onSelectTab:e=>p(Number(e))})}),(0,d.jsxs)("div",{className:Wu("result"),children:[(0,d.jsxs)("div",{className:Wu("result-head"),children:[(0,d.jsx)(Ua.x,{variant:"subheader-3",children:null!==E&&void 0!==E&&E.truncated?Hu("title.truncated"):Hu("title.result")}),(0,d.jsx)(Ua.x,{color:"secondary",variant:"body-2",className:Wu("row-count"),children:`(${null===E||void 0===E||null===(e=E.result)||void 0===e?void 0:e.length})`})]}),(0,d.jsx)($d,{data:null===E||void 0===E?void 0:E.result,columns:null===E||void 0===E?void 0:E.columns})]})]})})():h===Ju.stats?(0,d.jsx)("div",{className:Wu("inspector"),children:(0,d.jsx)(ea(),{data:S,isExpanded:()=>!0,searchOptions:{debounceTime:300}})}):h===Ju.schema?(null===C||void 0===C?void 0:C.links)&&(null===C||void 0===C?void 0:C.nodes)&&(null===C||void 0===C?void 0:C.nodes.length)?(0,d.jsx)("div",{className:Wu("explain-canvas-container"),children:(0,d.jsx)(wd,{data:C},i)}):Hu("description.graph-is-not-supported"):h===Ju.simplified?(()=>{const{plan:e}=null!==I&&void 0!==I?I:{};return e?(0,d.jsx)(pu,{plan:e}):null})():null})})]})}var Yu=a(93757);const Xu=(0,c.cn)("ydb-query-explain-ast"),em={automaticLayout:!0,selectOnLineNumbers:!0,readOnly:!0,minimap:{enabled:!1},wrappingIndent:"indent"};function tm(e){let{ast:t,theme:a}=e;return(0,d.jsx)("div",{className:Xu(),children:(0,d.jsx)(Yu.default,{language:Jc,value:t,options:em,theme:`vs-${a}`})})}const am=JSON.parse('{"description.empty-result":"There is no {{activeOption}} for the request","description.graph-is-not-supported":"Graph can not be rendered","action.schema":"Schema","action.explain-plan":"Explain Plan","action.json":"JSON","action.ast":"AST","action.copy":"Copy {{activeOption}}"}'),nm=(0,ve.wZ)("ydb-explain-result",{en:am}),rm=(0,c.cn)("ydb-query-explain-graph");function sm(e){let{explain:t,theme:a}=e;const{links:n,nodes:r,version:s}=null!==t&&void 0!==t?t:{},i=s===_c.v2,o=n&&r&&r.length;return i&&o?(0,d.jsx)("div",{className:rm("canvas-container"),children:(0,d.jsx)(wd,{data:{links:n,nodes:r}},a)}):(0,d.jsx)("div",{className:rm("text-message"),children:nm("description.graph-is-not-supported")})}const im=(0,c.cn)("ydb-query-explain-text");function om(e){let{explain:t}=e;return(0,d.jsx)(ea(),{data:t,isExpanded:()=>!0,className:im("inspector"),searchOptions:{debounceTime:300}})}const lm=(0,c.cn)("ydb-query-explain-result"),cm={schema:"schema",json:"json",ast:"ast",simplified:"simplified"},dm={[cm.schema]:nm("action.schema"),[cm.json]:nm("action.json"),[cm.ast]:nm("action.ast"),[cm.simplified]:nm("action.explain-plan")},um=[{value:cm.schema,content:dm[cm.schema]},{value:cm.simplified,content:dm[cm.simplified]},{value:cm.json,content:dm[cm.json]},{value:cm.ast,content:dm[cm.ast]}];function mm(e){let{theme:t,result:a,tenantName:r,onCollapseResults:s,onExpandResults:i,isResultsCollapsed:l}=e;const c=(0,b.zL)(),[u,m]=n.useState(cm.schema),[p,h]=n.useTransition(),{error:v,isLoading:g,queryId:x}=a,{plan:y,ast:f,simplifiedPlan:j}=a.data||{};n.useEffect((()=>()=>{c((0,ud.vj)())}),[c]);const N=()=>(0,d.jsx)("div",{className:lm("text-message"),children:nm("description.empty-result",{activeOption:dm[u]})}),S=(()=>{switch(u){case cm.json:return null===y||void 0===y?void 0:y.pristine;case cm.ast:return f;case cm.simplified:return null===j||void 0===j?void 0:j.pristine;default:return}})(),T=(0,O.fm)(S);return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsxs)("div",{className:lm("controls"),children:[(0,d.jsxs)("div",{className:lm("controls-right"),children:[(0,d.jsx)(Ld,{error:v,loading:g}),!v&&!g&&(0,d.jsxs)(n.Fragment,{children:[void 0!==(null===y||void 0===y?void 0:y.DurationUs)&&(0,d.jsx)(ku,{duration:y.DurationUs}),(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)(od,{}),(0,d.jsx)(ql.E,{options:um,value:u,onUpdate:e=>{h((()=>m(e)))}})]})]}),g?(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)(cd,{className:lm("elapsed-time")}),(0,d.jsx)(Wd,{queryId:x,tenantName:r})]}):null]}),(0,d.jsxs)("div",{className:lm("controls-left"),children:[T&&(0,d.jsx)(sd.m,{text:T,view:"flat-secondary",title:nm("action.copy",{activeOption:u})}),(0,d.jsx)(md,{disabled:Boolean(v)}),(0,d.jsx)(rd,{onCollapse:s,onExpand:i,isCollapsed:l,initialDirection:"bottom"})]})]}),g||Rd(v)?null:(0,d.jsx)(qu,{}),(0,d.jsx)(o.s,{loading:g||p,children:(0,d.jsx)(fd,{className:lm("result"),children:(()=>{if(Rd(v))return null;if(v)return(0,d.jsx)("div",{className:lm("text-message"),children:(0,ce.fV)(v)});switch(u){case cm.json:return null!==y&&void 0!==y&&y.pristine?(0,d.jsx)(om,{explain:y.pristine}):N();case cm.ast:return f?(0,d.jsx)(tm,{ast:f,theme:t}):N();case cm.schema:var e;return null!==y&&void 0!==y&&null!==(e=y.nodes)&&void 0!==e&&e.length?(0,d.jsx)(sm,{theme:t,explain:y}):N();case cm.simplified:{const{plan:e}=null!==j&&void 0!==j?j:{};return null!==e&&void 0!==e&&e.length?(0,d.jsx)(pu,{plan:e}):N()}default:return null}})()})})]})}const pm=g.h.injectEndpoints({endpoints:e=>({sendQuery:e.query({queryFn:async(e,t)=>{let{query:a,database:n,action:r}=e,{signal:s}=t;try{const e=await window.api.sendQuery({schema:"modern",query:a,database:n,action:r},{signal:s,withRetries:!0});return(0,ce.gW)(e)?{error:e}:{data:(0,ce.gY)(e)}}catch(i){return{error:i||new Error("Unauthorized")}}},providesTags:["All","PreviewData"]})}),overrideExisting:"throw"}),hm=(0,c.cn)("kv-preview"),vm=e=>{var t;let{database:a,path:n,type:r}=e;const s=(0,b.zL)(),i=(0,me.vp)(r),[o]=(0,b.Rj)(),l=`--!syntax_v1\nselect * from \`${n}\` limit 32`,{currentData:c,isFetching:u,error:m}=pm.useSendQueryQuery({database:a,query:l,action:(0,me.uL)(r)?"execute-query":"execute-scan"},{pollingInterval:o,skip:!i,refetchOnMountOrArgChange:!0}),p=null!==c&&void 0!==c?c:{},h=()=>{s((0,aa.m7)(!1))};if(u&&void 0===c)return(0,d.jsx)("div",{className:hm("loader-container"),children:(0,d.jsx)(On.a,{size:"m"})});let v;i?m&&(v=(0,d.jsx)("div",{className:hm("message-container","error"),children:(0,ce.fV)(m)})):v=(0,d.jsx)("div",{className:hm("message-container"),children:yc("preview.not-available")});const g=null!==(t=v)&&void 0!==t?t:(0,d.jsx)("div",{className:hm("result"),children:(0,d.jsx)($d,{data:p.result,columns:p.columns})});return(0,d.jsxs)("div",{className:hm(),children:[(0,d.jsxs)("div",{className:hm("header"),children:[(0,d.jsxs)("div",{className:hm("title"),children:[yc("preview.title")," ",(0,d.jsx)("div",{className:hm("table-name"),children:n})]}),(0,d.jsxs)("div",{className:hm("controls-left"),children:[(0,d.jsx)(md,{disabled:Boolean(m)}),(0,d.jsx)(er.z,{view:"flat-secondary",onClick:h,title:yc("preview.close"),children:(0,d.jsx)(Ue.J,{data:bo.Z,size:18})})]})]}),(0,d.jsx)(fd,{children:g})]})};var gm=a(21645),xm=a(46089),ym=a(57542),bm=a(30831);const fm=()=>"-- docs: https://ydb.tech/en/docs/yql/reference/syntax/create_table\nCREATE TABLE `$path` (\n category_id Uint64 NOT NULL,\n id Uint64,\n expire_at Datetime,\n updated_on Datetime,\n name Text,\n `binary-payload` Bytes,\n attributes JsonDocument,\n -- uncomment to add a secondary index\n -- INDEX idx_row_table_id GLOBAL SYNC ON ( id ) COVER ( name, attributes ), -- Secondary indexes docs https://ydb.tech/en/docs/yql/reference/syntax/create_table#secondary_index\n PRIMARY KEY (category_id, id)\n) \nWITH (\n AUTO_PARTITIONING_BY_SIZE=`$autoPartitioningBySize`,\n AUTO_PARTITIONING_PARTITION_SIZE_MB=`$autoPartitioningPartitionSizeMb`,\n AUTO_PARTITIONING_BY_LOAD=`$autoPartitioningByLoad`,\n AUTO_PARTITIONING_MIN_PARTITIONS_COUNT=`$autoPartitioningMinPartitionsCount`,\n AUTO_PARTITIONING_MAX_PARTITIONS_COUNT=`$autoPartitioningMaxPartitionsCount`\n -- uncomment to create a table with predefined partitions\n -- , UNIFORM_PARTITIONS=`$uniformPartitions` -- The number of partitions for uniform initial table partitioning.\n -- The primary key's first column must have type Uint64 or Uint32.\n -- A created table is immediately divided into the specified number of partitions\n -- uncomment to launch read only replicas in every AZ\n -- , READ_REPLICAS_SETTINGS=`$readReplicasSettings` -- Enable read replicas for stale read, launch one replica in every availability zone\n -- uncomment to enable ttl\n -- , TTL=`$ttl` ON expire_at -- Enable background deletion of expired rows https://ydb.tech/en/docs/concepts/ttl\n -- uncomment to create a table with a bloom filter\n -- , KEY_BLOOM_FILTER=`$keyBloomFilter` -- With a Bloom filter, you can more efficiently determine\n -- if some keys are missing in a table when making multiple single queries by the primary key.\n)",jm=()=>"-- docs: https://ydb.tech/en/docs/yql/reference/syntax/create_table#olap-tables\nCREATE TABLE `$path` (\n id Int64 NOT NULL,\n author Text,\n title Text,\n body Text,\n PRIMARY KEY (id)\n)\nPARTITION BY HASH(id)\nWITH (STORE=`$store`)",Nm=()=>"-- docs: https://ydb.tech/docs/en/yql/reference/syntax/delete\nDELETE FROM $path\nWHERE Key1 == $key1 AND Key2 >= $key2;",Sm=()=>"-- docs: https://ydb.tech/docs/en/yql/reference/syntax/update\nUPDATE my_table\nSET Value1 = YQL::ToString($value2 + 1), Value2 = $value2 - 1\nWHERE Key1 > $key1;",Tm=()=>"-- docs: https://ydb.tech/docs/en/yql/reference/syntax/create-user\nCREATE USER $user_name [option]\n-- user_name: The name of the user. It may contain lowercase Latin letters and digits.\n-- option: The password of the user:\n -- PASSWORD 'password' creates a user with the password password. The ENCRYPTED option is always enabled.\n -- PASSWORD NULL creates a user with an empty password.",wm=()=>"-- docs: https://ydb.tech/docs/en/yql/reference/syntax/create-group\nCREATE GROUP $group_name\n-- group_name: The name of the group. It may contain lowercase Latin letters and digits.",Em=()=>"CREATE OBJECT secret_name (TYPE SECRET) WITH value=`$secretValue`;\n\nCREATE ASYNC REPLICATION my_replication\nFOR `$remotePath` AS `$localTableName` --[, `$anotherRemotePath` AS `$anotherLocalTableName` ...]\nWITH (\n CONNECTION_STRING=`$connectionString`,\n TOKEN_SECRET_NAME=`$tokenSecretName`\n -- ENDPOINT=`$endpoint`,\n -- DATABASE=`$database`,\n -- USER=`$user`,\n -- PASSWORD_SECRET_NAME=`$passwordSecretName`\n);",Cm=()=>"ALTER TABLE `$path`\n ADD COLUMN numeric_column Int32;",Im=()=>"SELECT *\n FROM `$path`\n LIMIT 10;",Pm=()=>"UPSERT INTO `$path`\n ( `id`, `name` )\nVALUES ( );",Rm=()=>"DROP EXTERNAL TABLE `$path`;",Dm=()=>"-- docs: https://ydb.tech/docs/en/yql/reference/syntax/drop-user\nDROP USER [ IF EXISTS ] $user_name [, ...]\n\n-- IF EXISTS: Suppress an error if the user doesn't exist.\n-- user_name: The name of the user to be deleted.",_m=()=>"-- docs: https://ydb.tech/docs/en/yql/reference/syntax/drop-group\nDROP GROUP [ IF EXISTS ] $group_name [, ...]\n\n-- IF EXISTS: Suppress an error if the group doesn't exist.\n-- group_name: The name of the group to be deleted.",Am=()=>"-- docs: https://ydb.tech/docs/en/yql/reference/syntax/create_changefeed\nADD CHANGEFEED $name WITH (\n MODE = $mode, -- KEYS_ONLY, UPDATES, NEW_IMAGE, OLD_IMAGE, or NEW_AND_OLD_IMAGES\n FORMAT = $format, -- JSON or DEBEZIUM_JSON\n VIRTUAL_TIMESTAMPS = $virtualTimestamps, -- true or false\n RETENTION_PERIOD = $retentionPeriod, -- Interval value, e.g., Interval('PT24H')\n TOPIC_MIN_ACTIVE_PARTITIONS = $topicMinActivePartitions,\n INITIAL_SCAN = $initialScan -- true or false\n)\n\n-- MODE options:\n-- KEYS_ONLY: Only the primary key components and change flag are written.\n-- UPDATES: Updated column values that result from updates are written.\n-- NEW_IMAGE: Any column values resulting from updates are written.\n-- OLD_IMAGE: Any column values before updates are written.\n-- NEW_AND_OLD_IMAGES: A combination of NEW_IMAGE and OLD_IMAGE modes.",Om=()=>'\nGRANT $permission_name [, ...] | ALL [PRIVILEGES]\nON $path_to_scheme_object [, ...]\nTO $role_name [, ...]\n[WITH GRANT OPTION]\n\n-- permission_name: The name of the access right to schema objects that needs to be assigned.\n-- path_to_scheme_object: The path to the schema object for which rights are being granted.\n-- role_name: The name of the user or group to whom rights on the schema object are being granted.\n-- WITH GRANT OPTION: Using this construct gives the user or group of users the right to manage access rights - \n-- to assign or revoke certain rights. This construct has functionality similar to granting \n-- the "ydb.access.grant" or GRANT right. A subject with the ydb.access.grant right cannot \n-- grant rights broader than they possess themselves.',km=()=>"\nREVOKE [GRANT OPTION FOR] $permission_name [, ...] | ALL [PRIVILEGES]\nON $path_to_scheme_object [, ...]\nFROM $role_name [, ...]\n\n-- permission_name: The name of the access right to schema objects that needs to be revoked.\n-- path_to_scheme_object: The path to the schema object from which rights are being revoked.\n-- role_name: The name of the user or group from whom rights on the schema object are being revoked.\n-- GRANT OPTION FOR: Using this construct revokes the user's or group's right to manage access rights.\n-- All previously granted rights by this user remain in effect.\n-- This construct has functionality similar to revoking the \"ydb.access.grant\" or GRANT right.",Lm=()=>"CREATE EXTERNAL TABLE `$path` (\n column1 Int,\n column2 Int\n) WITH (\n DATA_SOURCE=`$dataSource`,\n LOCATION=`$location`,\n FORMAT=`$format`,\n `file_pattern`=`$filePattern`\n);",Mm=()=>"-- docs: https://ydb.tech/en/docs/yql/reference/syntax/create_topic\nCREATE TOPIC `$path` (\n CONSUMER consumer1,\n CONSUMER consumer2 WITH (read_from=`$readFrom`) -- Sets up the message write time starting from which the consumer will receive data.\n -- Value type: Datetime OR Timestamp OR integer (unix-timestamp in the numeric format). \n -- Default value: now\n) WITH (\n min_active_partitions=`$minActivePartitions`, -- Minimum number of topic partitions.\n partition_count_limit=`$partitionCountLimit`, -- Maximum number of active partitions in the topic. 0 is interpreted as unlimited.\n retention_period=`$retentionPeriod`, -- Data retention period in the topic. Value type: Interval.\n retention_storage_mb=`$retentionStorageMb`, -- Limit on the maximum disk space occupied by the topic data. \n -- When this value is exceeded, the older data is cleared, like under a retention policy. \n -- 0 is interpreted as unlimited.\n partition_write_speed_bytes_per_second=`$partitionWriteSpeedBytesPerSecond`, -- Maximum allowed write speed per partition.\n partition_write_burst_bytes=`$partitionWriteBurstBytes` -- Write quota allocated for write bursts. \n -- When set to zero, the actual write_burst value is equalled to \n -- the quota value (this allows write bursts of up to one second).\n);",qm=()=>"-- docs: https://ydb.tech/en/docs/yql/reference/syntax/alter_topic\nALTER TOPIC `$path`\n ADD CONSUMER new_consumer WITH (read_from=`$readFrom`), -- Sets up the message write time starting from which the consumer will receive data.\n -- Value type: Datetime OR Timestamp OR integer (unix-timestamp in the numeric format).\n -- Default value: now\n ALTER CONSUMER consumer1 SET (read_from=`$readFrom`),\n DROP CONSUMER consumer2,\n SET (\n min_active_partitions=`$minActivePartitions`, -- Minimum number of topic partitions.\n partition_count_limit=`$partitionCountLimit`, -- Maximum number of active partitions in the topic. 0 is interpreted as unlimited.\n retention_period=`$retentionPeriod`, -- Data retention period in the topic. Value type: Interval.\n retention_storage_mb=`$retentionStorageMb`, -- Limit on the maximum disk space occupied by the topic data. \n -- When this value is exceeded, the older data is cleared, like under a retention policy. \n -- 0 is interpreted as unlimited.\n partition_write_speed_bytes_per_second=`$partitionWriteSpeedBytesPerSecond`, -- Maximum allowed write speed per partition.\n partition_write_burst_bytes=`$partitionWriteBurstBytes` -- Write quota allocated for write bursts. \n -- When set to zero, the actual write_burst value is equalled to\n -- the quota value (this allows write bursts of up to one second).\n );",zm=()=>"DROP TOPIC `$path`;",Fm=()=>"CREATE VIEW `$path` WITH (security_invoker=`$securityInvoker`) AS SELECT 1;",Qm=()=>"DROP TABLE `$path`;",Um=()=>"DROP ASYNC REPLICATION `$path`;",Bm=()=>"ALTER ASYNC REPLICATION `$path` SET (STATE=`$state`, FAILOVER_MODE=`$failoverMode`);",Gm=e=>{const t=t=>()=>{e((0,ms.B8)({input:t()}))};return{createRowTable:t(fm),createColumnTable:t(jm),createAsyncReplication:t(Em),alterAsyncReplication:t(Bm),dropAsyncReplication:t(Um),alterTable:t(Cm),selectQuery:t(Im),upsertQuery:t(Pm),createExternalTable:t(Lm),dropExternalTable:t(Rm),selectQueryFromExternalTable:t(Im),createTopic:t(Mm),alterTopic:t(qm),dropTopic:t(zm),createView:t(Fm),dropTable:t(Qm),deleteRows:t(Nm),updateTable:t(Sm),createUser:t(Tm),createGroup:t(wm),createCdcStream:t(Am),grantPrivilege:t(Om),revokePrivilege:t(km),dropUser:t(Dm),dropGroup:t(_m)}},$m=JSON.parse('{"button.new-sql":"New SQL","action.create-row-table":"Create row table","action.create-column-table":"Create column table","action.create-external-table":"Create external table","action.upsert-to-table":"Upsert into table","action.update-table":"Update table","action.alter-table":"Alter table","action.select-rows":"Select from a table","action.select-from-external-table":"Select from external table","action.delete-rows":"Delete rows","action.drop-table":"Drop table","action.drop-external-table":"Drop external table","menu.tables":"Tables","menu.topics":"Topics","menu.capture":"Change data capture","menu.replication":"Async replication","menu.users":"Users","action.create-topic":"Create Topic","action.drop-topic":"Drop Topic","action.alter-topic":"Alter Topic","action.create-cdc-stream":"Create CDC Stream","action.create-async-replication":"Create async replication","action.create-user":"Create user","action.create-group":"Create group","action.drop-user":"Drop user","action.drop-group":"Drop group","action.grant-privilege":"Grant privilege","action.revoke-privilege":"Revoke privilege","action.alter-async-replication":"Alter async replication","action.drop-async-replication":"Drop async replication"}'),Hm=(0,ve.wZ)("ydb-new-sql",{en:$m});function Vm(){const e=(0,b.zL)(),t=Gm(e),a=[{text:Hm("menu.tables"),items:[{text:Hm("action.create-row-table"),action:t.createRowTable},{text:Hm("action.create-column-table"),action:t.createColumnTable},{text:Hm("action.create-external-table"),action:t.createExternalTable},{text:Hm("action.upsert-to-table"),action:t.upsertQuery},{text:Hm("action.update-table"),action:t.updateTable},{text:Hm("action.alter-table"),action:t.alterTable},{text:Hm("action.select-rows"),action:t.selectQuery},{text:Hm("action.select-from-external-table"),action:t.selectQueryFromExternalTable},{text:Hm("action.delete-rows"),action:t.deleteRows},{text:Hm("action.drop-table"),action:t.dropTable},{text:Hm("action.drop-external-table"),action:t.dropExternalTable}]},{text:Hm("menu.topics"),items:[{text:Hm("action.create-topic"),action:t.createTopic},{text:Hm("action.alter-topic"),action:t.alterTopic},{text:Hm("action.drop-topic"),action:t.dropTopic}]},{text:Hm("menu.replication"),items:[{text:Hm("action.create-async-replication"),action:t.createAsyncReplication},{text:Hm("action.alter-async-replication"),action:t.alterAsyncReplication},{text:Hm("action.drop-async-replication"),action:t.dropAsyncReplication}]},{text:Hm("menu.capture"),items:[{text:Hm("action.create-cdc-stream"),action:t.createCdcStream}]},{text:Hm("menu.users"),items:[{text:Hm("action.create-user"),action:t.createUser},{text:Hm("action.create-group"),action:t.createGroup},{text:Hm("action.drop-user"),action:t.dropUser},{text:Hm("action.drop-group"),action:t.dropGroup},{text:Hm("action.grant-privilege"),action:t.grantPrivilege},{text:Hm("action.revoke-privilege"),action:t.revokePrivilege}]}];return(0,d.jsx)(bm.h,{items:a,renderSwitcher:e=>(0,d.jsxs)(er.z,{...e,children:[Hm("button.new-sql"),(0,d.jsx)(er.z.Icon,{children:(0,d.jsx)(ym.Z,{})})]}),popupProps:{placement:"top"}})}var Zm=a(25822),Wm=a(77264);function Jm(){const[e]=(0,b.yu)(y.DG,[]),t=(0,b.ix)(kc.zC).toLowerCase();return t?e.filter((e=>e.body.toLowerCase().includes(t))):e}const Km=JSON.parse('{"action.save":"Save query","action.edit":"Edit query","action.save-as-new":"Save as new","action.edit-existing":"Edit existing","description":"The query will be saved in your browser","input-label":"Query name","input-placeholder":"Enter query name","button-apply":"Save","button-cancel":"Cancel","error.name-exists":"This name already exists","error.name-not-empty":"Name should not be empty"}'),Ym=(0,ve.wZ)("ydb-save-query-dialog",{en:Km}),Xm=(0,c.cn)("ydb-save-query");function ep(e){let{isSaveButtonDisabled:t}=e;const a=(0,b.zL)(),n=(0,b.ix)(kc.g0),r=()=>{a((0,kc.lm)("save")),a((0,kc.y3)())},s=()=>{a((0,kc.PM)(n)),a((0,kc.y3)())};return n?(()=>{const e=[{action:s,text:Ym("action.edit-existing")},{action:r,text:Ym("action.save-as-new")}];return(0,d.jsx)(bm.h,{items:e,renderSwitcher:e=>(0,d.jsx)(er.z,{...e,disabled:t,children:Ym("action.edit")}),popupProps:{placement:"top"}})})():(0,d.jsx)(er.z,{onClick:r,disabled:t,children:Ym("action.save")})}function tp(){const e=Jm(),t=(0,b.zL)(),a=(0,b.ix)(kc.oK),[r,s]=n.useState(""),[i,o]=n.useState(),l=()=>{t((0,kc.lm)("idle")),s(""),o(void 0)};return(0,d.jsxs)(Zm.V,{open:"save"===a,hasCloseButton:!1,size:"s",onClose:l,children:[(0,d.jsx)(Zm.V.Header,{caption:Ym("action.save")}),(0,d.jsxs)("form",{onSubmit:a=>{a.preventDefault();const n=(s=r)?e.some((e=>e.name.toLowerCase()===s.trim().toLowerCase()))?Ym("error.name-exists"):void 0:Ym("error.name-not-empty");var s;o(n),n||(t((0,kc.PM)(r)),l())},children:[(0,d.jsxs)(Zm.V.Body,{className:Xm("dialog-body"),children:[(0,d.jsx)("div",{className:Xm("dialog-row"),children:Ym("description")}),(0,d.jsxs)("div",{className:Xm("dialog-row"),children:[(0,d.jsx)("label",{htmlFor:"queryName",className:Xm("field-title","required"),children:Ym("input-label")}),(0,d.jsx)("div",{className:Xm("control-wrapper"),children:(0,d.jsx)(Wm.o,{id:"queryName",placeholder:Ym("input-placeholder"),value:r,onUpdate:e=>{s(e),o(void 0)},hasClear:!0,autoFocus:!0,autoComplete:!1,validationState:i?"invalid":void 0,errorMessage:i})})]})]}),(0,d.jsx)(Zm.V.Footer,{textButtonApply:Ym("button-apply"),textButtonCancel:Ym("button-cancel"),onClickButtonCancel:l,propsButtonApply:{type:"submit"}})]})]})}const ap=(0,c.cn)("ydb-query-editor-controls"),np=e=>{let{onClick:t,runIsLoading:a}=e;const{changedCurrentSettings:n,changedCurrentSettingsDescriptions:r}=Wc(),s=n.length>0?{view:"outlined-info",selected:!0}:null;return(0,d.jsx)(Id.u,{disabled:0===n.length,content:(0,d.jsx)(Ad,{prefix:yc("gear.tooltip"),querySettings:r}),openDelay:0,placement:["top-start"],children:(0,d.jsxs)(er.z,{onClick:t,loading:a,className:ap("gear-button"),...s,children:[(0,d.jsx)(Ue.J,{data:gm.Z,size:16}),s?(0,d.jsxs)("div",{className:ap("changed-settings"),children:["(",n.length,")"]}):null]})})},rp=e=>{let{disabled:t,isLoading:a,highlightedAction:n,handleSendExecuteClick:r,onSettingsButtonClick:s,handleGetExplainQueryClick:i}=e;const o="execute"===n?"action":void 0,l="explain"===n?"action":void 0;return(0,d.jsxs)("div",{className:ap(),children:[(0,d.jsxs)("div",{className:ap("left"),children:[(0,d.jsxs)(er.z,{onClick:()=>{r()},disabled:t,loading:a,view:o,className:ap("run-button"),children:[(0,d.jsx)(Ue.J,{data:xm.Z,size:14}),"Run"]}),(0,d.jsx)(er.z,{onClick:()=>{i()},disabled:t,loading:a,view:l,children:"Explain"}),(0,d.jsx)(np,{onClick:s,runIsLoading:a})]}),(0,d.jsxs)("div",{className:ap("right"),children:[(0,d.jsx)(Vm,{}),(0,d.jsx)(ep,{isSaveButtonDisabled:t})]})]})};var sp=a(1341),ip=a(48450);const op=()=>-1,lp=(0,c.cn)("ydb-query-settings-select");function cp(e){return(0,d.jsx)("div",{className:lp("selector"),children:(0,d.jsx)(I.P,{id:e.id,options:e.settingOptions,value:[e.setting],onUpdate:t=>{e.onUpdateSetting(t[0])},getOptionHeight:op,popupClassName:lp("popup"),renderOption:e=>(0,d.jsxs)("div",{className:lp("item"),children:[(0,d.jsxs)("div",{className:lp("item-title"),children:[e.content,e.isDefault?zc("description.default"):""]}),e.text&&(0,d.jsx)("span",{className:lp("item-description"),children:e.text})]}),width:"max"})})}const dp=(0,c.cn)("ydb-query-settings-dialog");function up(){const e=(0,b.zL)(),t=(0,b.ix)(kc.oK),[a,r]=(0,b.dU)(),s=n.useCallback((()=>{e((0,kc.lm)("idle"))}),[e]),i=n.useCallback((e=>{r(e),s()}),[s,r]);return(0,d.jsxs)(Zm.V,{open:"settings"===t,size:"s",onClose:s,className:dp(),hasCloseButton:!1,children:[(0,d.jsx)(Zm.V.Header,{caption:zc("action.settings")}),(0,d.jsx)(mp,{initialValues:a,onSubmit:i,onClose:s})]})}function mp(e){let{initialValues:t,onSubmit:a,onClose:r}=e;const{control:s,handleSubmit:i,formState:{errors:o}}=(0,ip.cI)({defaultValues:t,resolver:(0,sp.F)(ce.J7)}),l=(0,E.uY)();return(0,d.jsxs)("form",{onSubmit:i(a),children:[(0,d.jsxs)(Zm.V.Body,{className:dp("dialog-body"),children:[(0,d.jsxs)(Ja.k,{direction:"row",alignItems:"flex-start",className:dp("dialog-row"),children:[(0,d.jsx)("label",{htmlFor:"queryMode",className:dp("field-title"),children:Gc.queryMode.title}),(0,d.jsx)("div",{className:dp("control-wrapper",{queryMode:!0}),children:(0,d.jsx)(ip.Qr,{name:"queryMode",control:s,render:e=>{let{field:t}=e;return(0,d.jsx)(cp,{id:"queryMode",setting:t.value,onUpdateSetting:t.onChange,settingOptions:Gc.queryMode.options})}})})]}),(0,d.jsxs)(Ja.k,{direction:"row",alignItems:"flex-start",className:dp("dialog-row"),children:[(0,d.jsx)("label",{htmlFor:"timeout",className:dp("field-title"),children:Gc.timeout.title}),(0,d.jsx)("div",{className:dp("control-wrapper"),children:(0,d.jsx)(ip.Qr,{name:"timeout",control:s,render:e=>{var t,a;let{field:r}=e;return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)(Wm.o,{id:"timeout",type:"number",...r,value:null===(t=r.value)||void 0===t?void 0:t.toString(),className:dp("timeout"),placeholder:"60",validationState:o.timeout?"invalid":void 0,errorMessage:null===(a=o.timeout)||void 0===a?void 0:a.message,errorPlacement:"inside"}),(0,d.jsx)("span",{className:dp("timeout-suffix"),children:zc("form.timeout.seconds")})]})}})})]}),l&&(0,d.jsxs)(Ja.k,{direction:"row",alignItems:"flex-start",className:dp("dialog-row"),children:[(0,d.jsx)("label",{htmlFor:"tracingLevel",className:dp("field-title"),children:Gc.tracingLevel.title}),(0,d.jsx)("div",{className:dp("control-wrapper"),children:(0,d.jsx)(ip.Qr,{name:"tracingLevel",control:s,render:e=>{let{field:t}=e;return(0,d.jsx)(cp,{id:"tracingLevel",setting:t.value,onUpdateSetting:t.onChange,settingOptions:Gc.tracingLevel.options})}})})]}),(0,d.jsxs)(Ja.k,{direction:"row",alignItems:"flex-start",className:dp("dialog-row"),children:[(0,d.jsx)("label",{htmlFor:"transactionMode",className:dp("field-title"),children:Gc.transactionMode.title}),(0,d.jsx)("div",{className:dp("control-wrapper",{transactionMode:!0}),children:(0,d.jsx)(ip.Qr,{name:"transactionMode",control:s,render:e=>{let{field:t}=e;return(0,d.jsx)(cp,{id:"transactionMode",setting:t.value,onUpdateSetting:t.onChange,settingOptions:Gc.transactionMode.options})}})})]}),(0,d.jsxs)(Ja.k,{direction:"row",alignItems:"flex-start",className:dp("dialog-row"),children:[(0,d.jsx)("label",{htmlFor:"statisticsMode",className:dp("field-title"),children:Gc.statisticsMode.title}),(0,d.jsx)("div",{className:dp("control-wrapper",{statisticsMode:!0}),children:(0,d.jsx)(ip.Qr,{name:"statisticsMode",control:s,render:e=>{let{field:t}=e;return(0,d.jsx)(cp,{id:"statisticsMode",setting:t.value,onUpdateSetting:t.onChange,settingOptions:Gc.statisticsMode.options})}})})]}),(0,d.jsxs)(Ja.k,{direction:"row",alignItems:"flex-start",className:dp("dialog-row"),children:[(0,d.jsx)("label",{htmlFor:"limitRows",className:dp("field-title"),children:Gc.limitRows.title}),(0,d.jsx)("div",{className:dp("control-wrapper"),children:(0,d.jsx)(ip.Qr,{name:"limitRows",control:s,render:e=>{var t,a;let{field:n}=e;return(0,d.jsx)(Wm.o,{id:"limitRows",type:"number",...n,value:null===(t=n.value)||void 0===t?void 0:t.toString(),className:dp("limit-rows"),placeholder:"10000",validationState:o.limitRows?"invalid":void 0,errorMessage:null===(a=o.limitRows)||void 0===a?void 0:a.message,errorPlacement:"inside"})}})})]})]}),(0,d.jsx)(Zm.V.Footer,{textButtonApply:zc("button-done"),textButtonCancel:zc("button-cancel"),onClickButtonCancel:r,propsButtonApply:{type:"submit"},renderButtons:(e,t)=>(0,d.jsxs)("div",{className:dp("buttons-container"),children:[(0,d.jsx)(ri.r,{href:"https://ydb.tech/docs",target:"_blank",className:dp("documentation-link"),children:zc("docs")}),(0,d.jsxs)("div",{className:dp("main-buttons"),children:[t,e]})]})})]})}const pp={automaticLayout:!0,selectOnLineNumbers:!0,minimap:{enabled:!1}};const hp="navigation",vp=(0,c.cn)("query-editor"),gp={triggerExpand:!1,triggerCollapse:!1,collapsed:!0};const xp={saveQueryToHistory:ms.hO,goToPreviousQuery:ms.NU,goToNextQuery:ms.AJ,setShowPreview:aa.m7,setTenantPath:ms.K0,setQueryAction:kc.lm,setQueryResult:ms.Ae},yp=(0,ta.$j)((e=>({executeQuery:e.executeQuery,showPreview:e.schema.showPreview})),xp)((function(e){var t;const a=function(){const[e]=(0,b.yu)(y.y6),[t]=(0,b.yu)(y.XX);return n.useMemo((()=>{const a=Boolean(e);return{quickSuggestions:a,suggestOnTriggerCharacters:a,acceptSuggestionOnEnter:t?"on":"off",...pp}}),[e,t])}(),{tenantName:r,path:s,setTenantPath:i,executeQuery:o,type:l,theme:c,changeUserInput:u,setQueryResult:m,showPreview:p}=e,{tenantPath:v}=o,g=Boolean(o.result),[x]=(0,b.dU)(),f=(0,E.uY)(),[j,N]=Vc(),{resetBanner:S}=Wc(),[T]=(0,b.yu)(y.Rq),[w,C]=(0,b.yu)(y.w7),[I]=ms.mg.useExecuteQueryMutation(),[P]=Oc.useExplainQueryMutation();n.useEffect((()=>{v!==r&&(v&&(u({input:""}),m()),i(r))}),[u,i,m,r,v]);const[R,D]=n.useReducer(ad(y.eG),gp);n.useEffect((()=>{D(Xc.triggerCollapse)}),[]),n.useEffect((()=>{e.showPreview||g?D(Xc.triggerExpand):D(Xc.triggerCollapse)}),[e.showPreview,g]);const _=(0,b.xd)((()=>{var e;const{history:t}=o;return(null===(e=t.queries[t.queries.length-1])||void 0===e?void 0:e.queryText)||""})),A=(0,b.xd)((t=>{const{input:a,history:n}=o,s=T?"multi":"modern",i=null!==t&&void 0!==t?t:a;C(ce.Jf.execute),(0,Nc.isEqual)(j,x)||(S(),N(x));const l=(0,Sc.Z)();if(I({query:i,database:r,querySettings:x,schema:s,enableTracingLevel:f,queryId:l}),e.setShowPreview(!1),!t){var c;const{queries:t,currentIndex:r}=n;i!==(null===(c=t[r])||void 0===c?void 0:c.queryText)&&e.saveQueryToHistory(a,l)}D(Xc.triggerExpand)})),O=()=>{e.setQueryAction("settings")},k=(0,b.xd)((()=>{const{input:t}=o;C(ce.Jf.explain),(0,Nc.isEqual)(j,x)||(S(),N(x));const a=(0,Sc.Z)();P({query:t,database:r,querySettings:x,enableTracingLevel:f,queryId:a}),e.setShowPreview(!1),D(Xc.triggerExpand)})),M=(0,b.xd)((()=>{w===ce.Jf.explain?k():A()}));return(0,d.jsxs)("div",{className:vp(),children:[(0,d.jsxs)(h,{direction:"vertical",defaultSizePaneKey:y.XN,triggerCollapse:R.triggerCollapse,triggerExpand:R.triggerExpand,minSize:[0,52],collapsedSizes:[100,0],onSplitStartDragAdditional:()=>{D(Xc.clear)},children:[(0,d.jsxs)("div",{className:vp("pane-wrapper",{top:!0}),children:[(0,d.jsx)("div",{className:vp("monaco-wrapper"),children:(0,d.jsx)("div",{className:vp("monaco"),children:(0,d.jsx)(Tc,{language:Kc,value:o.input,options:a,onChange:t=>{e.changeUserInput({input:t})},editorDidMount:(t,a)=>{const n=function(e){const{KeyMod:t,KeyCode:a}=e,n=t.CtrlCmd;return{sendQuery:n|a.Enter,sendSelectedQuery:n|t.Shift|e.KeyCode.Enter,selectPreviousQuery:n|a.UpArrow,selectNextQuery:n|a.DownArrow,saveQuery:n|a.KeyS,saveSelectedQuery:n|t.Shift|a.KeyS}}(a);!function(e){const t=L()((()=>{e.layout()}),100);e.layout(),window.addEventListener("resize",t),e.onDidDispose((()=>{window.removeEventListener("resize",t)}))}(t),function(e,t){fp(e.getValue(),t()),e.onDidChangeModelContent((()=>{fp(e.getValue(),t())})),e.onDidDispose((()=>{window.onbeforeunload=null}))}(t,_),t.focus(),t.addAction({id:"sendQuery",label:yc("action.send-query"),keybindings:[n.sendQuery],precondition:void 0,keybindingContext:void 0,contextMenuGroupId:hp,contextMenuOrder:1,run:()=>M()});const r=t.createContextKey("canSendSelectedText",!1);t.onDidChangeCursorSelection((e=>{let{selection:t,secondarySelections:a}=e;const n=t.selectionStartLineNumber!==t.positionLineNumber||t.selectionStartColumn!==t.positionColumn,s=a.length>0;r.set(n&&!s)})),t.addAction({id:"sendSelectedQuery",label:yc("action.send-selected-query"),keybindings:[n.sendSelectedQuery],precondition:"canSendSelectedText",contextMenuGroupId:hp,contextMenuOrder:1,run:e=>{const t=e.getSelection(),a=e.getModel();if(t&&a){const e=a.getValueInRange({startLineNumber:t.getSelectionStart().lineNumber,startColumn:t.getSelectionStart().column,endLineNumber:t.getPosition().lineNumber,endColumn:t.getPosition().column});A(e)}}}),t.addAction({id:"previous-query",label:yc("action.previous-query"),keybindings:[n.selectPreviousQuery],contextMenuGroupId:hp,contextMenuOrder:2,run:()=>{e.goToPreviousQuery()}}),t.addAction({id:"next-query",label:yc("action.next-query"),keybindings:[n.selectNextQuery],contextMenuGroupId:hp,contextMenuOrder:3,run:()=>{e.goToNextQuery()}}),t.addAction({id:"save-query",label:yc("action.save-query"),keybindings:[n.saveQuery],run:()=>{e.setQueryAction("save")}})},theme:`vs-${c}`})})}),(()=>{var e;return(0,d.jsx)(rp,{handleSendExecuteClick:A,onSettingsButtonClick:O,isLoading:Boolean(null===(e=o.result)||void 0===e?void 0:e.isLoading),handleGetExplainQueryClick:k,disabled:!o.input,highlightedAction:w})})()]}),(0,d.jsx)("div",{className:vp("pane-wrapper"),children:(0,d.jsx)(bp,{resultVisibilityState:R,onExpandResultHandler:()=>{D(Xc.triggerExpand)},onCollapseResultHandler:()=>{D(Xc.triggerCollapse)},type:l,theme:c,result:o.result,tenantName:r,path:s,showPreview:p},null===(t=o.result)||void 0===t?void 0:t.queryId)})]}),(0,d.jsx)(tp,{}),(0,d.jsx)(up,{})]})}));function bp(e){let{resultVisibilityState:t,onExpandResultHandler:a,onCollapseResultHandler:n,type:r,theme:s,result:i,tenantName:o,path:l,showPreview:c}=e;return c?(0,d.jsx)(vm,{database:o,path:l,type:r}):(null===i||void 0===i?void 0:i.type)===Ec.X.EXECUTE?(0,d.jsx)(Ku,{result:i,isResultsCollapsed:t.collapsed,onExpandResults:a,onCollapseResults:n,theme:s,tenantName:o}):(null===i||void 0===i?void 0:i.type)===Ec.X.EXPLAIN?(0,d.jsx)(mm,{result:i,theme:s,tenantName:o,isResultsCollapsed:t.collapsed,onExpandResults:a,onCollapseResults:n}):null}function fp(e,t){const a=!!e&&e!==t;window.onbeforeunload=a?e=>{e.preventDefault(),e.returnValue=""}:null}const jp=[{id:j._0.newQuery,title:yc("tabs.newQuery")},{id:j._0.history,title:yc("tabs.history")},{id:j._0.saved,title:yc("tabs.saved")}],Np=e=>{let{className:t,activeTab:a}=e;const n=(0,ka.TH)(),r=(0,w.mB)(n);return(0,d.jsx)("div",{className:t,children:(0,d.jsx)(N.m,{size:"l",allowNotSelected:!0,activeTab:a,items:jp,wrapTo:(e,t)=>{let{id:a}=e;const n=(0,ze.Sj)({...r,[ze.XV.queryTab]:a});return(0,d.jsx)(ls.h,{to:n,children:t},a)}})})};var Sp=a(20847),Tp=a(16459);const wp=(0,c.cn)("ydb-saved-queries"),Ep=e=>{let{visible:t,queryName:a,onCancelClick:n,onConfirmClick:r}=e;return(0,d.jsxs)(Zm.V,{open:t,hasCloseButton:!1,size:"s",onClose:n,onEnterKeyDown:r,children:[(0,d.jsx)(Zm.V.Header,{caption:yc("delete-dialog.header")}),(0,d.jsxs)(Zm.V.Body,{className:wp("dialog-body"),children:[yc("delete-dialog.question"),(0,d.jsx)("span",{className:wp("dialog-query-name"),children:` ${a}?`})]}),(0,d.jsx)(Zm.V.Footer,{textButtonApply:yc("delete-dialog.delete"),textButtonCancel:yc("delete-dialog.cancel"),onClickButtonCancel:n,onClickButtonApply:r})]})},Cp=e=>{let{changeUserInput:t}=e;const a=Jm(),r=(0,b.zL)(),s=(0,b.ix)(kc.zC),[i,o]=n.useState(!1),[l,c]=n.useState(""),u=()=>{o(!1),c("")},m=[{name:"name",header:"Name",render:e=>{let{row:t}=e;return(0,d.jsx)("div",{className:wp("query-name"),children:t.name})},width:200},{name:"body",header:"Query Text",render:e=>{let{row:t}=e;return(0,d.jsxs)("div",{className:wp("query"),children:[(0,d.jsx)("div",{className:wp("query-body"),children:(0,d.jsx)(gs,{value:t.body,maxQueryHeight:ks})}),(0,d.jsxs)("span",{className:wp("controls"),children:[(0,d.jsx)(er.z,{view:"flat-secondary",children:(0,d.jsx)(Ue.J,{data:Sp.Z})}),(0,d.jsx)(er.z,{view:"flat-secondary",onClick:(a=t.name,e=>{e.stopPropagation(),o(!0),c(a)}),children:(0,d.jsx)(Ue.J,{data:Tp.Z})})]})]});var a},sortable:!1,resizeMinWidth:650}];return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsxs)($e.l,{className:wp(),children:[(0,d.jsx)($e.l.Controls,{children:(0,d.jsx)(Ge.o,{onChange:e=>{r((0,kc.b0)(e))},placeholder:yc("filter.text.placeholder"),className:wp("search")})}),(0,d.jsx)($e.l.Table,{children:(0,d.jsx)(oe.G,{columnsWidthLSKey:"savedQueriesTableColumnsWidth",columns:m,data:a,settings:Ls,emptyDataMessage:yc(s?"history.empty-search":"saved.empty"),rowClassName:()=>wp("row"),onRowClick:e=>{return a=e.body,n=e.name,t({input:a}),r((0,kc.GC)(n)),void r((0,C.jk)(j._0.newQuery));var a,n},initialSortOrder:{columnId:"name",order:fe.ZP.ASCENDING}})})]}),(0,d.jsx)(Ep,{visible:i,queryName:l,onCancelClick:()=>{u()},onConfirmClick:()=>{u(),r((0,kc.qF)(l)),c("")}})]})},Ip=(0,c.cn)("ydb-query"),Pp=e=>{const t=(0,b.zL)(),{queryTab:a=j._0.newQuery}=(0,b.ix)((e=>e.tenant)),s=e=>{t((0,ms.B8)(e))},i=n.useMemo((()=>jp.find((e=>{let{id:t}=e;return t===a}))),[a]);return(0,d.jsxs)("div",{className:Ip(),children:[i?(0,d.jsx)(r.ql,{children:(0,d.jsx)("title",{children:i.title})}):null,(0,d.jsx)(Np,{className:Ip("tabs"),activeTab:a}),(0,d.jsx)("div",{className:Ip("content"),children:(()=>{switch(a){case j._0.newQuery:return(0,d.jsx)(yp,{changeUserInput:s,...e});case j._0.history:return(0,d.jsx)(jc,{changeUserInput:s});case j._0.saved:return(0,d.jsx)(Cp,{changeUserInput:s});default:return null}})()})]})};var Rp=a(68309),Dp=a(85807);const _p=["query","diagnostics"],Ap={query:Rp.Z,diagnostics:Dp.Z};const Op=(0,c.cn)("ydb-tenant-navigation"),kp=e=>{let{id:t,title:a,icon:n}=e;return{value:t,content:(0,d.jsxs)("span",{className:Op("item"),children:[(0,d.jsx)(Ue.J,{data:n,size:16,className:Op("icon")}),(0,d.jsx)("span",{className:Op("text"),children:a})]})}},Lp=()=>{const e=function(){const e=(0,ka.k6)(),t=(0,ka.TH)(),a=(0,w.mB)(t),[,r]=(0,b.yu)(y.pf),{tenantPage:s}=(0,b.ix)((e=>e.tenant)),i=n.useMemo((()=>{if(t.pathname!==w.ZP.tenant)return[];const n=_p.map((t=>{const n=j.m2[t],i=(0,ze.Sj)({...a,[j.bS]:n});return{id:n,title:bn(`pages.${t}`),icon:Ap[t],path:i,current:s===n,onForward:()=>{r(n),e.push(i)}}}));return n}),[s,r,t.pathname,e,a]);return i}();return(0,d.jsx)("div",{className:Op(),children:(0,d.jsx)(ql.E,{width:"auto",onUpdate:t=>{const a=e.find((e=>e.id===t));null===a||void 0===a||a.onForward()},size:"l",className:Op("body"),value:(e.find((e=>e.current))||e[0]).id,options:e.map(kp)})})},Mp=(0,c.cn)("object-general");const qp=function(e){const t=(0,f.C)(),{tenantPage:a}=(0,b.ix)((e=>e.tenant));return(0,d.jsxs)("div",{className:Mp(),children:[(0,d.jsx)(Lp,{}),(()=>{const{type:n,additionalTenantProps:r,additionalNodesProps:s,tenantName:i,path:o}=e;return a===j.m2.query?(0,d.jsx)(Pp,{tenantName:i,path:o,theme:t,type:n}):(0,d.jsx)(gc,{type:n,tenantName:i,path:o,additionalTenantProps:r,additionalNodesProps:s})})()]})};var zp=a(14495);const Fp=g.h.injectEndpoints({endpoints:e=>({getSchemaAcl:e.query({queryFn:async(e,t)=>{let{path:a,database:n}=e,{signal:r}=t;try{const e=await window.api.getSchemaAcl({path:a,database:n},{signal:r});return{data:{acl:e.Common.ACL,effectiveAcl:e.Common.EffectiveACL,owner:e.Common.Owner,interruptInheritance:e.Common.InterruptInheritance}}}catch(s){return{error:s}}},providesTags:["All"]})}),overrideExisting:"throw"}),Qp=JSON.parse('{"title_rights":"Access Rights","title_effective-rights":"Effective Access Rights","title_owner":"Owner","title_interupt-inheritance":"Interrupt inheritance","description_empty":"No Acl data"}'),Up=(0,ve.wZ)("ydb-acl",{en:Qp}),Bp=(0,c.cn)("ydb-acl"),Gp=e=>{if(e&&e.endsWith("@staff")&&!e.startsWith("svc_")){return e.split("@")[0]}return e},$p=["access","type","inheritance"],Hp={access:"Access",type:"Access type",inheritance:"Inheritance type"},Vp="Allow",Zp=new Set(["Object","Container"]);function Wp(e){let{value:t}=e;const a="string"===typeof t?[t]:t;return(0,d.jsx)("div",{className:Bp("definition-content"),children:a.map((e=>(0,d.jsx)("span",{children:e},e)))})}function Jp(e){if(!e||!e.length)return[];const t=function(e){return e.map((e=>{const{AccessRules:t=[],AccessRights:a=[],AccessType:n,InheritanceType:r,Subject:s}=e,i=t.concat(a),o=n===Vp?void 0:n;let l;return((null===r||void 0===r?void 0:r.length)!==Zp.size||r.some((e=>!Zp.has(e))))&&(l=r),{access:i.length?i:void 0,type:o,inheritance:l,Subject:s}}))}(e);return t.map((e=>{let{Subject:t,...a}=e;const n=Object.entries(a).filter((e=>{let[t,a]=e;return Boolean(a)}));return 1===n.length&&"access"===n[0][0]?{name:t,content:(0,d.jsx)(Wp,{value:n[0][1]}),multilineName:!0}:{label:(0,d.jsx)("span",{className:Bp("group-label"),children:t}),items:$p.map((e=>{const t=a[e];if(t)return{name:Hp[e],content:(0,d.jsx)(Wp,{value:t}),multilineName:!0}})).filter(wn.D)}}))}const Kp=e=>{let{path:t,database:a}=e;const{currentData:r,isFetching:s,error:i}=Fp.useGetSchemaAclQuery({path:t,database:a}),o=s&&!r,{acl:l,effectiveAcl:c,owner:u,interruptInheritance:m}=r||{},p=Jp(l),h=Jp(c),v=function(e){const t=Gp(e);return t?[{name:t,content:Up("title_owner"),multilineName:!0}]:[]}(u),g=m?[{name:Up("title_interupt-inheritance"),content:(0,d.jsx)(Ue.J,{data:zp.Z,size:20}),multilineName:!0}]:[];if(o)return(0,d.jsx)(D.a,{});if(i)return(0,d.jsx)(R.V,{error:i});if(!l&&!u&&!c)return(0,d.jsx)(n.Fragment,{children:Up("description_empty")});const x=v.concat(p);return(0,d.jsxs)("div",{className:Bp(),children:[(0,d.jsx)(Yp,{items:g}),(0,d.jsx)(Yp,{items:x,title:Up("title_rights")}),(0,d.jsx)(Yp,{items:h,title:Up("title_effective-rights")})]})};function Yp(e){let{items:t,title:a}=e;return t.length?(0,d.jsxs)(n.Fragment,{children:[a&&(0,d.jsx)("div",{className:Bp("list-title"),children:a}),(0,d.jsx)(Ba.w,{items:t,nameMaxWidth:200,className:Bp("result",{"no-title":!a}),responsive:!0})]}):null}var Xp=a(9593);const eh=(e,t,a)=>{const{setActivePath:n}=a;return{openPreview:()=>{t(g.h.util.invalidateTags(["PreviewData"])),t((0,aa.m7)(!0)),t((0,C.Cs)(j.m2.query)),t((0,C.jk)(j._0.newQuery)),n(e)}}},th=(e,t)=>(0,d.jsx)(er.z,{view:"flat-secondary",onClick:e.openPreview,title:bn("actions.openPreview"),size:t||"s",children:(0,d.jsx)(Ue.J,{data:Xp.Z})}),ah=(e,t,a)=>(n,r)=>{const s=eh(n,e,t),i=th(s,a);return{async_replication:void 0,database:void 0,directory:void 0,table:i,column_table:i,index_table:void 0,topic:void 0,stream:void 0,index:void 0,external_table:i,external_data_source:void 0,view:i}[r]},nh=(e,t,a)=>(n,r)=>{const s=eh(n,e,t);return{preview:th(s,a)}[r]};var rh=a(59687),sh=a(69886),ih=a.n(sh),oh=a(63660);const lh=function(e){let{name:t,title:a,type:n,content:r}=e;return oh.m.add({name:null!==t&&void 0!==t?t:"Request succeeded",title:null!==a&&void 0!==a?a:"Request succeeded",theme:"error"===n?"danger":"success",content:r,isClosable:!0,autoHiding:"success"===n&&5e3})};function ch(e,t){const a=e.replace(/^\/+|\/+$/g,""),n=t.replace(/^\/+|\/+$/g,"");if(!a.startsWith(n))return a||"/";if(a===n)return`/${a}`;let r=a.slice(n.length);return r=r.replace(/^\/+/,"")||"/",r}function dh(e,t){return t===ke.gb.EPathTypeDir&&(2===e.split("/").length&&e.startsWith("/"))}const uh=e=>`-- docs: https://ydb.tech/en/docs/yql/reference/syntax/create_table\nCREATE TABLE \`${e}/ydb_row_table\` (\n category_id Uint64 NOT NULL,\n id Uint64,\n expire_at Datetime,\n updated_on Datetime,\n name Text,\n \`binary-payload\` Bytes,\n attributes JsonDocument,\n -- uncomment to add a secondary index\n -- INDEX idx_row_table_id GLOBAL SYNC ON ( id ) COVER ( name, attributes ), -- Secondary indexes docs https://ydb.tech/en/docs/yql/reference/syntax/create_table#secondary_index\n PRIMARY KEY (category_id, id)\n) \nWITH (\n AUTO_PARTITIONING_BY_SIZE = ENABLED,\n AUTO_PARTITIONING_PARTITION_SIZE_MB = 2048,\n AUTO_PARTITIONING_BY_LOAD = ENABLED,\n AUTO_PARTITIONING_MIN_PARTITIONS_COUNT = 4,\n AUTO_PARTITIONING_MAX_PARTITIONS_COUNT = 1024\n -- uncomment to create a table with predefined partitions\n -- , UNIFORM_PARTITIONS = 4 -- The number of partitions for uniform initial table partitioning.\n -- The primary key's first column must have type Uint64 or Uint32.\n -- A created table is immediately divided into the specified number of partitions\n -- uncomment to launch read only replicas in every AZ\n -- , READ_REPLICAS_SETTINGS = 'PER_AZ:1' -- Enable read replicas for stale read, launch one replica in every availability zone\n -- uncomment to enable ttl\n -- , TTL = Interval("PT1H") ON expire_at -- Enable background deletion of expired rows https://ydb.tech/en/docs/concepts/ttl\n -- uncomment to create a table with a bloom filter\n -- , KEY_BLOOM_FILTER = ENABLED -- With a Bloom filter, you can more efficiently determine\n -- if some keys are missing in a table when making multiple single queries by the primary key.\n)`,mh=e=>`-- docs: https://ydb.tech/en/docs/yql/reference/syntax/create_table#olap-tables\nCREATE TABLE \`${e}/ydb_column_table\` (\n id Int64 NOT NULL,\n author Text,\n title Text,\n body Text,\n PRIMARY KEY (id)\n)\nPARTITION BY HASH(id)\nWITH (STORE = COLUMN)`,ph=()=>'CREATE OBJECT secret_name (TYPE SECRET) WITH value="secret_value";\n\nCREATE ASYNC REPLICATION my_replication\nFOR `/remote_database/table_name` AS `local_table_name` --[, `/remote_database/another_table_name` AS `another_local_table_name` ...]\nWITH (\n CONNECTION_STRING="grpcs://mydb.ydb.tech:2135/?database=/remote_database",\n TOKEN_SECRET_NAME = "secret_name"\n -- ENDPOINT="mydb.ydb.tech:2135",\n -- DATABASE=`/remote_database`,\n -- USER="user",\n -- PASSWORD_SECRET_NAME="your_password"\n);',hh=e=>`ALTER TABLE \`${e}\`\n ADD COLUMN numeric_column Int32;`,vh=e=>`SELECT *\n FROM \`${e}\`\n LIMIT 10;`,gh=e=>`UPSERT INTO \`${e}\`\n ( \`id\`, \`name\` )\nVALUES ( );`,xh=e=>`DROP EXTERNAL TABLE \`${e}\`;`,yh=e=>`CREATE EXTERNAL TABLE \`${e.split("/").slice(0,-1).join("/")}/my_external_table\` (\n column1 Int,\n column2 Int\n) WITH (\n DATA_SOURCE="${e}",\n LOCATION="",\n FORMAT="json_as_string",\n \`file_pattern\`=""\n);`,bh=e=>`-- docs: https://ydb.tech/en/docs/yql/reference/syntax/create_topic\nCREATE TOPIC \`${e}/my_topic\` (\n CONSUMER consumer1,\n CONSUMER consumer2 WITH (read_from = Datetime('1970-01-01T00:00:00Z')) -- Sets up the message write time starting from which the consumer will receive data.\n -- Value type: Datetime OR Timestamp OR integer (unix-timestamp in the numeric format). \n -- Default value: now\n) WITH (\n min_active_partitions = 1, -- Minimum number of topic partitions.\n partition_count_limit = 0, -- Maximum number of active partitions in the topic. 0 is interpreted as unlimited.\n retention_period = Interval('PT18H'), -- Data retention period in the topic. Value type: Interval.\n retention_storage_mb = 0, -- Limit on the maximum disk space occupied by the topic data. \n -- When this value is exceeded, the older data is cleared, like under a retention policy. \n -- 0 is interpreted as unlimited.\n partition_write_speed_bytes_per_second = 1048576, -- Maximum allowed write speed per partition.\n partition_write_burst_bytes = 0 -- Write quota allocated for write bursts. \n -- When set to zero, the actual write_burst value is equalled to \n -- the quota value (this allows write bursts of up to one second).\n);`,fh=e=>`-- docs: https://ydb.tech/en/docs/yql/reference/syntax/alter_topic\nALTER TOPIC \`${e}\`\n ADD CONSUMER new_consumer WITH (read_from = Datetime('1970-01-01T00:00:00Z')), -- Sets up the message write time starting from which the consumer will receive data.\n -- Value type: Datetime OR Timestamp OR integer (unix-timestamp in the numeric format).\n -- Default value: now\n ALTER CONSUMER consumer1 SET (read_from = Datetime('1970-01-01T00:00:00Z')),\n DROP CONSUMER consumer2,\n SET (\n min_active_partitions = 1, -- Minimum number of topic partitions.\n partition_count_limit = 0, -- Maximum number of active partitions in the topic. 0 is interpreted as unlimited.\n retention_period = Interval('PT18H'), -- Data retention period in the topic. Value type: Interval.\n retention_storage_mb = 0, -- Limit on the maximum disk space occupied by the topic data. \n -- When this value is exceeded, the older data is cleared, like under a retention policy. \n -- 0 is interpreted as unlimited.\n partition_write_speed_bytes_per_second = 1048576, -- Maximum allowed write speed per partition.\n partition_write_burst_bytes = 0 -- Write quota allocated for write bursts. \n -- When set to zero, the actual write_burst value is equalled to\n -- the quota value (this allows write bursts of up to one second).\n );`,jh=e=>`DROP TOPIC \`${e}\`;`,Nh=e=>`CREATE VIEW \`${e}/my_view\` WITH (security_invoker = TRUE) AS SELECT 1;`,Sh=e=>`DROP VIEW \`${e}\`;`,Th=e=>`DROP ASYNC REPLICATION \`${e}\`;`,wh=e=>`ALTER ASYNC REPLICATION \`${e}\` SET (STATE = "DONE", FAILOVER_MODE = "FORCE");`,Eh=(e,t,a)=>{let{path:n,relativePath:r}=e;const{setActivePath:s,updateQueryExecutionSettings:i,showCreateDirectoryDialog:o}=a,l=(e,a)=>()=>{a&&i({queryMode:a}),t((0,ms.B8)({input:e(r)})),t((0,C.Cs)(j.m2.query)),t((0,C.jk)(j._0.newQuery)),s(n)};return{createDirectory:o?()=>{o(n)}:void 0,createTable:l(uh,"script"),createColumnTable:l(mh,"script"),createAsyncReplication:l(ph,"script"),alterAsyncReplication:l(wh,"script"),dropAsyncReplication:l(Th,"script"),alterTable:l(hh,"script"),selectQuery:l(vh),upsertQuery:l(gh),createExternalTable:l(yh,"script"),dropExternalTable:l(xh,"script"),selectQueryFromExternalTable:l(vh,"query"),createTopic:l(bh,"script"),alterTopic:l(fh,"script"),dropTopic:l(jh,"script"),createView:l(Nh,"script"),dropView:l(Sh,"script"),copyPath:()=>{try{ih()(r),lh({name:"Copied",title:bn("actions.copied"),type:"success"})}catch{lh({name:"Not copied",title:bn("actions.notCopied"),type:"error"})}}}},Ch=function(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return(n,r)=>{const s=ch(n,a),i=Eh({path:n,relativePath:s},e,t),o={text:bn("actions.copyPath"),action:i.copyPath},l=[[o],[{text:bn("actions.createTable"),action:i.createTable},{text:bn("actions.createColumnTable"),action:i.createColumnTable},{text:bn("actions.createAsyncReplication"),action:i.createAsyncReplication},{text:bn("actions.createTopic"),action:i.createTopic},{text:bn("actions.createView"),action:i.createView}]];i.createDirectory&&l.splice(1,0,[{text:bn("actions.createDirectory"),action:i.createDirectory}]);const c=[[o],[{text:bn("actions.alterTable"),action:i.alterTable},{text:bn("actions.selectQuery"),action:i.selectQuery},{text:bn("actions.upsertQuery"),action:i.upsertQuery}]],d=[[o],[{text:bn("actions.alterTopic"),action:i.alterTopic},{text:bn("actions.dropTopic"),action:i.dropTopic}]],u=[[o],[{text:bn("actions.selectQuery"),action:i.selectQueryFromExternalTable}],[{text:bn("actions.dropTable"),action:i.dropExternalTable}]],m=[[o],[{text:bn("actions.createExternalTable"),action:i.createExternalTable}]],p=[[o],[{text:bn("actions.selectQuery"),action:i.selectQuery}],[{text:bn("actions.dropView"),action:i.dropView}]],h=[o];return{async_replication:[[o],[{text:bn("actions.alterReplication"),action:i.alterAsyncReplication},{text:bn("actions.dropReplication"),action:i.dropAsyncReplication}]],database:l,directory:l,table:c,column_table:c,index_table:h,topic:d,stream:h,index:h,external_table:u,external_data_source:m,view:p}[r]}},Ih=(0,c.cn)("ydb-schema-create-directory-dialog"),Ph="relativePath";function Rh(e){let{open:t,onClose:a,database:r,parentPath:s,onSuccess:i}=e;const[o,l]=n.useState(""),[c,u]=n.useState(""),[m,p]=aa.m3.useCreateDirectoryMutation(),h=()=>{l(""),p.reset()},v=()=>{a(),u(""),h()};return(0,d.jsxs)(Zm.V,{open:t,onClose:v,size:"s",children:[(0,d.jsx)(Zm.V.Header,{caption:bn("schema.tree.dialog.header")}),(0,d.jsxs)("form",{onSubmit:e=>{e.preventDefault();const t=(a=c)?/\s/.test(a)?bn("schema.tree.dialog.whitespace"):"":bn("schema.tree.dialog.empty");var a;l(t),t||m({database:r,path:`${s}/${c}`}).unwrap().then((()=>{v(),i(c)}))},children:[(0,d.jsxs)(Zm.V.Body,{children:[(0,d.jsxs)("label",{htmlFor:Ph,className:Ih("label"),children:[(0,d.jsx)("span",{className:Ih("description"),children:bn("schema.tree.dialog.description")}),`${s}/`]}),(0,d.jsx)("div",{className:Ih("input-wrapper"),children:(0,d.jsx)(Wm.o,{placeholder:bn("schema.tree.dialog.placeholder"),value:c,onUpdate:e=>{u(e),h()},autoFocus:!0,hasClear:!0,autoComplete:!1,disabled:p.isLoading,validationState:o?"invalid":void 0,id:Ph,errorMessage:o})}),p.isError&&(0,d.jsx)(R.V,{error:p.error,defaultMessage:bn("schema.tree.dialog.invalid")})]}),(0,d.jsx)(Zm.V.Footer,{loading:p.isLoading,textButtonApply:bn("schema.tree.dialog.buttonApply"),textButtonCancel:bn("schema.tree.dialog.buttonCancel"),onClickButtonCancel:v,propsButtonApply:{type:"submit"}})]})]})}function Dh(e){const t=(0,E.j0)(),{rootPath:a,rootName:r,rootType:s,currentPath:i,onActivePathUpdate:o}=e,l=(0,b.zL)(),[c,u]=(0,b.dU)(),[m,p]=n.useState(!1),[h,v]=n.useState(""),[g,x]=n.useState("");n.useEffect((()=>{null!==i&&void 0!==i&&i.startsWith(a)||o(a)}),[i,o,a]);return(0,d.jsxs)(n.Fragment,{children:[(0,d.jsx)(Rh,{onClose:()=>{p(!1)},open:m,database:a,parentPath:h,onSuccess:e=>{const t=`${h}/${e}`;o(t),x(t)}}),(0,d.jsx)(rh.f,{rootState:{path:a,name:r,type:(0,me.lZ)(s),collapsed:!1},fetchPath:async e=>{let t;for(;;){const n=l(aa.m3.endpoints.getSchema.initiate({path:e,database:a},{forceRefetch:!0})),{data:r,originalArgs:s}=await n;if(n.unsubscribe(),(null===s||void 0===s?void 0:s.path)===e){t=null===r||void 0===r?void 0:r[e];break}}if(!t)throw new Error(`no describe data about path ${e}`);const{PathDescription:{Children:n=[]}={}}=t;return n.map((e=>{const{Name:t="",PathType:a,PathSubType:n}=e;return{name:t,type:(0,me.lZ)(a,n),expandable:!(0,me.Sb)(a,n)}}))},getActions:Ch(l,{setActivePath:o,updateQueryExecutionSettings:e=>u({...c,...e}),showCreateDirectoryDialog:t?e=>{v(e),p(!0)}:void 0},a),renderAdditionalNodeElements:ah(l,{setActivePath:o}),activePath:i,onActivePathUpdate:o,cache:!1,virtualize:!0},g)]})}const _h=JSON.parse('{"title_navigation":"Navigation","field_source-type":"Source Type","field_data-source":"Data Source","action_copySchemaPath":"Copy schema path","action_openInDiagnostics":"Open in Diagnostics","field_type":"Type","field_subtype":"SubType","field_id":"Id","field_version":"Version","field_created":"Created","field_data-size":"Data size","field_row-count":"Row count","field_partitions":"Partitions count","field_paths":"Paths","field_shards":"Shards","field_state":"State","field_mode":"Mode","field_format":"Format","field_retention":"Retention"}'),Ah=(0,ve.wZ)("ydb-object-summary",{en:_h}),Oh=(0,c.cn)("ydb-object-summary");function kh(e){var t;let{tenantName:a,path:n}=e;const{data:r={},isLoading:i}=(0,aa.hz)({path:a,database:a}),o=null===r||void 0===r||null===(t=r.PathDescription)||void 0===t?void 0:t.Self,[,l]=(0,s.useQueryParam)("schema",s.StringParam);return!o&&i?(0,d.jsx)("div",{children:(0,d.jsx)(D.a,{})}):(0,d.jsxs)("div",{className:Oh("tree-wrapper"),children:[(0,d.jsx)("div",{className:Oh("tree-header"),children:Ah("title_navigation")}),(0,d.jsx)("div",{className:Oh("tree"),children:o?(0,d.jsx)(Dh,{rootPath:a,rootName:o.Name||a,rootType:o.PathType,currentPath:n,onActivePathUpdate:l}):null})]})}var Lh=a(47471);function Mh(){const e=(0,b.zL)(),{diagnosticsTab:t,tenantPage:a}=(0,b.ix)((e=>e.tenant)),n=a===j.m2.diagnostics&&t===j.qQ.schema;return(0,d.jsx)("div",{children:!n&&(0,d.jsx)(er.z,{title:Ah("action_openInDiagnostics"),onClick:()=>{e((0,C.Cs)(j.m2.diagnostics)),e((0,C.$v)(j.qQ.schema))},size:"s",children:(0,d.jsx)(Ue.J,{data:Lh.Z,size:14})})})}const qh=()=>({triggerExpand:!1,triggerCollapse:!1,collapsed:Boolean(localStorage.getItem(y.Mn))});function zh(e){var t;let{type:a,subType:r,tenantName:i,path:o,onCollapseSummary:l,onExpandSummary:c,isCollapsed:u}=e;const[m]=(0,b.Rj)(),p=(0,b.zL)(),[,v]=(0,s.useQueryParam)("schema",s.StringParam),[g,f]=n.useReducer(ad(y.Mn),void 0,qh),{summaryTab:T=j.uw.overview}=(0,b.ix)((e=>e.tenant)),E=(0,ka.TH)(),I=xt().parse(E.search,{ignoreQueryPrefix:!0}),{currentData:P}=x.useGetOverviewQuery({paths:[o],database:i},{pollingInterval:m}),{data:R}=null!==P&&void 0!==P?P:{},D=null===R||void 0===R||null===(t=R.PathDescription)||void 0===t?void 0:t.Self;n.useEffect((()=>{const e=(0,me.vp)(a);!a||e||ze.Cc.find((e=>e.id===T))||p((0,C.Tu)(j.uw.overview))}),[p,a,T]);const _=()=>{const e=(0,me.vp)(a)?[...ze.Cc,...ze.c7]:ze.Cc;return(0,d.jsx)("div",{className:Oh("tabs"),children:(0,d.jsxs)(Ja.k,{className:Oh("tabs-inner"),justifyContent:"space-between",alignItems:"center",children:[(0,d.jsx)(N.m,{size:"l",items:e,activeTab:T,wrapTo:(e,t)=>{let{id:a}=e;const n=(0,w.ax)(w.ZP.tenant,void 0,{...I,name:i,[ze.XV.summaryTab]:a});return(0,d.jsx)(S.rU,{to:n,className:Oh("tab"),children:t},a)},allowNotSelected:!0}),T===j.uw.schema&&(0,d.jsx)(Mh,{})]})})},A=()=>{switch(T){case j.uw.acl:return(0,d.jsx)(Kp,{path:o,database:i});case j.uw.schema:return(0,d.jsx)(qe,{type:a,path:o,tenantName:i});default:return(()=>{var e;if(!D)return;const{CreateStep:t,PathType:a,PathSubType:n,PathId:r,PathVersion:s}=D,i=[],l=dh(o,a)?"Domain":null===a||void 0===a?void 0:a.replace(/^EPathType/,"");i.push({label:Ah("field_type"),value:l}),n!==ke.mR.EPathSubTypeEmpty&&i.push({label:Ah("field_subtype"),value:null===n||void 0===n?void 0:n.replace(/^EPathSubType/,"")}),i.push({label:Ah("field_id"),value:r}),i.push({label:Ah("field_version"),value:s}),i.push({label:Ah("field_created"),value:(0,O.o0)(t)});const{PathDescription:c}=R;if(null!==c&&void 0!==c&&c.TableStats){const{DataSize:e,RowCount:t}=c.TableStats;i.push({label:Ah("field_data-size"),value:ha(e)},{label:Ah("field_row-count"),value:(0,O.uf)(t)})}const u=(0,d.jsx)(fn,{data:c}),m=()=>{var e;const{PathsInside:t,ShardsInside:a,PathsLimit:n,ShardsLimit:r}=null!==(e=null===c||void 0===c?void 0:c.DomainDescription)&&void 0!==e?e:{};let s=(0,O.uf)(t),i=(0,O.uf)(a);return s&&n&&(s=`${s} / ${(0,O.uf)(n)}`),i&&r&&(i=`${i} / ${(0,O.uf)(r)}`),[{label:Ah("field_paths"),value:s},{label:Ah("field_shards"),value:i}]},p={[ke.gb.EPathTypeInvalid]:void 0,[ke.gb.EPathTypeDir]:void 0,[ke.gb.EPathTypeTable]:()=>{var e;return[{label:Ah("field_partitions"),value:null===c||void 0===c||null===(e=c.TablePartitions)||void 0===e?void 0:e.length}]},[ke.gb.EPathTypeSubDomain]:m,[ke.gb.EPathTypeTableIndex]:void 0,[ke.gb.EPathTypeExtSubDomain]:m,[ke.gb.EPathTypeColumnStore]:()=>{var e,t;return[{label:Ah("field_partitions"),value:null===c||void 0===c||null===(e=c.ColumnStoreDescription)||void 0===e||null===(t=e.ColumnShards)||void 0===t?void 0:t.length}]},[ke.gb.EPathTypeColumnTable]:()=>{var e,t,a;return[{label:Ah("field_partitions"),value:null===c||void 0===c||null===(e=c.ColumnTableDescription)||void 0===e||null===(t=e.Sharding)||void 0===t||null===(a=t.ColumnShards)||void 0===a?void 0:a.length}]},[ke.gb.EPathTypeCdcStream]:()=>{const{Mode:e,Format:t}=(null===c||void 0===c?void 0:c.CdcStreamDescription)||{};return[{label:Ah("field_mode"),value:null===e||void 0===e?void 0:e.replace(/^ECdcStreamMode/,"")},{label:Ah("field_format"),value:null===t||void 0===t?void 0:t.replace(/^ECdcStreamFormat/,"")}]},[ke.gb.EPathTypePersQueueGroup]:()=>{var e,t,a;const n=null===c||void 0===c?void 0:c.PersQueueGroup,r=null===n||void 0===n||null===(e=n.PQTabletConfig)||void 0===e||null===(t=e.PartitionConfig)||void 0===t?void 0:t.LifetimeSeconds;return[{label:Ah("field_partitions"),value:null===n||void 0===n||null===(a=n.Partitions)||void 0===a?void 0:a.length},{label:Ah("field_retention"),value:r&&(0,O.xh)(r)}]},[ke.gb.EPathTypeExternalTable]:()=>{var e,t;const a=(0,w.vF)({...I,schema:null===c||void 0===c||null===(e=c.ExternalTableDescription)||void 0===e?void 0:e.DataSourcePath}),{SourceType:n,DataSourcePath:r}=(null===c||void 0===c?void 0:c.ExternalTableDescription)||{},s=(null===r||void 0===r||null===(t=r.match(/([^/]*)\/*$/))||void 0===t?void 0:t[1])||"";return[{label:Ah("field_source-type"),value:n},{label:Ah("field_data-source"),value:r&&(0,d.jsx)("span",{title:r,children:(0,d.jsx)(La.j,{title:s||"",url:a})})}]},[ke.gb.EPathTypeExternalDataSource]:()=>{var e;return[{label:Ah("field_source-type"),value:null===c||void 0===c||null===(e=c.ExternalDataSourceDescription)||void 0===e?void 0:e.SourceType}]},[ke.gb.EPathTypeView]:void 0,[ke.gb.EPathTypeReplication]:()=>{var e;const t=null===c||void 0===c||null===(e=c.ReplicationDescription)||void 0===e?void 0:e.State;return t?[{label:Ah("field_state"),value:(0,d.jsx)(Ka,{state:t})}]:[]}},h=a&&(null===(e=p[a])||void 0===e?void 0:e.call(p))||[];return i.push(...h),(0,d.jsx)(Di._,{title:u,info:i.filter((e=>e.value))})})()}},k=()=>{f(Xc.triggerCollapse)},L=()=>{f(Xc.triggerExpand)},M=()=>{f(Xc.clear)},q=ch(o,i),z=()=>{const e=(0,me.vp)(a)&&!(0,me.dC)(r);return(0,d.jsxs)(n.Fragment,{children:[e&&nh(p,{setActivePath:v},"m")(o,"preview"),(0,d.jsx)(sd.m,{text:q,view:"flat-secondary",title:Ah("action_copySchemaPath")}),(0,d.jsx)(rd,{onCollapse:k,onExpand:L,isCollapsed:g.collapsed,initialDirection:"bottom"})]})},F=()=>{const{Status:e,Reason:t}=null!==R&&void 0!==R?R:{};if(a){let e=a.replace("EPathType","");return dh(o,a)&&(e="domain"),(0,d.jsx)("div",{className:Oh("entity-type"),children:e})}let n;return e&&t&&(n=`${e}: ${t}`),(0,d.jsx)("div",{className:Oh("entity-type",{error:!0}),children:(0,d.jsx)(bt.J,{content:n,offset:{left:0}})})};return(0,d.jsxs)("div",{className:Oh(),children:[(0,d.jsx)("div",{className:Oh({hidden:u}),children:(0,d.jsxs)(h,{direction:"vertical",defaultSizePaneKey:y.wr,onSplitStartDragAdditional:M,triggerCollapse:g.triggerCollapse,triggerExpand:g.triggerExpand,minSize:[200,52],collapsedSizes:[100,0],children:[(0,d.jsx)(kh,{tenantName:i,path:o}),(0,d.jsxs)("div",{className:Oh("info"),children:[(0,d.jsxs)("div",{className:Oh("sticky-top"),children:[(0,d.jsxs)("div",{className:Oh("info-header"),children:[(0,d.jsxs)("div",{className:Oh("info-title"),children:[F(),(0,d.jsx)("div",{className:Oh("path-name"),children:q})]}),(0,d.jsx)("div",{className:Oh("info-controls"),children:z()})]}),_()]}),(0,d.jsx)("div",{className:Oh("overview-wrapper"),children:A()})]})]})}),(0,d.jsx)(rd,{onCollapse:l,onExpand:c,isCollapsed:u,initialDirection:"left",className:Oh("action-button")})]})}const Fh=(0,c.cn)("tenant-page"),Qh=()=>({triggerExpand:!1,triggerCollapse:!1,collapsed:Boolean(localStorage.getItem(y.sO))});function Uh(e){var t;const[l]=(0,b.Rj)(),[c,u]=n.useReducer(ad(y.sO),void 0,Qh),[{name:m,schema:p}]=(0,s.useQueryParams)({name:s.StringParam,schema:s.StringParam});if(!m)throw new Error("Tenant name is not defined");const g=n.useRef();n.useEffect((()=>{if(g.current!==m){(async()=>{const{registerYQLCompletionItemProvider:e}=await a.e(9079).then(a.bind(a,99079));e(m)})().catch(console.error),g.current=m}}),[m]);const f=(0,b.zL)();n.useEffect((()=>{f((0,v.J)("tenant",{tenantName:m}))}),[m,f]);const j=null!==p&&void 0!==p?p:m,{currentData:N,error:S,isLoading:T}=x.useGetOverviewQuery({paths:[j],database:m},{pollingInterval:l}),{data:w}=null!==N&&void 0!==N?N:{},{PathType:E,PathSubType:C}=(null===w||void 0===w||null===(t=w.PathDescription)||void 0===t?void 0:t.Self)||{},I=(0,i.u)(S),[P,R]=n.useState(!0);P&&!T&&R(!1);const D=j||bn("page.title");return(0,d.jsxs)("div",{className:Fh(),children:[(0,d.jsx)(r.ql,{defaultTitle:`${D} \u2014 YDB Monitoring`,titleTemplate:`%s \u2014 ${D} \u2014 YDB Monitoring`}),(0,d.jsx)(o.s,{loading:P,children:(0,d.jsx)(i.S,{error:I?S:void 0,children:(0,d.jsxs)(h,{defaultSizePaneKey:y.z4,defaultSizes:[25,75],triggerCollapse:c.triggerCollapse,triggerExpand:c.triggerExpand,minSize:[36,200],onSplitStartDragAdditional:()=>{u(Xc.clear)},children:[(0,d.jsx)(zh,{type:E,subType:C,tenantName:m,path:j,onCollapseSummary:()=>{u(Xc.triggerCollapse)},onExpandSummary:()=>{u(Xc.triggerExpand)},isCollapsed:c.collapsed}),(0,d.jsx)("div",{className:Fh("main"),children:(0,d.jsx)(qp,{type:E,additionalTenantProps:e.additionalTenantProps,additionalNodesProps:e.additionalNodesProps,tenantName:m,path:j})})]})})})]})}},76386:(e,t,a)=>{"use strict";a.d(t,{_:()=>r});var n=a(51688);const r=a(905).h.injectEndpoints({endpoints:e=>({getTablet:e.query({queryFn:async(e,t)=>{let{id:a,database:r,nodeId:s}=e,{signal:i}=t;try{const[e,t,o]=await Promise.all([window.api.getTablet({id:a,database:r,nodeId:s},{signal:i}),window.api.getTabletHistory({id:a,database:r,nodeId:s},{signal:i}),window.api.getNodesList({signal:i})]),l=(0,n.Xs)(o),c=Object.keys(t).reduce(((e,a)=>{var n;const r=null===(n=t[a])||void 0===n?void 0:n.TabletStateInfo;if(r&&r.length){const t=r.find((e=>e.Leader))||r[0],{ChangeTime:n,Generation:s,State:i,Leader:o,FollowerId:c}=t,d=l&&a?l.get(Number(a)):void 0;"Dead"!==i&&e.push({nodeId:a,generation:s,changeTime:n,state:i,leader:o,followerId:c,fqdn:d})}return e}),[]),{TabletStateInfo:d=[]}=e,[u={}]=d,{TabletId:m}=u;return{data:{id:m,data:u,history:c}}}catch(o){return{error:o}}},providesTags:(e,t,a)=>["All",{type:"Tablet",id:a.id}]}),getTabletDescribe:e.query({queryFn:async(e,t)=>{let{tenantId:a}=e,{signal:n}=t;try{const e=await window.api.getTabletDescribe(a,{signal:n}),{SchemeShard:t,PathId:r}=a;return{data:(null===e||void 0===e?void 0:e.Path)||`${t}:${r}`}}catch(r){return{error:r}}},providesTags:["All"]}),getAdvancedTableInfo:e.query({queryFn:async(e,t)=>{let{id:a,hiveId:n}=e,{signal:r}=t;try{return{data:await window.api.getTabletFromHive({id:a,hiveId:n},{signal:r})}}catch(s){return{error:s}}},providesTags:(e,t,a)=>["All",{type:"Tablet",id:a.id}]}),killTablet:e.mutation({queryFn:async e=>{let{id:t}=e;try{return{data:await window.api.killTablet(t)}}catch(a){return{error:a}}},invalidatesTags:(e,t,a)=>[{type:"Tablet",id:a.id},{type:"Tablet",id:"LIST"}]}),stopTablet:e.mutation({queryFn:async e=>{let{id:t,hiveId:a}=e;try{return{data:await window.api.stopTablet(t,a)}}catch(n){return{error:n}}},invalidatesTags:(e,t,a)=>[{type:"Tablet",id:a.id},{type:"Tablet",id:"LIST"}]}),resumeTablet:e.mutation({queryFn:async e=>{let{id:t,hiveId:a}=e;try{return{data:await window.api.resumeTablet(t,a)}}catch(n){return{error:n}}},invalidatesTags:(e,t,a)=>[{type:"Tablet",id:a.id},{type:"Tablet",id:"LIST"}]})}),overrideExisting:"throw"})},24960:()=>{},26759:()=>{},56272:()=>{}}]); \ No newline at end of file
diff --git a/ydb/core/viewer/monitoring/static/js/6382.7ce31b00.chunk.js b/ydb/core/viewer/monitoring/static/js/6382.7ce31b00.chunk.js
new file mode 100644
index 0000000000..4b0f7c1928
--- /dev/null
+++ b/ydb/core/viewer/monitoring/static/js/6382.7ce31b00.chunk.js
@@ -0,0 +1 @@
+"use strict";(self.webpackChunkydb_embedded_ui=self.webpackChunkydb_embedded_ui||[]).push([[6382],{50422:(e,s,t)=>{t.d(s,{q:()=>g});var r=t(84317),a=t(17176),o=t(2418),n=t(905),i=t(24362),l=t(17096),d=t(30817);const u=JSON.parse('{"None":"None","15 sec":"15 sec","1 min":"1 min","2 min":"2 min","5 min":"5 min","Refresh":"Refresh"}'),c=(0,d.wZ)("ydb-diagnostics-autorefresh-control",{en:u});var p=t(75859);const m=(0,i.cn)("auto-refresh-control");function g(e){let{className:s}=e;const t=(0,l.zL)(),[i,d]=(0,l.Rj)();return(0,p.jsxs)("div",{className:m(null,s),children:[(0,p.jsx)(a.z,{view:"flat",onClick:()=>{t(n.h.util.invalidateTags(["All"]))},extraProps:{"aria-label":c("Refresh")},children:(0,p.jsx)(a.z.Icon,{children:(0,p.jsx)(r.Z,{})})}),(0,p.jsxs)(o.P,{value:[String(i)],onUpdate:e=>{d(Number(e))},width:85,children:[(0,p.jsx)(o.P.Option,{value:"0",children:c("None")}),(0,p.jsx)(o.P.Option,{value:"15000",children:c("15 sec")}),(0,p.jsx)(o.P.Option,{value:"60000",children:c("1 min")}),(0,p.jsx)(o.P.Option,{value:"120000",children:c("2 min")}),(0,p.jsx)(o.P.Option,{value:"300000",children:c("5 min")})]})]})}},99683:(e,s,t)=>{t.d(s,{l:()=>i});var r=t(68330),a=t(24362),o=t(75859);const n=(0,a.cn)("ydb-cell-with-popover");function i(e){let{children:s,className:t,wrapperClassName:a,...i}=e;return(0,o.jsx)("div",{className:n(null,a),children:(0,o.jsx)(r.J,{className:n("popover",t),...i,children:s})})}},90861:(e,s,t)=>{t.d(s,{m:()=>c});var r=t(27320),a=t(17176),o=t(11050),n=t(81434),i=t(24362),l=t(75859);const d=(0,i.cn)("clipboard-button");function u(e){let{className:s,status:t,title:n,...i}=e;return(0,l.jsx)(r.u,{content:"success"===t?"Copied!":n||"Copy",placement:"bottom-start",children:(0,l.jsx)(a.z,{...i,className:d(null,s),children:(0,l.jsx)(a.z.Icon,{children:(0,l.jsx)(o.K,{status:t,size:16})})})})}function c(e){let{text:s,...t}=e;return(0,l.jsx)(n.h,{text:s,timeout:1e3,children:e=>(0,l.jsx)(u,{...t,status:e})})}},41919:(e,s,t)=>{t.d(s,{Q:()=>d});var r=t(39683),a=t(17176),o=t(88776),n=t(24362),i=t(75859);const l=(0,n.cn)("developer-ui-link-button");function d(e){let{href:s,visible:t=!1,className:n}=e;return(0,i.jsx)(a.z,{size:"s",href:s,className:l({visible:t},n),target:"_blank",children:(0,i.jsx)(o.J,{data:r.Z})})}},1796:(e,s,t)=>{t.d(s,{p:()=>d});t(68963);var r=t(24362),a=t(52317),o=t(92666),n=t(17096),i=t(75859);const l=(0,r.cn)("storage-disk-progress-bar");function d(e){let{diskAllocatedPercent:s=-1,severity:t,compact:r,faded:d,inactive:u,empty:c,content:p,className:m}=e;const[g]=(0,n.yu)(a.yT),h={inverted:g,compact:r,faded:d,empty:c,inactive:u},v=void 0!==t&&(0,o.b2)(t);v&&(h[v.toLocaleLowerCase()]=!0);return(0,i.jsxs)("div",{className:l(h,m),role:"meter","aria-label":"Disk allocated space","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":s,children:[(()=>{if(r)return(0,i.jsx)("div",{className:l("fill-bar",h),style:{width:"100%"}});const e=g?100-s:s;return s>=0?(0,i.jsx)("div",{className:l("fill-bar",h),style:{width:`${e}%`}}):null})(),p||(!r&&s>=0?(0,i.jsx)("div",{className:l("title"),children:`${Math.round(s)}%`}):null)]})}},49201:(e,s,t)=>{t.d(s,{C:()=>l});var r=t(14979),a=t(24362);const o=(0,t(30817).wZ)("ydb-entities-count",{ru:{of:"\u0438\u0437"},en:{of:"of"}});var n=t(75859);const i=(0,a.cn)("ydb-entities-count"),l=e=>{let{total:s,current:t,label:a,loading:l,className:d}=e,u="";return a&&(u+=`${a}: `),l?u+="...":(u+=`${t}`,s&&Number(s)!==Number(t)&&(u+=` ${o("of")} ${s}`)),(0,n.jsx)(r._,{theme:"info",size:"m",className:i(null,d),children:u})}},69214:(e,s,t)=>{t.d(s,{A:()=>c});var r=t(86017),a=t(75850),o=t(24362),n=t(90861),i=t(68036),l=t(98366),d=t(75859);const u=(0,o.cn)("entity-status");function c(e){let{status:s=a.K.Grey,name:t="",label:o,path:c,iconPath:p,size:m="s",mode:g="color",showStatus:h=!0,externalLink:v=!1,withLeftTrim:N=!1,hasClipboardButton:k,clipboardButtonAlwaysVisible:b=!1,className:y,additionalControls:D}=e;const S=()=>h?(0,d.jsx)(l.J,{className:u("icon"),status:s,size:m,mode:g}):null;return(0,d.jsxs)("div",{className:u(null,y),title:t,children:[p?(w=p,(0,d.jsx)(r.r,{target:"_blank",href:w,children:S()})):S(),o&&(0,d.jsx)("span",{title:o,className:u("label",{size:m,state:s.toLowerCase()}),children:o}),(0,d.jsx)("span",{className:u("link",{"with-left-trim":N}),children:c?v?(0,d.jsx)(r.r,{className:u("name"),href:c,children:t}):(0,d.jsx)(i.h,{className:u("name"),to:c,children:t}):t&&(0,d.jsx)("span",{className:u("name"),children:t})}),k&&(0,d.jsx)(n.m,{text:t,size:"s",className:u("clipboard-button",{visible:b})}),D&&(0,d.jsx)("span",{className:u("additional-controls "),children:D})]});var w}},89778:(e,s,t)=>{t.d(s,{k:()=>p});var r=t(10502),a=t(92398),o=t(48169),n=t(51688),i=t(99683),l=t(41919),d=t(69214),u=t(27506),c=t(75859);const p=e=>{let{node:s,getNodeRef:t,database:p}=e;if(!s.Host)return(0,c.jsx)("span",{children:"\u2014"});const m=!(0,n.TA)(s);let g;t?g=t(s)+"internal":s.NodeId&&(g=(0,o.wq)(s.NodeId)+"internal");const h=m?(0,a.a3)(s.NodeId,{tenantName:null!==p&&void 0!==p?p:s.TenantName}):void 0,v=g?(0,c.jsx)(l.Q,{href:g}):null;return(0,c.jsx)(i.l,{disabled:!m,content:(0,c.jsx)(u.bP,{data:s}),placement:["top","bottom"],behavior:r.x.Immediate,children:(0,c.jsx)(d.A,{name:s.Host,status:s.SystemState,path:h,hasClipboardButton:!0,additionalControls:v})})}},40073:(e,s,t)=>{t.d(s,{J:()=>k,b:()=>N});var r=t(68963),a=t(44920),o=t(99337),n=t(75850),i=t(5922),l=t(24362),d=t(52317),u=t(92666),c=t(17096),p=t(55850),m=t(62206),g=t(75859);const h=(0,l.cn)("pdisk-storage-popup"),v=[n.K.Orange,n.K.Red,n.K.Yellow],N=(e,s)=>{var t;const{AvailableSize:r,TotalSize:a,State:o,PDiskId:n,NodeId:i,Path:l,Realtime:c,Type:m,Device:g}=e,h=[{label:"PDisk",value:null!==(t=(0,u.CH)(i,n))&&void 0!==t?t:d.jX},{label:"State",value:o||"not available"},{label:"Type",value:m||"unknown"}];return i&&h.push({label:"Node Id",value:i}),s&&h.push({label:"Host",value:s}),l&&h.push({label:"Path",value:l}),h.push({label:"Available",value:`${(0,p.Uz)(r)} of ${(0,p.Uz)(a)}`}),c&&v.includes(c)&&h.push({label:"Realtime",value:c}),g&&v.includes(g)&&h.push({label:"Device",value:g}),h},k=e=>{let{data:s,...t}=e;const n=(0,c.ix)(o.s),l=(0,i.D)(s.NodeId)?null===n||void 0===n?void 0:n.get(s.NodeId):void 0,d=r.useMemo((()=>N(s,l)),[s,l]);return(0,g.jsx)(a.G,{contentClassName:h(),placement:["top","bottom"],hasArrow:!0,offset:[0,12],...t,children:(0,g.jsx)(m._P,{title:"PDisk",info:d,size:"s"})})}},67359:(e,s,t)=>{t.d(s,{y:()=>c});var r=t(56829),a=t(24362),o=t(34301),n=t(55850),i=t(75859);const l=(0,a.cn)("progress-viewer"),d=e=>(0,o.uf)((0,o.W0)(Number(e),2)),u=(e,s)=>[d(e),d(s)];function c(e){let{value:s,capacity:t,formatValues:a=u,percents:o,className:d,size:c="xs",colorizeProgress:p,inverseColorize:m,warningThreshold:g=60,dangerThreshold:h=80}=e;const v=(0,r.F)();let N=Math.round(parseFloat(String(s))/parseFloat(String(t))*100)||0;N=N>100?100:N;let k=s,b=t,y="/";o?(k=N+"%",b="",y=""):a&&([k,b]=a(Number(s),Number(t)));let D=m?"danger":"good";p&&(N>g&&N<=h?D="warning":N>h&&(D=m?"good":"danger"),(0,n.kE)(t)||(N=100));const S={width:N+"%"};return(0,n.kE)(s)?(0,i.jsxs)("div",{className:l({size:c,theme:v,status:D},d),children:[(0,i.jsx)("div",{className:l("line"),style:S}),(0,i.jsx)("span",{className:l("text"),children:(0,n.kE)(t)?`${k} ${y} ${b}`:k})]}):(0,i.jsx)("div",{className:`${l({size:c})} ${d} error`,children:"no data"})}},2098:(e,s,t)=>{t.d(s,{G:()=>d});var r=t(2639),a=t(19812),o=t(24362),n=t(89712),i=t(75859);const l=(0,o.cn)("ydb-resizeable-data-table");function d(e){let{columnsWidthLSKey:s,columns:t,settings:o,wrapperClassName:d,...u}=e;const[c,p]=(0,n.M)(s),m=(0,r.B)(t,c),g={...o,defaultResizeable:!0};return(0,i.jsx)("div",{className:l(null,d),children:(0,i.jsx)(a.ZP,{theme:"yandex-cloud",columns:m,onResize:p,settings:g,...u})})}},30629:(e,s,t)=>{t.d(s,{o:()=>l});var r=t(68963),a=t(77264),o=t(24362),n=t(75859);const i=(0,o.cn)("ydb-search"),l=e=>{let{onChange:s,value:t="",className:o,debounce:l=200,placeholder:d}=e;const[u,c]=r.useState(t),p=r.useRef();r.useEffect((()=>{c((e=>e!==t?t:e))}),[t]);return(0,n.jsx)(a.o,{hasClear:!0,autoFocus:!0,className:i(null,o),placeholder:d,value:u,onUpdate:e=>{c(e),window.clearTimeout(p.current),p.current=window.setTimeout((()=>{null===s||void 0===s||s(e)}),l)}})}},98366:(e,s,t)=>{t.d(s,{J:()=>p});var r=t(67585),a=t(57225),o=t(71586),n=t(88776),i=t(75850),l=t(24362),d=t(75859);const u=(0,l.cn)("ydb-status-icon"),c={[i.K.Blue]:r.Z,[i.K.Yellow]:a.Z,[i.K.Orange]:o.Z,[i.K.Red]:a.Z};function p(e){let{status:s=i.K.Grey,size:t="s",mode:r="color",className:a}=e;const o={state:s.toLowerCase(),size:t};return"icons"===r&&s in c?(0,d.jsx)(n.J,{className:u("status-icon",o,a),data:c[s]}):(0,d.jsx)("div",{className:u("status-color",o,a)})}},22692:(e,s,t)=>{t.d(s,{h:()=>l});var r=t(56711),a=t(24362),o=t(42587),n=t(75859);const i=(0,a.cn)("table-skeleton"),l=e=>{let{rows:s=2,delay:t=600,className:a}=e;const[l]=(0,o.$)(t);return(0,n.jsxs)("div",{className:i("wrapper",{hidden:!l},a),children:[(0,n.jsxs)("div",{className:i("row"),children:[(0,n.jsx)(r.O,{className:i("col-1")}),(0,n.jsx)(r.O,{className:i("col-2")}),(0,n.jsx)(r.O,{className:i("col-3")}),(0,n.jsx)(r.O,{className:i("col-4")}),(0,n.jsx)(r.O,{className:i("col-5")})]}),[...new Array(s)].map(((e,s)=>(0,n.jsx)("div",{className:i("row"),children:(0,n.jsx)(r.O,{className:i("col-full")})},`skeleton-row-${s}`)))]})}},47101:(e,s,t)=>{t.d(s,{l:()=>i});var r=t(24362),a=t(22692),o=t(75859);const n=(0,r.cn)("ydb-table-with-controls-layout"),i=e=>{let{children:s,className:t}=e;return(0,o.jsx)("div",{className:n(null,t),children:s})};i.Controls=function(e){let{children:s,className:t}=e;return(0,o.jsx)("div",{className:n("controls-wrapper"),children:(0,o.jsx)("div",{className:n("controls",t),children:s})})},i.Table=function(e){let{children:s,loading:t,className:r}=e;return t?(0,o.jsx)(a.h,{className:n("loader")}):(0,o.jsx)("div",{className:n("table",r),children:s})}},43989:(e,s,t)=>{t.d(s,{X:()=>n});var r=t(79734),a=t(51688),o=t(75859);const n=e=>{let{value:s,onChange:t,className:n}=e;return(0,o.jsxs)(r.E,{value:s,onUpdate:t,className:n,children:[(0,o.jsx)(r.E.Option,{value:a.Uu.All,children:a.qU[a.Uu.All]}),(0,o.jsx)(r.E.Option,{value:a.Uu.SmallUptime,children:a.qU[a.Uu.SmallUptime]})]})}},80816:(e,s,t)=>{t.d(s,{a:()=>i});var r=t(14979),a=t(24362),o=t(75859);const n=(0,a.cn)("ydb-usage-label");function i(e){let{value:s,overloadThreshold:t=90,theme:a,...i}=e;return(0,o.jsxs)(r._,{theme:a,className:n({overload:Number(s)>=t}),...i,children:[s||0,"%"]})}},79255:(e,s,t)=>{t.d(s,{c:()=>G});var r=t(34301),a=t(92666),o=t(68963),n=t(24362),i=t(75859);const l=(0,n.cn)("stack"),d=e=>{let{children:s,className:t}=e;return(0,i.jsx)("div",{className:l(null,t),children:o.Children.map(s,((e,s)=>o.isValidElement(e)?(0,i.jsx)("div",{className:l("layer"),style:{"--ydb-stack-level":s},children:e}):null))})};var u=t(92398),c=t(54665),p=t(17880),m=t(5922),g=t(1796),h=t(74170),v=t(44920),N=t(14979),k=t(99337),b=t(75850),y=t(52317),D=t(17096),S=t(55850),w=t(62206),x=t(40073);const I=(0,n.cn)("vdisk-storage-popup"),P=e=>{let{data:s,...t}=e;const n=(0,a.Iz)(s),l=o.useMemo((()=>n?(e=>{var s,t,a,o;const{VDiskId:n,VDiskState:i,SatisfactionRank:l,DiskSpace:d,FrontQueues:u,Replicated:c,UnsyncedVDisks:p,AllocatedSize:m,ReadThroughput:g,WriteThroughput:h,StoragePoolName:v}=e,N=[{label:"VDisk",value:(0,r.a2)(n)},{label:"State",value:null!==i&&void 0!==i?i:"not available"}];var k,y;return v&&N.push({label:"StoragePool",value:v}),l&&(null===(s=l.FreshRank)||void 0===s?void 0:s.Flag)!==b.K.Green&&N.push({label:"Fresh",value:null===(k=l.FreshRank)||void 0===k?void 0:k.Flag}),l&&(null===(t=l.LevelRank)||void 0===t?void 0:t.Flag)!==b.K.Green&&N.push({label:"Level",value:null===(y=l.LevelRank)||void 0===y?void 0:y.Flag}),l&&null!==(a=l.FreshRank)&&void 0!==a&&a.RankPercent&&N.push({label:"Fresh",value:l.FreshRank.RankPercent}),l&&null!==(o=l.LevelRank)&&void 0!==o&&o.RankPercent&&N.push({label:"Level",value:l.LevelRank.RankPercent}),d&&d!==b.K.Green&&N.push({label:"Space",value:d}),u&&u!==b.K.Green&&N.push({label:"FrontQueues",value:u}),c||N.push({label:"Replicated",value:"NO"}),p&&N.push({label:"UnsyncVDisks",value:p}),Number(m)&&N.push({label:"Allocated",value:(0,S.Uz)(m)}),Number(g)&&N.push({label:"Read",value:(0,S.Qt)(g)}),Number(h)&&N.push({label:"Write",value:(0,S.Qt)(h)}),N})(s):(e=>{const{NodeId:s,PDiskId:t,VSlotId:r,StoragePoolName:a}=e,o=[{label:"State",value:"not available"}];return a&&o.push({label:"StoragePool",value:a}),o.push({label:"NodeId",value:null!==s&&void 0!==s?s:y.jX},{label:"PDiskId",value:null!==t&&void 0!==t?t:y.jX},{label:"VSlotId",value:null!==r&&void 0!==r?r:y.jX}),o})(s)),[s,n]),d=(0,D.ix)(k.s),u=(0,m.D)(s.NodeId)?null===d||void 0===d?void 0:d.get(s.NodeId):void 0,c=o.useMemo((()=>n&&s.PDisk&&(0,x.b)(s.PDisk,u)),[s,u,n]);return(0,i.jsxs)(v.G,{contentClassName:I(),placement:["top","bottom"],hasArrow:!0,offset:[0,12],...t,children:[s.DonorMode&&(0,i.jsx)(N._,{className:I("donor-label"),children:"Donor"}),(0,i.jsx)(w._P,{title:"VDisk",info:l,size:"s"}),c&&(0,i.jsx)(w._P,{title:"PDisk",info:c,size:"s"})]})},f=(0,n.cn)("ydb-vdisk-component"),j=e=>{let{data:s={},compact:t,inactive:n,showPopup:l,onShowPopup:d,onHidePopup:v,progressBarClassName:N}=e;const k=(0,a.Iz)(s),b=(0,p.X_)(),[y,D]=o.useState(!1),S=o.useRef(null);let w;return b&&(0,m.D)(s.VDiskSlotId)&&(0,m.D)(s.PDiskId)&&(0,m.D)(s.NodeId)?w=(0,c.By)(s.VDiskSlotId,s.PDiskId,s.NodeId):(0,m.D)(s.NodeId)&&k&&(w=(0,c.ax)(c.ZP.node,{id:s.NodeId,activeTab:u.pV},{pdiskId:s.PDiskId,vdiskId:(0,r.a2)(s.VDiskId)})),(0,i.jsxs)(o.Fragment,{children:[(0,i.jsx)("div",{className:f(),ref:S,onMouseEnter:()=>{D(!0),null===d||void 0===d||d()},onMouseLeave:()=>{D(!1),null===v||void 0===v||v()},children:(0,i.jsx)(h.h,{to:w,className:f("content"),children:(0,i.jsx)(g.p,{diskAllocatedPercent:s.AllocatedPercent,severity:s.Severity,compact:t,inactive:n,className:N})})}),(0,i.jsx)(P,{data:s,anchorRef:S,open:y||l})]})};function G(e){let{data:s,className:t,stackClassName:o,...n}=e;const l=null===s||void 0===s?void 0:s.Donors,u=l&&l.length>0?(0,i.jsxs)(d,{className:o,children:[(0,i.jsx)(j,{data:s,...n}),l.map((e=>{const s=(0,a.Iz)(e);return(0,i.jsx)(j,{data:e,...n},(0,r.a2)(s?e.VDiskId:e))}))]}):(0,i.jsx)(j,{data:s,...n});return(0,i.jsx)("div",{className:t,children:u})}},54997:(e,s,t)=>{t.d(s,{P3:()=>d,xv:()=>l,Pr:()=>c,t5:()=>n,pM:()=>i,nn:()=>u});var r=t(30817);const a=JSON.parse('{"node-id":"Node Id","host":"Host","node-name":"Node Name","dc":"DC","rack":"Rack","version":"Version","uptime":"Uptime","memory":"Memory","cpu":"CPU","tablets":"Tablets","load-average":"Load Average","load":"Load","process":"Process","caches":"Caches","sessions":"Sessions"}'),o=(0,r.wZ)("ydb-nodes-columns",{en:a}),n="nodesTableColumnsWidth",i="nodesTableSelectedColumns",l={NodeId:"NodeId",Host:"Host",NodeName:"NodeName",DC:"DC",Rack:"Rack",Version:"Version",Uptime:"Uptime",Memory:"Memory",CPU:"CPU",LoadAverage:"LoadAverage",Tablets:"Tablets",TopNodesLoadAverage:"TopNodesLoadAverage",TopNodesMemory:"TopNodesMemory",SharedCacheUsage:"SharedCacheUsage",TotalSessions:"TotalSessions"},d=["NodeId","Host","DC","Rack","Version","Uptime","Memory","CPU","LoadAverage","Tablets"],u=["NodeId"],c={get NodeId(){return o("node-id")},get Host(){return o("host")},get NodeName(){return o("node-name")},get DC(){return o("dc")},get Rack(){return o("rack")},get Version(){return o("version")},get Uptime(){return o("uptime")},get Memory(){return o("memory")},get CPU(){return o("cpu")},get LoadAverage(){return o("load-average")},get Tablets(){return o("tablets")},get TopNodesLoadAverage(){return o("load")},get TopNodesMemory(){return o("process")},get SharedCacheUsage(){return o("caches")},get TotalSessions(){return o("sessions")}}},59625:(e,s,t)=>{t.d(s,{y:()=>c});var r=t(17176),a=t(79023),o=t(56350),n=t(30817);const i=JSON.parse('{"default_message":"Everything is fine!","default_button_label":"Show All"}'),l=JSON.parse('{"default_message":"\u0412\u0441\u0451 \u0432 \u043f\u043e\u0440\u044f\u0434\u043a\u0435!","default_button_label":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0432\u0441\u0435"}'),d=(0,n.wZ)("ydb-storage-empty-filter",{ru:l,en:i});var u=t(75859);const c=e=>{let{title:s,message:t=d("default_message"),showAll:n=d("default_button_label"),onShowAll:i}=e;return(0,u.jsx)(a.u,{image:(0,u.jsx)(o.Q,{name:"thumbsUp"}),position:"left",title:s,description:t,actions:i&&[(0,u.jsx)(r.z,{onClick:i,children:n},"show-all")]})}},17931:(e,s,t)=>{t.d(s,{l:()=>N});var r=t(68963),a=t(1796),o=t(74170),n=t(40073),i=t(79255),l=t(54665),d=t(17880),u=t(5922),c=t(24362),p=t(34301),m=t(92398),g=t(10703),h=t(75859);const v=(0,c.cn)("pdisk-storage"),N=e=>{let{data:s={},vDisks:t,showPopup:c,onShowPopup:N,onHidePopup:k,className:b,progressBarClassName:y,viewContext:D}=e;const[S,w]=r.useState(!1),x=(0,d.X_)(),I=r.useRef(null),{NodeId:P,PDiskId:f}=s,j=(0,u.D)(P)&&(0,u.D)(f);let G;return j&&(G=(0,l.ax)(l.ZP.node,{id:P,activeTab:m.pV},{pdiskId:f})),j&&x&&(G=(0,l.ds)(f,P)),(0,h.jsxs)(r.Fragment,{children:[(0,h.jsxs)("div",{className:v(null,b),ref:I,children:[null!==t&&void 0!==t&&t.length?(0,h.jsx)("div",{className:v("vdisks"),children:t.map((e=>(0,h.jsx)("div",{className:v("vdisks-item"),style:{flexGrow:Number(e.AllocatedSize)||1},children:(0,h.jsx)(i.c,{data:e,inactive:!(0,g.XW)(e,D),stackClassName:v("donors-stack"),compact:!0})},(0,p.a2)(e.VDiskId))))}):null,(0,h.jsxs)(o.h,{to:G,className:v("content"),onMouseEnter:()=>{w(!0),null===N||void 0===N||N()},onMouseLeave:()=>{w(!1),null===k||void 0===k||k()},children:[(0,h.jsx)(a.p,{diskAllocatedPercent:s.AllocatedPercent,severity:s.Severity,className:y}),(0,h.jsx)("div",{className:v("media-type"),children:s.Type})]})]}),(0,h.jsx)(n.J,{data:s,anchorRef:I,open:S||c})]})}},57180:(e,s,t)=>{t.d(s,{K:()=>A});var r=t(68963),a=t(28492),o=t(1440),n=t(26688),i=t(47101),l=t(17880),d=t(77915),u=t(14223);const c=e=>e.trim().toLowerCase(),p=(e,s)=>{const t=c(s);return t?e.filter((e=>{var s,r;return(null===(s=e.NodeId)||void 0===s?void 0:s.toString().includes(t))||(null===(r=e.Host)||void 0===r?void 0:r.toLowerCase().includes(t))})):e},m=(e,s)=>{const t=c(s);return t?e.filter((e=>{var s,r;return(null===(s=e.PoolName)||void 0===s?void 0:s.toLowerCase().includes(t))||(null===(r=e.GroupId)||void 0===r?void 0:r.toString().includes(t))})):e};var g=t(33058),h=t(17096),v=t(41616),N=t(87255),k=t(2098),b=t(95829),y=t(52317),D=t(64782),S=t(51323),w=t(43817),x=t(75859);function I(e){let{data:s,columns:t,visibleEntities:r,onShowAll:a,sort:o,handleSort:n}=e;return s.length||r===b.G.all?(0,x.jsx)(k.G,{columnsWidthLSKey:S.Ty,data:s,columns:t,settings:y.LE,emptyDataMessage:(0,w.Z)("empty.default"),sortOrder:o,onSort:n},r):(0,x.jsx)(D.a,{onShowAll:a,visibleEntities:r})}var P=t(46393),f=t(51688),j=t(64682),G=t(55434),C=t(73790),U=t(20108);const E={...y.LE,dynamicRenderMinSize:51};function R(e){let{data:s,columns:t,visibleEntities:r,nodesUptimeFilter:a,sort:o,onShowAll:n,handleSort:i}=e;return s.length||r===b.G.all&&a===f.Uu.All?(0,x.jsx)(k.G,{columnsWidthLSKey:G.Wj,data:s,columns:t,settings:E,emptyDataMessage:(0,C.Z)("empty.default"),rowClassName:U.q,sortOrder:o,onSort:i},r):(0,x.jsx)(j.r,{visibleEntities:r,nodesUptimeFilter:a,onShowAll:n})}var T=t(24733),L=t(11476),V=t(18577),M=t(10703);t(64372);const A=e=>{var s,t;let{database:c,nodeId:k,groupId:b,pDiskId:y}=e;const{balancer:D}=(0,d.kW)(),{additionalNodesProps:S}=(0,v.f)({balancer:D}),{storageType:w,searchValue:f,visibleEntities:j,nodesUptimeFilter:G,handleShowAllGroups:C,handleShowAllNodes:U}=(0,V.u)(),E=(0,l.rU)(),A=(0,l.tS)(),[O]=(0,h.Rj)(),F="groups"===w,z="nodes"===w,[_,Z]=r.useState({sortOrder:void 0,sortValue:void 0}),H=_.sortValue?_:M.TP,[W,B]=r.useState({sortOrder:void 0,sortValue:void 0}),K=W.sortOrder?W:(0,M._r)(j),{columnsToShow:J,columnsToSelect:Q,setColumns:$}=(0,T.i)({additionalNodesProps:S,visibleEntities:j,database:c,groupId:null===b||void 0===b?void 0:b.toString()}),{columnsToShow:q,columnsToSelect:X,setColumns:Y}=(0,P.k)({visibleEntities:j,nodeId:null===k||void 0===k?void 0:k.toString()}),ee=g.y.useGetStorageNodesInfoQuery({database:c,with:j,node_id:k,group_id:b},{skip:!z,pollingInterval:O}),se=g.y.useGetStorageGroupsInfoQuery({database:c,with:j,nodeId:k,groupId:b,pDiskId:y,shouldUseGroupsHandler:A},{skip:!F||!E,pollingInterval:O}),{currentData:te,isFetching:re,error:ae}=z?ee:se,{currentData:{nodes:oe=[]}={}}=ee,{currentData:{groups:ne=[]}={}}=se,ie=(null===(s=ee.currentData)||void 0===s?void 0:s.total)||0,le=(null===(t=se.currentData)||void 0===t?void 0:t.total)||0,de=void 0===te&&re,ue=r.useMemo((()=>function(e,s,t){let r=e||[];return r=p(r,s),r=(0,u.f)(r,t),r}(oe,f,G)),[oe,G,f]),ce=r.useMemo((()=>function(e,s){let t=e||[];return t=m(t,s),t}(ne,f)),[f,ne]),[pe,me]=(0,h.sC)(H,(e=>Z(e))),[ge,he]=(0,h.sC)(K,(e=>B(e)));return(0,o.u)(ae)?(0,x.jsx)(a.J,{position:"left"}):(0,x.jsxs)(i.l,{children:[(0,x.jsx)(i.l.Controls,{children:(0,x.jsxs)(r.Fragment,{children:[F?(0,x.jsx)(N.q,{withTypeSelector:!0,entitiesCountCurrent:ce.length,entitiesCountTotal:le,entitiesLoading:de,columnsToSelect:X,handleSelectedColumnsUpdate:Y}):null,z?(0,x.jsx)(N.e,{withTypeSelector:!0,entitiesCountCurrent:ue.length,entitiesCountTotal:ie,entitiesLoading:de,columnsToSelect:Q,handleSelectedColumnsUpdate:$}):null]})}),ae?(0,x.jsx)(n.V,{error:ae}):null,(0,x.jsx)(i.l.Table,{loading:de||!E,className:(0,L.b)("table"),children:te?(0,x.jsxs)(r.Fragment,{children:[F?(0,x.jsx)(I,{visibleEntities:j,data:ce,onShowAll:C,sort:ge,handleSort:he,columns:q},"groups"):null,z?(0,x.jsx)(R,{visibleEntities:j,nodesUptimeFilter:G,data:ue,onShowAll:U,sort:pe,handleSort:me,columns:J},"nodes"):null]}):null})]})}},87255:(e,s,t)=>{t.d(s,{q:()=>S,e:()=>w});var r=t(68963),a=t(48857),o=t(10288),n=t(2418),i=t(49201),l=t(30629),d=t(43989),u=t(51323),c=t(55434),p=t(79734),m=t(95829),g=t(75859);const h={[m.d.groups]:"Groups",[m.d.nodes]:"Nodes"},v=e=>{let{value:s,onChange:t}=e;return(0,g.jsxs)(p.E,{value:s,onUpdate:t,qa:"storage-type-filter",children:[(0,g.jsx)(p.E.Option,{value:m.d.groups,children:h[m.d.groups]}),(0,g.jsx)(p.E.Option,{value:m.d.nodes,children:h[m.d.nodes]})]})},N={[m.G.all]:"All",[m.G.missing]:"Degraded",[m.G.space]:"Out of Space"},k=e=>{let{value:s,onChange:t}=e;return(0,g.jsxs)(p.E,{value:s,onUpdate:t,qa:"storage-visible-entities-filter",children:[(0,g.jsx)(p.E.Option,{value:m.G.missing,children:N[m.G.missing]}),(0,g.jsx)(p.E.Option,{value:m.G.space,children:N[m.G.space]}),(0,g.jsx)(p.E.Option,{value:m.G.all,children:N[m.G.all]})]})};var b=t(52002),y=t(11476),D=t(18577);function S(e){let{withTypeSelector:s,withGroupBySelect:t,entitiesCountCurrent:d,entitiesCountTotal:c,entitiesLoading:p,columnsToSelect:m,handleSelectedColumnsUpdate:h}=e;const{searchValue:N,storageType:S,visibleEntities:w,storageGroupsGroupByParam:x,handleTextFilterChange:I,handleStorageTypeChange:P,handleVisibleEntitiesChange:f,handleStorageGroupsGroupByParamChange:j}=(0,D.u)();return(0,g.jsxs)(r.Fragment,{children:[(0,g.jsx)(l.o,{value:N,onChange:I,placeholder:(0,b.Z)("controls_groups-search-placeholder"),className:(0,y.b)("search")}),s&&(0,g.jsx)(v,{value:S,onChange:P}),t?null:(0,g.jsx)(k,{value:w,onChange:f}),(0,g.jsx)(i.C,{label:(0,b.Z)("groups"),loading:p,total:c,current:d}),(0,g.jsx)(a.N,{popupWidth:200,items:m,showStatus:!0,onUpdate:h,sortable:!1}),t?(0,g.jsxs)(r.Fragment,{children:[(0,g.jsx)(o.x,{variant:"body-2",children:(0,b.Z)("controls_group-by-placeholder")}),(0,g.jsx)(n.P,{hasClear:!0,placeholder:"-",width:170,defaultValue:x?[x]:void 0,onUpdate:e=>{j(e[0])},options:u.r8})]}):null]})}function w(e){let{withTypeSelector:s,withGroupBySelect:t,entitiesCountCurrent:u,entitiesCountTotal:p,entitiesLoading:m,columnsToSelect:h,handleSelectedColumnsUpdate:N}=e;const{searchValue:S,storageType:w,visibleEntities:x,nodesUptimeFilter:I,storageNodesGroupByParam:P,handleTextFilterChange:f,handleStorageTypeChange:j,handleVisibleEntitiesChange:G,handleUptimeFilterChange:C,handleStorageNodesGroupByParamChange:U}=(0,D.u)();return(0,g.jsxs)(r.Fragment,{children:[(0,g.jsx)(l.o,{value:S,onChange:f,placeholder:(0,b.Z)("controls_nodes-search-placeholder"),className:(0,y.b)("search")}),s&&(0,g.jsx)(v,{value:w,onChange:j}),t?null:(0,g.jsx)(k,{value:x,onChange:G}),t?null:(0,g.jsx)(d.X,{value:I,onChange:C}),(0,g.jsx)(i.C,{label:(0,b.Z)("nodes"),loading:m,total:p,current:u}),(0,g.jsx)(a.N,{popupWidth:200,items:h,showStatus:!0,onUpdate:N,sortable:!1}),t?(0,g.jsxs)(r.Fragment,{children:[(0,g.jsx)(o.x,{variant:"body-2",children:(0,b.Z)("controls_group-by-placeholder")}),(0,g.jsx)(n.P,{hasClear:!0,placeholder:"-",width:170,defaultValue:P?[P]:void 0,onUpdate:e=>{U(e[0])},options:c.lo})]}):null]})}},64782:(e,s,t)=>{t.d(s,{a:()=>i});var r=t(95829),a=t(59625),o=t(43817),n=t(75859);const i=e=>{let s,{visibleEntities:t,onShowAll:i}=e;return t===r.G.space&&(s=(0,o.Z)("empty.out_of_space")),t===r.G.missing&&(s=(0,o.Z)("empty.degraded")),s?(0,n.jsx)(a.y,{title:s,showAll:(0,o.Z)("show_all"),onShowAll:i}):null}},6130:(e,s,t)=>{t.d(s,{V:()=>$,m:()=>Q});var r=t(68963),a=t(71549),o=t(19812),n=t(10502),i=t(14979),l=t(68330),d=t(88776),u=t(99683),c=t(69214),p=t(74170),m=t(80816),g=t(79255),h=t(54665),v=t(5922),N=t(24362),k=t(52317),b=t(34301),y=t(15106),D=t(1504),S=t(55850),w=t(92666),x=t(17931),I=t(10703),P=t(75859);const f=(0,N.cn)("ydb-storage-disks");function j(e){let{vDisks:s=[],viewContext:t}=e;const[a,o]=r.useState();return s.length?(0,P.jsxs)("div",{className:f(null),children:[(0,P.jsx)("div",{className:f("vdisks-wrapper"),children:null===s||void 0===s?void 0:s.map((e=>(0,P.jsx)(G,{vDisk:e,inactive:!(0,I.XW)(e,t),highlightedVDisk:a,setHighlightedVDisk:o},(0,b.a2)(e.VDiskId))))}),(0,P.jsx)("div",{className:f("pdisks-wrapper"),children:null===s||void 0===s?void 0:s.map((e=>{var s;return(0,P.jsx)(C,{vDisk:e,highlightedVDisk:a,setHighlightedVDisk:o},(0,w.CH)(e.NodeId,null===e||void 0===e||null===(s=e.PDisk)||void 0===s?void 0:s.PDiskId))}))})]}):null}function G(e){let{vDisk:s,highlightedVDisk:t,inactive:r,setHighlightedVDisk:a}=e;const o={...s,PDisk:void 0},n=(0,b.a2)(s.VDiskId);return(0,P.jsx)("div",{style:{flexGrow:Number(s.AllocatedSize)||1},className:f("vdisk-item"),children:(0,P.jsx)(g.c,{data:o,compact:!0,inactive:r,showPopup:t===n,onShowPopup:()=>a(n),onHidePopup:()=>a(void 0),progressBarClassName:f("vdisk-progress-bar")})})}function C(e){let{vDisk:s,highlightedVDisk:t,setHighlightedVDisk:r}=e;const a=(0,b.a2)(s.VDiskId);return s.PDisk?(0,P.jsx)(x.l,{className:f("pdisk-item"),progressBarClassName:f("pdisk-progress-bar"),data:s.PDisk,showPopup:t===a,onShowPopup:()=>r(a),onHidePopup:()=>r(void 0)}):null}var U=t(43817),E=t(51323);const R=(0,N.cn)("ydb-storage-groups-columns"),T={name:E.tn.PoolName,header:E.G0.PoolName,width:250,render:e=>{var s;let{row:t}=e;const r=null===(s=t.PoolName)||void 0===s?void 0:s.split("/");return r&&(0,P.jsx)(u.l,{wrapperClassName:R("pool-name-wrapper"),content:t.PoolName,placement:["right"],behavior:n.x.Immediate,children:r[r.length-1]})},align:o.ZP.LEFT},L={name:E.tn.MediaType,header:E.G0.MediaType,width:100,resizeMinWidth:100,align:o.ZP.LEFT,render:e=>{let{row:s}=e;return(0,P.jsxs)(r.Fragment,{children:[(0,P.jsx)(i._,{children:s.MediaType||"\u2014"}),"\xa0",s.Encryption&&(0,P.jsx)(l.J,{content:(0,U.Z)("encrypted"),placement:"right",behavior:n.x.Immediate,children:(0,P.jsx)(i._,{children:(0,P.jsx)(d.J,{data:a.Z,size:18})})})]})},sortable:!1},V={name:E.tn.Erasure,header:E.G0.Erasure,width:100,sortAccessor:e=>e.ErasureSpecies,render:e=>{let{row:s}=e;return s.ErasureSpecies?s.ErasureSpecies:"-"},align:o.ZP.LEFT},M={name:E.tn.Degraded,header:E.G0.Degraded,width:110,resizeMinWidth:110,render:e=>{let{row:s}=e;return s.Degraded?(0,P.jsxs)(i._,{theme:(0,I._O)(s),children:["Degraded: ",s.Degraded]}):"-"},align:o.ZP.LEFT,defaultOrder:o.ZP.DESCENDING},A={name:E.tn.Usage,header:E.G0.Usage,width:75,resizeMinWidth:75,render:e=>{let{row:s}=e;return s.Limit?(0,P.jsx)(m.a,{value:s.Usage,theme:(0,I.YC)(s.Usage)}):"-"},sortAccessor:e=>e.Limit?e.Usage:null,align:o.ZP.LEFT},O={name:E.tn.GroupId,header:E.G0.GroupId,width:130,render:e=>{let{row:s}=e;return s.GroupId?(0,P.jsx)(p.h,{className:R("group-id"),to:(0,h.Uu)(s.GroupId),children:s.GroupId}):"-"},sortAccessor:e=>Number(e.GroupId),align:o.ZP.RIGHT},F={name:E.tn.Used,header:E.G0.Used,width:100,render:e=>{let{row:s}=e;return(0,S.Uz)(s.Used,!0)},align:o.ZP.RIGHT},z={name:E.tn.Limit,header:E.G0.Limit,width:100,render:e=>{let{row:s}=e;return(0,S.Uz)(s.Limit)},align:o.ZP.RIGHT},_={name:E.tn.DiskSpace,header:E.G0.DiskSpace,width:110,render:e=>{let{row:s}=e;return(0,P.jsx)(c.A,{status:s.DiskSpace})},align:o.ZP.CENTER},Z={name:E.tn.Read,header:E.G0.Read,width:100,render:e=>{let{row:s}=e;return s.Read?(0,S.Qt)(s.Read):"-"},align:o.ZP.RIGHT},H={name:E.tn.Write,header:E.G0.Write,width:100,render:e=>{let{row:s}=e;return s.Write?(0,S.Qt)(s.Write):"-"},align:o.ZP.RIGHT},W={name:E.tn.Latency,header:E.G0.Latency,width:100,render:e=>{let{row:s}=e;return(0,v.D)(s.LatencyPutTabletLogMs)?(0,D.zm)((0,D.BO)(s.LatencyPutTabletLogMs)):k.jX},align:o.ZP.RIGHT},B={name:E.tn.AllocationUnits,header:E.G0.AllocationUnits,width:150,render:e=>{let{row:s}=e;return(0,v.D)(s.AllocationUnits)?(0,b.uf)(s.AllocationUnits):k.jX},align:o.ZP.RIGHT},K=e=>({name:E.tn.VDisks,header:E.G0.VDisks,className:R("vdisks-column"),render:s=>{var t;let{row:r}=s;return(0,P.jsx)("div",{className:R("vdisks-wrapper"),children:null===(t=r.VDisks)||void 0===t?void 0:t.map((s=>(0,P.jsx)(g.c,{data:s,inactive:!(0,I.XW)(s,e),className:R("vdisks-item")},(0,b.a2)(s.VDiskId))))})},align:o.ZP.CENTER,width:900,resizeable:!1,sortable:!1}),J=e=>({name:E.tn.VDisksPDisks,header:E.G0.VDisksPDisks,className:R("disks-column"),render:s=>{let{row:t}=s;return(0,P.jsx)(j,{vDisks:t.VDisks,viewContext:e})},align:o.ZP.CENTER,width:900,resizeable:!1,sortable:!1}),Q=()=>[O,L,V,A,F,z].map((e=>({...e,sortable:!1}))),$=e=>[O,T,L,V,M,A,F,z,_,Z,H,W,B,K(e),J(e)].map((e=>({...e,sortable:(0,y.P)(e.name)})))},51323:(e,s,t)=>{t.d(s,{nu:()=>u,Rt:()=>c,tn:()=>d,G0:()=>p,Ty:()=>i,r8:()=>g,j0:()=>l,Hx:()=>h});var r=t(95408),a=t(30817);const o=JSON.parse('{"pool-name":"Pool Name","type":"Type","encryption":"Encryption","erasure":"Erasure","degraded":"Degraded","missing-disks":"Missing Disks","state":"State","usage":"Usage","disk-space-usage":"Disk space usage","group-id":"Group ID","used":"Used","limit":"Limit","space":"Space","read":"Read","write":"Write","latency":"Latency","allocation-units":"Allocation Units","vdisks":"VDisks","vdisks-pdisks":"VDisks with PDisks"}'),n=(0,a.wZ)("ydb-storage-groups-columns",{en:o}),i="storageGroupsColumnsWidth",l="storageGroupsSelectedColumns",d={GroupId:"GroupId",PoolName:"PoolName",MediaType:"MediaType",Encryption:"Encryption",Erasure:"Erasure",Used:"Used",Limit:"Limit",Usage:"Usage",DiskSpaceUsage:"DiskSpaceUsage",DiskSpace:"DiskSpace",Read:"Read",Write:"Write",Latency:"Latency",AllocationUnits:"AllocationUnits",VDisks:"VDisks",VDisksPDisks:"VDisksPDisks",MissingDisks:"MissingDisks",Degraded:"Degraded",State:"State"},u=["GroupId","PoolName","MediaType","Erasure","Used","Limit","Usage","Read","Write","VDisks"],c=["GroupId"],p={get PoolName(){return n("pool-name")},get MediaType(){return n("type")},get Encryption(){return n("encryption")},get Erasure(){return n("erasure")},get GroupId(){return n("group-id")},get Used(){return n("used")},get Limit(){return n("limit")},get Usage(){return n("usage")},get DiskSpaceUsage(){return n("disk-space-usage")},get DiskSpace(){return n("space")},get Read(){return n("read")},get Write(){return n("write")},get Latency(){return n("latency")},get AllocationUnits(){return n("allocation-units")},get VDisks(){return n("vdisks")},get VDisksPDisks(){return n("vdisks-pdisks")},get Degraded(){return n("missing-disks")},get MissingDisks(){return n("missing-disks")},get State(){return n("state")}},m=["PoolName","MediaType","Encryption","Erasure","Usage","DiskSpaceUsage","State","MissingDisks","Latency"],g=m.map((e=>({value:e,content:p[e]}))),h=r.z.custom((e=>m.includes(e))).catch(void 0)},46393:(e,s,t)=>{t.d(s,{k:()=>l});var r=t(68963),a=t(95829),o=t(57344),n=t(6130),i=t(51323);function l(e){let{visibleEntities:s,nodeId:t}=e;const l=function(e){return r.useMemo((()=>(0,n.V)({nodeId:e})),[e])}(t),d=r.useMemo((()=>s===a.G.missing?[...i.Rt,i.tn.Degraded]:s===a.G.space?[...i.Rt,i.tn.DiskSpace]:i.Rt),[s]);return(0,o.N)(l,i.j0,i.G0,i.nu,d)}},43817:(e,s,t)=>{t.d(s,{Z:()=>n});var r=t(30817);const a=JSON.parse('{"empty.default":"No such groups","empty.out_of_space":"No groups with out of space errors","empty.degraded":"No degraded groups","show_all":"Show all groups","encrypted":"Encrypted group"}'),o=JSON.parse('{"empty.default":"\u041d\u0435\u0442 \u0433\u0440\u0443\u043f\u043f","empty.out_of_space":"\u041d\u0435\u0442 \u0433\u0440\u0443\u043f\u043f, \u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043a\u043e\u043d\u0447\u0430\u0435\u0442\u0441\u044f \u043c\u0435\u0441\u0442\u043e","empty.degraded":"\u041d\u0435\u0442 \u0434\u0435\u0433\u0440\u0430\u0434\u0438\u0440\u043e\u0432\u0430\u0432\u0448\u0438\u0445 \u0433\u0440\u0443\u043f\u043f","show_all":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0432\u0441\u0435 \u0433\u0440\u0443\u043f\u043f\u044b","encrypted":"\u0417\u0430\u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u043d\u0430\u044f \u0433\u0440\u0443\u043f\u043f\u0430"}'),n=(0,r.wZ)("ydb-storage-groups",{ru:o,en:a})},64682:(e,s,t)=>{t.d(s,{r:()=>l});var r=t(95829),a=t(51688),o=t(59625),n=t(73790),i=t(75859);const l=e=>{let s,{visibleEntities:t,nodesUptimeFilter:l,onShowAll:d}=e;return t===r.G.space&&(s=(0,n.Z)("empty.out_of_space")),t===r.G.missing&&(s=(0,n.Z)("empty.degraded")),l===a.Uu.SmallUptime&&(s=(0,n.Z)("empty.small_uptime")),t!==r.G.all&&l!==a.Uu.All&&(s=(0,n.Z)("empty.several_filters")),s?(0,i.jsx)(o.y,{title:s,showAll:(0,n.Z)("show_all"),onShowAll:d}):null}},55434:(e,s,t)=>{t.d(s,{wn:()=>u,ae:()=>c,rC:()=>d,NU:()=>p,Wj:()=>i,lo:()=>g,rm:()=>l,tb:()=>h});var r=t(95408),a=t(30817);const o=JSON.parse('{"nodes-id":"Node ID","host":"Host","dc":"DC","rack":"Rack","version":"Version","uptime":"Uptime","missing":"Missing","disk-space-usage":"Disk space usage","pdisks":"PDisks"}'),n=(0,a.wZ)("ydb-storage-nodes-columns",{en:o}),i="storageNodesColumnsWidth",l="storageNodesSelectedColumns",d={NodeId:"NodeId",Host:"Host",DC:"DC",Rack:"Rack",Version:"Version",Uptime:"Uptime",PDisks:"PDisks",Missing:"Missing",DiskSpaceUsage:"DiskSpaceUsage"},u=["NodeId","Host","DC","Rack","Uptime","PDisks"],c=["NodeId"],p={get NodeId(){return n("nodes-id")},get Host(){return n("host")},get DC(){return n("dc")},get Rack(){return n("rack")},get Version(){return n("version")},get Uptime(){return n("uptime")},get PDisks(){return n("pdisks")},get Missing(){return n("missing")},get DiskSpaceUsage(){return n("disk-space-usage")}},m=["Host","DC","Rack","Version","Uptime","Missing","DiskSpaceUsage"],g=m.map((e=>({value:e,content:p[e]}))),h=r.z.custom((e=>m.includes(e))).catch(void 0)},24733:(e,s,t)=>{t.d(s,{i:()=>v});var r=t(68963),a=t(95829),o=t(57344),n=t(19812),i=t(89778),l=t(24362),d=t(52317),u=t(51688),c=t(17931),p=t(55434),m=t(75859);const g=(0,l.cn)("ydb-storage-nodes-columns"),h=e=>(e=>{let{additionalNodesProps:s,database:t,groupId:r}=e;const a=null===s||void 0===s?void 0:s.getNodeRef;return[{name:p.rC.NodeId,header:p.NU.NodeId,width:100,align:n.ZP.RIGHT,render:e=>{let{row:s}=e;return s.NodeId}},{name:p.rC.Host,header:p.NU.Host,width:350,render:e=>{let{row:s}=e;return(0,m.jsx)(i.k,{node:s,getNodeRef:a,database:t})},align:n.ZP.LEFT},{name:p.rC.DC,header:p.NU.DC,width:100,render:e=>{let{row:s}=e;return s.DC||d.jX},align:n.ZP.LEFT},{name:p.rC.Rack,header:p.NU.Rack,width:100,render:e=>{let{row:s}=e;return s.Rack||"\u2014"},align:n.ZP.LEFT},{name:p.rC.Uptime,header:p.NU.Uptime,width:130,sortAccessor:e=>{let{StartTime:s}=e;return s?-s:0},align:n.ZP.RIGHT,render:e=>{let{row:s}=e;return s.Uptime}},{name:p.rC.Missing,header:p.NU.Missing,width:100,align:n.ZP.CENTER,defaultOrder:n.ZP.DESCENDING,render:e=>{let{row:s}=e;return s.Missing}},{name:p.rC.PDisks,header:p.NU.PDisks,className:g("pdisks-column"),render:e=>{var s;let{row:t}=e;return(0,m.jsx)("div",{className:g("pdisks-wrapper"),children:null===(s=t.PDisks)||void 0===s?void 0:s.map((e=>{var s;const a=null===(s=t.VDisks)||void 0===s?void 0:s.filter((s=>s.PDiskId===e.PDiskId));return(0,m.jsx)("div",{className:g("pdisks-item"),children:(0,m.jsx)(c.l,{data:e,vDisks:a,viewContext:{groupId:r}})},e.PDiskId)}))})},align:n.ZP.CENTER,sortable:!1,width:900,resizeable:!1}]})(e).map((e=>({...e,sortable:(0,u.oh)(e.name)})));function v(e){let{visibleEntities:s,database:t,additionalNodesProps:n,groupId:i}=e;const l=r.useMemo((()=>h({database:t,additionalNodesProps:n,groupId:i})),[t,n,i]),d=r.useMemo((()=>s===a.G.missing?[...p.ae,p.rC.Missing]:p.ae),[s]);return(0,o.N)(l,p.rm,p.NU,p.wn,d)}},73790:(e,s,t)=>{t.d(s,{Z:()=>n});var r=t(30817);const a=JSON.parse('{"empty.default":"No such nodes","empty.out_of_space":"No nodes with out of space errors","empty.degraded":"No degraded nodes","empty.small_uptime":"No nodes with uptime < 1h","empty.several_filters":"No nodes match current filters combination","show_all":"Show all nodes"}'),o=JSON.parse('{"empty.default":"\u041d\u0435\u0442 \u0443\u0437\u043b\u043e\u0432","empty.out_of_space":"\u041d\u0435\u0442 \u0443\u0437\u043b\u043e\u0432, \u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043a\u043e\u043d\u0447\u0430\u0435\u0442\u0441\u044f \u043c\u0435\u0441\u0442\u043e","empty.degraded":"\u041d\u0435\u0442 \u0434\u0435\u0433\u0440\u0430\u0434\u0438\u0440\u043e\u0432\u0430\u0432\u0448\u0438\u0445 \u0443\u0437\u043b\u043e\u0432","empty.small_uptime":"\u041d\u0435\u0442 \u0443\u0437\u043b\u043e\u0432 \u0441 uptime < 1h","empty.several_filters":"\u041d\u0435\u0442 \u0443\u0437\u043b\u043e\u0432, \u043f\u043e\u0434\u0445\u043e\u0434\u044f\u0449\u0438\u0445 \u043f\u043e\u0434 \u0442\u0435\u043a\u0443\u0449\u0438\u0435 \u0444\u0438\u043b\u044c\u0442\u0440\u044b","show_all":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0432\u0441\u0435 \u0443\u0437\u043b\u044b"}'),n=(0,r.wZ)("ydb-storage-nodes",{ru:o,en:a})},20108:(e,s,t)=>{t.d(s,{q:()=>n});var r=t(24362),a=t(51688);const o=(0,r.cn)("ydb-storage-nodes"),n=e=>o("node",{unavailable:(0,a.TA)(e)})},52002:(e,s,t)=>{t.d(s,{Z:()=>o});var r=t(30817);const a=JSON.parse('{"groups":"Groups","nodes":"Nodes","controls_groups-search-placeholder":"Group ID, Pool name","controls_nodes-search-placeholder":"Node ID, FQDN","controls_group-by-placeholder":"Group by:","no-nodes":"No such nodes","no-groups":"No such groups"}'),o=(0,r.wZ)("ydb-storage",{en:a})},11476:(e,s,t)=>{t.d(s,{b:()=>i,i:()=>l});var r=t(28492),a=t(26688),o=t(24362),n=t(75859);const i=(0,o.cn)("global-storage"),l=e=>403===e.status?(0,n.jsx)(r.J,{position:"left"}):(0,n.jsx)(a.V,{error:e})},18577:(e,s,t)=>{t.d(s,{u:()=>c});var r=t(98994),a=t(95408),o=t(95829);const n=a.z.nativeEnum(o.G).catch(o.G.all),i=a.z.nativeEnum(o.d).catch(o.d.groups);var l=t(51688),d=t(51323),u=t(55434);function c(){var e;const[s,t]=(0,r.useQueryParams)({type:r.StringParam,visible:r.StringParam,search:r.StringParam,uptimeFilter:r.StringParam,storageNodesGroupBy:r.StringParam,storageGroupsGroupBy:r.StringParam}),a=i.parse(s.type),o=n.parse(s.visible),c=null!==(e=s.search)&&void 0!==e?e:"",p=l.U8.parse(s.uptimeFilter),m=d.Hx.parse(s.storageGroupsGroupBy),g=u.tb.parse(s.storageNodesGroupBy),h=e=>{t({visible:e},"replaceIn")},v=e=>{t({uptimeFilter:e},"replaceIn")};return{storageType:a,visibleEntities:o,searchValue:c,nodesUptimeFilter:p,storageGroupsGroupByParam:m,storageNodesGroupByParam:g,handleTextFilterChange:e=>{t({search:e||void 0},"replaceIn")},handleVisibleEntitiesChange:h,handleStorageTypeChange:e=>{t({type:e},"replaceIn")},handleUptimeFilterChange:v,handleStorageGroupsGroupByParamChange:e=>{t({storageGroupsGroupBy:e},"replaceIn")},handleStorageNodesGroupByParamChange:e=>{t({storageNodesGroupBy:e},"replaceIn")},handleShowAllGroups:()=>{h("all")},handleShowAllNodes:()=>{h("all"),v(l.Uu.All)}}}},10703:(e,s,t)=>{t.d(s,{TP:()=>m,XW:()=>k,YC:()=>p,_O:()=>c,_r:()=>N});var r=t(81413),a=t(95829),o=t(5922),n=t(99106),i=t(54997),l=t(51323);const d=(0,n.p)(1,2,["success","warning","danger"]),u={"block-4-2":(0,n.p)(1,2,["success","warning","danger"]),"mirror-3-dc":(0,n.p)(1,3,["success","warning","danger"])},c=e=>{var s;return(void 0!==(s=e.ErasureSpecies)&&s in u?u[e.ErasureSpecies]:d)(e.Degraded)},p=(0,n.p)(80,85,["success","warning","danger"]),m={sortValue:i.xv.NodeId,sortOrder:r.zE},g={sortValue:l.tn.PoolName,sortOrder:r.zE},h={sortValue:l.tn.Degraded,sortOrder:r.hr},v={sortValue:l.tn.Usage,sortOrder:r.hr};function N(e){return e===a.G.missing?h:e===a.G.space?v:g}function k(e,s){var t;return(0,o.D)(null===(t=e.VDiskId)||void 0===t?void 0:t.GroupID)&&null!==s&&void 0!==s&&s.groupId?String(e.VDiskId.GroupID)===s.groupId:!(0,o.D)(e.NodeId)||null===s||void 0===s||!s.nodeId||String(e.NodeId)===s.nodeId}},14223:(e,s,t)=>{t.d(s,{A:()=>p,f:()=>u});var r=t(75850),a=t(52317),o=t(34301),n=t(27070),i=t(51688),l=t(80839);const d=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return(arguments.length>1?arguments[1]:void 0)===l.pu.ALL?e:e.filter((e=>{let{SystemState:s}=e;return s&&s!==r.K.Green}))},u=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return(arguments.length>1?arguments[1]:void 0)===i.Uu.All?e:e.filter((e=>{let{StartTime:s}=e;return!s||(0,o.OW)(s)<a.RQ}))},c=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],s=arguments.length>1?arguments[1]:void 0;if(!s)return e;const t=(0,n.Y)(s);return e.filter((e=>!e.Host||(t.test(e.Host)||t.test(String(e.NodeId)))))};function p(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],{uptimeFilter:s,searchValue:t,problemFilter:r}=arguments.length>1?arguments[1]:void 0,a=u(e,s);return a=d(a,r),a=c(a,t),a}},95829:(e,s,t)=>{t.d(s,{G:()=>r,d:()=>a});const r={all:"all",missing:"missing",space:"space"},a={groups:"groups",nodes:"nodes"}},26491:(e,s,t)=>{t.d(s,{R:()=>a});var r=t(92092);async function a(e,s){let{version:t="v2",shouldUseGroupsHandler:a,...o}=e;if(a&&"v1"!==t){const e=await window.api.getStorageGroups({...o},s);return(0,r._u)(e)}{const e=await window.api.getStorageInfo({version:t,...o},s);return(0,r.S9)(e)}}},33058:(e,s,t)=>{t.d(s,{y:()=>n});var r=t(905),a=t(26491),o=t(92092);const n=r.h.injectEndpoints({endpoints:e=>({getStorageNodesInfo:e.query({queryFn:async(e,s)=>{let{signal:t}=s;try{const s=await window.api.getNodes({storage:!0,type:"static",...e},{signal:t});return{data:(0,o.Y2)(s)}}catch(r){return{error:r}}},providesTags:["All","StorageData"]}),getStorageGroupsInfo:e.query({queryFn:async(e,s)=>{let{signal:t}=s;try{return{data:await(0,a.R)(e,{signal:t})}}catch(r){return{error:r}}},providesTags:["All","StorageData"]})}),overrideExisting:"throw"})},92092:(e,s,t)=>{t.d(s,{S9:()=>v,Y2:()=>h,_u:()=>N});var r=t(21897),a=t(17632),o=t(92666),n=t(3764),i=t(51688),l=t(15106),d=t(1504);function u(e){const{DiskSpace:s,VDisks:t=[]}=e;return s||(0,o.b2)(Math.max(...t.map((e=>(0,o.Or)(e.DiskSpace)))))}const c=(e,s)=>{var t;const r=(0,n.w)(e);return{...r,StoragePoolName:s,Donors:null===r||void 0===r||null===(t=r.Donors)||void 0===t?void 0:t.map((e=>({...e,StoragePoolName:s})))}},p=e=>{const{VDisks:s=[],PoolName:t,Usage:r=0,Read:a=0,Write:o=0,Used:n=0,Limit:i=0,Degraded:l=0,Kind:d,MediaType:p,GroupID:m,Overall:g,GroupGeneration:h}=e,v=s.map((e=>c(e,t))),N=Math.floor(100*Number(r)),k=u(e);return{...e,PoolName:t,GroupId:m,MediaType:p||d,VDisks:v,Usage:N,Overall:g,GroupGeneration:h?String(h):void 0,Read:Number(a),Write:Number(o),Used:Number(n),Limit:Number(i),Degraded:Number(l),DiskSpace:k}},m=(e,s)=>{let t=[];return e?t=e.map(p):null===s||void 0===s||s.forEach((e=>{var s;null===(s=e.Groups)||void 0===s||s.forEach((s=>{t.push(((e,s)=>{var t;let o,i=0,d=0,p=0,m=0,g=0;const{Name:h,MediaType:v}=s;if(e.VDisks)for(const l of e.VDisks){const{Replicated:e,VDiskState:s,AvailableSize:t,AllocatedSize:u,PDisk:c,ReadThroughput:h,WriteThroughput:v}=l,{Type:N,State:k,AvailableSize:b}=(0,n.b)(c);e&&k===r.w.Normal&&s===a.H.OK||(i+=1);const y=Number(null!==t&&void 0!==t?t:b)||0,D=Number(u)||0;d+=D,p+=y+D,m+=Number(h)||0,g+=Number(v)||0,o=!N||N!==o&&o?"Mixed":N}const N=null===(t=e.VDisks)||void 0===t?void 0:t.map((e=>c(e,h))),k=(0,l.I)({Used:d,Limit:p},5),b=u(e);return{...e,GroupGeneration:e.GroupGeneration?String(e.GroupGeneration):void 0,GroupId:e.GroupID,Overall:e.Overall,VDisks:N,Usage:k,Read:m,Write:g,PoolName:h,Used:d,Limit:p,Degraded:i,MediaType:v||o||void 0,DiskSpace:b}})(s,e))}))})),t},g=e=>{var s,t,a;const o=(null===(s=e.PDisks)||void 0===s?void 0:s.filter((e=>e.State!==r.w.Normal)).length)||0,l=null===(t=e.PDisks)||void 0===t?void 0:t.map((s=>({...(0,n.b)(s),NodeId:e.NodeId}))),d=null===(a=e.VDisks)||void 0===a?void 0:a.map((s=>({...(0,n.w)(s),NodeId:e.NodeId})));return{...(0,i.Ns)(e.SystemState),NodeId:e.NodeId,PDisks:l,VDisks:d,Missing:o}},h=e=>{const{Nodes:s,TotalNodes:t,FoundNodes:r,NodeGroups:a}=e,o=null===a||void 0===a?void 0:a.map((e=>{let{GroupName:s,NodeCount:t}=e;if(s&&t)return{name:s,count:Number(t)}})).filter((e=>Boolean(e))),n=null===s||void 0===s?void 0:s.map(g);return{nodes:n,total:Number(t)||(null===n||void 0===n?void 0:n.length),found:Number(r),tableGroups:o}},v=e=>{const{StoragePools:s,StorageGroups:t,TotalGroups:r,FoundGroups:a}=e,o=m(t,s);return{groups:o,total:Number(r)||o.length,found:Number(a)}};function N(e){const{FoundGroups:s,TotalGroups:t,StorageGroups:r=[],StorageGroupGroups:a}=e,o=r.map((e=>{const{Usage:s,Read:t,Write:r,Used:a,Limit:o,MissingDisks:i,VDisks:l=[],Overall:c,LatencyPutTabletLog:p,LatencyPutUserData:m,LatencyGetFast:g}=e,h=l.map((e=>{var s;const t=e.Whiteboard,r=null===(s=e.PDisk)||void 0===s?void 0:s.Whiteboard,a=e.NodeId,o={...t,PDiskId:null===r||void 0===r?void 0:r.PDiskId,NodeId:a,PDisk:{...r,NodeId:a}};return(0,n.w)(o)})),v=u(e);return{...e,Usage:Math.floor(Number(s))||0,Read:Number(t),Write:Number(r),Used:Number(a),Limit:Number(o),LatencyPutTabletLogMs:(0,d.BO)(p),LatencyPutUserDataMs:(0,d.BO)(m),LatencyGetFastMs:(0,d.BO)(g),Degraded:Number(i),Overall:c,VDisks:h,DiskSpace:v}})),i=null===a||void 0===a?void 0:a.map((e=>{let{GroupName:s,GroupCount:t}=e;if(s&&t)return{name:s,count:Number(t)}})).filter((e=>Boolean(e)));return{groups:o,total:Number(t)||o.length,found:Number(s),tableGroups:i}}},21897:(e,s,t)=>{let r;t.d(s,{w:()=>r}),function(e){e.Initial="Initial",e.InitialFormatRead="InitialFormatRead",e.InitialFormatReadError="InitialFormatReadError",e.InitialSysLogRead="InitialSysLogRead",e.InitialSysLogReadError="InitialSysLogReadError",e.InitialSysLogParseError="InitialSysLogParseError",e.InitialCommonLogRead="InitialCommonLogRead",e.InitialCommonLogReadError="InitialCommonLogReadError",e.InitialCommonLogParseError="InitialCommonLogParseError",e.CommonLoggerInitError="CommonLoggerInitError",e.Normal="Normal",e.OpenFileError="OpenFileError",e.ChunkQuotaError="ChunkQuotaError",e.DeviceIoError="DeviceIoError",e.Missing="Missing",e.Timeout="Timeout",e.NodeDisconnected="NodeDisconnected",e.Unknown="Unknown"}(r||(r={}))},17632:(e,s,t)=>{let r;t.d(s,{H:()=>r}),function(e){e.Initial="Initial",e.LocalRecoveryError="LocalRecoveryError",e.SyncGuidRecovery="SyncGuidRecovery",e.SyncGuidRecoveryError="SyncGuidRecoveryError",e.OK="OK",e.PDiskError="PDiskError"}(r||(r={}))},77072:(e,s,t)=>{t.d(s,{i6:()=>i,mG:()=>n,mr:()=>d,oO:()=>o,s:()=>l,tH:()=>u});var r=t(21897),a=t(17632);const o={Grey:0,Green:1,Blue:2,Yellow:3,Orange:4,Red:5},n=Object.entries(o).reduce(((e,s)=>{let[t,r]=s;return{...e,[r]:t}}),{}),i=o.Grey,l=n[i],d={[a.H.OK]:o.Green,[a.H.Initial]:o.Yellow,[a.H.SyncGuidRecovery]:o.Yellow,[a.H.LocalRecoveryError]:o.Red,[a.H.SyncGuidRecoveryError]:o.Red,[a.H.PDiskError]:o.Red},u={[r.w.Initial]:o.Grey,[r.w.Normal]:o.Green,[r.w.InitialFormatRead]:o.Yellow,[r.w.InitialSysLogRead]:o.Yellow,[r.w.InitialCommonLogRead]:o.Yellow,[r.w.InitialFormatReadError]:o.Red,[r.w.InitialSysLogReadError]:o.Red,[r.w.InitialSysLogParseError]:o.Red,[r.w.InitialCommonLogReadError]:o.Red,[r.w.InitialCommonLogParseError]:o.Red,[r.w.CommonLoggerInitError]:o.Red,[r.w.OpenFileError]:o.Red,[r.w.ChunkQuotaError]:o.Red,[r.w.DeviceIoError]:o.Red}},92666:(e,s,t)=>{t.d(s,{CH:()=>l,FR:()=>d,Iz:()=>o,Or:()=>i,b2:()=>n});var r=t(5922),a=t(77072);function o(e){return"VDiskId"in e}function n(e){return void 0===e?a.s:a.mG[e]||a.s}function i(e){return e?a.oO[e]:0}function l(e,s){if((0,r.D)(e)&&(0,r.D)(s))return`${e}-${s}`}function d(e,s,t){return[e,s,t].join("-")}},3764:(e,s,t)=>{t.d(s,{b:()=>g,w:()=>m});var r=t(75850),a=t(99106),o=t(77072);const n=(0,a.p)(85,95,[r.K.Green,r.K.Yellow,r.K.Red]);function i(e){let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;const t=function(e){return s=e,void 0!==s&&s in o.tH?o.tH[e]:o.i6;var s}(e.State),r=n(s);return t!==o.i6&&r?Math.max(t,o.oO[r]):t}var l=t(92666);function d(e){if(!(0,l.Iz)(e))return o.i6;const{DiskSpace:s,VDiskState:t,FrontQueues:r,Replicated:a,DonorMode:n}=e;if(!t)return o.i6;const i=u(s),d=function(e){var s;if(!e)return o.i6;return null!==(s=o.mr[e])&&void 0!==s?s:o.i6}(t),c=Math.min(o.oO.Orange,u(r));let p=Math.max(i,d,c);return a||n||p!==o.oO.Green||(p=o.oO.Blue),p}function u(e){var s;return e&&null!==(s=o.oO[e])&&void 0!==s?s:o.i6}const c={HDD:"HDD",SSD:"SSD",MVME:"NVME"};function p(e){if(!e)return;const s=function(e,s){const t={};return Object.entries(s).reduce(((s,r)=>{let[a,o]=r;const n=e.length-s,i=n-o;return t[a]=e.substring(i,n)||"0",s+o}),0),t}(BigInt(e).toString(2),{isSolidState:1,kind:55,typeExt:8});if("1"===s.isSolidState)switch(parseInt(s.typeExt,2)){case 0:return c.SSD;case 2:return c.MVME}else if("0"===s.typeExt)return c.HDD}function m(){var e,s,t,r;let a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const o=a.PDisk?g({...a.PDisk,NodeId:null!==(e=a.PDisk.NodeId)&&void 0!==e?e:a.NodeId}):void 0,n=null!==(s=a.PDiskId)&&void 0!==s?s:null===o||void 0===o?void 0:o.PDiskId,i=Number(null!==(t=a.AvailableSize)&&void 0!==t?t:null===o||void 0===o?void 0:o.AvailableSize),l=Number(a.AllocatedSize),u=l+i,c=Math.round(100*l/u),p=null===(r=a.Donors)||void 0===r?void 0:r.map((e=>m({...e,DonorMode:!0}))),h=d(a);return{...a,PDisk:o,PDiskId:n,Donors:p,Severity:h,TotalSize:u,AllocatedPercent:c}}function g(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{AvailableSize:t,TotalSize:r,Category:a}=e,o=p(a),n=Number(t),l=Number(r),d=l-n,u=Math.round(100*d/l),c=i(e,u);return{...s,...e,Type:o,Severity:c,AllocatedSize:d,AllocatedPercent:u}}},27070:(e,s,t)=>{t.d(s,{A:()=>n,Y:()=>i});var r=t(81413),a=t(43680),o=t.n(a);const n=function(e){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.hr)===r.hr?`-${e}`:e},i=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return new RegExp(o()(e),"i")}},99106:(e,s,t)=>{t.d(s,{p:()=>r});const r=(e,s,t)=>r=>0<=r&&r<e?t[0]:e<=r&&r<s?t[1]:s<=r?t[2]:void 0},57344:(e,s,t)=>{t.d(s,{N:()=>o});var r=t(68963),a=t(18193);const o=(e,s,t,o,n)=>{const[i,l]=r.useState((()=>a.r.readUserSettingsValue(s,o)));return{columnsToShow:r.useMemo((()=>e.filter((e=>{const s=e.name,t=i.includes(s),r=null===n||void 0===n?void 0:n.includes(s);return t||r}))),[e,n,i]),columnsToSelect:r.useMemo((()=>e.map((e=>e.name)).map((e=>{const s=null===n||void 0===n?void 0:n.includes(e),r=i.includes(e);return{id:e,title:t[e],selected:s||r,required:s,sticky:s?"start":void 0}}))),[e,t,n,i]),setColumns:r.useCallback((e=>{const t=e.filter((e=>e.selected)).map((e=>e.id));a.r.setUserSettingsValue(s,t),l(t)}),[s])}}},89712:(e,s,t)=>{t.d(s,{M:()=>n});var r=t(68963),a=t(2639),o=t(18193);const n=e=>{const s=r.useCallback((()=>e?o.r.readUserSettingsValue(e,{}):{}),[e]),t=r.useCallback((s=>{e&&o.r.setUserSettingsValue(e,s)}),[e]);return(0,a.M)({saveSizes:t,getSizes:s})}},15106:(e,s,t)=>{t.d(s,{I:()=>r,P:()=>o});const r=function(e){let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;const t=e.Limit?100*e.Used/e.Limit:0;return Math.floor(t/s)*s},a=["PoolName","Kind","MediaType","Erasure","Degraded","Usage","GroupId","Used","Limit","Read","Write","AllocationUnits","Latency"],o=e=>a.includes(e)},64372:()=>{}}]); \ No newline at end of file
diff --git a/ydb/core/viewer/monitoring/static/js/6581.043e40e7.chunk.js b/ydb/core/viewer/monitoring/static/js/6581.043e40e7.chunk.js
deleted file mode 100644
index ba53b5b2b6..0000000000
--- a/ydb/core/viewer/monitoring/static/js/6581.043e40e7.chunk.js
+++ /dev/null
@@ -1 +0,0 @@
-"use strict";(self.webpackChunkydb_embedded_ui=self.webpackChunkydb_embedded_ui||[]).push([[6581],{62776:(e,t,r)=>{r.d(t,{a:()=>n.a});var n=r(91173)},11635:(e,t,r)=>{r.d(t,{WQ:()=>O});var n=r(68963),s=r(5922),l=r(47101);const a=r(905).h.injectEndpoints({endpoints:function(e){return{fetchTableChunk:e.query({queryFn:async(e,t)=>{let{offset:r,limit:n,sortParams:s,filters:l,fetchData:a}=e,{signal:o}=t;try{return{data:await a({limit:n,offset:r,filters:l,sortParams:s,signal:o})}}catch(i){return{error:i}}},providesTags:["All"]})}}});var o=r(17096),i=r(26688),d=r(56711);const u="left",c=!0,m=-1,h=40;const g=(0,r(24362).cn)("ydb-paginated-table");var v=r(75859);const p=e=>{let{children:t,className:r,height:n,width:s,align:l=u,resizeable:a}=e;return(0,v.jsx)("td",{className:g("row-cell",{align:l},r),style:{height:`${n}px`,width:`${s}px`,maxWidth:a?`${s}px`:void 0},children:t})},f=e=>{let{index:t,columns:r,height:n}=e;return(0,v.jsx)("tr",{className:g("row",{loading:!0}),children:r.map((e=>{var r;const s=null!==(r=e.resizeable)&&void 0!==r?r:c;return(0,v.jsx)(p,{height:n,width:e.width,align:e.align,className:e.className,resizeable:s,children:(0,v.jsx)(d.O,{className:g("row-skeleton"),style:{width:"80%",height:"50%"}})},`${e.name}${t}`)}))})},b=e=>{let{row:t,index:r,columns:n,getRowClassName:s,height:l}=e;const a=null===s||void 0===s?void 0:s(t);return(0,v.jsx)("tr",{className:g("row",a),children:n.map((e=>{var n;const s=null!==(n=e.resizeable)&&void 0!==n?n:c;return(0,v.jsx)(p,{height:l,width:e.width,align:e.align,className:e.className,resizeable:s,children:e.render({row:t,index:r})},`${e.name}${r}`)}))})},w=e=>{let{columns:t,children:r}=e;return(0,v.jsx)("tr",{className:g("row",{empty:!0}),children:(0,v.jsx)("td",{colSpan:t.length,className:g("td"),children:r})})},x=(0,n.memo)((function(e){var t;let{id:r,limit:l,rowHeight:d,columns:u,fetchData:c,tableName:m,filters:h,sortParams:g,observer:p,getRowClassName:x,renderErrorMessage:C,onDataFetched:j,isActive:y}=e;const S=n.useRef(null),[E,N]=n.useState(!0),[R]=(0,o.Rj)(),k={offset:r*l,limit:l,fetchData:c,filters:h,sortParams:g,tableName:m};a.useFetchTableChunkQuery(k,{skip:E||!y,pollingInterval:R});const{currentData:I,error:M}=a.endpoints.fetchTableChunk.useQueryState(k);n.useEffect((()=>{let e=0;return y&&E&&(e=window.setTimeout((()=>{N(!1)}),200)),()=>{window.clearTimeout(e)}}),[y,E]),n.useEffect((()=>{const e=S.current;return e&&p.observe(e),()=>{e&&p.unobserve(e)}}),[p]),n.useEffect((()=>{if(I&&y){const{total:e=0,found:t=0}=I;j(e,t)}}),[I,y,j]);const z=(null===I||void 0===I||null===(t=I.data)||void 0===t?void 0:t.length)||l,O=z?z*d:l*d;return(0,v.jsx)("tbody",{ref:S,id:r.toString(),style:{height:`${O}px`,display:y?"table-row-group":"block"},children:(()=>{if(!y)return null;if(!I){if(M){const e=M;return(0,v.jsx)(w,{columns:u,children:C?C(e):(0,v.jsx)(i.V,{error:e})})}return(0,s.c$)(z).map((e=>(0,v.jsx)(f,{columns:u,height:d,index:e},e)))}return I.data.map(((e,t)=>(0,v.jsx)(b,{index:t,row:e,columns:u,height:d,getRowClassName:x},t)))})()})}));function C(e){let{minWidth:t,maxWidth:r,getCurrentColumnWidth:s,onResize:l}=e;const a=n.useRef(null),[o,i]=n.useState(!1);return n.useEffect((()=>{const e=a.current;if(!e)return;let n,o,d;const u=function(e){let t,r=null;return function(){for(var n=arguments.length,s=new Array(n),l=0;l<n;l++)s[l]=arguments[l];t=s,"number"!==typeof r&&(r=requestAnimationFrame((()=>{e(...t),r=null})))}}((e=>{if(j(e),"number"!==typeof n||"number"!==typeof o)return;const s=e.clientX-n,a=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:40,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0;return Math.max(t,Math.min(e,r))}(o+s,t,r);a!==d&&(d=a,null===l||void 0===l||l(d))})),c=e=>{j(e),void 0!==d&&(null===l||void 0===l||l(d)),i(!1),n=void 0,document.removeEventListener("mousemove",u),document.removeEventListener("mouseup",c)},m=e=>{o=s(),j(e),n=e.clientX,i(!0),document.addEventListener("mousemove",u),document.addEventListener("mouseup",c)};return e.addEventListener("mousedown",m),()=>{e.removeEventListener("mousedown",m),document.removeEventListener("mousemove",u),document.removeEventListener("mouseup",c)}}),[l,t,r,s]),(0,v.jsx)("span",{ref:a,className:g("resize-handler",{resizing:o}),onClick:e=>j(e)})}function j(e){e.preventDefault(),e.stopPropagation()}const y=e=>{let{order:t}=e;return(0,v.jsx)("svg",{className:g("sort-icon",{desc:-1===t}),viewBox:"0 0 10 6",width:"10",height:"6",children:(0,v.jsx)("path",{fill:"currentColor",d:"M0 5h10l-5 -5z"})})},S=e=>{let{sortOrder:t,sortable:r,defaultSortOrder:n}=e;return r?(0,v.jsx)("span",{className:g("sort-icon-container",{shadow:!t}),children:(0,v.jsx)(y,{order:t||n})}):null},E=e=>{var t;let{column:r,resizeable:s,sortOrder:l,defaultSortOrder:a,onSort:o,rowHeight:i,onCellMount:d,onCellUnMount:u,onColumnsResize:c}=e;const m=n.useRef(null);n.useEffect((()=>{const e=m.current;return e&&(null===d||void 0===d||d(e)),()=>{e&&(null===u||void 0===u||u(e))}}),[d,u]);const h=n.useCallback((()=>{var e;return null===(e=m.current)||void 0===e?void 0:e.getBoundingClientRect().width}),[]),p=n.useCallback((e=>{null===c||void 0===c||c(r.name,e)}),[c,r.name]),f=null!==(t=r.header)&&void 0!==t?t:r.name,b={height:`${i}px`,width:`${r.width}px`,minWidth:s?`${r.width}px`:void 0,maxWidth:s?`${r.width}px`:void 0};return(0,v.jsxs)("th",{ref:m,className:g("head-cell-wrapper"),style:b,children:[(0,v.jsxs)("div",{className:g("head-cell",{align:r.align,sortable:r.sortable},r.className),onClick:()=>{r.sortable&&(null===o||void 0===o||o(r.name))},children:[(0,v.jsx)("div",{className:g("head-cell-content"),children:f}),(0,v.jsx)(S,{sortOrder:l,sortable:r.sortable,defaultSortOrder:a})]}),s?(0,v.jsx)(C,{maxWidth:r.resizeMaxWidth,minWidth:r.resizeMinWidth,getCurrentColumnWidth:h,onResize:p}):null]})},N=e=>{let{columns:t,onSort:r,onColumnsResize:s,defaultSortOrder:l=m,rowHeight:a=h}=e;const[o,i]=n.useState({}),d=e=>{let t={};if(e===o.columnId){if(o.sortOrder&&o.sortOrder!==l)return i(t),void(null===r||void 0===r||r(t));t={sortOrder:1===o.sortOrder?-1:1,columnId:e}}else t={sortOrder:l,columnId:e};null===r||void 0===r||r(t),i(t)};return(0,v.jsxs)(n.Fragment,{children:[(0,v.jsx)("colgroup",{children:t.map((e=>(0,v.jsx)("col",{style:{width:`${e.width}px`}},e.name)))}),(0,v.jsx)("thead",{className:g("head"),children:(0,v.jsx)("tr",{children:t.map((e=>{var t;const r=o.columnId===e.name?o.sortOrder:void 0,n=s&&(null!==(t=e.resizeable)&&void 0!==t?t:c);return(0,v.jsx)(E,{column:e,resizeable:n,sortOrder:r,defaultSortOrder:l,onSort:d,rowHeight:a,onColumnsResize:s},e.name)}))})})]})};var R=r(30817);const k=JSON.parse('{"empty":"\u041d\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0445"}'),I=(0,R.wZ)("ydb-paginated-table",{ru:k,en:{empty:"No data"}}),M=e=>{let{limit:t,fetchData:r,filters:a,tableName:o,columns:i,getRowClassName:d,rowHeight:u=h,parentContainer:c,initialSortParams:m,onColumnsResize:p,renderControls:f,renderErrorMessage:b,renderEmptyDataMessage:C,containerClassName:j}=e;const[y,S]=n.useState(m),[E,R]=n.useState(t),[k,M]=n.useState(0),[z,O]=n.useState([]),[W,K]=n.useState(!0),D=n.useRef(null),F=n.useCallback(((e,t)=>{R(e),M(t),K(!1)}),[]),T=(e=>{let{onEntry:t,onLeave:r,parentContainer:s}=e;const l=n.useRef();return n.useEffect((()=>(l.current=new IntersectionObserver((e=>{e.forEach((e=>{e.isIntersecting?t(e.target.id):r(e.target.id)}))}),{root:s,rootMargin:"100%"}),()=>{var e;null===(e=l.current)||void 0===e||e.disconnect(),l.current=void 0})),[s,t,r]),l.current})({onEntry:n.useCallback((e=>{O((t=>[...new Set([...t,Number(e)])]))}),[]),onLeave:n.useCallback((e=>{O((t=>t.filter((t=>t!==Number(e)))))}),[]),parentContainer:c});n.useLayoutEffect((()=>{var e;(R(t),M(0),K(!0),c)?c.scrollTo(0,0):null===(e=D.current)||void 0===e||e.scrollTo(0,0);O([0])}),[a,t,c]);const $=()=>{if(!T)return null;if(!W&&0===k)return(0,v.jsx)("tbody",{children:(0,v.jsx)(w,{columns:i,children:C?C():I("empty")})});const e=k||t,n=Math.ceil(e/t);return(0,s.c$)(n).map((e=>(0,v.jsx)(x,{id:e,limit:t,rowHeight:u,columns:i,fetchData:r,filters:a,tableName:o,sortParams:y,getRowClassName:d,renderErrorMessage:b,onDataFetched:F,isActive:z.includes(e),observer:T},e)))},A=()=>(0,v.jsxs)("table",{className:g("table"),children:[(0,v.jsx)(N,{columns:i,onSort:S,onColumnsResize:p}),$()]});return(0,v.jsx)("div",{ref:D,className:g(null,j),children:f?(0,v.jsxs)(l.l,{children:[(0,v.jsx)(l.l.Controls,{children:f({inited:!W,totalEntities:E,foundEntities:k})}),(0,v.jsx)(l.l.Table,{children:A()})]}):A()})};var z=r(89712);function O(e){let{columnsWidthLSKey:t,columns:r,...n}=e;const[s,l]=(0,z.M)(t),a=function(e,t){return e.map((e=>{var r;return{...e,width:null!==(r=t[e.name])&&void 0!==r?r:e.width}}))}(r,s);return(0,v.jsx)(M,{columns:a,onColumnsResize:l,containerClassName:g("resizeable-table-container"),...n})}},39724:(e,t,r)=>{r.d(t,{V:()=>A});var n=r(52317),s=r(17096),l=r(52846),a=r(82073),o=r(8747),i=r(77915),d=r(95829),u=r(30553),c=r(51688),m=r(41616),h=r(93856),g=r(68963),v=r(96409),p=r(11635),f=r(17880),b=r(64782),w=r(51323),x=r(26491),C=r(27070),j=r(15106);const y=(e,t)=>`getStorageGroups|offset${t}|limit${e}`;var S=r(43817),E=r(75859);const N=e=>{let{columns:t,searchValue:r,visibleEntities:n,database:s,nodeId:l,onShowAll:a,parentContainer:o,renderControls:i,renderErrorMessage:u}=e;const c=(0,f.rU)(),m=(0,f.tS)(),h=(N=m,g.useCallback((async e=>{const{limit:t,offset:r,sortParams:n,filters:s}=e,{sortOrder:l,columnId:a}=null!==n&&void 0!==n?n:{},{searchValue:o,visibleEntities:i,database:d,nodeId:u}=null!==s&&void 0!==s?s:{},c=(0,j.P)(a)?(0,C.A)(a,l):void 0,{groups:m,found:h,total:g}=await(0,x.R)({limit:t,offset:r,sort:c,filter:o,with:i,database:d,nodeId:u,shouldUseGroupsHandler:N},{concurrentId:y(t,r)});return{data:m||[],found:h||0,total:g||0}}),[N]));var N;const R=g.useMemo((()=>({searchValue:r,visibleEntities:n,database:s,nodeId:l})),[r,n,s,l]);return(0,E.jsx)(v.s,{loading:!c,children:(0,E.jsx)(p.WQ,{columnsWidthLSKey:w.Ty,parentContainer:o,columns:t,fetchData:h,limit:50,renderControls:i,renderErrorMessage:u,renderEmptyDataMessage:()=>n!==d.G.all?(0,E.jsx)(b.a,{onShowAll:a,visibleEntities:n}):(0,S.Z)("empty.default"),filters:R,tableName:"storage-groups"})})};var R=r(46393),k=r(64682),I=r(55434),M=r(92092);const z=(e,t)=>`getStorageNodes|offset${t}|limit${e}`,O=async e=>{const{type:t="static",storage:r=!0,limit:n,offset:s,sortParams:l,filters:a}=e,{searchValue:o,nodesUptimeFilter:i,visibleEntities:d,database:u}=null!==a&&void 0!==a?a:{},{sortOrder:m,columnId:h}=null!==l&&void 0!==l?l:{},g=(0,c.oh)(h)?(0,C.A)(h,m):void 0,v=await window.api.getNodes({type:t,storage:r,limit:n,offset:s,sort:g,filter:o,uptime:(0,c.RW)(i),with:d,database:u},{concurrentId:z(n,s)}),p=(0,M.Y2)(v);return{data:p.nodes||[],found:p.found||0,total:p.total||0}};var W=r(73790),K=r(20108);const D=e=>{let{columns:t,searchValue:r,visibleEntities:n,nodesUptimeFilter:s,database:l,onShowAll:a,parentContainer:o,renderControls:i,renderErrorMessage:u}=e;const m=g.useMemo((()=>({searchValue:r,visibleEntities:n,nodesUptimeFilter:s,database:l})),[r,n,s,l]);return(0,E.jsx)(p.WQ,{columnsWidthLSKey:I.Wj,parentContainer:o,columns:t,fetchData:O,rowHeight:51,limit:50,renderControls:i,renderErrorMessage:u,renderEmptyDataMessage:()=>n!==d.G.all||s!==c.Uu.All?(0,E.jsx)(k.r,{onShowAll:a,nodesUptimeFilter:s,visibleEntities:n}):(0,W.Z)("empty.default"),getRowClassName:K.q,filters:m,tableName:"storage-nodes"})};var F=r(24733);const T=e=>{var t;let{database:r,nodeId:n,groupId:s,parentContainer:g}=e;const{balancer:v}=(0,i.kW)(),{additionalNodesProps:p}=(0,m.f)({balancer:v}),[f,b]=(0,l.useQueryParams)({type:l.StringParam,visible:l.StringParam,search:l.StringParam,uptimeFilter:l.StringParam}),w=u.Y.parse(f.type),x="groups"===w,C="nodes"===w,j=u.z.parse(f.visible),y=null!==(t=f.search)&&void 0!==t?t:"",S=c.U8.parse(f.uptimeFilter),{columnsToShow:k,columnsToSelect:I,setColumns:M}=(0,F.i)({additionalNodesProps:p,visibleEntities:j,database:r,groupId:s}),{columnsToShow:z,columnsToSelect:O,setColumns:W}=(0,R.k)(j),K=e=>{b({search:e||void 0},"replaceIn")},T=e=>{b({visible:e},"replaceIn")},$=e=>{b({type:e},"replaceIn")},A=e=>{b({uptimeFilter:e},"replaceIn")},L=()=>{b({visible:d.G.all,uptimeFilter:c.Uu.All},"replaceIn")},P=e=>{let{totalEntities:t,foundEntities:r,inited:n}=e;const s=x?O:I,l=x?W:M;return(0,E.jsx)(h.m,{searchValue:y,handleSearchValueChange:K,withTypeSelector:!0,storageType:w,handleStorageTypeChange:$,visibleEntities:j,handleVisibleEntitiesChange:T,nodesUptimeFilter:S,handleNodesUptimeFilterChange:A,withGroupsUsageFilter:!1,entitiesCountCurrent:r,entitiesCountTotal:t,entitiesLoading:!n,columnsToSelect:s,handleSelectedColumnsUpdate:l})},U=e=>403===e.status?(0,E.jsx)(a.J,{position:"left"}):(0,E.jsx)(o.V,{error:e});return C?(0,E.jsx)(D,{searchValue:y,visibleEntities:j,nodesUptimeFilter:S,database:r,onShowAll:L,parentContainer:g,renderControls:P,renderErrorMessage:U,columns:k}):(0,E.jsx)(N,{searchValue:y,visibleEntities:j,database:r,nodeId:n,onShowAll:()=>{T(d.G.all)},parentContainer:g,renderControls:P,renderErrorMessage:U,columns:z})};var $=r(45578);const A=e=>{let{parentContainer:t,...r}=e;const[l]=(0,s.yu)(n.Qy);return l?(0,E.jsx)(T,{parentContainer:t,...r}):(0,E.jsx)($.K,{...r})}},83496:(e,t,r)=>{r.d(t,{FW:()=>a,KR:()=>o});var n=r(75850),s=r(28164);const l={[s.g.Dead]:n.K.Red,[s.g.Created]:n.K.Yellow,[s.g.ResolveStateStorage]:n.K.Yellow,[s.g.Candidate]:n.K.Yellow,[s.g.BlockBlobStorage]:n.K.Yellow,[s.g.WriteZeroEntry]:n.K.Yellow,[s.g.Restored]:n.K.Yellow,[s.g.Discover]:n.K.Yellow,[s.g.Lock]:n.K.Yellow,[s.g.Stopped]:n.K.Yellow,[s.g.ResolveLeader]:n.K.Yellow,[s.g.RebuildGraph]:n.K.Yellow,[s.g.Deleted]:n.K.Green,[s.g.Active]:n.K.Green},a=(Object.keys(s.g),Object.entries(l).reduce(((e,t)=>{let[r,n]=t;return e[n]?e[n].push(r):e[n]=[r],e}),{}),e=>{if(!e)return n.K.Grey;return t=e,Object.values(n.K).includes(t)?e:l[e];var t});function o(e){if(!e)return"unknown";switch(e){case s.g.Dead:return"danger";case s.g.Active:case s.g.Deleted:return"success";default:return"warning"}}}}]); \ No newline at end of file
diff --git a/ydb/core/viewer/monitoring/static/js/5384.7591e911.chunk.js b/ydb/core/viewer/monitoring/static/js/7963.b08b6343.chunk.js
index ede2eba957..a33e2429ab 100644
--- a/ydb/core/viewer/monitoring/static/js/5384.7591e911.chunk.js
+++ b/ydb/core/viewer/monitoring/static/js/7963.b08b6343.chunk.js
@@ -1 +1 @@
-"use strict";(self.webpackChunkydb_embedded_ui=self.webpackChunkydb_embedded_ui||[]).push([[5384],{65070:(e,t,a)=>{a.d(t,{U:()=>d});var s=a(68963),n=a(17176),i=a(68330),l=a(86793),r=a(45743),o=a(75859);function d(e){let{children:t,onConfirmAction:a,onConfirmActionSuccess:d,dialogHeader:c,dialogText:u,retryButtonText:v,buttonDisabled:p=!1,buttonView:h="action",buttonClassName:m,withPopover:b=!1,popoverContent:g,popoverPlacement:x="right",popoverDisabled:k=!0}=e;const[j,y]=s.useState(!1),[N,f]=s.useState(!1),[D,I]=s.useState(!1),S=()=>(0,o.jsx)(n.z,{onClick:()=>y(!0),view:h,disabled:p,loading:!p&&N,className:m,children:t});return(0,o.jsxs)(s.Fragment,{children:[(0,o.jsx)(l.g,{visible:j,header:c,text:u,withRetry:D,retryButtonText:v,onConfirm:async e=>{f(!0),await a(e)},onConfirmActionSuccess:async()=>{I(!1);try{await(null===d||void 0===d?void 0:d())}finally{f(!1)}},onConfirmActionError:e=>{I((0,r.q)(e)),f(!1)},onClose:()=>{y(!1)}}),b?(0,o.jsx)(i.J,{content:g,placement:x,disabled:k,children:S()}):S()]})}},86793:(e,t,a)=>{a.d(t,{g:()=>b});var s=a(68963),n=a(76506),i=a(71586),l=a(48897),r=a(25822),o=a(88776),d=a(24362),c=a(30817);const u=JSON.parse('{"default-error":"Something went wrong, action cannot be completed","no-rights-error":"You don\'t have enough rights to complete the operation","button-confirm":"Confirm","button-retry":"Retry","button-cancel":"Cancel","button-close":"Close","checkbox-text":"I understand what I\'m doing"}'),v=(0,c.wZ)("ydb-critical-action-dialog",{en:u});var p=a(75859);const h=(0,d.cn)("ydb-critical-dialog"),m=e=>403===e.status?v("no-rights-error"):e.statusText?e.statusText:v("default-error");function b(e){let{visible:t,header:a,text:d,withRetry:c,retryButtonText:u,withCheckBox:b,onClose:g,onConfirm:x,onConfirmActionSuccess:k,onConfirmActionError:j}=e;const[y,N]=s.useState(!1),[f,D]=s.useState(),[I,S]=s.useState(!1),w=async e=>(N(!0),x(e).then((()=>{k(),g()})).catch((e=>{j(e),D(e)})).finally((()=>{N(!1)})));return(0,p.jsx)(r.V,{open:t,hasCloseButton:!1,className:h(),size:"s",onClose:g,onTransitionExited:()=>{D(void 0),S(!1)},children:f?(0,p.jsxs)(s.Fragment,{children:[(0,p.jsx)(r.V.Header,{caption:a}),(0,p.jsx)(r.V.Body,{className:h("body"),children:(0,p.jsxs)("div",{className:h("body-message",{error:!0}),children:[(0,p.jsx)("span",{className:h("error-icon"),children:(0,p.jsx)(n.Z,{width:"24",height:"22"})}),m(f)]})}),(0,p.jsx)(r.V.Footer,{loading:!1,preset:"default",textButtonApply:c?u||v("button-retry"):void 0,textButtonCancel:v("button-close"),onClickButtonApply:()=>w(!0),onClickButtonCancel:g})]}):(0,p.jsxs)(s.Fragment,{children:[(0,p.jsx)(r.V.Header,{caption:a}),(0,p.jsxs)(r.V.Body,{className:h("body"),children:[(0,p.jsxs)("div",{className:h("body-message",{warning:!0}),children:[(0,p.jsx)("span",{className:h("warning-icon"),children:(0,p.jsx)(o.J,{data:i.Z,size:24})}),d]}),b?(0,p.jsx)(l.X,{checked:I,onUpdate:S,children:v("checkbox-text")}):null]}),(0,p.jsx)(r.V.Footer,{loading:y,preset:"default",textButtonApply:v("button-confirm"),textButtonCancel:v("button-cancel"),propsButtonApply:{type:"submit",disabled:b&&!I},onClickButtonCancel:g,onClickButtonApply:()=>w()})]})})}},45743:(e,t,a)=>{a.d(t,{q:()=>s});const s=e=>Boolean(e&&"object"===typeof e&&"retryPossible"in e&&e.retryPossible)},8659:(e,t,a)=>{a.d(t,{P:()=>y});var s=a(77796),n=a(54665),i=a(14146),l=a(5922),r=a(81854),o=a(24362),d=a(34301),c=a(48169),u=a(17096),v=a(69214),p=a(23373),h=a(32270),m=a(67359),b=a(30817);const g=JSON.parse('{"type":"Type","path":"Path","guid":"GUID","serial-number":"Serial Number","shared-with-os":"SharedWithOs","drive-status":"Drive Status","state":"State","device":"Device","realtime":"Realtime","space":"Space","slots":"Slots","log-size":"Log Size","system-size":"System Size","links":"Links","developer-ui":"Developer UI","pdisk-page":"PDisk page","yes":"Yes"}'),x=(0,b.wZ)("ydb-pDisk-info",{en:g});var k=a(75859);const j=(0,o.cn)("ydb-pdisk-info");function y(e){let{pDisk:t,nodeId:a,withPDiskPageLink:o,className:b}=e;const g=(0,u.ix)(i.VH),[y,N,f,D]=function(e){let{pDisk:t,nodeId:a,withPDiskPageLink:s,isUserAllowedToMakeChanges:i}=e;const{PDiskId:o,Path:u,Guid:p,Category:b,Type:g,Device:y,Realtime:N,State:f,SerialNumber:D,TotalSize:I,AllocatedSize:S,StatusV2:w,NumActiveSlots:T,ExpectedSlotCount:P,LogUsedSize:V,LogTotalSize:C,SystemSize:z,SharedWithOs:A}=t||{},R=[];(0,l.D)(b)&&R.push({label:x("type"),value:g}),(0,l.D)(u)&&R.push({label:x("path"),value:u}),(0,l.D)(p)&&R.push({label:x("guid"),value:p}),D&&R.push({label:x("serial-number"),value:D}),(0,l.D)(A)&&R.push({label:x("shared-with-os"),value:x("yes")});const q=[];(0,l.D)(w)&&q.push({label:x("drive-status"),value:w}),(0,l.D)(f)&&q.push({label:x("state"),value:f}),(0,l.D)(y)&&q.push({label:x("device"),value:(0,k.jsx)(v.A,{status:y})}),(0,l.D)(N)&&q.push({label:x("realtime"),value:(0,k.jsx)(v.A,{status:N})});const F=[];F.push({label:x("space"),value:(0,k.jsx)(m.y,{value:S,capacity:I,formatValues:d.q3,colorizeProgress:!0})}),(0,l.D)(T)&&(0,l.D)(P)&&F.push({label:x("slots"),value:(0,k.jsx)(m.y,{value:T,capacity:P})}),(0,l.D)(V)&&(0,l.D)(C)&&F.push({label:x("log-size"),value:(0,k.jsx)(m.y,{value:V,capacity:C,formatValues:d.q3})}),(0,l.D)(z)&&F.push({label:x("system-size"),value:(0,r.td)({value:z})});const E=[];if((s||i)&&(0,l.D)(o)&&(0,l.D)(a)){const e=(0,n.ds)(o,a),t=(0,c.ok)({nodeId:a,pDiskId:o});E.push({label:x("links"),value:(0,k.jsxs)("span",{className:j("links"),children:[s&&(0,k.jsx)(h.j,{title:x("pdisk-page"),url:e,external:!1}),i&&(0,k.jsx)(h.j,{title:x("developer-ui"),url:t})]})})}return[R,q,F,E]}({pDisk:t,nodeId:a,withPDiskPageLink:o,isUserAllowedToMakeChanges:g});return(0,k.jsxs)(s.k,{className:b,gap:2,direction:"row",wrap:!0,children:[(0,k.jsxs)(s.k,{direction:"column",gap:2,width:500,children:[(0,k.jsx)(p._,{info:y,renderEmptyState:()=>null}),(0,k.jsx)(p._,{info:f,renderEmptyState:()=>null})]}),(0,k.jsxs)(s.k,{direction:"column",gap:2,width:500,children:[(0,k.jsx)(p._,{info:N,renderEmptyState:()=>null}),(0,k.jsx)(p._,{info:D,renderEmptyState:()=>null})]})]})}},97482:(e,t,a)=>{a.d(t,{f:()=>l});var s=a(14979),n=a(83496),i=a(75859);function l(e){let{state:t}=e;return(0,i.jsx)(s._,{theme:(0,n.KR)(t),children:t})}},12199:(e,t,a)=>{a.d(t,{$:()=>o});a(68963);var s=a(24362),n=a(75859);const i=(0,s.cn)("tag"),l=e=>{let{text:t,type:a}=e;return(0,n.jsx)("div",{className:i({type:a}),children:t})},r=(0,s.cn)("tags"),o=e=>{let{tags:t,tagsType:a,className:s=""}=e;return(0,n.jsx)("div",{className:r(null,s),children:t&&t.map(((e,t)=>(0,n.jsx)(l,{text:e,type:a},t)))})}},22200:(e,t,a)=>{a.d(t,{K:()=>y});a(68963);var s=a(54665),n=a(14146),i=a(5922),l=a(24362),r=a(34301),o=a(48169),d=a(92666),c=a(17096),u=a(55850),v=a(69214),p=a(62206),h=a(32270),m=a(67359),b=a(30817);const g=JSON.parse('{"slot-id":"VDisk Slot Id","pool-name":"Storage Pool Name","kind":"Kind","guid":"GUID","incarnation-guid":"Incarnation GUID","instance-guid":"Instance GUID","replication-status":"Replicated","state-status":"VDisk State","space-status":"Disk Space","fresh-rank-satisfaction":"Fresh Rank Satisfaction","level-rank-satisfaction":"Level Rank Satisfaction","front-queues":"Front Queues","has-unreadable-blobs":"Has Unreadable Blobs","size":"Size","read-throughput":"Read Throughput","write-throughput":"Write Throughput","links":"Links","vdisk-page":"VDisk Page","developer-ui":"Developer UI","yes":"Yes","no":"No","vdiks-title":"VDisk"}'),x=(0,b.wZ)("ydb-vDisk-info",{en:g});var k=a(75859);const j=(0,l.cn)("ydb-vdisk-info");function y(e){var t,a;let{data:l,withVDiskPageLink:d,withTitle:b,...g}=e;const y=(0,c.ix)(n.VH),{AllocatedSize:f,DiskSpace:D,FrontQueues:I,Guid:S,Replicated:w,VDiskState:T,VDiskSlotId:P,Kind:V,SatisfactionRank:C,AvailableSize:z,HasUnreadableBlobs:A,IncarnationGuid:R,InstanceGuid:q,StoragePoolName:F,ReadThroughput:E,WriteThroughput:L,PDiskId:U,NodeId:B}=l||{},G=[];var _,O;((0,i.D)(P)&&G.push({label:x("slot-id"),value:P}),(0,i.D)(F)&&G.push({label:x("pool-name"),value:F}),(0,i.D)(T)&&G.push({label:x("state-status"),value:T}),Number(f)>=0&&Number(z)>=0&&G.push({label:x("size"),value:(0,k.jsx)(m.y,{value:f,capacity:Number(f)+Number(z),formatValues:r.q3,colorizeProgress:!0})}),(0,i.D)(V)&&G.push({label:x("kind"),value:V}),(0,i.D)(S)&&G.push({label:x("guid"),value:S}),(0,i.D)(R)&&G.push({label:x("incarnation-guid"),value:R}),(0,i.D)(q)&&G.push({label:x("instance-guid"),value:q}),(0,i.D)(w)&&G.push({label:x("replication-status"),value:x(w?"yes":"no")}),(0,i.D)(D)&&G.push({label:x("space-status"),value:(0,k.jsx)(v.A,{status:D})}),(0,i.D)(null===C||void 0===C||null===(t=C.FreshRank)||void 0===t?void 0:t.Flag))&&G.push({label:x("fresh-rank-satisfaction"),value:(0,k.jsx)(v.A,{status:null===C||void 0===C||null===(_=C.FreshRank)||void 0===_?void 0:_.Flag})});(0,i.D)(null===C||void 0===C||null===(a=C.LevelRank)||void 0===a?void 0:a.Flag)&&G.push({label:x("level-rank-satisfaction"),value:(0,k.jsx)(v.A,{status:null===C||void 0===C||null===(O=C.LevelRank)||void 0===O?void 0:O.Flag})});(0,i.D)(I)&&G.push({label:x("front-queues"),value:(0,k.jsx)(v.A,{status:I})}),(0,i.D)(A)&&G.push({label:x("has-unreadable-blobs"),value:x(A?"yes":"no")}),(0,i.D)(E)&&G.push({label:x("read-throughput"),value:(0,u.Qt)(E)}),(0,i.D)(L)&&G.push({label:x("write-throughput"),value:(0,u.Qt)(L)});if((0,i.D)(U)&&(0,i.D)(B)&&(0,i.D)(P)){const e=[];if(d){const t=(0,s.By)(P,U,B);e.push((0,k.jsx)(h.j,{title:x("vdisk-page"),url:t,external:!1},t))}if(y){const t=(0,o.yf)({nodeId:B,pDiskId:U,vDiskSlotId:P});e.push((0,k.jsx)(h.j,{title:x("developer-ui"),url:t},t))}e.length&&G.push({label:x("links"),value:(0,k.jsx)("div",{className:j("links"),children:e})})}const Z=l&&b?(0,k.jsx)(N,{data:l}):null;return(0,k.jsx)(p._P,{info:G,title:Z,...g})}function N(e){let{data:t}=e;return(0,k.jsxs)("div",{className:j("title"),children:[x("vdiks-title"),(0,k.jsx)(v.A,{status:(0,d.b2)(t.Severity),name:(0,r.a2)(t.VDiskId)})]})}},72473:(e,t,a)=>{a.r(t),a.d(t,{Node:()=>ge,STORAGE_ROLE:()=>be});var s=a(68963),n=a(8179),i=a(49352),l=a(86974),r=a(83203),o=a(50422),d=a(39683),c=a(88776),u=a(24362),v=a(48169),p=a(69214),h=a(12199),m=a(75859);const b=(0,u.cn)("basic-node-viewer"),g=e=>{let t,{node:a,additionalNodesProps:n,className:i}=e;return null!==n&&void 0!==n&&n.getNodeRef?t=n.getNodeRef(a)+"internal":a.NodeId&&(t=(0,v.wq)(a.NodeId)+"internal"),(0,m.jsx)("div",{className:b(null,i),children:a?(0,m.jsxs)(s.Fragment,{children:[(0,m.jsx)("div",{className:b("title"),children:"Node"}),(0,m.jsx)(p.A,{status:a.SystemState,name:a.Host}),t&&(0,m.jsx)("a",{rel:"noopener noreferrer",className:b("link",{external:!0}),href:t,target:"_blank",children:(0,m.jsx)(c.J,{data:d.Z})}),(0,m.jsxs)("div",{className:b("id"),children:[(0,m.jsx)("label",{className:b("label"),children:"NodeID"}),(0,m.jsx)("label",{children:a.NodeId})]}),a.DC&&(0,m.jsx)(h.$,{tags:[a.DC]}),a.Roles&&(0,m.jsx)(h.$,{tags:a.Roles,tagsType:"blue"})]}):(0,m.jsx)("div",{className:"error",children:"no data"})})};var x=a(26688),k=a(52317),j=a(23373);const y=(0,u.cn)("ydb-pool-usage"),N=e=>{let t="green";return e>60&&e<=80?t="yellow":e>80&&(t="red"),t},f=e=>{let{data:t={}}=e;const{Threads:a,Name:s="Unknown",Usage:n=0}=t,i=n&&a,l=Math.floor(100*n),r=l>100?100:l;return(0,m.jsxs)("div",{className:y(),children:[(0,m.jsxs)("div",{className:y("info"),children:[(0,m.jsx)("div",{className:y("pool-name"),children:s}),i&&(0,m.jsxs)("div",{className:y("value"),children:[(0,m.jsxs)("div",{className:y("percents"),children:[l<1?"<1":l,"%"]}),(0,m.jsxs)("div",{className:y("threads"),children:["(\xd7",a,")"]})]})]}),(0,m.jsx)("div",{className:y("visual"),children:(0,m.jsx)("div",{className:y("usage-line",{type:N(r)}),style:{width:`${r}%`}})})]})};var D=a(67359);const I=(0,u.cn)("full-node-viewer"),S=e=>{var t,a,s,n;let{node:i,className:l}=e;const r=null===i||void 0===i||null===(t=i.Endpoints)||void 0===t?void 0:t.map((e=>{let{Name:t,Address:a}=e;return{label:t,value:a}})),o=[];null!==i&&void 0!==i&&null!==(a=i.Tenants)&&void 0!==a&&a.length&&o.push({label:"Database",value:i.Tenants[0]}),o.push({label:"Version",value:null===i||void 0===i?void 0:i.Version},{label:"Uptime",value:null===i||void 0===i?void 0:i.Uptime},{label:"DC",value:(null===i||void 0===i?void 0:i.DataCenterDescription)||(null===i||void 0===i?void 0:i.DC)},{label:"Rack",value:null===i||void 0===i?void 0:i.Rack});const d=null===i||void 0===i||null===(s=i.LoadAveragePercents)||void 0===s?void 0:s.map(((e,t)=>({label:k.x5[t],value:(0,m.jsx)(D.y,{value:e,percents:!0,colorizeProgress:!0,capacity:100})})));return(0,m.jsx)("div",{className:`${I()} ${l}`,children:i?(0,m.jsxs)("div",{className:I("common-info"),children:[(0,m.jsxs)("div",{children:[(0,m.jsx)("div",{className:I("section-title"),children:"Pools"}),(0,m.jsx)("div",{className:I("section",{pools:!0}),children:null===i||void 0===i||null===(n=i.PoolStats)||void 0===n?void 0:n.map(((e,t)=>(0,m.jsx)(f,{data:e},t)))})]}),r&&r.length&&(0,m.jsx)(j._,{title:"Endpoints",className:I("section"),info:r}),(0,m.jsx)(j._,{title:"Common info",className:I("section"),info:o}),(0,m.jsx)(j._,{title:"Load average",className:I("section",{average:!0}),info:d})]}):(0,m.jsx)("div",{className:"error",children:"no data"})})};var w=a(62776),T=a(54665),P=a(17880),V=a(79061),C=a(71698),z=a(17096),A=a(39724),R=a(42635),q=a(92398),F=a(85198),E=a.n(F),L=a(52846),U=a(36313),B=a(34301),G=a(3764);const _=(0,U.P1)((e=>e),(e=>C.N.endpoints.getNodeStructure.select({nodeId:e}))),O=(0,U.P1)((e=>e),((e,t)=>_(t)),((e,t)=>t(e).data)),Z=(0,U.P1)(((e,t)=>Number(t)),((e,t)=>O(e,t)),((e,t)=>{const a=null===t||void 0===t?void 0:t.StoragePools,s={};null===a||void 0===a||a.forEach((t=>{const a=t.Groups;null===a||void 0===a||a.forEach((a=>{var n;const i=null===(n=a.VDisks)||void 0===n?void 0:n.filter((t=>t.NodeId===e)).map(G.w);null===i||void 0===i||i.forEach((a=>{const n=(0,B.a2)(a.VDiskId),i=(0,G.b)(a.PDisk),l=i.PDiskId;s[String(l)]||(s[String(l)]={vDisks:{},...i}),s[String(l)].vDisks[n]={...a,PDiskId:l,NodeId:e,StoragePoolName:t.Name}}))}))}));return Object.keys(s).reduce(((e,t)=>{const a=s[t].vDisks,n=Object.keys(a).reduce(((e,t,s)=>(e.push({...a[t],id:t,order:s}),e)),[]);return e[t]={...s[t],vDisks:n},e}),{})}));var J=a(67585),H=a(19812),$=a(17176),Q=a(68330),K=a(33569),M=a(8659),Y=a(22200),W=a(75850),X=a(17632),ee=a(5922),te=a(30817);const ae=JSON.parse('{"pdisk.developer-ui-button-title":"PDisk Developer UI page","vdisk.developer-ui-button-title":"VDisk Developer UI page"}'),se=JSON.parse('{"pdisk.developer-ui-button-title":"\u0421\u0442\u0440\u0430\u043d\u0438\u0446\u0430 PDisk \u0432 Developer UI","vdisk.developer-ui-button-title":"\u0421\u0442\u0440\u0430\u043d\u0438\u0446\u0430 VDisk \u0432 Developer UI"}'),ne=(0,te.wZ)("ydb-node-page",{en:ae,ru:se}),ie=(0,u.cn)("kv-node-structure");function le(e){let{label:t,value:a,className:s}=e;return(0,m.jsxs)("span",{className:ie("pdisk-title-item",s),children:[t&&(0,m.jsxs)("span",{className:ie("pdisk-title-item-label"),children:[t,":"]}),(0,m.jsx)("span",{className:ie("pdisk-title-item-value"),children:a})]})}const re=(0,u.cn)("kv-node-structure");var oe;!function(e){e.slotId="VDiskSlotId",e.VDiskState="VDiskState",e.Size="Size",e.Info="Info"}(oe||(oe={}));const de={VDiskSlotId:"Slot id",VDiskState:"Status",Size:"Size",Info:""};function ce(e){let{pDiskId:t,selectedVdiskId:a,nodeId:s}=e;return[{name:oe.slotId,header:de[oe.slotId],width:100,render:e=>{let{row:n}=e;const i=n.VDiskSlotId;let l=null;return(0,ee.D)(s)&&(0,ee.D)(t)&&(0,ee.D)(i)&&(l=(0,v.yf)({nodeId:s,pDiskId:t,vDiskSlotId:i})),(0,m.jsxs)("div",{className:re("vdisk-id",{selected:n.id===a}),children:[(0,m.jsx)("span",{children:i}),l&&(0,m.jsx)($.z,{size:"s",className:re("external-button",{hidden:!0}),href:l,target:"_blank",title:ne("vdisk.developer-ui-button-title"),children:(0,m.jsx)(c.J,{data:d.Z})})]})},align:H.ZP.LEFT},{name:oe.VDiskState,header:de[oe.VDiskState],width:70,render:e=>{let{row:t}=e;return(0,m.jsx)(p.A,{status:t.VDiskState===X.H.OK?W.K.Green:W.K.Red})},sortAccessor:e=>e.VDiskState===X.H.OK?1:0,align:H.ZP.CENTER},{name:oe.Size,header:de[oe.Size],width:100,render:e=>{let{row:t}=e;return(0,m.jsx)(D.y,{value:t.AllocatedSize,capacity:Number(t.AllocatedSize)+Number(t.AvailableSize),formatValues:B.q3,colorizeProgress:!0})},sortAccessor:e=>Number(e.AllocatedSize),align:H.ZP.CENTER},{name:oe.Info,header:de[oe.Info],width:70,render:e=>{let{row:t}=e;return(0,m.jsx)(Q.J,{placement:["right"],content:(0,m.jsx)(Y.K,{data:t,withTitle:!0,withVDiskPageLink:!0}),tooltipContentClassName:re("vdisk-details"),children:(0,m.jsx)($.z,{view:"flat-secondary",className:re("vdisk-details-button",{selected:t.id===a}),children:(0,m.jsx)(c.J,{data:J.Z,size:18})})})},sortable:!1}]}function ue(e){let{id:t,data:a,selectedVdiskId:n,nodeId:i,unfolded:l}=e;const[r,o]=s.useState(null!==l&&void 0!==l&&l),{TotalSize:d=0,AvailableSize:c=0,Device:u,PDiskId:v,Type:h,vDisks:b}=a,g=Number(d),x=Number(c);return(0,m.jsxs)("div",{className:re("pdisk"),id:t,children:[(0,m.jsxs)("div",{className:re("pdisk-header"),children:[(0,m.jsxs)("div",{className:re("pdisk-title-wrapper"),children:[(0,m.jsx)(p.A,{status:u}),(0,m.jsx)(le,{label:"PDiskID",value:v,className:re("pdisk-title-id")}),(0,m.jsx)(le,{value:h,className:re("pdisk-title-type")}),(0,m.jsx)(D.y,{value:g-x,capacity:g,formatValues:B.q3,colorizeProgress:!0,className:re("pdisk-title-size")}),(0,m.jsx)(le,{label:"VDisks",value:b.length})]}),(0,m.jsx)($.z,{onClick:r?()=>{o(!1)}:()=>{o(!0)},view:"flat-secondary",children:(0,m.jsx)(K.F,{direction:r?"top":"bottom"})})]}),r&&(E()(a)?(0,m.jsx)("div",{children:"No information about PDisk"}):(0,m.jsxs)("div",{children:[(0,m.jsx)(M.P,{pDisk:a,nodeId:i,className:re("pdisk-details"),withPDiskPageLink:!0}),(0,m.jsxs)("div",{className:re("vdisks-container"),children:[(0,m.jsx)("div",{className:re("vdisks-header"),children:"VDisks"}),(0,m.jsx)(H.ZP,{theme:"yandex-cloud",data:b,columns:ce({nodeId:i,pDiskId:v,selectedVdiskId:n}),settings:{...k.LE,dynamicRender:!1},rowClassName:e=>e.id===n?re("selected-vdisk"):""})]})]}))]})}const ve=(0,u.cn)("kv-node-structure");function pe(e){let{type:t,id:a}=e;return`${t}-${a}`}const he=function(e){let{nodeId:t,className:a}=e;const n=(0,z.ix)((e=>Z(e,t))),[i]=(0,z.Rj)(),{currentData:l,isFetching:r,error:o}=C.N.useGetNodeStructureQuery({nodeId:t},{pollingInterval:i}),d=r&&void 0===l,[{pdiskId:c,vdiskId:u}]=(0,L.useQueryParams)({pdiskId:L.StringParam,vdiskId:L.StringParam}),v=s.useRef(null),p=s.useRef(!1);return s.useEffect((()=>{if(!E()(n)&&!p.current&&v.current&&c){const t=document.getElementById(pe({type:"pdisk",id:c}));let a=0;if(u){var e;const t=null===(e=n[c])||void 0===e?void 0:e.vDisks,s=null===t||void 0===t?void 0:t.find((e=>e.id===u)),i=s?document.querySelector(".data-table"):void 0,l=(null===s||void 0===s?void 0:s.order)||0;i&&(a+=i.offsetTop+40*l)}t&&(v.current.scrollTo({behavior:"smooth",top:a||t.offsetTop}),p.current=!0)}}),[n,c,u]),(0,m.jsxs)("div",{className:ve(),ref:v,children:[o?(0,m.jsx)(x.V,{error:o,className:ve("error")}):null,(0,m.jsx)("div",{className:a,children:d?(0,m.jsx)(w.a,{size:"m"}):o&&!l?null:(()=>{const e=Object.keys(n);return e.length>0?e.map((e=>(0,m.jsx)(ue,{data:n[e],id:pe({type:"pdisk",id:e}),unfolded:c===e,selectedVdiskId:u,nodeId:t},e))):"There is no information about node structure."})()})]})},me=(0,u.cn)("node"),be="Storage";function ge(e){var t,a;const d=s.useRef(null),c=(0,z.zL)(),u=(0,l.TH)(),v=null!==(t=(0,l.$B)(T.ZP.node))&&void 0!==t?t:Object.create(null),{id:p,activeTab:h}=v.params,{tenantName:b}=(0,T.mB)(u),[k]=(0,z.Rj)(),{currentData:j,isFetching:y,error:N}=C.N.useGetNodeInfoQuery({nodeId:p},{pollingInterval:k}),f=y&&void 0===j,D=j,I=(0,P.rU)(),F=(0,P.X_)(),{activeTabVerified:E,nodeTabs:L}=s.useMemo((()=>{var e;let t=(null===D||void 0===D||null===(e=D.Roles)||void 0===e?void 0:e.find((e=>e===be)))?q.ZJ:q.ZJ.filter((e=>e.id!==q.P_));F&&(t=t.filter((e=>e.id!==q.pV)));const a=t.map((e=>({...e,title:e.name})));let s=a.find((e=>{let{id:t}=e;return t===h}));return s||(s=a[0]),{activeTabVerified:s,nodeTabs:a}}),[h,D,F]),U=(null===D||void 0===D||null===(a=D.Tenants)||void 0===a?void 0:a[0])||(null===b||void 0===b?void 0:b.toString());let B;if(D){var G;const e=!(null!==D&&void 0!==D&&null!==(G=D.Tenants)&&void 0!==G&&G[0]);B=e?"Storage":"Compute"}s.useEffect((()=>{c((0,V.J)("node",{tenantName:U,nodeRole:B,nodeId:p}))}),[c,U,p,B]);const _=()=>{switch(E.id){case q.P_:return(0,m.jsx)("div",{className:me("storage"),children:(0,m.jsx)(A.V,{nodeId:p,parentContainer:d.current})});case q.IA:return(0,m.jsx)(R.J,{nodeId:p,database:U,className:me("node-page-wrapper")});case q.pV:return(0,m.jsx)(he,{className:me("node-page-wrapper"),nodeId:p});case q.mD:return(0,m.jsx)(S,{node:D,className:me("overview-wrapper")});default:return!1}};return f||!I?(0,m.jsx)(w.a,{size:"l"}):D?(0,m.jsxs)("div",{className:me(null,e.className),ref:d,children:[(0,m.jsx)(i.ql,{titleTemplate:`%s \u2014 ${D.Host} \u2014 YDB Monitoring`,defaultTitle:`${D.Host} \u2014 YDB Monitoring`,children:(0,m.jsx)("title",{children:E.title})}),(0,m.jsx)(g,{node:D,additionalNodesProps:e.additionalNodesProps,className:me("header")}),N?(0,m.jsx)(x.V,{error:N,className:me("error")}):null,(0,m.jsxs)("div",{className:me("tabs"),children:[(0,m.jsx)(n.m,{size:"l",items:L,activeTab:E.id,wrapTo:(e,t)=>{let{id:a}=e;return(0,m.jsx)(r.rU,{to:(0,T.ax)(T.ZP.node,{id:p,activeTab:a},{tenantName:U}),className:me("tab"),children:t},a)},allowNotSelected:!0}),(0,m.jsx)(o.q,{})]}),(0,m.jsx)("div",{className:me("content"),children:_()})]}):N?(0,m.jsx)(x.V,{error:N}):(0,m.jsx)("div",{className:"error",children:"no node data"})}},42635:(e,t,a)=>{a.d(t,{J:()=>G});var s=a(66950),n=a(10288),i=a(88776),l=a(17095),r=a(65070),o=a(41919),d=a(69214),c=a(26688),u=a(74170),v=a(2098),p=a(22692),h=a(97482),m=a(54665),b=a(14146),g=a(76386),x=a(36313),k=a(85690),j=a.n(k),y=a(905),N=a(99337);const f=y.h.injectEndpoints({endpoints:e=>({getTabletsInfo:e.query({queryFn:async(e,t)=>{let{signal:a}=t;try{return{data:await window.api.getTabletsInfo(e,{signal:a})}}catch(s){return{error:s}}},providesTags:["All",{type:"Tablet",id:"LIST"}]})}),overrideExisting:"throw"}),D=(0,x.P1)((e=>e),(e=>f.endpoints.getTabletsInfo.select(e)),{argsMemoize:x.PP,argsMemoizeOptions:{equalityCheck:j()}}),I=(0,x.P1)((e=>e),((e,t)=>D(t)),((e,t)=>t(e).data)),S=(0,x.P1)(((e,t)=>I(e,t)),(e=>(0,N.d)(e)),((e,t)=>null!==e&&void 0!==e&&e.TabletStateInfo?t?e.TabletStateInfo.map((e=>{const a=void 0===e.NodeId?void 0:t.get(e.NodeId);return{...e,fqdn:a}})):e.TabletStateInfo:[]));var w=a(28164),T=a(24362),P=a(52317),V=a(34301),C=a(48169),z=a(17096),A=a(92398),R=a(30817);const q=JSON.parse('{"noTabletsData":"No tablets data","Type":"Type","Tablet":"Tablet","State":"State","Node ID":"Node ID","Node FQDN":"Node FQDN","Generation":"Generation","Uptime":"Uptime","dialog.kill-header":"Restart tablet","dialog.kill-text":"The tablet will be restarted. Do you want to proceed?","controls.kill-not-allowed":"You don\'t have enough rights to restart tablet"}'),F=(0,R.wZ)("ydb-tablets",{en:q});var E=a(75859);const L=(0,T.cn)("tablets");function U(e){let{database:t}=e;return[{name:"Type",get header(){return F("Type")},render:e=>{let{row:t}=e;const a=!1===t.Leader;return(0,E.jsxs)("span",{children:[t.Type," ",a?(0,E.jsx)(n.x,{color:"secondary",children:"follower"}):""]})}},{name:"TabletId",width:220,get header(){return F("Tablet")},render:e=>{var a;let{row:s}=e;if(!s.TabletId)return P.jX;const n=(0,m.fK)(s.TabletId,{nodeId:s.NodeId,type:s.Type,tenantName:t});return(0,E.jsx)(d.A,{name:null===(a=s.TabletId)||void 0===a?void 0:a.toString(),path:n,hasClipboardButton:!0,showStatus:!1,additionalControls:(0,E.jsx)(o.Q,{href:(0,C.wz)(s.TabletId)})})}},{name:"State",get header(){return F("State")},render:e=>{let{row:t}=e;return(0,E.jsx)(h.f,{state:t.State})}},{name:"NodeId",get header(){return F("Node ID")},render:e=>{let{row:t}=e;const a=void 0===t.NodeId?void 0:(0,A.a3)(t.NodeId);return(0,E.jsx)(u.h,{to:a,children:t.NodeId})},align:"right"},{name:"fqdn",get header(){return F("Node FQDN")},render:e=>{let{row:t}=e;return t.fqdn?(0,E.jsx)(d.A,{name:t.fqdn,showStatus:!1,hasClipboardButton:!0}):(0,E.jsx)("span",{children:"\u2014"})}},{name:"Generation",get header(){return F("Generation")},align:"right"},{name:"Uptime",get header(){return F("Uptime")},render:e=>{let{row:t}=e;return(0,V.fG)(t.ChangeTime)},sortAccessor:e=>-Number(e.ChangeTime),align:"right"},{name:"Actions",sortable:!1,resizeable:!1,header:"",render:e=>{let{row:t}=e;return(0,E.jsx)(B,{...t})}}]}function B(e){const t=e.State===w.g.Stopped,a=(0,z.ix)(b.VH),[n]=g._.useKillTabletMutation(),l=e.TabletId;return l?(0,E.jsx)(r.U,{buttonView:"outlined",dialogHeader:F("dialog.kill-header"),dialogText:F("dialog.kill-text"),onConfirmAction:()=>n({id:l}).unwrap(),buttonDisabled:t||!a,withPopover:!0,popoverContent:F("controls.kill-not-allowed"),popoverDisabled:a,children:(0,E.jsx)(i.J,{data:s.Z})}):null}function G(e){let{nodeId:t,path:a,database:s,className:n}=e;const[i]=(0,z.Rj)();let r={};const o=void 0===t?void 0:String(t);void 0!==o?r={nodeId:o,database:s}:a&&(r={path:a,database:s});const{currentData:d,isFetching:u,error:h}=f.useGetTabletsInfoQuery(0===Object.keys(r).length?l.CN:r,{pollingInterval:i}),m=u&&void 0===d,b=(0,z.ix)((e=>S(e,r)));return m?(0,E.jsx)(p.h,{}):(0,E.jsxs)("div",{className:L(null,n),children:[h?(0,E.jsx)(c.V,{error:h}):null,d?(0,E.jsx)(v.G,{columns:U({database:s}),data:b,settings:P.LE,emptyDataMessage:F("noTabletsData")}):null]})}},71698:(e,t,a)=>{a.d(t,{N:()=>l});var s=a(905),n=a(51688);const i=e=>{var t;if(null===(t=e.SystemStateInfo)||void 0===t||!t.length)return{};const a=e.SystemStateInfo[0];return(0,n.Ns)(a)},l=s.h.injectEndpoints({endpoints:e=>({getNodeInfo:e.query({queryFn:async(e,t)=>{let{nodeId:a}=e,{signal:s}=t;try{const e=await window.api.getNodeInfo(a,{signal:s});return{data:i(e)}}catch(n){return{error:n}}},providesTags:["All"]}),getNodeStructure:e.query({queryFn:async(e,t)=>{let{nodeId:a}=e,{signal:s}=t;try{return{data:await window.api.getStorageInfo({nodeId:a},{signal:s})}}catch(n){return{error:n}}},providesTags:["All"]})}),overrideExisting:"throw"})},76386:(e,t,a)=>{a.d(t,{_:()=>n});var s=a(51688);const n=a(905).h.injectEndpoints({endpoints:e=>({getTablet:e.query({queryFn:async(e,t)=>{let{id:a,database:n,nodeId:i}=e,{signal:l}=t;try{const[e,t,r]=await Promise.all([window.api.getTablet({id:a,database:n,nodeId:i},{signal:l}),window.api.getTabletHistory({id:a,database:n,nodeId:i},{signal:l}),window.api.getNodesList({signal:l})]),o=(0,s.dn)(r),d=Object.keys(t).reduce(((e,a)=>{var s;const n=null===(s=t[a])||void 0===s?void 0:s.TabletStateInfo;if(n&&n.length){const t=n.find((e=>e.Leader))||n[0],{ChangeTime:s,Generation:i,State:l,Leader:r,FollowerId:d}=t,c=o&&a?o.get(Number(a)):void 0;"Dead"!==l&&e.push({nodeId:a,generation:i,changeTime:s,state:l,leader:r,followerId:d,fqdn:c})}return e}),[]),{TabletStateInfo:c=[]}=e,[u={}]=c,{TabletId:v}=u;return{data:{id:v,data:u,history:d}}}catch(r){return{error:r}}},providesTags:(e,t,a)=>["All",{type:"Tablet",id:a.id}]}),getTabletDescribe:e.query({queryFn:async(e,t)=>{let{tenantId:a}=e,{signal:s}=t;try{const e=await window.api.getTabletDescribe(a,{signal:s}),{SchemeShard:t,PathId:n}=a;return{data:(null===e||void 0===e?void 0:e.Path)||`${t}:${n}`}}catch(n){return{error:n}}},providesTags:["All"]}),getAdvancedTableInfo:e.query({queryFn:async(e,t)=>{let{id:a,hiveId:s}=e,{signal:n}=t;try{return{data:await window.api.getTabletFromHive({id:a,hiveId:s},{signal:n})}}catch(i){return{error:i}}},providesTags:(e,t,a)=>["All",{type:"Tablet",id:a.id}]}),killTablet:e.mutation({queryFn:async e=>{let{id:t}=e;try{return{data:await window.api.killTablet(t)}}catch(a){return{error:a}}},invalidatesTags:(e,t,a)=>[{type:"Tablet",id:a.id},{type:"Tablet",id:"LIST"}]}),stopTablet:e.mutation({queryFn:async e=>{let{id:t,hiveId:a}=e;try{return{data:await window.api.stopTablet(t,a)}}catch(s){return{error:s}}},invalidatesTags:(e,t,a)=>[{type:"Tablet",id:a.id},{type:"Tablet",id:"LIST"}]}),resumeTablet:e.mutation({queryFn:async e=>{let{id:t,hiveId:a}=e;try{return{data:await window.api.resumeTablet(t,a)}}catch(s){return{error:s}}},invalidatesTags:(e,t,a)=>[{type:"Tablet",id:a.id},{type:"Tablet",id:"LIST"}]})}),overrideExisting:"throw"})}}]); \ No newline at end of file
+"use strict";(self.webpackChunkydb_embedded_ui=self.webpackChunkydb_embedded_ui||[]).push([[7963],{65070:(e,t,a)=>{a.d(t,{U:()=>d});var s=a(68963),n=a(17176),i=a(68330),l=a(86793),r=a(45743),o=a(75859);function d(e){let{children:t,onConfirmAction:a,onConfirmActionSuccess:d,dialogHeader:c,dialogText:u,retryButtonText:v,buttonDisabled:p=!1,buttonView:h="action",buttonClassName:m,withPopover:b=!1,popoverContent:g,popoverPlacement:x="right",popoverDisabled:k=!0}=e;const[j,y]=s.useState(!1),[N,f]=s.useState(!1),[D,I]=s.useState(!1),S=()=>(0,o.jsx)(n.z,{onClick:()=>y(!0),view:h,disabled:p,loading:!p&&N,className:m,children:t});return(0,o.jsxs)(s.Fragment,{children:[(0,o.jsx)(l.g,{visible:j,header:c,text:u,withRetry:D,retryButtonText:v,onConfirm:async e=>{f(!0),await a(e)},onConfirmActionSuccess:async()=>{I(!1);try{await(null===d||void 0===d?void 0:d())}finally{f(!1)}},onConfirmActionError:e=>{I((0,r.q)(e)),f(!1)},onClose:()=>{y(!1)}}),b?(0,o.jsx)(i.J,{content:g,placement:x,disabled:k,children:S()}):S()]})}},86793:(e,t,a)=>{a.d(t,{g:()=>b});var s=a(68963),n=a(76506),i=a(71586),l=a(48897),r=a(25822),o=a(88776),d=a(24362),c=a(30817);const u=JSON.parse('{"default-error":"Something went wrong, action cannot be completed","no-rights-error":"You don\'t have enough rights to complete the operation","button-confirm":"Confirm","button-retry":"Retry","button-cancel":"Cancel","button-close":"Close","checkbox-text":"I understand what I\'m doing"}'),v=(0,c.wZ)("ydb-critical-action-dialog",{en:u});var p=a(75859);const h=(0,d.cn)("ydb-critical-dialog"),m=e=>403===e.status?v("no-rights-error"):e.statusText?e.statusText:v("default-error");function b(e){let{visible:t,header:a,text:d,withRetry:c,retryButtonText:u,withCheckBox:b,onClose:g,onConfirm:x,onConfirmActionSuccess:k,onConfirmActionError:j}=e;const[y,N]=s.useState(!1),[f,D]=s.useState(),[I,S]=s.useState(!1),w=async e=>(N(!0),x(e).then((()=>{k(),g()})).catch((e=>{j(e),D(e)})).finally((()=>{N(!1)})));return(0,p.jsx)(r.V,{open:t,hasCloseButton:!1,className:h(),size:"s",onClose:g,onTransitionExited:()=>{D(void 0),S(!1)},children:f?(0,p.jsxs)(s.Fragment,{children:[(0,p.jsx)(r.V.Header,{caption:a}),(0,p.jsx)(r.V.Body,{className:h("body"),children:(0,p.jsxs)("div",{className:h("body-message",{error:!0}),children:[(0,p.jsx)("span",{className:h("error-icon"),children:(0,p.jsx)(n.Z,{width:"24",height:"22"})}),m(f)]})}),(0,p.jsx)(r.V.Footer,{loading:!1,preset:"default",textButtonApply:c?u||v("button-retry"):void 0,textButtonCancel:v("button-close"),onClickButtonApply:()=>w(!0),onClickButtonCancel:g})]}):(0,p.jsxs)(s.Fragment,{children:[(0,p.jsx)(r.V.Header,{caption:a}),(0,p.jsxs)(r.V.Body,{className:h("body"),children:[(0,p.jsxs)("div",{className:h("body-message",{warning:!0}),children:[(0,p.jsx)("span",{className:h("warning-icon"),children:(0,p.jsx)(o.J,{data:i.Z,size:24})}),d]}),b?(0,p.jsx)(l.X,{checked:I,onUpdate:S,children:v("checkbox-text")}):null]}),(0,p.jsx)(r.V.Footer,{loading:y,preset:"default",textButtonApply:v("button-confirm"),textButtonCancel:v("button-cancel"),propsButtonApply:{type:"submit",disabled:b&&!I},onClickButtonCancel:g,onClickButtonApply:()=>w()})]})})}},45743:(e,t,a)=>{a.d(t,{q:()=>s});const s=e=>Boolean(e&&"object"===typeof e&&"retryPossible"in e&&e.retryPossible)},8659:(e,t,a)=>{a.d(t,{P:()=>y});var s=a(77796),n=a(54665),i=a(14146),l=a(5922),r=a(81854),o=a(24362),d=a(34301),c=a(48169),u=a(17096),v=a(69214),p=a(23373),h=a(32270),m=a(67359),b=a(30817);const g=JSON.parse('{"type":"Type","path":"Path","guid":"GUID","serial-number":"Serial Number","shared-with-os":"SharedWithOs","drive-status":"Drive Status","state":"State","device":"Device","realtime":"Realtime","space":"Space","slots":"Slots","log-size":"Log Size","system-size":"System Size","links":"Links","developer-ui":"Developer UI","pdisk-page":"PDisk page","yes":"Yes"}'),x=(0,b.wZ)("ydb-pDisk-info",{en:g});var k=a(75859);const j=(0,o.cn)("ydb-pdisk-info");function y(e){let{pDisk:t,nodeId:a,withPDiskPageLink:o,className:b}=e;const g=(0,u.ix)(i.VH),[y,N,f,D]=function(e){let{pDisk:t,nodeId:a,withPDiskPageLink:s,isUserAllowedToMakeChanges:i}=e;const{PDiskId:o,Path:u,Guid:p,Category:b,Type:g,Device:y,Realtime:N,State:f,SerialNumber:D,TotalSize:I,AllocatedSize:S,StatusV2:w,NumActiveSlots:T,ExpectedSlotCount:P,LogUsedSize:V,LogTotalSize:C,SystemSize:z,SharedWithOs:A}=t||{},R=[];(0,l.D)(b)&&R.push({label:x("type"),value:g}),(0,l.D)(u)&&R.push({label:x("path"),value:u}),(0,l.D)(p)&&R.push({label:x("guid"),value:p}),D&&R.push({label:x("serial-number"),value:D}),(0,l.D)(A)&&R.push({label:x("shared-with-os"),value:x("yes")});const q=[];(0,l.D)(w)&&q.push({label:x("drive-status"),value:w}),(0,l.D)(f)&&q.push({label:x("state"),value:f}),(0,l.D)(y)&&q.push({label:x("device"),value:(0,k.jsx)(v.A,{status:y})}),(0,l.D)(N)&&q.push({label:x("realtime"),value:(0,k.jsx)(v.A,{status:N})});const F=[];F.push({label:x("space"),value:(0,k.jsx)(m.y,{value:S,capacity:I,formatValues:d.q3,colorizeProgress:!0})}),(0,l.D)(T)&&(0,l.D)(P)&&F.push({label:x("slots"),value:(0,k.jsx)(m.y,{value:T,capacity:P})}),(0,l.D)(V)&&(0,l.D)(C)&&F.push({label:x("log-size"),value:(0,k.jsx)(m.y,{value:V,capacity:C,formatValues:d.q3})}),(0,l.D)(z)&&F.push({label:x("system-size"),value:(0,r.td)({value:z})});const E=[];if((s||i)&&(0,l.D)(o)&&(0,l.D)(a)){const e=(0,n.ds)(o,a),t=(0,c.ok)({nodeId:a,pDiskId:o});E.push({label:x("links"),value:(0,k.jsxs)("span",{className:j("links"),children:[s&&(0,k.jsx)(h.j,{title:x("pdisk-page"),url:e,external:!1}),i&&(0,k.jsx)(h.j,{title:x("developer-ui"),url:t})]})})}return[R,q,F,E]}({pDisk:t,nodeId:a,withPDiskPageLink:o,isUserAllowedToMakeChanges:g});return(0,k.jsxs)(s.k,{className:b,gap:2,direction:"row",wrap:!0,children:[(0,k.jsxs)(s.k,{direction:"column",gap:2,width:500,children:[(0,k.jsx)(p._,{info:y,renderEmptyState:()=>null}),(0,k.jsx)(p._,{info:f,renderEmptyState:()=>null})]}),(0,k.jsxs)(s.k,{direction:"column",gap:2,width:500,children:[(0,k.jsx)(p._,{info:N,renderEmptyState:()=>null}),(0,k.jsx)(p._,{info:D,renderEmptyState:()=>null})]})]})}},97482:(e,t,a)=>{a.d(t,{f:()=>l});var s=a(14979),n=a(83496),i=a(75859);function l(e){let{state:t}=e;return(0,i.jsx)(s._,{theme:(0,n.KR)(t),children:t})}},12199:(e,t,a)=>{a.d(t,{$:()=>o});a(68963);var s=a(24362),n=a(75859);const i=(0,s.cn)("tag"),l=e=>{let{text:t,type:a}=e;return(0,n.jsx)("div",{className:i({type:a}),children:t})},r=(0,s.cn)("tags"),o=e=>{let{tags:t,tagsType:a,className:s=""}=e;return(0,n.jsx)("div",{className:r(null,s),children:t&&t.map(((e,t)=>(0,n.jsx)(l,{text:e,type:a},t)))})}},22200:(e,t,a)=>{a.d(t,{K:()=>y});a(68963);var s=a(54665),n=a(14146),i=a(5922),l=a(24362),r=a(34301),o=a(48169),d=a(92666),c=a(17096),u=a(55850),v=a(69214),p=a(62206),h=a(32270),m=a(67359),b=a(30817);const g=JSON.parse('{"slot-id":"VDisk Slot Id","pool-name":"Storage Pool Name","kind":"Kind","guid":"GUID","incarnation-guid":"Incarnation GUID","instance-guid":"Instance GUID","replication-status":"Replicated","state-status":"VDisk State","space-status":"Disk Space","fresh-rank-satisfaction":"Fresh Rank Satisfaction","level-rank-satisfaction":"Level Rank Satisfaction","front-queues":"Front Queues","has-unreadable-blobs":"Has Unreadable Blobs","size":"Size","read-throughput":"Read Throughput","write-throughput":"Write Throughput","links":"Links","vdisk-page":"VDisk Page","developer-ui":"Developer UI","yes":"Yes","no":"No","vdiks-title":"VDisk"}'),x=(0,b.wZ)("ydb-vDisk-info",{en:g});var k=a(75859);const j=(0,l.cn)("ydb-vdisk-info");function y(e){var t,a;let{data:l,withVDiskPageLink:d,withTitle:b,...g}=e;const y=(0,c.ix)(n.VH),{AllocatedSize:f,DiskSpace:D,FrontQueues:I,Guid:S,Replicated:w,VDiskState:T,VDiskSlotId:P,Kind:V,SatisfactionRank:C,AvailableSize:z,HasUnreadableBlobs:A,IncarnationGuid:R,InstanceGuid:q,StoragePoolName:F,ReadThroughput:E,WriteThroughput:L,PDiskId:U,NodeId:B}=l||{},G=[];var _,O;((0,i.D)(P)&&G.push({label:x("slot-id"),value:P}),(0,i.D)(F)&&G.push({label:x("pool-name"),value:F}),(0,i.D)(T)&&G.push({label:x("state-status"),value:T}),Number(f)>=0&&Number(z)>=0&&G.push({label:x("size"),value:(0,k.jsx)(m.y,{value:f,capacity:Number(f)+Number(z),formatValues:r.q3,colorizeProgress:!0})}),(0,i.D)(V)&&G.push({label:x("kind"),value:V}),(0,i.D)(S)&&G.push({label:x("guid"),value:S}),(0,i.D)(R)&&G.push({label:x("incarnation-guid"),value:R}),(0,i.D)(q)&&G.push({label:x("instance-guid"),value:q}),(0,i.D)(w)&&G.push({label:x("replication-status"),value:x(w?"yes":"no")}),(0,i.D)(D)&&G.push({label:x("space-status"),value:(0,k.jsx)(v.A,{status:D})}),(0,i.D)(null===C||void 0===C||null===(t=C.FreshRank)||void 0===t?void 0:t.Flag))&&G.push({label:x("fresh-rank-satisfaction"),value:(0,k.jsx)(v.A,{status:null===C||void 0===C||null===(_=C.FreshRank)||void 0===_?void 0:_.Flag})});(0,i.D)(null===C||void 0===C||null===(a=C.LevelRank)||void 0===a?void 0:a.Flag)&&G.push({label:x("level-rank-satisfaction"),value:(0,k.jsx)(v.A,{status:null===C||void 0===C||null===(O=C.LevelRank)||void 0===O?void 0:O.Flag})});(0,i.D)(I)&&G.push({label:x("front-queues"),value:(0,k.jsx)(v.A,{status:I})}),(0,i.D)(A)&&G.push({label:x("has-unreadable-blobs"),value:x(A?"yes":"no")}),(0,i.D)(E)&&G.push({label:x("read-throughput"),value:(0,u.Qt)(E)}),(0,i.D)(L)&&G.push({label:x("write-throughput"),value:(0,u.Qt)(L)});if((0,i.D)(U)&&(0,i.D)(B)&&(0,i.D)(P)){const e=[];if(d){const t=(0,s.By)(P,U,B);e.push((0,k.jsx)(h.j,{title:x("vdisk-page"),url:t,external:!1},t))}if(y){const t=(0,o.yf)({nodeId:B,pDiskId:U,vDiskSlotId:P});e.push((0,k.jsx)(h.j,{title:x("developer-ui"),url:t},t))}e.length&&G.push({label:x("links"),value:(0,k.jsx)("div",{className:j("links"),children:e})})}const Z=l&&b?(0,k.jsx)(N,{data:l}):null;return(0,k.jsx)(p._P,{info:G,title:Z,...g})}function N(e){let{data:t}=e;return(0,k.jsxs)("div",{className:j("title"),children:[x("vdiks-title"),(0,k.jsx)(v.A,{status:(0,d.b2)(t.Severity),name:(0,r.a2)(t.VDiskId)})]})}},72473:(e,t,a)=>{a.r(t),a.d(t,{Node:()=>ge,STORAGE_ROLE:()=>be});var s=a(68963),n=a(8179),i=a(49352),l=a(86974),r=a(83203),o=a(50422),d=a(39683),c=a(88776),u=a(24362),v=a(48169),p=a(69214),h=a(12199),m=a(75859);const b=(0,u.cn)("basic-node-viewer"),g=e=>{let t,{node:a,additionalNodesProps:n,className:i}=e;return null!==n&&void 0!==n&&n.getNodeRef?t=n.getNodeRef(a)+"internal":a.NodeId&&(t=(0,v.wq)(a.NodeId)+"internal"),(0,m.jsx)("div",{className:b(null,i),children:a?(0,m.jsxs)(s.Fragment,{children:[(0,m.jsx)("div",{className:b("title"),children:"Node"}),(0,m.jsx)(p.A,{status:a.SystemState,name:a.Host}),t&&(0,m.jsx)("a",{rel:"noopener noreferrer",className:b("link",{external:!0}),href:t,target:"_blank",children:(0,m.jsx)(c.J,{data:d.Z})}),(0,m.jsxs)("div",{className:b("id"),children:[(0,m.jsx)("label",{className:b("label"),children:"NodeID"}),(0,m.jsx)("label",{children:a.NodeId})]}),a.DC&&(0,m.jsx)(h.$,{tags:[a.DC]}),a.Roles&&(0,m.jsx)(h.$,{tags:a.Roles,tagsType:"blue"})]}):(0,m.jsx)("div",{className:"error",children:"no data"})})};var x=a(26688),k=a(52317),j=a(23373);const y=(0,u.cn)("ydb-pool-usage"),N=e=>{let t="green";return e>60&&e<=80?t="yellow":e>80&&(t="red"),t},f=e=>{let{data:t={}}=e;const{Threads:a,Name:s="Unknown",Usage:n=0}=t,i=n&&a,l=Math.floor(100*n),r=l>100?100:l;return(0,m.jsxs)("div",{className:y(),children:[(0,m.jsxs)("div",{className:y("info"),children:[(0,m.jsx)("div",{className:y("pool-name"),children:s}),i&&(0,m.jsxs)("div",{className:y("value"),children:[(0,m.jsxs)("div",{className:y("percents"),children:[l<1?"<1":l,"%"]}),(0,m.jsxs)("div",{className:y("threads"),children:["(\xd7",a,")"]})]})]}),(0,m.jsx)("div",{className:y("visual"),children:(0,m.jsx)("div",{className:y("usage-line",{type:N(r)}),style:{width:`${r}%`}})})]})};var D=a(67359);const I=(0,u.cn)("full-node-viewer"),S=e=>{var t,a,s,n;let{node:i,className:l}=e;const r=null===i||void 0===i||null===(t=i.Endpoints)||void 0===t?void 0:t.map((e=>{let{Name:t,Address:a}=e;return{label:t,value:a}})),o=[];null!==i&&void 0!==i&&null!==(a=i.Tenants)&&void 0!==a&&a.length&&o.push({label:"Database",value:i.Tenants[0]}),o.push({label:"Version",value:null===i||void 0===i?void 0:i.Version},{label:"Uptime",value:null===i||void 0===i?void 0:i.Uptime},{label:"DC",value:(null===i||void 0===i?void 0:i.DataCenterDescription)||(null===i||void 0===i?void 0:i.DC)},{label:"Rack",value:null===i||void 0===i?void 0:i.Rack});const d=null===i||void 0===i||null===(s=i.LoadAveragePercents)||void 0===s?void 0:s.map(((e,t)=>({label:k.x5[t],value:(0,m.jsx)(D.y,{value:e,percents:!0,colorizeProgress:!0,capacity:100})})));return(0,m.jsx)("div",{className:`${I()} ${l}`,children:i?(0,m.jsxs)("div",{className:I("common-info"),children:[(0,m.jsxs)("div",{children:[(0,m.jsx)("div",{className:I("section-title"),children:"Pools"}),(0,m.jsx)("div",{className:I("section",{pools:!0}),children:null===i||void 0===i||null===(n=i.PoolStats)||void 0===n?void 0:n.map(((e,t)=>(0,m.jsx)(f,{data:e},t)))})]}),r&&r.length&&(0,m.jsx)(j._,{title:"Endpoints",className:I("section"),info:r}),(0,m.jsx)(j._,{title:"Common info",className:I("section"),info:o}),(0,m.jsx)(j._,{title:"Load average",className:I("section",{average:!0}),info:d})]}):(0,m.jsx)("div",{className:"error",children:"no data"})})};var w=a(62776),T=a(54665),P=a(17880),V=a(79061),C=a(71698),z=a(17096),A=a(10582),R=a(42635),q=a(92398),F=a(85198),E=a.n(F),L=a(98994),U=a(36313),B=a(34301),G=a(3764);const _=(0,U.P1)((e=>e),(e=>C.N.endpoints.getNodeStructure.select({nodeId:e}))),O=(0,U.P1)((e=>e),((e,t)=>_(t)),((e,t)=>t(e).data)),Z=(0,U.P1)(((e,t)=>Number(t)),((e,t)=>O(e,t)),((e,t)=>{const a=null===t||void 0===t?void 0:t.StoragePools,s={};null===a||void 0===a||a.forEach((t=>{const a=t.Groups;null===a||void 0===a||a.forEach((a=>{var n;const i=null===(n=a.VDisks)||void 0===n?void 0:n.filter((t=>t.NodeId===e)).map(G.w);null===i||void 0===i||i.forEach((a=>{const n=(0,B.a2)(a.VDiskId),i=(0,G.b)(a.PDisk),l=i.PDiskId;s[String(l)]||(s[String(l)]={vDisks:{},...i}),s[String(l)].vDisks[n]={...a,PDiskId:l,NodeId:e,StoragePoolName:t.Name}}))}))}));return Object.keys(s).reduce(((e,t)=>{const a=s[t].vDisks,n=Object.keys(a).reduce(((e,t,s)=>(e.push({...a[t],id:t,order:s}),e)),[]);return e[t]={...s[t],vDisks:n},e}),{})}));var J=a(67585),H=a(19812),$=a(17176),Q=a(68330),K=a(33569),M=a(8659),Y=a(22200),W=a(75850),X=a(17632),ee=a(5922),te=a(30817);const ae=JSON.parse('{"pdisk.developer-ui-button-title":"PDisk Developer UI page","vdisk.developer-ui-button-title":"VDisk Developer UI page"}'),se=JSON.parse('{"pdisk.developer-ui-button-title":"\u0421\u0442\u0440\u0430\u043d\u0438\u0446\u0430 PDisk \u0432 Developer UI","vdisk.developer-ui-button-title":"\u0421\u0442\u0440\u0430\u043d\u0438\u0446\u0430 VDisk \u0432 Developer UI"}'),ne=(0,te.wZ)("ydb-node-page",{en:ae,ru:se}),ie=(0,u.cn)("kv-node-structure");function le(e){let{label:t,value:a,className:s}=e;return(0,m.jsxs)("span",{className:ie("pdisk-title-item",s),children:[t&&(0,m.jsxs)("span",{className:ie("pdisk-title-item-label"),children:[t,":"]}),(0,m.jsx)("span",{className:ie("pdisk-title-item-value"),children:a})]})}const re=(0,u.cn)("kv-node-structure");var oe;!function(e){e.slotId="VDiskSlotId",e.VDiskState="VDiskState",e.Size="Size",e.Info="Info"}(oe||(oe={}));const de={VDiskSlotId:"Slot id",VDiskState:"Status",Size:"Size",Info:""};function ce(e){let{pDiskId:t,selectedVdiskId:a,nodeId:s}=e;return[{name:oe.slotId,header:de[oe.slotId],width:100,render:e=>{let{row:n}=e;const i=n.VDiskSlotId;let l=null;return(0,ee.D)(s)&&(0,ee.D)(t)&&(0,ee.D)(i)&&(l=(0,v.yf)({nodeId:s,pDiskId:t,vDiskSlotId:i})),(0,m.jsxs)("div",{className:re("vdisk-id",{selected:n.id===a}),children:[(0,m.jsx)("span",{children:i}),l&&(0,m.jsx)($.z,{size:"s",className:re("external-button",{hidden:!0}),href:l,target:"_blank",title:ne("vdisk.developer-ui-button-title"),children:(0,m.jsx)(c.J,{data:d.Z})})]})},align:H.ZP.LEFT},{name:oe.VDiskState,header:de[oe.VDiskState],width:70,render:e=>{let{row:t}=e;return(0,m.jsx)(p.A,{status:t.VDiskState===X.H.OK?W.K.Green:W.K.Red})},sortAccessor:e=>e.VDiskState===X.H.OK?1:0,align:H.ZP.CENTER},{name:oe.Size,header:de[oe.Size],width:100,render:e=>{let{row:t}=e;return(0,m.jsx)(D.y,{value:t.AllocatedSize,capacity:Number(t.AllocatedSize)+Number(t.AvailableSize),formatValues:B.q3,colorizeProgress:!0})},sortAccessor:e=>Number(e.AllocatedSize),align:H.ZP.CENTER},{name:oe.Info,header:de[oe.Info],width:70,render:e=>{let{row:t}=e;return(0,m.jsx)(Q.J,{placement:["right"],content:(0,m.jsx)(Y.K,{data:t,withTitle:!0,withVDiskPageLink:!0}),tooltipContentClassName:re("vdisk-details"),children:(0,m.jsx)($.z,{view:"flat-secondary",className:re("vdisk-details-button",{selected:t.id===a}),children:(0,m.jsx)(c.J,{data:J.Z,size:18})})})},sortable:!1}]}function ue(e){let{id:t,data:a,selectedVdiskId:n,nodeId:i,unfolded:l}=e;const[r,o]=s.useState(null!==l&&void 0!==l&&l),{TotalSize:d=0,AvailableSize:c=0,Device:u,PDiskId:v,Type:h,vDisks:b}=a,g=Number(d),x=Number(c);return(0,m.jsxs)("div",{className:re("pdisk"),id:t,children:[(0,m.jsxs)("div",{className:re("pdisk-header"),children:[(0,m.jsxs)("div",{className:re("pdisk-title-wrapper"),children:[(0,m.jsx)(p.A,{status:u}),(0,m.jsx)(le,{label:"PDiskID",value:v,className:re("pdisk-title-id")}),(0,m.jsx)(le,{value:h,className:re("pdisk-title-type")}),(0,m.jsx)(D.y,{value:g-x,capacity:g,formatValues:B.q3,colorizeProgress:!0,className:re("pdisk-title-size")}),(0,m.jsx)(le,{label:"VDisks",value:b.length})]}),(0,m.jsx)($.z,{onClick:r?()=>{o(!1)}:()=>{o(!0)},view:"flat-secondary",children:(0,m.jsx)(K.F,{direction:r?"top":"bottom"})})]}),r&&(E()(a)?(0,m.jsx)("div",{children:"No information about PDisk"}):(0,m.jsxs)("div",{children:[(0,m.jsx)(M.P,{pDisk:a,nodeId:i,className:re("pdisk-details"),withPDiskPageLink:!0}),(0,m.jsxs)("div",{className:re("vdisks-container"),children:[(0,m.jsx)("div",{className:re("vdisks-header"),children:"VDisks"}),(0,m.jsx)(H.ZP,{theme:"yandex-cloud",data:b,columns:ce({nodeId:i,pDiskId:v,selectedVdiskId:n}),settings:{...k.LE,dynamicRender:!1},rowClassName:e=>e.id===n?re("selected-vdisk"):""})]})]}))]})}const ve=(0,u.cn)("kv-node-structure");function pe(e){let{type:t,id:a}=e;return`${t}-${a}`}const he=function(e){let{nodeId:t,className:a}=e;const n=(0,z.ix)((e=>Z(e,t))),[i]=(0,z.Rj)(),{currentData:l,isFetching:r,error:o}=C.N.useGetNodeStructureQuery({nodeId:t},{pollingInterval:i}),d=r&&void 0===l,[{pdiskId:c,vdiskId:u}]=(0,L.useQueryParams)({pdiskId:L.StringParam,vdiskId:L.StringParam}),v=s.useRef(null),p=s.useRef(!1);return s.useEffect((()=>{if(!E()(n)&&!p.current&&v.current&&c){const t=document.getElementById(pe({type:"pdisk",id:c}));let a=0;if(u){var e;const t=null===(e=n[c])||void 0===e?void 0:e.vDisks,s=null===t||void 0===t?void 0:t.find((e=>e.id===u)),i=s?document.querySelector(".data-table"):void 0,l=(null===s||void 0===s?void 0:s.order)||0;i&&(a+=i.offsetTop+40*l)}t&&(v.current.scrollTo({behavior:"smooth",top:a||t.offsetTop}),p.current=!0)}}),[n,c,u]),(0,m.jsxs)("div",{className:ve(),ref:v,children:[o?(0,m.jsx)(x.V,{error:o,className:ve("error")}):null,(0,m.jsx)("div",{className:a,children:d?(0,m.jsx)(w.a,{size:"m"}):o&&!l?null:(()=>{const e=Object.keys(n);return e.length>0?e.map((e=>(0,m.jsx)(ue,{data:n[e],id:pe({type:"pdisk",id:e}),unfolded:c===e,selectedVdiskId:u,nodeId:t},e))):"There is no information about node structure."})()})]})},me=(0,u.cn)("node"),be="Storage";function ge(e){var t,a;const d=s.useRef(null),c=(0,z.zL)(),u=(0,l.TH)(),v=null!==(t=(0,l.$B)(T.ZP.node))&&void 0!==t?t:Object.create(null),{id:p,activeTab:h}=v.params,{tenantName:b}=(0,T.mB)(u),[k]=(0,z.Rj)(),{currentData:j,isFetching:y,error:N}=C.N.useGetNodeInfoQuery({nodeId:p},{pollingInterval:k}),f=y&&void 0===j,D=j,I=(0,P.rU)(),F=(0,P.X_)(),{activeTabVerified:E,nodeTabs:L}=s.useMemo((()=>{var e;let t=(null===D||void 0===D||null===(e=D.Roles)||void 0===e?void 0:e.find((e=>e===be)))?q.ZJ:q.ZJ.filter((e=>e.id!==q.P_));F&&(t=t.filter((e=>e.id!==q.pV)));const a=t.map((e=>({...e,title:e.name})));let s=a.find((e=>{let{id:t}=e;return t===h}));return s||(s=a[0]),{activeTabVerified:s,nodeTabs:a}}),[h,D,F]),U=(null===D||void 0===D||null===(a=D.Tenants)||void 0===a?void 0:a[0])||(null===b||void 0===b?void 0:b.toString());let B;if(D){var G;const e=!(null!==D&&void 0!==D&&null!==(G=D.Tenants)&&void 0!==G&&G[0]);B=e?"Storage":"Compute"}s.useEffect((()=>{c((0,V.J)("node",{tenantName:U,nodeRole:B,nodeId:p}))}),[c,U,p,B]);const _=()=>{switch(E.id){case q.P_:return(0,m.jsx)("div",{className:me("storage"),children:(0,m.jsx)(A.V,{nodeId:p,parentContainer:d.current})});case q.IA:return(0,m.jsx)(R.J,{nodeId:p,database:U,className:me("node-page-wrapper")});case q.pV:return(0,m.jsx)(he,{className:me("node-page-wrapper"),nodeId:p});case q.mD:return(0,m.jsx)(S,{node:D,className:me("overview-wrapper")});default:return!1}};return f||!I?(0,m.jsx)(w.a,{size:"l"}):D?(0,m.jsxs)("div",{className:me(null,e.className),ref:d,children:[(0,m.jsx)(i.ql,{titleTemplate:`%s \u2014 ${D.Host} \u2014 YDB Monitoring`,defaultTitle:`${D.Host} \u2014 YDB Monitoring`,children:(0,m.jsx)("title",{children:E.title})}),(0,m.jsx)(g,{node:D,additionalNodesProps:e.additionalNodesProps,className:me("header")}),N?(0,m.jsx)(x.V,{error:N,className:me("error")}):null,(0,m.jsxs)("div",{className:me("tabs"),children:[(0,m.jsx)(n.m,{size:"l",items:L,activeTab:E.id,wrapTo:(e,t)=>{let{id:a}=e;return(0,m.jsx)(r.rU,{to:(0,T.ax)(T.ZP.node,{id:p,activeTab:a},{tenantName:U}),className:me("tab"),children:t},a)},allowNotSelected:!0}),(0,m.jsx)(o.q,{})]}),(0,m.jsx)("div",{className:me("content"),children:_()})]}):N?(0,m.jsx)(x.V,{error:N}):(0,m.jsx)("div",{className:"error",children:"no node data"})}},42635:(e,t,a)=>{a.d(t,{J:()=>G});var s=a(66950),n=a(10288),i=a(88776),l=a(17095),r=a(65070),o=a(41919),d=a(69214),c=a(26688),u=a(74170),v=a(2098),p=a(22692),h=a(97482),m=a(54665),b=a(14146),g=a(76386),x=a(36313),k=a(85690),j=a.n(k),y=a(905),N=a(99337);const f=y.h.injectEndpoints({endpoints:e=>({getTabletsInfo:e.query({queryFn:async(e,t)=>{let{signal:a}=t;try{return{data:await window.api.getTabletsInfo(e,{signal:a})}}catch(s){return{error:s}}},providesTags:["All",{type:"Tablet",id:"LIST"}]})}),overrideExisting:"throw"}),D=(0,x.P1)((e=>e),(e=>f.endpoints.getTabletsInfo.select(e)),{argsMemoize:x.PP,argsMemoizeOptions:{equalityCheck:j()}}),I=(0,x.P1)((e=>e),((e,t)=>D(t)),((e,t)=>t(e).data)),S=(0,x.P1)(((e,t)=>I(e,t)),(e=>(0,N.s)(e)),((e,t)=>null!==e&&void 0!==e&&e.TabletStateInfo?t?e.TabletStateInfo.map((e=>{const a=void 0===e.NodeId?void 0:t.get(e.NodeId);return{...e,fqdn:a}})):e.TabletStateInfo:[]));var w=a(28164),T=a(24362),P=a(52317),V=a(34301),C=a(48169),z=a(17096),A=a(92398),R=a(30817);const q=JSON.parse('{"noTabletsData":"No tablets data","Type":"Type","Tablet":"Tablet","State":"State","Node ID":"Node ID","Node FQDN":"Node FQDN","Generation":"Generation","Uptime":"Uptime","dialog.kill-header":"Restart tablet","dialog.kill-text":"The tablet will be restarted. Do you want to proceed?","controls.kill-not-allowed":"You don\'t have enough rights to restart tablet"}'),F=(0,R.wZ)("ydb-tablets",{en:q});var E=a(75859);const L=(0,T.cn)("tablets");function U(e){let{database:t}=e;return[{name:"Type",get header(){return F("Type")},render:e=>{let{row:t}=e;const a=!1===t.Leader;return(0,E.jsxs)("span",{children:[t.Type," ",a?(0,E.jsx)(n.x,{color:"secondary",children:"follower"}):""]})}},{name:"TabletId",width:220,get header(){return F("Tablet")},render:e=>{var a;let{row:s}=e;if(!s.TabletId)return P.jX;const n=(0,m.fK)(s.TabletId,{nodeId:s.NodeId,type:s.Type,tenantName:t});return(0,E.jsx)(d.A,{name:null===(a=s.TabletId)||void 0===a?void 0:a.toString(),path:n,hasClipboardButton:!0,showStatus:!1,additionalControls:(0,E.jsx)(o.Q,{href:(0,C.wz)(s.TabletId)})})}},{name:"State",get header(){return F("State")},render:e=>{let{row:t}=e;return(0,E.jsx)(h.f,{state:t.State})}},{name:"NodeId",get header(){return F("Node ID")},render:e=>{let{row:t}=e;const a=void 0===t.NodeId?void 0:(0,A.a3)(t.NodeId);return(0,E.jsx)(u.h,{to:a,children:t.NodeId})},align:"right"},{name:"fqdn",get header(){return F("Node FQDN")},render:e=>{let{row:t}=e;return t.fqdn?(0,E.jsx)(d.A,{name:t.fqdn,showStatus:!1,hasClipboardButton:!0}):(0,E.jsx)("span",{children:"\u2014"})}},{name:"Generation",get header(){return F("Generation")},align:"right"},{name:"Uptime",get header(){return F("Uptime")},render:e=>{let{row:t}=e;return(0,V.fG)(t.ChangeTime)},sortAccessor:e=>-Number(e.ChangeTime),align:"right"},{name:"Actions",sortable:!1,resizeable:!1,header:"",render:e=>{let{row:t}=e;return(0,E.jsx)(B,{...t})}}]}function B(e){const t=e.State===w.g.Stopped,a=(0,z.ix)(b.VH),[n]=g._.useKillTabletMutation(),l=e.TabletId;return l?(0,E.jsx)(r.U,{buttonView:"outlined",dialogHeader:F("dialog.kill-header"),dialogText:F("dialog.kill-text"),onConfirmAction:()=>n({id:l}).unwrap(),buttonDisabled:t||!a,withPopover:!0,popoverContent:F("controls.kill-not-allowed"),popoverDisabled:a,children:(0,E.jsx)(i.J,{data:s.Z})}):null}function G(e){let{nodeId:t,path:a,database:s,className:n}=e;const[i]=(0,z.Rj)();let r={};const o=void 0===t?void 0:String(t);void 0!==o?r={nodeId:o,database:s}:a&&(r={path:a,database:s});const{currentData:d,isFetching:u,error:h}=f.useGetTabletsInfoQuery(0===Object.keys(r).length?l.CN:r,{pollingInterval:i}),m=u&&void 0===d,b=(0,z.ix)((e=>S(e,r)));return m?(0,E.jsx)(p.h,{}):(0,E.jsxs)("div",{className:L(null,n),children:[h?(0,E.jsx)(c.V,{error:h}):null,d?(0,E.jsx)(v.G,{columns:U({database:s}),data:b,settings:P.LE,emptyDataMessage:F("noTabletsData")}):null]})}},71698:(e,t,a)=>{a.d(t,{N:()=>l});var s=a(905),n=a(51688);const i=e=>{var t;if(null===(t=e.SystemStateInfo)||void 0===t||!t.length)return{};const a=e.SystemStateInfo[0];return(0,n.Ns)(a)},l=s.h.injectEndpoints({endpoints:e=>({getNodeInfo:e.query({queryFn:async(e,t)=>{let{nodeId:a}=e,{signal:s}=t;try{const e=await window.api.getNodeInfo(a,{signal:s});return{data:i(e)}}catch(n){return{error:n}}},providesTags:["All"]}),getNodeStructure:e.query({queryFn:async(e,t)=>{let{nodeId:a}=e,{signal:s}=t;try{return{data:await window.api.getStorageInfo({nodeId:a},{signal:s})}}catch(n){return{error:n}}},providesTags:["All"]})}),overrideExisting:"throw"})},76386:(e,t,a)=>{a.d(t,{_:()=>n});var s=a(51688);const n=a(905).h.injectEndpoints({endpoints:e=>({getTablet:e.query({queryFn:async(e,t)=>{let{id:a,database:n,nodeId:i}=e,{signal:l}=t;try{const[e,t,r]=await Promise.all([window.api.getTablet({id:a,database:n,nodeId:i},{signal:l}),window.api.getTabletHistory({id:a,database:n,nodeId:i},{signal:l}),window.api.getNodesList({signal:l})]),o=(0,s.Xs)(r),d=Object.keys(t).reduce(((e,a)=>{var s;const n=null===(s=t[a])||void 0===s?void 0:s.TabletStateInfo;if(n&&n.length){const t=n.find((e=>e.Leader))||n[0],{ChangeTime:s,Generation:i,State:l,Leader:r,FollowerId:d}=t,c=o&&a?o.get(Number(a)):void 0;"Dead"!==l&&e.push({nodeId:a,generation:i,changeTime:s,state:l,leader:r,followerId:d,fqdn:c})}return e}),[]),{TabletStateInfo:c=[]}=e,[u={}]=c,{TabletId:v}=u;return{data:{id:v,data:u,history:d}}}catch(r){return{error:r}}},providesTags:(e,t,a)=>["All",{type:"Tablet",id:a.id}]}),getTabletDescribe:e.query({queryFn:async(e,t)=>{let{tenantId:a}=e,{signal:s}=t;try{const e=await window.api.getTabletDescribe(a,{signal:s}),{SchemeShard:t,PathId:n}=a;return{data:(null===e||void 0===e?void 0:e.Path)||`${t}:${n}`}}catch(n){return{error:n}}},providesTags:["All"]}),getAdvancedTableInfo:e.query({queryFn:async(e,t)=>{let{id:a,hiveId:s}=e,{signal:n}=t;try{return{data:await window.api.getTabletFromHive({id:a,hiveId:s},{signal:n})}}catch(i){return{error:i}}},providesTags:(e,t,a)=>["All",{type:"Tablet",id:a.id}]}),killTablet:e.mutation({queryFn:async e=>{let{id:t}=e;try{return{data:await window.api.killTablet(t)}}catch(a){return{error:a}}},invalidatesTags:(e,t,a)=>[{type:"Tablet",id:a.id},{type:"Tablet",id:"LIST"}]}),stopTablet:e.mutation({queryFn:async e=>{let{id:t,hiveId:a}=e;try{return{data:await window.api.stopTablet(t,a)}}catch(s){return{error:s}}},invalidatesTags:(e,t,a)=>[{type:"Tablet",id:a.id},{type:"Tablet",id:"LIST"}]}),resumeTablet:e.mutation({queryFn:async e=>{let{id:t,hiveId:a}=e;try{return{data:await window.api.resumeTablet(t,a)}}catch(s){return{error:s}}},invalidatesTags:(e,t,a)=>[{type:"Tablet",id:a.id},{type:"Tablet",id:"LIST"}]})}),overrideExisting:"throw"})}}]); \ No newline at end of file
diff --git a/ydb/core/viewer/monitoring/static/js/9610.5ed57d9d.chunk.js b/ydb/core/viewer/monitoring/static/js/9610.5ed57d9d.chunk.js
deleted file mode 100644
index fc8fcce277..0000000000
--- a/ydb/core/viewer/monitoring/static/js/9610.5ed57d9d.chunk.js
+++ /dev/null
@@ -1 +0,0 @@
-"use strict";(self.webpackChunkydb_embedded_ui=self.webpackChunkydb_embedded_ui||[]).push([[9610],{50422:(e,s,t)=>{t.d(s,{q:()=>h});var r=t(84317),a=t(17176),o=t(2418),n=t(905),l=t(24362),i=t(17096),d=t(30817);const u=JSON.parse('{"None":"None","15 sec":"15 sec","1 min":"1 min","2 min":"2 min","5 min":"5 min","Refresh":"Refresh"}'),c=(0,d.wZ)("ydb-diagnostics-autorefresh-control",{en:u});var m=t(75859);const p=(0,l.cn)("auto-refresh-control");function h(e){let{className:s}=e;const t=(0,i.zL)(),[l,d]=(0,i.Rj)();return(0,m.jsxs)("div",{className:p(null,s),children:[(0,m.jsx)(a.z,{view:"flat",onClick:()=>{t(n.h.util.invalidateTags(["All"]))},extraProps:{"aria-label":c("Refresh")},children:(0,m.jsx)(a.z.Icon,{children:(0,m.jsx)(r.Z,{})})}),(0,m.jsxs)(o.P,{value:[String(l)],onUpdate:e=>{d(Number(e))},width:85,children:[(0,m.jsx)(o.P.Option,{value:"0",children:c("None")}),(0,m.jsx)(o.P.Option,{value:"15000",children:c("15 sec")}),(0,m.jsx)(o.P.Option,{value:"60000",children:c("1 min")}),(0,m.jsx)(o.P.Option,{value:"120000",children:c("2 min")}),(0,m.jsx)(o.P.Option,{value:"300000",children:c("5 min")})]})]})}},99683:(e,s,t)=>{t.d(s,{l:()=>l});var r=t(68330),a=t(24362),o=t(75859);const n=(0,a.cn)("ydb-cell-with-popover");function l(e){let{children:s,className:t,wrapperClassName:a,...l}=e;return(0,o.jsx)("div",{className:n(null,a),children:(0,o.jsx)(r.J,{className:n("popover",t),...l,children:s})})}},90861:(e,s,t)=>{t.d(s,{m:()=>c});var r=t(27320),a=t(17176),o=t(11050),n=t(81434),l=t(24362),i=t(75859);const d=(0,l.cn)("clipboard-button");function u(e){let{className:s,status:t,title:n,...l}=e;return(0,i.jsx)(r.u,{content:"success"===t?"Copied!":n||"Copy",placement:"bottom-start",children:(0,i.jsx)(a.z,{...l,className:d(null,s),children:(0,i.jsx)(a.z.Icon,{children:(0,i.jsx)(o.K,{status:t,size:16})})})})}function c(e){let{text:s,...t}=e;return(0,i.jsx)(n.h,{text:s,timeout:1e3,children:e=>(0,i.jsx)(u,{...t,status:e})})}},41919:(e,s,t)=>{t.d(s,{Q:()=>d});var r=t(39683),a=t(17176),o=t(88776),n=t(24362),l=t(75859);const i=(0,n.cn)("developer-ui-link-button");function d(e){let{href:s,visible:t=!1,className:n}=e;return(0,l.jsx)(a.z,{size:"s",href:s,className:i({visible:t},n),target:"_blank",children:(0,l.jsx)(o.J,{data:r.Z})})}},1796:(e,s,t)=>{t.d(s,{p:()=>d});t(68963);var r=t(24362),a=t(52317),o=t(92666),n=t(17096),l=t(75859);const i=(0,r.cn)("storage-disk-progress-bar");function d(e){let{diskAllocatedPercent:s=-1,severity:t,compact:r,faded:d,inactive:u,empty:c,content:m,className:p}=e;const[h]=(0,n.yu)(a.yT),v={inverted:h,compact:r,faded:d,empty:c,inactive:u},g=void 0!==t&&(0,o.b2)(t);g&&(v[g.toLocaleLowerCase()]=!0);return(0,l.jsxs)("div",{className:i(v,p),role:"meter","aria-label":"Disk allocated space","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":s,children:[(()=>{if(r)return(0,l.jsx)("div",{className:i("fill-bar",v),style:{width:"100%"}});const e=h?100-s:s;return s>=0?(0,l.jsx)("div",{className:i("fill-bar",v),style:{width:`${e}%`}}):null})(),m||(!r&&s>=0?(0,l.jsx)("div",{className:i("title"),children:`${Math.round(s)}%`}):null)]})}},49201:(e,s,t)=>{t.d(s,{C:()=>i});var r=t(14979),a=t(24362);const o=(0,t(30817).wZ)("ydb-entities-count",{ru:{of:"\u0438\u0437"},en:{of:"of"}});var n=t(75859);const l=(0,a.cn)("ydb-entities-count"),i=e=>{let{total:s,current:t,label:a,loading:i,className:d}=e,u="";return a&&(u+=`${a}: `),i?u+="...":(u+=`${t}`,s&&Number(s)!==Number(t)&&(u+=` ${o("of")} ${s}`)),(0,n.jsx)(r._,{theme:"info",size:"m",className:l(null,d),children:u})}},69214:(e,s,t)=>{t.d(s,{A:()=>c});var r=t(86017),a=t(75850),o=t(24362),n=t(90861),l=t(68036),i=t(98366),d=t(75859);const u=(0,o.cn)("entity-status");function c(e){let{status:s=a.K.Grey,name:t="",label:o,path:c,iconPath:m,size:p="s",mode:h="color",showStatus:v=!0,externalLink:g=!1,withLeftTrim:N=!1,hasClipboardButton:b,clipboardButtonAlwaysVisible:k=!1,className:D,additionalControls:S}=e;const w=()=>v?(0,d.jsx)(i.J,{className:u("icon"),status:s,size:p,mode:h}):null;return(0,d.jsxs)("div",{className:u(null,D),title:t,children:[m?(y=m,(0,d.jsx)(r.r,{target:"_blank",href:y,children:w()})):w(),o&&(0,d.jsx)("span",{title:o,className:u("label",{size:p,state:s.toLowerCase()}),children:o}),(0,d.jsx)("span",{className:u("link",{"with-left-trim":N}),children:c?g?(0,d.jsx)(r.r,{className:u("name"),href:c,children:t}):(0,d.jsx)(l.h,{className:u("name"),to:c,children:t}):t&&(0,d.jsx)("span",{className:u("name"),children:t})}),b&&(0,d.jsx)(n.m,{text:t,size:"s",className:u("clipboard-button",{visible:k})}),S&&(0,d.jsx)("span",{className:u("additional-controls "),children:S})]});var y}},89778:(e,s,t)=>{t.d(s,{k:()=>m});var r=t(10502),a=t(92398),o=t(48169),n=t(51688),l=t(99683),i=t(41919),d=t(69214),u=t(27506),c=t(75859);const m=e=>{let{node:s,getNodeRef:t,database:m}=e;if(!s.Host)return(0,c.jsx)("span",{children:"\u2014"});const p=!(0,n.TA)(s);let h;t?h=t(s)+"internal":s.NodeId&&(h=(0,o.wq)(s.NodeId)+"internal");const v=p?(0,a.a3)(s.NodeId,{tenantName:null!==m&&void 0!==m?m:s.TenantName}):void 0,g=h?(0,c.jsx)(i.Q,{href:h}):null;return(0,c.jsx)(l.l,{disabled:!p,content:(0,c.jsx)(u.bP,{data:s}),placement:["top","bottom"],behavior:r.x.Immediate,children:(0,c.jsx)(d.A,{name:s.Host,status:s.SystemState,path:v,hasClipboardButton:!0,additionalControls:g})})}},40073:(e,s,t)=>{t.d(s,{J:()=>v,b:()=>h});var r=t(68963),a=t(44920),o=t(75850),n=t(24362),l=t(52317),i=t(92666),d=t(55850),u=t(62206),c=t(75859);const m=(0,n.cn)("pdisk-storage-popup"),p=[o.K.Orange,o.K.Red,o.K.Yellow],h=(e,s)=>{var t;const{AvailableSize:r,TotalSize:a,State:o,PDiskId:n,NodeId:u,Path:c,Realtime:m,Type:h,Device:v}=e,g=[{label:"PDisk",value:null!==(t=(0,i.CH)(u,n))&&void 0!==t?t:l.jX},{label:"State",value:o||"not available"},{label:"Type",value:h||"unknown"}];return u&&g.push({label:"Node Id",value:u}),s&&u&&s.get(u)&&g.push({label:"Host",value:s.get(u)}),c&&g.push({label:"Path",value:c}),g.push({label:"Available",value:`${(0,d.Uz)(r)} of ${(0,d.Uz)(a)}`}),m&&p.includes(m)&&g.push({label:"Realtime",value:m}),v&&p.includes(v)&&g.push({label:"Device",value:v}),g},v=e=>{let{data:s,nodes:t,...o}=e;const n=r.useMemo((()=>h(s,t)),[s,t]);return(0,c.jsx)(a.G,{contentClassName:m(),placement:["top","bottom"],hasArrow:!0,offset:[0,12],...o,children:(0,c.jsx)(u._P,{title:"PDisk",info:n,size:"s"})})}},67359:(e,s,t)=>{t.d(s,{y:()=>c});var r=t(56829),a=t(24362),o=t(34301),n=t(55850),l=t(75859);const i=(0,a.cn)("progress-viewer"),d=e=>(0,o.uf)((0,o.W0)(Number(e),2)),u=(e,s)=>[d(e),d(s)];function c(e){let{value:s,capacity:t,formatValues:a=u,percents:o,className:d,size:c="xs",colorizeProgress:m,inverseColorize:p,warningThreshold:h=60,dangerThreshold:v=80}=e;const g=(0,r.F)();let N=Math.round(parseFloat(String(s))/parseFloat(String(t))*100)||0;N=N>100?100:N;let b=s,k=t,D="/";o?(b=N+"%",k="",D=""):a&&([b,k]=a(Number(s),Number(t)));let S=p?"danger":"good";m&&(N>h&&N<=v?S="warning":N>v&&(S=p?"good":"danger"),(0,n.kE)(t)||(N=100));const w={width:N+"%"};return(0,n.kE)(s)?(0,l.jsxs)("div",{className:i({size:c,theme:g,status:S},d),children:[(0,l.jsx)("div",{className:i("line"),style:w}),(0,l.jsx)("span",{className:i("text"),children:(0,n.kE)(t)?`${b} ${D} ${k}`:b})]}):(0,l.jsx)("div",{className:`${i({size:c})} ${d} error`,children:"no data"})}},2098:(e,s,t)=>{t.d(s,{G:()=>d});var r=t(2639),a=t(19812),o=t(24362),n=t(89712),l=t(75859);const i=(0,o.cn)("ydb-resizeable-data-table");function d(e){let{columnsWidthLSKey:s,columns:t,settings:o,wrapperClassName:d,...u}=e;const[c,m]=(0,n.M)(s),p=(0,r.B)(t,c),h={...o,defaultResizeable:!0};return(0,l.jsx)("div",{className:i(null,d),children:(0,l.jsx)(a.ZP,{theme:"yandex-cloud",columns:p,onResize:m,settings:h,...u})})}},30629:(e,s,t)=>{t.d(s,{o:()=>i});var r=t(68963),a=t(77264),o=t(24362),n=t(75859);const l=(0,o.cn)("ydb-search"),i=e=>{let{onChange:s,value:t="",className:o,debounce:i=200,placeholder:d}=e;const[u,c]=r.useState(t),m=r.useRef();r.useEffect((()=>{c((e=>e!==t?t:e))}),[t]);return(0,n.jsx)(a.o,{hasClear:!0,autoFocus:!0,className:l(null,o),placeholder:d,value:u,onUpdate:e=>{c(e),window.clearTimeout(m.current),m.current=window.setTimeout((()=>{null===s||void 0===s||s(e)}),i)}})}},98366:(e,s,t)=>{t.d(s,{J:()=>m});var r=t(67585),a=t(57225),o=t(71586),n=t(88776),l=t(75850),i=t(24362),d=t(75859);const u=(0,i.cn)("ydb-status-icon"),c={[l.K.Blue]:r.Z,[l.K.Yellow]:a.Z,[l.K.Orange]:o.Z,[l.K.Red]:a.Z};function m(e){let{status:s=l.K.Grey,size:t="s",mode:r="color",className:a}=e;const o={state:s.toLowerCase(),size:t};return"icons"===r&&s in c?(0,d.jsx)(n.J,{className:u("status-icon",o,a),data:c[s]}):(0,d.jsx)("div",{className:u("status-color",o,a)})}},22692:(e,s,t)=>{t.d(s,{h:()=>l});var r=t(56711),a=t(24362),o=t(75859);const n=(0,a.cn)("table-skeleton"),l=e=>{let{rows:s=2,className:t}=e;return(0,o.jsxs)("div",{className:n(null,t),children:[(0,o.jsxs)("div",{className:n("row"),children:[(0,o.jsx)(r.O,{className:n("col-1")}),(0,o.jsx)(r.O,{className:n("col-2")}),(0,o.jsx)(r.O,{className:n("col-3")}),(0,o.jsx)(r.O,{className:n("col-4")}),(0,o.jsx)(r.O,{className:n("col-5")})]}),[...new Array(s)].map(((e,s)=>(0,o.jsx)("div",{className:n("row"),children:(0,o.jsx)(r.O,{className:n("col-full")})},`skeleton-row-${s}`)))]})}},47101:(e,s,t)=>{t.d(s,{l:()=>l});var r=t(24362),a=t(22692),o=t(75859);const n=(0,r.cn)("ydb-table-with-controls-layout"),l=e=>{let{children:s,className:t}=e;return(0,o.jsx)("div",{className:n(null,t),children:s})};l.Controls=function(e){let{children:s,className:t}=e;return(0,o.jsx)("div",{className:n("controls-wrapper"),children:(0,o.jsx)("div",{className:n("controls",t),children:s})})},l.Table=function(e){let{children:s,loading:t,className:r}=e;return t?(0,o.jsx)(a.h,{className:n("loader")}):(0,o.jsx)("div",{className:n("table",r),children:s})}},43989:(e,s,t)=>{t.d(s,{X:()=>n});var r=t(79734),a=t(51688),o=t(75859);const n=e=>{let{value:s,onChange:t,className:n}=e;return(0,o.jsxs)(r.E,{value:s,onUpdate:t,className:n,children:[(0,o.jsx)(r.E.Option,{value:a.Uu.All,children:a.qU[a.Uu.All]}),(0,o.jsx)(r.E.Option,{value:a.Uu.SmallUptime,children:a.qU[a.Uu.SmallUptime]})]})}},80816:(e,s,t)=>{t.d(s,{a:()=>l});var r=t(14979),a=t(24362),o=t(75859);const n=(0,a.cn)("ydb-usage-label");function l(e){let{value:s,overloadThreshold:t=90,theme:a,...l}=e;return(0,o.jsxs)(r._,{theme:a,className:n({overload:Number(s)>=t}),...l,children:[s||0,"%"]})}},79255:(e,s,t)=>{t.d(s,{c:()=>j});var r=t(34301),a=t(92666),o=t(68963),n=t(24362),l=t(75859);const i=(0,n.cn)("stack"),d=e=>{let{children:s,className:t}=e;return(0,l.jsx)("div",{className:i(null,t),children:o.Children.map(s,((e,s)=>o.isValidElement(e)?(0,l.jsx)("div",{className:i("layer"),style:{"--ydb-stack-level":s},children:e}):null))})};var u=t(92398),c=t(54665),m=t(17880),p=t(5922),h=t(1796),v=t(74170),g=t(44920),N=t(14979),b=t(75850),k=t(52317),D=t(55850),S=t(62206),w=t(40073);const y=(0,n.cn)("vdisk-storage-popup"),f=e=>{let{data:s,nodes:t,...n}=e;const i=(0,a.Iz)(s),d=o.useMemo((()=>i?(e=>{var s,t,a,o;const{VDiskId:n,VDiskState:l,SatisfactionRank:i,DiskSpace:d,FrontQueues:u,Replicated:c,UnsyncedVDisks:m,AllocatedSize:p,ReadThroughput:h,WriteThroughput:v,StoragePoolName:g}=e,N=[{label:"VDisk",value:(0,r.a2)(n)},{label:"State",value:null!==l&&void 0!==l?l:"not available"}];var k,S;return g&&N.push({label:"StoragePool",value:g}),i&&(null===(s=i.FreshRank)||void 0===s?void 0:s.Flag)!==b.K.Green&&N.push({label:"Fresh",value:null===(k=i.FreshRank)||void 0===k?void 0:k.Flag}),i&&(null===(t=i.LevelRank)||void 0===t?void 0:t.Flag)!==b.K.Green&&N.push({label:"Level",value:null===(S=i.LevelRank)||void 0===S?void 0:S.Flag}),i&&null!==(a=i.FreshRank)&&void 0!==a&&a.RankPercent&&N.push({label:"Fresh",value:i.FreshRank.RankPercent}),i&&null!==(o=i.LevelRank)&&void 0!==o&&o.RankPercent&&N.push({label:"Level",value:i.LevelRank.RankPercent}),d&&d!==b.K.Green&&N.push({label:"Space",value:d}),u&&u!==b.K.Green&&N.push({label:"FrontQueues",value:u}),c||N.push({label:"Replicated",value:"NO"}),m&&N.push({label:"UnsyncVDisks",value:m}),Number(p)&&N.push({label:"Allocated",value:(0,D.Uz)(p)}),Number(h)&&N.push({label:"Read",value:(0,D.Qt)(h)}),Number(v)&&N.push({label:"Write",value:(0,D.Qt)(v)}),N})(s):(e=>{const{NodeId:s,PDiskId:t,VSlotId:r,StoragePoolName:a}=e,o=[{label:"State",value:"not available"}];return a&&o.push({label:"StoragePool",value:a}),o.push({label:"NodeId",value:null!==s&&void 0!==s?s:k.jX},{label:"PDiskId",value:null!==t&&void 0!==t?t:k.jX},{label:"VSlotId",value:null!==r&&void 0!==r?r:k.jX}),o})(s)),[s,i]),u=o.useMemo((()=>i&&s.PDisk&&(0,w.b)(s.PDisk,t)),[s,t,i]);return(0,l.jsxs)(g.G,{contentClassName:y(),placement:["top","bottom"],hasArrow:!0,offset:[0,12],...n,children:[s.DonorMode&&(0,l.jsx)(N._,{className:y("donor-label"),children:"Donor"}),(0,l.jsx)(S._P,{title:"VDisk",info:d,size:"s"}),u&&(0,l.jsx)(S._P,{title:"PDisk",info:u,size:"s"})]})},x=(0,n.cn)("ydb-vdisk-component"),I=e=>{let{data:s={},nodes:t,compact:n,inactive:i,showPopup:d,onShowPopup:g,onHidePopup:N,progressBarClassName:b}=e;const k=(0,a.Iz)(s),D=(0,m.X_)(),[S,w]=o.useState(!1),y=o.useRef(null);let I;return D&&(0,p.D)(s.VDiskSlotId)&&(0,p.D)(s.PDiskId)&&(0,p.D)(s.NodeId)?I=(0,c.By)(s.VDiskSlotId,s.PDiskId,s.NodeId):(0,p.D)(s.NodeId)&&k&&(I=(0,c.ax)(c.ZP.node,{id:s.NodeId,activeTab:u.pV},{pdiskId:s.PDiskId,vdiskId:(0,r.a2)(s.VDiskId)})),(0,l.jsxs)(o.Fragment,{children:[(0,l.jsx)("div",{className:x(),ref:y,onMouseEnter:()=>{w(!0),null===g||void 0===g||g()},onMouseLeave:()=>{w(!1),null===N||void 0===N||N()},children:(0,l.jsx)(v.h,{to:I,className:x("content"),children:(0,l.jsx)(h.p,{diskAllocatedPercent:s.AllocatedPercent,severity:s.Severity,compact:n,inactive:i,className:b})})}),(0,l.jsx)(f,{data:s,nodes:t,anchorRef:y,open:S||d})]})};function j(e){let{data:s,className:t,stackClassName:o,...n}=e;const i=null===s||void 0===s?void 0:s.Donors,u=i&&i.length>0?(0,l.jsxs)(d,{className:o,children:[(0,l.jsx)(I,{data:s,...n}),i.map((e=>{const s=(0,a.Iz)(e);return(0,l.jsx)(I,{data:e,...n},(0,r.a2)(s?e.VDiskId:e))}))]}):(0,l.jsx)(I,{data:s,...n});return(0,l.jsx)("div",{className:t,children:u})}},54997:(e,s,t)=>{t.d(s,{P3:()=>d,xv:()=>i,Pr:()=>c,t5:()=>n,pM:()=>l,nn:()=>u});var r=t(30817);const a=JSON.parse('{"node-id":"Node Id","host":"Host","dc":"DC","rack":"Rack","version":"Version","uptime":"Uptime","memory":"Memory","cpu":"CPU","tablets":"Tablets","load-average":"Load Average","load":"Load","process":"Process","caches":"Caches","sessions":"Sessions"}'),o=(0,r.wZ)("ydb-nodes-columns",{en:a}),n="nodesTableColumnsWidth",l="nodesTableSelectedColumns",i={NodeId:"NodeId",Host:"Host",DC:"DC",Rack:"Rack",Version:"Version",Uptime:"Uptime",Memory:"Memory",CPU:"CPU",LoadAverage:"LoadAverage",Tablets:"Tablets",TopNodesLoadAverage:"TopNodesLoadAverage",TopNodesMemory:"TopNodesMemory",SharedCacheUsage:"SharedCacheUsage",TotalSessions:"TotalSessions"},d=["NodeId","Host","DC","Rack","Version","Uptime","Memory","CPU","LoadAverage","Tablets"],u=["NodeId"],c={get NodeId(){return o("node-id")},get Host(){return o("host")},get DC(){return o("dc")},get Rack(){return o("rack")},get Version(){return o("version")},get Uptime(){return o("uptime")},get Memory(){return o("memory")},get CPU(){return o("cpu")},get LoadAverage(){return o("load-average")},get Tablets(){return o("tablets")},get TopNodesLoadAverage(){return o("load")},get TopNodesMemory(){return o("process")},get SharedCacheUsage(){return o("caches")},get TotalSessions(){return o("sessions")}}},59625:(e,s,t)=>{t.d(s,{y:()=>c});var r=t(17176),a=t(79023),o=t(56350),n=t(30817);const l=JSON.parse('{"default_message":"Everything is fine!","default_button_label":"Show All"}'),i=JSON.parse('{"default_message":"\u0412\u0441\u0451 \u0432 \u043f\u043e\u0440\u044f\u0434\u043a\u0435!","default_button_label":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0432\u0441\u0435"}'),d=(0,n.wZ)("ydb-storage-empty-filter",{ru:i,en:l});var u=t(75859);const c=e=>{let{title:s,message:t=d("default_message"),showAll:n=d("default_button_label"),onShowAll:l}=e;return(0,u.jsx)(a.u,{image:(0,u.jsx)(o.Q,{name:"thumbsUp"}),position:"left",title:s,description:t,actions:l&&[(0,u.jsx)(r.z,{onClick:l,children:n},"show-all")]})}},17931:(e,s,t)=>{t.d(s,{l:()=>g});var r=t(68963),a=t(1796),o=t(74170),n=t(40073),l=t(79255),i=t(54665),d=t(17880),u=t(5922),c=t(24362),m=t(34301),p=t(92398),h=t(75859);const v=(0,c.cn)("pdisk-storage"),g=e=>{let{data:s={},vDisks:t,inactiveVdisks:c,showPopup:g,onShowPopup:N,onHidePopup:b,className:k,progressBarClassName:D}=e;const[S,w]=r.useState(!1),y=(0,d.X_)(),f=r.useRef(null),{NodeId:x,PDiskId:I}=s,j=(0,u.D)(x)&&(0,u.D)(I);let P;return j&&(P=(0,i.ax)(i.ZP.node,{id:x,activeTab:p.pV},{pdiskId:I})),j&&y&&(P=(0,i.ds)(I,x)),(0,h.jsxs)(r.Fragment,{children:[(0,h.jsxs)("div",{className:v(null,k),ref:f,children:[null!==t&&void 0!==t&&t.length?(0,h.jsx)("div",{className:v("vdisks"),children:t.map((e=>(0,h.jsx)("div",{className:v("vdisks-item"),style:{flexGrow:Number(e.AllocatedSize)||1},children:(0,h.jsx)(l.c,{data:e,inactive:null===c||void 0===c?void 0:c.includes(e),stackClassName:v("donors-stack"),compact:!0})},(0,m.a2)(e.VDiskId))))}):null,(0,h.jsxs)(o.h,{to:P,className:v("content"),onMouseEnter:()=>{w(!0),null===N||void 0===N||N()},onMouseLeave:()=>{w(!1),null===b||void 0===b||b()},children:[(0,h.jsx)(a.p,{diskAllocatedPercent:s.AllocatedPercent,severity:s.Severity,className:D}),(0,h.jsx)("div",{className:v("media-type"),children:s.Type})]})]}),(0,h.jsx)(n.J,{data:s,anchorRef:f,open:S||g})]})}},45578:(e,s,t)=>{t.d(s,{K:()=>z});var r=t(68963),a=t(52846),o=t(86969),n=t(1440),l=t(26688),i=t(47101),d=t(17880),u=t(77915),c=t(95829),m=t(15106),p=t(14223);const h=e=>e.trim().toLowerCase(),v=(e,s)=>{const t=h(s);return t?e.filter((e=>{var s,r;return(null===(s=e.NodeId)||void 0===s?void 0:s.toString().includes(t))||(null===(r=e.Host)||void 0===r?void 0:r.toLowerCase().includes(t))})):e},g=(e,s)=>{const t=h(s);return t?e.filter((e=>{var s,r;return(null===(s=e.PoolName)||void 0===s?void 0:s.toLowerCase().includes(t))||(null===(r=e.GroupId)||void 0===r?void 0:r.toString().includes(t))})):e},N=(e,s)=>Array.isArray(s)&&0!==s.length?e.filter((e=>{const t=e.Usage;return s.some((e=>Number(e)<=t&&t<Number(e)+5))})):e;var b=t(33058),k=t(30553),D=t(5922),S=t(52317),w=t(17096),y=t(51688),f=t(41616),x=t(93856),I=t(2098),j=t(64782),P=t(51323),C=t(43817),G=t(75859);function R(e){let{data:s,columns:t,tableSettings:r,visibleEntities:a,onShowAll:o,sort:n,handleSort:l}=e;return s.length||a===c.G.all?(0,G.jsx)(I.G,{columnsWidthLSKey:P.Ty,data:s,columns:t,settings:r,emptyDataMessage:(0,C.Z)("empty.default"),sortOrder:n,onSort:l},a):(0,G.jsx)(j.a,{onShowAll:o,visibleEntities:a})}var E=t(46393),U=t(64682),T=t(55434),V=t(73790),L=t(20108);function O(e){let{data:s,columns:t,tableSettings:r,visibleEntities:a,nodesUptimeFilter:o,sort:n,onShowAll:l,handleSort:i}=e;return s.length||a===c.G.all&&o===y.Uu.All?(0,G.jsx)(I.G,{columnsWidthLSKey:T.Wj,data:s,columns:t,settings:{...r,dynamicRenderType:"variable"},emptyDataMessage:(0,V.Z)("empty.default"),rowClassName:L.q,sortOrder:n,onSort:i},a):(0,G.jsx)(U.r,{visibleEntities:a,nodesUptimeFilter:o,onShowAll:l})}var M=t(24733),A=t(77643),F=t(10703);const _=(0,a.withDefault)({encode:a.ArrayParam.encode,decode:e=>null===e||void 0===e?e:Array.isArray(e)?e.filter(Boolean):e?[e]:[]},[]),z=e=>{var s;let{database:t,nodeId:h,groupId:I,pDiskId:j}=e;const{balancer:P}=(0,u.kW)(),{additionalNodesProps:C}=(0,f.f)({balancer:P}),U=(0,d.rU)(),T=(0,d.tS)(),[V]=(0,w.Rj)(),[L,z]=(0,a.useQueryParams)({type:a.StringParam,visible:a.StringParam,search:a.StringParam,uptimeFilter:a.StringParam,usageFilter:_}),Z=k.Y.parse(L.type),H="groups"===Z,W="nodes"===Z,K=k.z.parse(L.visible),J=null!==(s=L.search)&&void 0!==s?s:"",Q=y.U8.parse(L.uptimeFilter),Y=L.usageFilter,[$,B]=r.useState({sortOrder:void 0,sortValue:void 0}),q=$.sortValue?$:F.TP,[X,ee]=r.useState({sortOrder:void 0,sortValue:void 0}),se=X.sortOrder?X:(0,F._r)(K),{columnsToShow:te,columnsToSelect:re,setColumns:ae}=(0,M.i)({additionalNodesProps:C,visibleEntities:K,database:t,groupId:null===I||void 0===I?void 0:I.toString()}),{columnsToShow:oe,columnsToSelect:ne,setColumns:le}=(0,E.k)(K),ie=b.y.useGetStorageNodesInfoQuery({database:t,with:K,node_id:h,group_id:(0,D.D)(h)?void 0:I},{skip:!W,pollingInterval:V}),de=b.y.useGetStorageGroupsInfoQuery({database:t,with:K,nodeId:h,groupId:I,pDiskId:j,shouldUseGroupsHandler:T},{skip:!H||!U,pollingInterval:V}),{currentData:ue,isFetching:ce,error:me}=W?ie:de,{currentData:{nodes:pe=[]}={}}=ie,{currentData:{groups:he=[]}={}}=de,{nodes:ve,groups:ge,...Ne}=null!==ue&&void 0!==ue?ue:{found:0,total:0},be=void 0===ue&&ce,ke=r.useMemo((()=>function(e,s,t){let r=e||[];return r=v(r,s),r=(0,p.f)(r,t),r}(pe,J,Q)),[J,pe,Q]),De=r.useMemo((()=>function(e,s,t){let r=e||[];return r=g(r,s),r=N(r,t),r}(he,J,Y)),[J,he,Y]),Se=r.useMemo((()=>function(e){const s={};return null===e||void 0===e||e.forEach((e=>{const t=(0,m.I)(e,5);Object.prototype.hasOwnProperty.call(s,t)||(s[t]=0),s[t]+=1})),Object.entries(s).map((e=>{let[s,t]=e;return{threshold:Number(s),count:t}})).sort(((e,s)=>s.threshold-e.threshold))}(he)),[he]),[we,ye]=(0,w.sC)(q,(e=>B(e))),[fe,xe]=(0,w.sC)(se,(e=>ee(e))),Ie=e=>{z({usageFilter:e.length?e:void 0},"replaceIn")},je=e=>{z({search:e||void 0},"replaceIn")},Pe=e=>{z({visible:e},"replaceIn")},Ce=e=>{z({type:e},"replaceIn")},Ge=e=>{z({uptimeFilter:e},"replaceIn")},Re=()=>{Pe(c.G.all),Ge(y.Uu.All)};return(0,n.u)(me)?(0,G.jsx)(o.J,{position:"left"}):(0,G.jsxs)(i.l,{children:[(0,G.jsx)(i.l.Controls,{children:(()=>{const e=H?De.length:ke.length,s=H?ne:re,t=H?le:ae;return(0,G.jsx)(x.m,{searchValue:J,handleSearchValueChange:je,withTypeSelector:!0,storageType:Z,handleStorageTypeChange:Ce,visibleEntities:K,handleVisibleEntitiesChange:Pe,nodesUptimeFilter:Q,handleNodesUptimeFilterChange:Ge,groupsUsageFilter:Y,groupsUsageFilterOptions:Se,handleGroupsUsageFilterChange:Ie,entitiesCountCurrent:e,entitiesCountTotal:Ne.total,entitiesLoading:be,columnsToSelect:s,handleSelectedColumnsUpdate:t})})()}),me?(0,G.jsx)(l.V,{error:me}):null,(0,G.jsx)(i.l.Table,{loading:be||!U,className:(0,A.b)("table"),children:ue?(0,G.jsxs)(r.Fragment,{children:[H?(0,G.jsx)(R,{visibleEntities:K,data:De,tableSettings:S.LE,onShowAll:()=>Pe(c.G.all),sort:fe,handleSort:xe,columns:oe},"groups"):null,W?(0,G.jsx)(O,{visibleEntities:K,nodesUptimeFilter:Q,data:ke,tableSettings:S.LE,onShowAll:Re,sort:we,handleSort:ye,columns:te},"nodes"):null]}):null})]})}},93856:(e,s,t)=>{t.d(s,{m:()=>C});var r=t(68963),a=t(48857),o=t(49201),n=t(30629),l=t(43989),i=t(95829),d=t(79734),u=t(75859);const c={[i.d.groups]:"Groups",[i.d.nodes]:"Nodes"},m=e=>{let{value:s,onChange:t}=e;return(0,u.jsxs)(d.E,{value:s,onUpdate:t,qa:"storage-type-filter",children:[(0,u.jsx)(d.E.Option,{value:i.d.groups,children:c[i.d.groups]}),(0,u.jsx)(d.E.Option,{value:i.d.nodes,children:c[i.d.nodes]})]})},p={[i.G.all]:"All",[i.G.missing]:"Degraded",[i.G.space]:"Out of Space"},h=e=>{let{value:s,onChange:t}=e;return(0,u.jsxs)(d.E,{value:s,onUpdate:t,qa:"storage-visible-entities-filter",children:[(0,u.jsx)(d.E.Option,{value:i.G.missing,children:p[i.G.missing]}),(0,u.jsx)(d.E.Option,{value:i.G.space,children:p[i.G.space]}),(0,u.jsx)(d.E.Option,{value:i.G.all,children:p[i.G.all]})]})};var v=t(2418),g=t(69214),N=t(24362),b=t(10703),k=t(30817);const D=JSON.parse('{"label":"Usage:","default_value":"Any","groups_count":["{{count}} group","{{count}} groups","{{count}} groups","No groups"]}'),S=JSON.parse('{"label":"\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435:","default_value":"\u041b\u044e\u0431\u043e\u0435","groups_count":["{{count}} \u0433\u0440\u0443\u043f\u043f\u0430","{{count}} \u0433\u0440\u0443\u043f\u043f\u044b","{{count}} \u0433\u0440\u0443\u043f\u043f","\u041d\u0435\u0442 \u0433\u0440\u0443\u043f\u043f"]}'),w=(0,k.wZ)("ydb-usage-filter",{ru:S,en:D}),y=(0,N.cn)("usage-filter"),f=e=>{const{className:s,value:t=[],groups:a=[],onChange:o,debounce:n=200}=e,[l,i]=r.useState(t),d=r.useRef();r.useEffect((()=>{i((e=>e.join(",")!==t.join(",")?t:e))}),[t]);const c=r.useMemo((()=>a.map((e=>{let{threshold:s,count:t}=e;return{value:String(s),text:`${s}%`,data:{count:t}}}))),[a]),m=Math.max(...a.map((e=>{let{count:s}=e;return s})));return(0,u.jsx)(v.P,{className:y(null,s),label:w("label"),value:l,placeholder:w("default_value"),options:c,multiple:!0,onUpdate:e=>{i(e),window.clearTimeout(d.current),d.current=window.setTimeout((()=>{null===o||void 0===o||o(e)}),n)},renderOption:e=>{let{value:s,data:t,text:r}=e;return(0,u.jsxs)("div",{className:y("option"),children:[(0,u.jsx)(g.A,{className:y("option-title"),status:(0,b.CZ)(Number(s)),name:r,size:"xs"}),(0,u.jsxs)("div",{className:y("option-meta"),children:[w("groups_count",{count:t.count}),(0,u.jsx)("div",{className:y("option-bar"),style:{width:t.count/m*100+"%"}})]})]})},getOptionHeight:()=>50,popupWidth:280,disabled:0===a.length})},x=JSON.parse('{"groups":"Groups","nodes":"Nodes","controls_groups-search-placeholder":"Group ID, Pool name","controls_nodes-search-placeholder":"Node ID, FQDN"}'),I=JSON.parse('{"groups":"\u0413\u0440\u0443\u043f\u043f\u044b","nodes":"\u041d\u043e\u0434\u044b","controls_groups-search-placeholder":"ID \u0433\u0440\u0443\u043f\u043f\u044b, \u0438\u043c\u044f \u043f\u0443\u043b\u0430","controls_nodes-search-placeholder":"ID \u0443\u0437\u043b\u0430, FQDN"}'),j=(0,k.wZ)("ydb-storage",{ru:I,en:x});var P=t(77643);const C=e=>{let{searchValue:s,handleSearchValueChange:t,withTypeSelector:d,storageType:c,handleStorageTypeChange:p,visibleEntities:v,handleVisibleEntitiesChange:g,nodesUptimeFilter:N,handleNodesUptimeFilterChange:b,withGroupsUsageFilter:k,groupsUsageFilter:D,groupsUsageFilterOptions:S,handleGroupsUsageFilterChange:w,entitiesCountCurrent:y,entitiesCountTotal:x,entitiesLoading:I,columnsToSelect:C,handleSelectedColumnsUpdate:G}=e;const R=c===i.d.nodes,E=c===i.d.groups,U=j(R?"nodes":"groups");return(0,u.jsxs)(r.Fragment,{children:[(0,u.jsx)(n.o,{value:s,onChange:t,placeholder:j(R?"controls_nodes-search-placeholder":"controls_groups-search-placeholder"),className:(0,P.b)("search")}),d&&(0,u.jsx)(m,{value:c,onChange:p}),(0,u.jsx)(h,{value:v,onChange:g}),R&&(0,u.jsx)(l.X,{value:N,onChange:b}),E&&k&&(0,u.jsx)(f,{value:D,onChange:w,groups:S}),(0,u.jsx)(o.C,{label:U,loading:I,total:x,current:y}),(0,u.jsx)(a.N,{popupWidth:200,items:C,showStatus:!0,onUpdate:G,sortable:!1})]})}},64782:(e,s,t)=>{t.d(s,{a:()=>l});var r=t(95829),a=t(59625),o=t(43817),n=t(75859);const l=e=>{let s,{visibleEntities:t,onShowAll:l}=e;return t===r.G.space&&(s=(0,o.Z)("empty.out_of_space")),t===r.G.missing&&(s=(0,o.Z)("empty.degraded")),s?(0,n.jsx)(a.y,{title:s,showAll:(0,o.Z)("show_all"),onShowAll:l}):null}},6130:(e,s,t)=>{t.d(s,{V:()=>H,m:()=>Z});var r=t(68963),a=t(71549),o=t(19812),n=t(10502),l=t(14979),i=t(68330),d=t(88776),u=t(99683),c=t(69214),m=t(74170),p=t(80816),h=t(79255),v=t(54665),g=t(24362),N=t(34301),b=t(15106),k=t(55850),D=t(92666),S=t(17931),w=t(75859);const y=(0,g.cn)("ydb-storage-disks");function f(e){let{vDisks:s=[],nodes:t}=e;const[a,o]=r.useState();return s.length?(0,w.jsxs)("div",{className:y(null),children:[(0,w.jsx)("div",{className:y("vdisks-wrapper"),children:null===s||void 0===s?void 0:s.map((e=>(0,w.jsx)(x,{vDisk:e,nodes:t,highlightedVDisk:a,setHighlightedVDisk:o},(0,N.a2)(e.VDiskId))))}),(0,w.jsx)("div",{className:y("pdisks-wrapper"),children:null===s||void 0===s?void 0:s.map((e=>{var s;return(0,w.jsx)(I,{vDisk:e,nodes:t,highlightedVDisk:a,setHighlightedVDisk:o},(0,D.CH)(e.NodeId,null===e||void 0===e||null===(s=e.PDisk)||void 0===s?void 0:s.PDiskId))}))})]}):null}function x(e){let{nodes:s,vDisk:t,highlightedVDisk:r,setHighlightedVDisk:a}=e;const o={...t,PDisk:void 0},n=(0,N.a2)(t.VDiskId);return(0,w.jsx)("div",{style:{flexGrow:Number(t.AllocatedSize)||1},className:y("vdisk-item"),children:(0,w.jsx)(h.c,{data:o,nodes:s,compact:!0,showPopup:r===n,onShowPopup:()=>a(n),onHidePopup:()=>a(void 0),progressBarClassName:y("vdisk-progress-bar")})})}function I(e){let{vDisk:s,highlightedVDisk:t,setHighlightedVDisk:r}=e;const a=(0,N.a2)(s.VDiskId);return s.PDisk?(0,w.jsx)(S.l,{className:y("pdisk-item"),progressBarClassName:y("pdisk-progress-bar"),data:s.PDisk,showPopup:t===a,onShowPopup:()=>r(a),onHidePopup:()=>r(void 0)}):null}var j=t(10703),P=t(43817),C=t(51323);const G=(0,g.cn)("ydb-storage-groups-columns"),R={name:C.tn.PoolName,header:C.G0.PoolName,width:250,render:e=>{var s;let{row:t}=e;const r=null===(s=t.PoolName)||void 0===s?void 0:s.split("/");return r&&(0,w.jsx)(u.l,{wrapperClassName:G("pool-name-wrapper"),content:t.PoolName,placement:["right"],behavior:n.x.Immediate,children:r[r.length-1]})},align:o.ZP.LEFT},E={name:C.tn.MediaType,header:C.G0.MediaType,width:100,resizeMinWidth:100,align:o.ZP.LEFT,render:e=>{let{row:s}=e;return(0,w.jsxs)(r.Fragment,{children:[(0,w.jsx)(l._,{children:s.MediaType||"\u2014"}),"\xa0",s.Encryption&&(0,w.jsx)(i.J,{content:(0,P.Z)("encrypted"),placement:"right",behavior:n.x.Immediate,children:(0,w.jsx)(l._,{children:(0,w.jsx)(d.J,{data:a.Z,size:18})})})]})},sortable:!1},U={name:C.tn.Erasure,header:C.G0.Erasure,width:100,sortAccessor:e=>e.ErasureSpecies,render:e=>{let{row:s}=e;return s.ErasureSpecies?s.ErasureSpecies:"-"},align:o.ZP.LEFT},T={name:C.tn.Degraded,header:C.G0.Degraded,width:110,resizeMinWidth:110,render:e=>{let{row:s}=e;return s.Degraded?(0,w.jsxs)(l._,{theme:(0,j._O)(s),children:["Degraded: ",s.Degraded]}):"-"},align:o.ZP.LEFT,defaultOrder:o.ZP.DESCENDING},V={name:C.tn.Usage,header:C.G0.Usage,width:75,resizeMinWidth:75,render:e=>{let{row:s}=e;return s.Limit?(0,w.jsx)(p.a,{value:s.Usage,theme:(0,j.YC)(s.Usage)}):"-"},sortAccessor:e=>e.Limit?e.Usage:null,align:o.ZP.LEFT},L={name:C.tn.GroupId,header:C.G0.GroupId,width:130,render:e=>{let{row:s}=e;return s.GroupId?(0,w.jsx)(m.h,{className:G("group-id"),to:(0,v.Uu)(s.GroupId),children:s.GroupId}):"-"},sortAccessor:e=>Number(e.GroupId),align:o.ZP.RIGHT},O={name:C.tn.Used,header:C.G0.Used,width:100,render:e=>{let{row:s}=e;return(0,k.Uz)(s.Used,!0)},align:o.ZP.RIGHT},M={name:C.tn.Limit,header:C.G0.Limit,width:100,render:e=>{let{row:s}=e;return(0,k.Uz)(s.Limit)},align:o.ZP.RIGHT},A={name:C.tn.DiskSpace,header:C.G0.DiskSpace,width:110,render:e=>{let{row:s}=e;return(0,w.jsx)(c.A,{status:s.DiskSpace})},align:o.ZP.CENTER},F={name:C.tn.Read,header:C.G0.Read,width:100,render:e=>{let{row:s}=e;return s.Read?(0,k.Qt)(s.Read):"-"},align:o.ZP.RIGHT},_={name:C.tn.Write,header:C.G0.Write,width:100,render:e=>{let{row:s}=e;return s.Write?(0,k.Qt)(s.Write):"-"},align:o.ZP.RIGHT},z=e=>({name:C.tn.VDisksPDisks,header:C.G0.VDisksPDisks,className:G("disks-column"),render:s=>{let{row:t}=s;return(0,w.jsx)(f,{vDisks:t.VDisks,nodes:e})},align:o.ZP.CENTER,width:900,resizeable:!1,sortable:!1}),Z=()=>[L,E,U,V,O,M].map((e=>({...e,sortable:!1}))),H=e=>{var s;return[L,R,E,U,T,V,O,M,A,F,_,(s=null===e||void 0===e?void 0:e.nodes,{name:C.tn.VDisks,header:C.G0.VDisks,className:G("vdisks-column"),render:e=>{var t;let{row:r}=e;return(0,w.jsx)("div",{className:G("vdisks-wrapper"),children:null===(t=r.VDisks)||void 0===t?void 0:t.map((e=>(0,w.jsx)(h.c,{data:e,nodes:s,className:G("vdisks-item")},(0,N.a2)(e.VDiskId))))})},align:o.ZP.CENTER,width:900,resizeable:!1,sortable:!1}),z(null===e||void 0===e?void 0:e.nodes)].map((e=>({...e,sortable:(0,b.P)(e.name)})))}},51323:(e,s,t)=>{t.d(s,{nu:()=>d,Rt:()=>u,tn:()=>i,G0:()=>c,Ty:()=>n,j0:()=>l});var r=t(30817);const a=JSON.parse('{"pool-name":"Pool Name","type":"Type","erasure":"Erasure","degraded":"Degraded","usage":"Usage","group-id":"Group ID","used":"Used","limit":"Limit","space":"Space","read":"Read","write":"Write","vdisks":"VDisks","vdisks-pdisks":"VDisks with PDisks"}'),o=(0,r.wZ)("ydb-storage-groups-columns",{en:a}),n="storageGroupsColumnsWidth",l="storageGroupsSelectedColumns",i={GroupId:"GroupId",PoolName:"PoolName",MediaType:"MediaType",Erasure:"Erasure",Used:"Used",Limit:"Limit",Usage:"Usage",DiskSpace:"DiskSpace",Read:"Read",Write:"Write",VDisks:"VDisks",VDisksPDisks:"VDisksPDisks",Degraded:"Degraded"},d=["GroupId","PoolName","MediaType","Erasure","Used","Limit","Usage","Read","Write","VDisks"],u=["GroupId"],c={get PoolName(){return o("pool-name")},get MediaType(){return o("type")},get Erasure(){return o("erasure")},get GroupId(){return o("group-id")},get Used(){return o("used")},get Limit(){return o("limit")},get Usage(){return o("usage")},get DiskSpace(){return o("space")},get Read(){return o("read")},get Write(){return o("write")},get VDisks(){return o("vdisks")},get VDisksPDisks(){return o("vdisks-pdisks")},get Degraded(){return o("degraded")}}},46393:(e,s,t)=>{t.d(s,{k:()=>u});var r=t(68963),a=t(99337),o=t(95829),n=t(17096),l=t(57344),i=t(6130),d=t(51323);function u(e){const s=function(){const e=(0,n.ix)(a.d);return r.useMemo((()=>(0,i.V)({nodes:e})),[e])}(),t=r.useMemo((()=>e===o.G.missing?[...d.Rt,d.tn.Degraded]:e===o.G.space?[...d.Rt,d.tn.DiskSpace]:d.Rt),[e]);return(0,l.N)(s,d.j0,d.G0,d.nu,t)}},43817:(e,s,t)=>{t.d(s,{Z:()=>n});var r=t(30817);const a=JSON.parse('{"empty.default":"No such groups","empty.out_of_space":"No groups with out of space errors","empty.degraded":"No degraded groups","show_all":"Show all groups","encrypted":"Encrypted group"}'),o=JSON.parse('{"empty.default":"\u041d\u0435\u0442 \u0433\u0440\u0443\u043f\u043f","empty.out_of_space":"\u041d\u0435\u0442 \u0433\u0440\u0443\u043f\u043f, \u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043a\u043e\u043d\u0447\u0430\u0435\u0442\u0441\u044f \u043c\u0435\u0441\u0442\u043e","empty.degraded":"\u041d\u0435\u0442 \u0434\u0435\u0433\u0440\u0430\u0434\u0438\u0440\u043e\u0432\u0430\u0432\u0448\u0438\u0445 \u0433\u0440\u0443\u043f\u043f","show_all":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0432\u0441\u0435 \u0433\u0440\u0443\u043f\u043f\u044b","encrypted":"\u0417\u0430\u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u043d\u0430\u044f \u0433\u0440\u0443\u043f\u043f\u0430"}'),n=(0,r.wZ)("ydb-storage-groups",{ru:o,en:a})},64682:(e,s,t)=>{t.d(s,{r:()=>i});var r=t(95829),a=t(51688),o=t(59625),n=t(73790),l=t(75859);const i=e=>{let s,{visibleEntities:t,nodesUptimeFilter:i,onShowAll:d}=e;return t===r.G.space&&(s=(0,n.Z)("empty.out_of_space")),t===r.G.missing&&(s=(0,n.Z)("empty.degraded")),i===a.Uu.SmallUptime&&(s=(0,n.Z)("empty.small_uptime")),t!==r.G.all&&i!==a.Uu.All&&(s=(0,n.Z)("empty.several_filters")),s?(0,l.jsx)(o.y,{title:s,showAll:(0,n.Z)("show_all"),onShowAll:d}):null}},55434:(e,s,t)=>{t.d(s,{wn:()=>d,ae:()=>u,rC:()=>i,NU:()=>c,Wj:()=>n,rm:()=>l});var r=t(30817);const a=JSON.parse('{"nodes-id":"Node ID","host":"Host","dc":"DC","rack":"Rack","uptime":"Uptime","missing":"Missing","pdisks":"PDisks"}'),o=(0,r.wZ)("ydb-storage-nodes-columns",{en:a}),n="storageNodesColumnsWidth",l="storageNodesSelectedColumns",i={NodeId:"NodeId",Host:"Host",DC:"DC",Rack:"Rack",Uptime:"Uptime",PDisks:"PDisks",Missing:"Missing"},d=["NodeId","Host","DC","Rack","Uptime","PDisks"],u=["NodeId"],c={get NodeId(){return o("nodes-id")},get Host(){return o("host")},get DC(){return o("dc")},get Rack(){return o("rack")},get Uptime(){return o("uptime")},get PDisks(){return o("pdisks")},get Missing(){return o("missing")}}},24733:(e,s,t)=>{t.d(s,{i:()=>g});var r=t(68963),a=t(95829),o=t(57344),n=t(19812),l=t(89778),i=t(24362),d=t(52317),u=t(51688),c=t(17931),m=t(55434),p=t(75859);const h=(0,i.cn)("ydb-storage-nodes-columns"),v=e=>{let{additionalNodesProps:s,database:t,groupId:r}=e;const a=((e,s,t)=>{const r=null===e||void 0===e?void 0:e.getNodeRef;return[{name:m.rC.NodeId,header:m.NU.NodeId,width:100,align:n.ZP.RIGHT,render:e=>{let{row:s}=e;return s.NodeId}},{name:m.rC.Host,header:m.NU.Host,width:350,render:e=>{let{row:t}=e;return(0,p.jsx)(l.k,{node:t,getNodeRef:r,database:s})},align:n.ZP.LEFT},{name:m.rC.DC,header:m.NU.DC,width:100,render:e=>{let{row:s}=e;return s.DC||d.jX},align:n.ZP.LEFT},{name:m.rC.Rack,header:m.NU.Rack,width:100,render:e=>{let{row:s}=e;return s.Rack||"\u2014"},align:n.ZP.LEFT},{name:m.rC.Uptime,header:m.NU.Uptime,width:130,sortAccessor:e=>{let{StartTime:s}=e;return s?-s:0},align:n.ZP.RIGHT,render:e=>{let{row:s}=e;return s.Uptime}},{name:m.rC.Missing,header:m.NU.Missing,width:100,align:n.ZP.CENTER,defaultOrder:n.ZP.DESCENDING,render:e=>{let{row:s}=e;return s.Missing}},{name:m.rC.PDisks,header:m.NU.PDisks,className:h("pdisks-column"),render:e=>{var s;let{row:r}=e;return(0,p.jsx)("div",{className:h("pdisks-wrapper"),children:null===(s=r.PDisks)||void 0===s?void 0:s.map((e=>{var s;const a=null===(s=r.VDisks)||void 0===s?void 0:s.filter((s=>s.PDiskId===e.PDiskId)),o=null===a||void 0===a?void 0:a.filter((e=>{var s;return t&&(null===(s=e.VDiskId)||void 0===s?void 0:s.GroupID)!==Number(t)}));return(0,p.jsx)("div",{className:h("pdisks-item"),children:(0,p.jsx)(c.l,{data:e,vDisks:a,inactiveVdisks:o})},e.PDiskId)}))})},align:n.ZP.CENTER,sortable:!1,width:900,resizeable:!1}]})(s,t,r);return a.map((e=>({...e,sortable:(0,u.oh)(e.name)})))};function g(e){let{visibleEntities:s,database:t,additionalNodesProps:n,groupId:l}=e;const i=r.useMemo((()=>v({database:t,additionalNodesProps:n,groupId:l})),[t,n,l]),d=r.useMemo((()=>s===a.G.missing?[...m.ae,m.rC.Missing]:m.ae),[s]);return(0,o.N)(i,m.rm,m.NU,m.wn,d)}},73790:(e,s,t)=>{t.d(s,{Z:()=>n});var r=t(30817);const a=JSON.parse('{"empty.default":"No such nodes","empty.out_of_space":"No nodes with out of space errors","empty.degraded":"No degraded nodes","empty.small_uptime":"No nodes with uptime < 1h","empty.several_filters":"No nodes match current filters combination","show_all":"Show all nodes"}'),o=JSON.parse('{"empty.default":"\u041d\u0435\u0442 \u0443\u0437\u043b\u043e\u0432","empty.out_of_space":"\u041d\u0435\u0442 \u0443\u0437\u043b\u043e\u0432, \u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043a\u043e\u043d\u0447\u0430\u0435\u0442\u0441\u044f \u043c\u0435\u0441\u0442\u043e","empty.degraded":"\u041d\u0435\u0442 \u0434\u0435\u0433\u0440\u0430\u0434\u0438\u0440\u043e\u0432\u0430\u0432\u0448\u0438\u0445 \u0443\u0437\u043b\u043e\u0432","empty.small_uptime":"\u041d\u0435\u0442 \u0443\u0437\u043b\u043e\u0432 \u0441 uptime < 1h","empty.several_filters":"\u041d\u0435\u0442 \u0443\u0437\u043b\u043e\u0432, \u043f\u043e\u0434\u0445\u043e\u0434\u044f\u0449\u0438\u0445 \u043f\u043e\u0434 \u0442\u0435\u043a\u0443\u0449\u0438\u0435 \u0444\u0438\u043b\u044c\u0442\u0440\u044b","show_all":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0432\u0441\u0435 \u0443\u0437\u043b\u044b"}'),n=(0,r.wZ)("ydb-storage-nodes",{ru:o,en:a})},20108:(e,s,t)=>{t.d(s,{q:()=>n});var r=t(24362),a=t(51688);const o=(0,r.cn)("ydb-storage-nodes"),n=e=>o("node",{unavailable:(0,a.TA)(e)})},77643:(e,s,t)=>{t.d(s,{b:()=>r});const r=(0,t(24362).cn)("global-storage")},10703:(e,s,t)=>{t.d(s,{CZ:()=>p,TP:()=>h,YC:()=>m,_O:()=>c,_r:()=>b});var r=t(81413),a=t(95829),o=t(75850),n=t(99106),l=t(54997),i=t(51323);const d=(0,n.p)(1,2,["success","warning","danger"]),u={"block-4-2":(0,n.p)(1,2,["success","warning","danger"]),"mirror-3-dc":(0,n.p)(1,3,["success","warning","danger"])},c=e=>{var s;return(void 0!==(s=e.ErasureSpecies)&&s in u?u[e.ErasureSpecies]:d)(e.Degraded)},m=(0,n.p)(80,85,["success","warning","danger"]),p=(0,n.p)(80,85,[o.K.Green,o.K.Yellow,o.K.Red]),h={sortValue:l.xv.NodeId,sortOrder:r.zE},v={sortValue:i.tn.PoolName,sortOrder:r.zE},g={sortValue:i.tn.Degraded,sortOrder:r.hr},N={sortValue:i.tn.Usage,sortOrder:r.hr};function b(e){return e===a.G.missing?g:e===a.G.space?N:v}},14223:(e,s,t)=>{t.d(s,{A:()=>m,f:()=>u});var r=t(75850),a=t(52317),o=t(34301),n=t(27070),l=t(51688),i=t(80839);const d=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return(arguments.length>1?arguments[1]:void 0)===i.pu.ALL?e:e.filter((e=>{let{SystemState:s}=e;return s&&s!==r.K.Green}))},u=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return(arguments.length>1?arguments[1]:void 0)===l.Uu.All?e:e.filter((e=>{let{StartTime:s}=e;return!s||(0,o.OW)(s)<a.RQ}))},c=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],s=arguments.length>1?arguments[1]:void 0;if(!s)return e;const t=(0,n.Y)(s);return e.filter((e=>!e.Host||(t.test(e.Host)||t.test(String(e.NodeId)))))};function m(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],{uptimeFilter:s,searchValue:t,problemFilter:r}=arguments.length>1?arguments[1]:void 0,a=u(e,s);return a=d(a,r),a=c(a,t),a}},95829:(e,s,t)=>{t.d(s,{G:()=>r,d:()=>a});const r={all:"all",missing:"missing",space:"space"},a={groups:"groups",nodes:"nodes"}},26491:(e,s,t)=>{t.d(s,{R:()=>a});var r=t(92092);async function a(e,s){let{version:t="v2",shouldUseGroupsHandler:a,...o}=e;if(a&&"v1"!==t){const e=await window.api.getStorageGroups({...o},s);return(0,r._u)(e)}{const e=await window.api.getStorageInfo({version:t,...o},s);return(0,r.S9)(e)}}},33058:(e,s,t)=>{t.d(s,{y:()=>n});var r=t(905),a=t(26491),o=t(92092);const n=r.h.injectEndpoints({endpoints:e=>({getStorageNodesInfo:e.query({queryFn:async(e,s)=>{let{signal:t}=s;try{const s=await window.api.getNodes({storage:!0,type:"static",...e},{signal:t});return{data:(0,o.Y2)(s)}}catch(r){return{error:r}}},providesTags:["All","StorageData"]}),getStorageGroupsInfo:e.query({queryFn:async(e,s)=>{let{signal:t}=s;try{return{data:await(0,a.R)(e,{signal:t})}}catch(r){return{error:r}}},providesTags:["All","StorageData"]})}),overrideExisting:"throw"})},30553:(e,s,t)=>{t.d(s,{Y:()=>n,z:()=>o});var r=t(95408),a=t(95829);const o=r.z.nativeEnum(a.G).catch(a.G.all),n=r.z.nativeEnum(a.d).catch(a.d.groups)},92092:(e,s,t)=>{t.d(s,{S9:()=>v,Y2:()=>h,_u:()=>g});var r=t(21897),a=t(17632),o=t(92666),n=t(3764),l=t(51688),i=t(15106);function d(e){const{DiskSpace:s,VDisks:t=[]}=e;return s||(0,o.b2)(Math.max(...t.map((e=>(0,o.Or)(e.DiskSpace)))))}const u=(e,s)=>{var t;const r=(0,n.w)(e);return{...r,StoragePoolName:s,Donors:null===r||void 0===r||null===(t=r.Donors)||void 0===t?void 0:t.map((e=>({...e,StoragePoolName:s})))}},c=e=>{const{VDisks:s=[],PoolName:t,Usage:r=0,Read:a=0,Write:o=0,Used:n=0,Limit:l=0,Degraded:i=0,Kind:c,MediaType:m,GroupID:p,Overall:h,GroupGeneration:v}=e,g=s.map((e=>u(e,t))),N=Math.floor(100*Number(r)),b=d(e);return{...e,PoolName:t,GroupId:p,MediaType:m||c,VDisks:g,Usage:N,Overall:h,GroupGeneration:v?String(v):void 0,Read:Number(a),Write:Number(o),Used:Number(n),Limit:Number(l),Degraded:Number(i),DiskSpace:b}},m=(e,s)=>{let t=[];return e?t=e.map(c):null===s||void 0===s||s.forEach((e=>{var s;null===(s=e.Groups)||void 0===s||s.forEach((s=>{t.push(((e,s)=>{var t;let o,l=0,c=0,m=0,p=0,h=0;const{Name:v,MediaType:g}=s;if(e.VDisks)for(const i of e.VDisks){const{Replicated:e,VDiskState:s,AvailableSize:t,AllocatedSize:d,PDisk:u,ReadThroughput:v,WriteThroughput:g}=i,{Type:N,State:b,AvailableSize:k}=(0,n.b)(u);e&&b===r.w.Normal&&s===a.H.OK||(l+=1);const D=Number(null!==t&&void 0!==t?t:k)||0,S=Number(d)||0;c+=S,m+=D+S,p+=Number(v)||0,h+=Number(g)||0,o=!N||N!==o&&o?"Mixed":N}const N=null===(t=e.VDisks)||void 0===t?void 0:t.map((e=>u(e,v))),b=(0,i.I)({Used:c,Limit:m},5),k=d(e);return{...e,GroupGeneration:e.GroupGeneration?String(e.GroupGeneration):void 0,GroupId:e.GroupID,Overall:e.Overall,VDisks:N,Usage:b,Read:p,Write:h,PoolName:v,Used:c,Limit:m,Degraded:l,MediaType:g||o||void 0,DiskSpace:k}})(s,e))}))})),t},p=e=>{var s,t,a;const o=(null===(s=e.PDisks)||void 0===s?void 0:s.filter((e=>e.State!==r.w.Normal)).length)||0,i=null===(t=e.PDisks)||void 0===t?void 0:t.map((s=>({...(0,n.b)(s),NodeId:e.NodeId}))),d=null===(a=e.VDisks)||void 0===a?void 0:a.map((s=>({...(0,n.w)(s),NodeId:e.NodeId})));return{...(0,l.Ns)(e.SystemState),NodeId:e.NodeId,PDisks:i,VDisks:d,Missing:o}},h=e=>{const{Nodes:s,TotalNodes:t,FoundNodes:r}=e,a=null===s||void 0===s?void 0:s.map(p);return{nodes:a,total:Number(t)||(null===a||void 0===a?void 0:a.length),found:Number(r)}},v=e=>{const{StoragePools:s,StorageGroups:t,TotalGroups:r,FoundGroups:a}=e,o=m(t,s);return{groups:o,total:Number(r)||o.length,found:Number(a)}};function g(e){const{FoundGroups:s,TotalGroups:t,StorageGroups:r=[]}=e,a=r.map((e=>{const{Usage:s,Read:t,Write:r,Used:a,Limit:o,MissingDisks:l,VDisks:i=[],Overall:u}=e,c=i.map((e=>{var s;const t=e.Whiteboard,r=null===(s=e.PDisk)||void 0===s?void 0:s.Whiteboard,a=e.NodeId,o={...t,PDiskId:null===r||void 0===r?void 0:r.PDiskId,NodeId:a,PDisk:{...r,NodeId:a}};return(0,n.w)(o)})),m=d(e);return{...e,Usage:Math.floor(Number(s))||0,Read:Number(t),Write:Number(r),Used:Number(a),Limit:Number(o),Degraded:Number(l),Overall:u,VDisks:c,DiskSpace:m}}));return{groups:a,total:Number(t)||a.length,found:Number(s)}}},21897:(e,s,t)=>{let r;t.d(s,{w:()=>r}),function(e){e.Initial="Initial",e.InitialFormatRead="InitialFormatRead",e.InitialFormatReadError="InitialFormatReadError",e.InitialSysLogRead="InitialSysLogRead",e.InitialSysLogReadError="InitialSysLogReadError",e.InitialSysLogParseError="InitialSysLogParseError",e.InitialCommonLogRead="InitialCommonLogRead",e.InitialCommonLogReadError="InitialCommonLogReadError",e.InitialCommonLogParseError="InitialCommonLogParseError",e.CommonLoggerInitError="CommonLoggerInitError",e.Normal="Normal",e.OpenFileError="OpenFileError",e.ChunkQuotaError="ChunkQuotaError",e.DeviceIoError="DeviceIoError",e.Missing="Missing",e.Timeout="Timeout",e.NodeDisconnected="NodeDisconnected",e.Unknown="Unknown"}(r||(r={}))},17632:(e,s,t)=>{let r;t.d(s,{H:()=>r}),function(e){e.Initial="Initial",e.LocalRecoveryError="LocalRecoveryError",e.SyncGuidRecovery="SyncGuidRecovery",e.SyncGuidRecoveryError="SyncGuidRecoveryError",e.OK="OK",e.PDiskError="PDiskError"}(r||(r={}))},77072:(e,s,t)=>{t.d(s,{i6:()=>l,mG:()=>n,mr:()=>d,oO:()=>o,s:()=>i,tH:()=>u});var r=t(21897),a=t(17632);const o={Grey:0,Green:1,Blue:2,Yellow:3,Orange:4,Red:5},n=Object.entries(o).reduce(((e,s)=>{let[t,r]=s;return{...e,[r]:t}}),{}),l=o.Grey,i=n[l],d={[a.H.OK]:o.Green,[a.H.Initial]:o.Yellow,[a.H.SyncGuidRecovery]:o.Yellow,[a.H.LocalRecoveryError]:o.Red,[a.H.SyncGuidRecoveryError]:o.Red,[a.H.PDiskError]:o.Red},u={[r.w.Initial]:o.Grey,[r.w.Normal]:o.Green,[r.w.InitialFormatRead]:o.Yellow,[r.w.InitialSysLogRead]:o.Yellow,[r.w.InitialCommonLogRead]:o.Yellow,[r.w.InitialFormatReadError]:o.Red,[r.w.InitialSysLogReadError]:o.Red,[r.w.InitialSysLogParseError]:o.Red,[r.w.InitialCommonLogReadError]:o.Red,[r.w.InitialCommonLogParseError]:o.Red,[r.w.CommonLoggerInitError]:o.Red,[r.w.OpenFileError]:o.Red,[r.w.ChunkQuotaError]:o.Red,[r.w.DeviceIoError]:o.Red}},92666:(e,s,t)=>{t.d(s,{CH:()=>i,FR:()=>d,Iz:()=>o,Or:()=>l,b2:()=>n});var r=t(5922),a=t(77072);function o(e){return"VDiskId"in e}function n(e){return void 0===e?a.s:a.mG[e]||a.s}function l(e){return e?a.oO[e]:0}function i(e,s){if((0,r.D)(e)&&(0,r.D)(s))return`${e}-${s}`}function d(e,s,t){return[e,s,t].join("-")}},3764:(e,s,t)=>{t.d(s,{b:()=>h,w:()=>p});var r=t(75850),a=t(99106),o=t(77072);const n=(0,a.p)(85,95,[r.K.Green,r.K.Yellow,r.K.Red]);function l(e){let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;const t=function(e){return s=e,void 0!==s&&s in o.tH?o.tH[e]:o.i6;var s}(e.State),r=n(s);return t!==o.i6&&r?Math.max(t,o.oO[r]):t}var i=t(92666);function d(e){if(!(0,i.Iz)(e))return o.i6;const{DiskSpace:s,VDiskState:t,FrontQueues:r,Replicated:a,DonorMode:n}=e;if(!t)return o.i6;const l=u(s),d=function(e){var s;if(!e)return o.i6;return null!==(s=o.mr[e])&&void 0!==s?s:o.i6}(t),c=Math.min(o.oO.Orange,u(r));let m=Math.max(l,d,c);return a||n||m!==o.oO.Green||(m=o.oO.Blue),m}function u(e){var s;return e&&null!==(s=o.oO[e])&&void 0!==s?s:o.i6}const c={HDD:"HDD",SSD:"SSD",MVME:"NVME"};function m(e){if(!e)return;const s=function(e,s){const t={};return Object.entries(s).reduce(((s,r)=>{let[a,o]=r;const n=e.length-s,l=n-o;return t[a]=e.substring(l,n)||"0",s+o}),0),t}(BigInt(e).toString(2),{isSolidState:1,kind:55,typeExt:8});if("1"===s.isSolidState)switch(parseInt(s.typeExt,2)){case 0:return c.SSD;case 2:return c.MVME}else if("0"===s.typeExt)return c.HDD}function p(){var e,s,t,r;let a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const o=a.PDisk?h({...a.PDisk,NodeId:null!==(e=a.PDisk.NodeId)&&void 0!==e?e:a.NodeId}):void 0,n=null!==(s=a.PDiskId)&&void 0!==s?s:null===o||void 0===o?void 0:o.PDiskId,l=Number(null!==(t=a.AvailableSize)&&void 0!==t?t:null===o||void 0===o?void 0:o.AvailableSize),i=Number(a.AllocatedSize),u=i+l,c=Math.round(100*i/u),m=null===(r=a.Donors)||void 0===r?void 0:r.map((e=>p({...e,DonorMode:!0}))),v=d(a);return{...a,PDisk:o,PDiskId:n,Donors:m,Severity:v,TotalSize:u,AllocatedPercent:c}}function h(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{AvailableSize:t,TotalSize:r,Category:a}=e,o=m(a),n=Number(t),i=Number(r),d=i-n,u=Math.round(100*d/i),c=l(e,u);return{...s,...e,Type:o,Severity:c,AllocatedSize:d,AllocatedPercent:u}}},27070:(e,s,t)=>{t.d(s,{A:()=>n,Y:()=>l});var r=t(81413),a=t(43680),o=t.n(a);const n=function(e){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.hr)===r.hr?`-${e}`:e},l=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return new RegExp(o()(e),"i")}},99106:(e,s,t)=>{t.d(s,{p:()=>r});const r=(e,s,t)=>r=>0<=r&&r<e?t[0]:e<=r&&r<s?t[1]:s<=r?t[2]:void 0},57344:(e,s,t)=>{t.d(s,{N:()=>o});var r=t(68963),a=t(18193);const o=(e,s,t,o,n)=>{const[l,i]=r.useState((()=>a.r.readUserSettingsValue(s,o)));return{columnsToShow:r.useMemo((()=>e.filter((e=>l.find((s=>s===e.name))))),[e,l]),columnsToSelect:r.useMemo((()=>e.map((e=>e.name)).map((e=>{const s=null===n||void 0===n?void 0:n.includes(e),r=l.includes(e);return{id:e,title:t[e],selected:s||r,required:s,sticky:s?"start":void 0}}))),[e,t,n,l]),setColumns:r.useCallback((e=>{const t=e.filter((e=>e.selected)).map((e=>e.id));a.r.setUserSettingsValue(s,t),i(t)}),[s])}}},89712:(e,s,t)=>{t.d(s,{M:()=>n});var r=t(68963),a=t(2639),o=t(18193);const n=e=>{const s=r.useCallback((()=>e?o.r.readUserSettingsValue(e,{}):{}),[e]),t=r.useCallback((s=>{e&&o.r.setUserSettingsValue(e,s)}),[e]);return(0,a.M)({saveSizes:t,getSizes:s})}},15106:(e,s,t)=>{t.d(s,{I:()=>r,P:()=>o});const r=function(e){let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;const t=e.Limit?100*e.Used/e.Limit:0;return Math.floor(t/s)*s},a=["PoolName","Kind","MediaType","Erasure","Degraded","Usage","GroupId","Used","Limit","Read","Write"],o=e=>a.includes(e)}}]); \ No newline at end of file
diff --git a/ydb/core/viewer/monitoring/static/js/9854.4a10d07f.chunk.js b/ydb/core/viewer/monitoring/static/js/9854.4a10d07f.chunk.js
new file mode 100644
index 0000000000..313ec84f07
--- /dev/null
+++ b/ydb/core/viewer/monitoring/static/js/9854.4a10d07f.chunk.js
@@ -0,0 +1 @@
+"use strict";(self.webpackChunkydb_embedded_ui=self.webpackChunkydb_embedded_ui||[]).push([[9854],{62776:(e,t,n)=>{n.d(t,{a:()=>r.a});var r=n(91173)},11635:(e,t,n)=>{n.d(t,{WQ:()=>D});var r=n(68963),o=n(5922),s=n(47101);const l=n(905).h.injectEndpoints({endpoints:function(e){return{fetchTableChunk:e.query({queryFn:async(e,t)=>{let{offset:n,limit:r,sortParams:o,filters:s,fetchData:l}=e,{signal:i}=t;try{return{data:await l({limit:r,offset:n,filters:s,sortParams:o,signal:i})}}catch(a){return{error:a}}},providesTags:["All"]})}}});var i=n(17096),a=n(26688),d=n(56711);const u="left",c=!0,h=-1,m=40;const p=(0,n(24362).cn)("ydb-paginated-table");var g=n(75859);const f=e=>{let{children:t,className:n,height:r,width:o,align:s=u,resizeable:l}=e;return(0,g.jsx)("td",{className:p("row-cell",{align:s},n),style:{height:`${r}px`,width:`${o}px`,maxWidth:l?`${o}px`:void 0},children:t})},v=e=>{let{index:t,columns:n,height:r}=e;return(0,g.jsx)("tr",{className:p("row",{loading:!0}),children:n.map((e=>{var n;const o=null!==(n=e.resizeable)&&void 0!==n?n:c;return(0,g.jsx)(f,{height:r,width:e.width,align:e.align,className:e.className,resizeable:o,children:(0,g.jsx)(d.O,{className:p("row-skeleton"),style:{width:"80%",height:"50%"}})},`${e.name}${t}`)}))})},b=e=>{let{row:t,index:n,columns:r,getRowClassName:o,height:s}=e;const l=null===o||void 0===o?void 0:o(t);return(0,g.jsx)("tr",{className:p("row",l),children:r.map((e=>{var r;const o=null!==(r=e.resizeable)&&void 0!==r?r:c;return(0,g.jsx)(f,{height:s,width:e.width,align:e.align,className:e.className,resizeable:o,children:e.render({row:t,index:n})},`${e.name}${n}`)}))})},x=e=>{let{columns:t,children:n}=e;return(0,g.jsx)("tr",{className:p("row",{empty:!0}),children:(0,g.jsx)("td",{colSpan:t.length,className:p("td"),children:n})})},w=(0,r.memo)((function(e){var t;let{id:n,limit:s,totalLength:d,rowHeight:u,columns:c,fetchData:h,tableName:m,filters:p,sortParams:f,observer:w,getRowClassName:C,renderErrorMessage:j,onDataFetched:y,isActive:E}=e;const S=r.useRef(null),[I,N]=r.useState(!0),[G]=(0,i.Rj)(),k={offset:n*s,limit:s,fetchData:h,filters:p,sortParams:f,tableName:m};l.useFetchTableChunkQuery(k,{skip:I||!E,pollingInterval:G});const{currentData:T,error:R}=l.endpoints.fetchTableChunk.useQueryState(k);r.useEffect((()=>{let e=0;return E&&I&&(e=window.setTimeout((()=>{N(!1)}),200)),()=>{window.clearTimeout(e)}}),[E,I]),r.useEffect((()=>{const e=S.current;return e&&w.observe(e),()=>{e&&w.unobserve(e)}}),[w]),r.useEffect((()=>{if(T&&E){const{total:e=0,found:t=0}=T;y(e,t)}}),[T,E,y]);const D=d-n*s,A=D<s?D:s,M=(null===T||void 0===T||null===(t=T.data)||void 0===t?void 0:t.length)||A,O=M?M*u:s*u;return(0,g.jsx)("tbody",{ref:S,id:n.toString(),style:{height:`${O}px`,display:E?"table-row-group":"block"},children:(()=>{if(!E)return null;if(!T){if(R){const e=R;return(0,g.jsx)(x,{columns:c,children:j?j(e):(0,g.jsx)(a.V,{error:e})})}return(0,o.c$)(M).map((e=>(0,g.jsx)(v,{columns:c,height:u,index:e},e)))}return T.data.map(((e,t)=>(0,g.jsx)(b,{index:t,row:e,columns:c,height:u,getRowClassName:C},t)))})()})}));function C(e){let{minWidth:t,maxWidth:n,getCurrentColumnWidth:o,onResize:s}=e;const l=r.useRef(null),[i,a]=r.useState(!1);return r.useEffect((()=>{const e=l.current;if(!e)return;let r,i,d;const u=function(e){let t,n=null;return function(){for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];t=o,"number"!==typeof n&&(n=requestAnimationFrame((()=>{e(...t),n=null})))}}((e=>{if(j(e),"number"!==typeof r||"number"!==typeof i)return;const o=e.clientX-r,l=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:40,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0;return Math.max(t,Math.min(e,n))}(i+o,t,n);l!==d&&(d=l,null===s||void 0===s||s(d))})),c=e=>{j(e),void 0!==d&&(null===s||void 0===s||s(d)),a(!1),r=void 0,document.removeEventListener("mousemove",u),document.removeEventListener("mouseup",c)},h=e=>{i=o(),j(e),r=e.clientX,a(!0),document.addEventListener("mousemove",u),document.addEventListener("mouseup",c)};return e.addEventListener("mousedown",h),()=>{e.removeEventListener("mousedown",h),document.removeEventListener("mousemove",u),document.removeEventListener("mouseup",c)}}),[s,t,n,o]),(0,g.jsx)("span",{ref:l,className:p("resize-handler",{resizing:i}),onClick:e=>j(e)})}function j(e){e.preventDefault(),e.stopPropagation()}const y=e=>{let{order:t}=e;return(0,g.jsx)("svg",{className:p("sort-icon",{desc:-1===t}),viewBox:"0 0 10 6",width:"10",height:"6",children:(0,g.jsx)("path",{fill:"currentColor",d:"M0 5h10l-5 -5z"})})},E=e=>{let{sortOrder:t,sortable:n,defaultSortOrder:r}=e;return n?(0,g.jsx)("span",{className:p("sort-icon-container",{shadow:!t}),children:(0,g.jsx)(y,{order:t||r})}):null},S=e=>{var t;let{column:n,resizeable:o,sortOrder:s,defaultSortOrder:l,onSort:i,rowHeight:a,onCellMount:d,onCellUnMount:u,onColumnsResize:c}=e;const h=r.useRef(null);r.useEffect((()=>{const e=h.current;return e&&(null===d||void 0===d||d(e)),()=>{e&&(null===u||void 0===u||u(e))}}),[d,u]);const m=r.useCallback((()=>{var e;return null===(e=h.current)||void 0===e?void 0:e.getBoundingClientRect().width}),[]),f=r.useCallback((e=>{null===c||void 0===c||c(n.name,e)}),[c,n.name]),v=null!==(t=n.header)&&void 0!==t?t:n.name,b={height:`${a}px`,width:`${n.width}px`,minWidth:o?`${n.width}px`:void 0,maxWidth:o?`${n.width}px`:void 0};return(0,g.jsxs)("th",{ref:h,className:p("head-cell-wrapper"),style:b,children:[(0,g.jsxs)("div",{className:p("head-cell",{align:n.align,sortable:n.sortable},n.className),onClick:()=>{n.sortable&&(null===i||void 0===i||i(n.name))},children:[(0,g.jsx)("div",{className:p("head-cell-content"),children:v}),(0,g.jsx)(E,{sortOrder:s,sortable:n.sortable,defaultSortOrder:l})]}),o?(0,g.jsx)(C,{maxWidth:n.resizeMaxWidth,minWidth:n.resizeMinWidth,getCurrentColumnWidth:m,onResize:f}):null]})},I=e=>{let{columns:t,onSort:n,onColumnsResize:o,defaultSortOrder:s=h,rowHeight:l=m}=e;const[i,a]=r.useState({}),d=e=>{let t={};if(e===i.columnId){if(i.sortOrder&&i.sortOrder!==s)return a(t),void(null===n||void 0===n||n(t));t={sortOrder:1===i.sortOrder?-1:1,columnId:e}}else t={sortOrder:s,columnId:e};null===n||void 0===n||n(t),a(t)};return(0,g.jsxs)(r.Fragment,{children:[(0,g.jsx)("colgroup",{children:t.map((e=>(0,g.jsx)("col",{style:{width:`${e.width}px`}},e.name)))}),(0,g.jsx)("thead",{className:p("head"),children:(0,g.jsx)("tr",{children:t.map((e=>{var t;const n=i.columnId===e.name?i.sortOrder:void 0,r=o&&(null!==(t=e.resizeable)&&void 0!==t?t:c);return(0,g.jsx)(S,{column:e,resizeable:r,sortOrder:n,defaultSortOrder:s,onSort:d,rowHeight:l,onColumnsResize:o},e.name)}))})})]})};var N=n(30817);const G=JSON.parse('{"empty":"\u041d\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0445"}'),k=(0,N.wZ)("ydb-paginated-table",{ru:G,en:{empty:"No data"}}),T=e=>{let{limit:t,initialEntitiesCount:n,fetchData:l,filters:i,tableName:a,columns:d,getRowClassName:u,rowHeight:c=m,parentContainer:h,initialSortParams:f,onColumnsResize:v,renderControls:b,renderErrorMessage:C,renderEmptyDataMessage:j,containerClassName:y}=e;const E=n||t,S=n||0,[N,G]=r.useState(f),[T,R]=r.useState(E),[D,A]=r.useState(S),[M,O]=r.useState([]),[z,L]=r.useState(!0),W=r.useRef(null),K=r.useCallback(((e,t)=>{R(e),A(t),L(!1)}),[]),U=(e=>{let{onEntry:t,onLeave:n,parentContainer:o}=e;const s=r.useRef();return r.useEffect((()=>(s.current=new IntersectionObserver((e=>{e.forEach((e=>{e.isIntersecting?t(e.target.id):n(e.target.id)}))}),{root:o,rootMargin:"100%"}),()=>{var e;null===(e=s.current)||void 0===e||e.disconnect(),s.current=void 0})),[o,t,n]),s.current})({onEntry:r.useCallback((e=>{O((t=>[...new Set([...t,Number(e)])]))}),[]),onLeave:r.useCallback((e=>{O((t=>t.filter((t=>t!==Number(e)))))}),[]),parentContainer:h});r.useLayoutEffect((()=>{var e;(R(E),A(S),L(!0),h)?h.scrollTo(0,0):null===(e=W.current)||void 0===e||e.scrollTo(0,0);O([0])}),[i,S,E,t,h]);const B=()=>{if(!U)return null;if(!z&&0===D)return(0,g.jsx)("tbody",{children:(0,g.jsx)(x,{columns:d,children:j?j():k("empty")})});const e=D||t,n=Math.ceil(e/t);return(0,o.c$)(n).map((n=>(0,g.jsx)(w,{id:n,limit:t,totalLength:e,rowHeight:c,columns:d,fetchData:l,filters:i,tableName:a,sortParams:N,getRowClassName:u,renderErrorMessage:C,onDataFetched:K,isActive:M.includes(n),observer:U},n)))},F=()=>(0,g.jsxs)("table",{className:p("table"),children:[(0,g.jsx)(I,{columns:d,onSort:G,onColumnsResize:v}),B()]});return(0,g.jsx)("div",{ref:W,className:p(null,y),children:b?(0,g.jsxs)(s.l,{children:[(0,g.jsx)(s.l.Controls,{children:b({inited:!z,totalEntities:T,foundEntities:D})}),(0,g.jsx)(s.l.Table,{children:F()})]}):F()})};var R=n(89712);function D(e){let{columnsWidthLSKey:t,columns:n,...r}=e;const[o,s]=(0,R.M)(t),l=function(e,t){return e.map((e=>{var n;return{...e,width:null!==(n=t[e.name])&&void 0!==n?n:e.width}}))}(n,o);return(0,g.jsx)(T,{columns:l,onColumnsResize:s,containerClassName:p("resizeable-table-container"),...r})}},10582:(e,t,n)=>{n.d(t,{V:()=>J});var r=n(52317),o=n(17096),s=n(68963),l=n(8747),i=n(96409),a=n(47101),d=n(17880),u=n(33058),c=n(87255),h=n(11635),m=n(95829),p=n(64782),g=n(51323),f=n(26491),v=n(27070),b=n(15106);var x=n(43817),w=n(75859);const C=e=>{let{columns:t,database:n,nodeId:r,groupId:o,pDiskId:l,filterGroup:a,filterGroupBy:u,searchValue:c,visibleEntities:C,onShowAll:j,parentContainer:y,renderControls:E,renderErrorMessage:S,initialEntitiesCount:I}=e;const N=(0,d.rU)(),G=(0,d.tS)(),k=(T=G,s.useCallback((async e=>{const{limit:t,offset:n,sortParams:r,filters:o}=e,{sortOrder:s,columnId:l}=null!==r&&void 0!==r?r:{},{searchValue:i,visibleEntities:a,database:d,nodeId:u,groupId:c,pDiskId:h,filterGroup:m,filterGroupBy:p}=null!==o&&void 0!==o?o:{},g=(0,b.P)(l)?(0,v.A)(l,s):void 0,{groups:x,found:w,total:C}=await(0,f.R)({limit:t,offset:n,sort:g,filter:i,with:a,database:d,nodeId:u,groupId:c,pDiskId:h,filter_group:m,filter_group_by:p,shouldUseGroupsHandler:T});return{data:x||[],found:w||0,total:C||0}}),[T]));var T;const R=s.useMemo((()=>({searchValue:c,visibleEntities:C,database:n,nodeId:r,groupId:o,pDiskId:l,filterGroup:a,filterGroupBy:u})),[c,C,n,r,o,l,a,u]);return(0,w.jsx)(i.s,{loading:!N,children:(0,w.jsx)(h.WQ,{columnsWidthLSKey:g.Ty,parentContainer:y,columns:t,fetchData:k,limit:50,initialEntitiesCount:I,renderControls:E,renderErrorMessage:S,renderEmptyDataMessage:()=>C!==m.G.all?(0,w.jsx)(p.a,{onShowAll:j,visibleEntities:C}):(0,x.Z)("empty.default"),filters:R,tableName:"storage-groups"})})};var j=n(46393),y=n(33569),E=n(10288),S=n(14979);const I=(0,n(24362).cn)("ydb-table-group");function N(e){let{children:t,title:n,entityName:r,count:o,expanded:s=!1,onIsExpandedChange:l}=e;const i=()=>{l(n,!s)};return(0,w.jsxs)("div",{className:I(null),children:[(0,w.jsx)("button",{onClick:i,className:I("button"),title:n,children:(0,w.jsxs)("div",{className:I("title-wrapper"),children:[(0,w.jsx)(y.F,{direction:s?"top":"bottom"}),(0,w.jsxs)("div",{className:I("title"),children:[(0,w.jsx)(E.x,{variant:"subheader-2",children:n}),(0,w.jsxs)(E.x,{variant:"body-2",color:"secondary",className:I("count"),children:[r,": ",(0,w.jsx)(S._,{theme:"normal",children:o})]})]})]})}),s?(0,w.jsx)("div",{className:I("content"),children:t}):null]})}function G(e){const[t,n]=s.useState({});s.useEffect((()=>{null!==e&&void 0!==e&&e.length&&n((t=>e.reduce(((e,n)=>{let{name:r}=n;const o=t[r];return{...e,[r]:null!==o&&void 0!==o&&o}}),{})))}),[e]);return{expandedGroups:t,setIsGroupExpanded:s.useCallback(((e,t)=>{n((n=>({...n,[e]:t})))}),[])}}var k=n(52002),T=n(11476),R=n(18577);n(64372);function D(e){const{storageGroupsGroupByParam:t,visibleEntities:n,handleShowAllGroups:r}=(0,R.u)(),o=(0,d.rU)(),l=(0,d.Pq)();s.useEffect((()=>{l&&"all"!==n&&r()}),[r,l,n]);return(0,w.jsx)(i.s,{loading:!o,children:l&&t?(0,w.jsx)(M,{...e}):(0,w.jsx)(A,{...e})})}function A(e){let{database:t,nodeId:n,groupId:r,pDiskId:o,parentContainer:s}=e;const{searchValue:l,visibleEntities:i,handleShowAllGroups:a}=(0,R.u)(),{columnsToShow:d,columnsToSelect:u,setColumns:h}=(0,j.k)({visibleEntities:i,nodeId:null===n||void 0===n?void 0:n.toString()});return(0,w.jsx)(C,{database:t,nodeId:n,groupId:r,pDiskId:o,searchValue:l,visibleEntities:i,onShowAll:a,parentContainer:s,renderControls:e=>{let{totalEntities:t,foundEntities:n,inited:r}=e;return(0,w.jsx)(c.q,{withTypeSelector:!0,withGroupBySelect:!0,entitiesCountCurrent:n,entitiesCountTotal:t,entitiesLoading:!r,columnsToSelect:u,handleSelectedColumnsUpdate:h})},renderErrorMessage:T.i,columns:d})}function M(e){let{database:t,nodeId:n,groupId:r,pDiskId:s}=e;const[i]=(0,o.Rj)(),{searchValue:d,storageGroupsGroupByParam:h,visibleEntities:m,handleShowAllGroups:p}=(0,R.u)(),{columnsToShow:g,columnsToSelect:f,setColumns:v}=(0,j.k)({visibleEntities:m,nodeId:null===n||void 0===n?void 0:n.toString()}),{currentData:b,isFetching:x,error:y}=u.y.useGetStorageGroupsInfoQuery({database:t,with:"all",nodeId:n,groupId:r,pDiskId:s,filter:d,shouldUseGroupsHandler:!0,group:h},{pollingInterval:i}),E=void 0===b&&x,{tableGroups:S,found:I=0,total:D=0}=b||{},{expandedGroups:A,setIsGroupExpanded:M}=G(S);return(0,w.jsxs)(a.l,{children:[(0,w.jsx)(a.l.Controls,{children:(0,w.jsx)(c.q,{withTypeSelector:!0,withGroupBySelect:!0,entitiesCountCurrent:I,entitiesCountTotal:D,entitiesLoading:E,columnsToSelect:f,handleSelectedColumnsUpdate:v})}),y?(0,w.jsx)(l.V,{error:y}):null,(0,w.jsx)(a.l.Table,{loading:E,className:(0,T.b)("groups-wrapper"),children:null!==S&&void 0!==S&&S.length?S.map((e=>{let{name:o,count:l}=e;const i=A[o];return(0,w.jsx)(N,{title:o,count:l,entityName:(0,k.Z)("groups"),expanded:i,onIsExpandedChange:M,children:(0,w.jsx)(C,{database:t,nodeId:n,groupId:r,pDiskId:s,filterGroup:o,filterGroupBy:h,searchValue:d,visibleEntities:"all",onShowAll:p,renderErrorMessage:T.i,columns:g,initialEntitiesCount:l})},o)})):(0,k.Z)("no-groups")})]})}var O=n(26688),z=n(77915),L=n(51688),W=n(41616),K=n(64682),U=n(55434),B=n(92092);const F=async e=>{const{type:t="static",storage:n=!0,limit:r,offset:o,sortParams:s,filters:l}=e,{searchValue:i,nodesUptimeFilter:a,visibleEntities:d,database:u,nodeId:c,groupId:h,filterGroup:m,filterGroupBy:p}=null!==l&&void 0!==l?l:{},{sortOrder:g,columnId:f}=null!==s&&void 0!==s?s:{},b=(0,L.oh)(f)?(0,v.A)(f,g):void 0,x=await window.api.getNodes({type:t,storage:n,limit:r,offset:o,sort:b,filter:i,uptime:(0,L.RW)(a),with:d,database:u,node_id:c,group_id:h,filter_group:m,filter_group_by:p}),w=(0,B.Y2)(x);return{data:w.nodes||[],found:w.found||0,total:w.total||0}};var V=n(73790),P=n(20108);const $=e=>{let{columns:t,database:n,nodeId:r,groupId:o,filterGroup:l,filterGroupBy:i,searchValue:a,visibleEntities:d,nodesUptimeFilter:u,onShowAll:c,parentContainer:p,renderControls:g,renderErrorMessage:f,initialEntitiesCount:v}=e;const b=s.useMemo((()=>({searchValue:a,visibleEntities:d,nodesUptimeFilter:u,database:n,nodeId:r,groupId:o,filterGroup:l,filterGroupBy:i})),[a,d,u,n,r,o,l,i]);return(0,w.jsx)(h.WQ,{columnsWidthLSKey:U.Wj,parentContainer:p,columns:t,fetchData:F,rowHeight:51,limit:50,initialEntitiesCount:v,renderControls:g,renderErrorMessage:f,renderEmptyDataMessage:()=>d!==m.G.all||u!==L.Uu.All?(0,w.jsx)(K.r,{onShowAll:c,nodesUptimeFilter:u,visibleEntities:d}):(0,V.Z)("empty.default"),getRowClassName:P.q,filters:b,tableName:"storage-nodes"})};var _=n(24733);const Y=e=>{const{storageNodesGroupByParam:t,visibleEntities:n,nodesUptimeFilter:r,handleShowAllNodes:o}=(0,R.u)(),l=(0,d.rU)(),a=(0,d.th)();s.useEffect((()=>{a&&"all"!==n&&r!==L.Uu.All&&o()}),[o,r,a,n]);return(0,w.jsx)(i.s,{loading:!l,children:a&&t?(0,w.jsx)(Q,{...e}):(0,w.jsx)(H,{...e})})};function H(e){let{database:t,nodeId:n,groupId:r,parentContainer:o}=e;const{searchValue:s,visibleEntities:l,nodesUptimeFilter:i,handleShowAllNodes:a}=(0,R.u)(),{columnsToShow:d,columnsToSelect:u,setColumns:h}=Z({database:t,groupId:null===r||void 0===r?void 0:r.toString()});return(0,w.jsx)($,{database:t,nodeId:n,groupId:r,searchValue:s,visibleEntities:l,nodesUptimeFilter:i,onShowAll:a,parentContainer:o,renderControls:e=>{let{totalEntities:t,foundEntities:n,inited:r}=e;return(0,w.jsx)(c.e,{withTypeSelector:!0,withGroupBySelect:!0,entitiesCountCurrent:n,entitiesCountTotal:t,entitiesLoading:!r,columnsToSelect:u,handleSelectedColumnsUpdate:h})},renderErrorMessage:T.i,columns:d})}function Q(e){let{database:t,groupId:n,nodeId:r}=e;const[s]=(0,o.Rj)(),{searchValue:l,storageNodesGroupByParam:i,handleShowAllNodes:d}=(0,R.u)(),{columnsToShow:h,columnsToSelect:m,setColumns:p}=Z({database:t,groupId:null===n||void 0===n?void 0:n.toString()}),{currentData:g,isFetching:f,error:v}=u.y.useGetStorageNodesInfoQuery({database:t,with:"all",filter:l,node_id:r,group_id:n,group:i},{pollingInterval:s}),b=void 0===g&&f,{tableGroups:x,found:C=0,total:j=0}=g||{},{expandedGroups:y,setIsGroupExpanded:E}=G(x);return(0,w.jsxs)(a.l,{children:[(0,w.jsx)(a.l.Controls,{children:(0,w.jsx)(c.e,{withTypeSelector:!0,withGroupBySelect:!0,entitiesCountCurrent:C,entitiesCountTotal:j,entitiesLoading:b,columnsToSelect:m,handleSelectedColumnsUpdate:p})}),v?(0,w.jsx)(O.V,{error:v}):null,(0,w.jsx)(a.l.Table,{loading:b,className:(0,T.b)("groups-wrapper"),children:null!==x&&void 0!==x&&x.length?x.map((e=>{let{name:o,count:s}=e;const a=y[o];return(0,w.jsx)(N,{title:o,count:s,entityName:(0,k.Z)("nodes"),expanded:a,onIsExpandedChange:E,children:(0,w.jsx)($,{database:t,nodeId:r,groupId:n,searchValue:l,visibleEntities:"all",nodesUptimeFilter:L.Uu.All,onShowAll:d,filterGroup:o,filterGroupBy:i,renderErrorMessage:T.i,columns:h,initialEntitiesCount:s})},o)})):(0,k.Z)("no-nodes")})]})}function Z(e){let{database:t,groupId:n}=e;const{balancer:r}=(0,z.kW)(),{additionalNodesProps:o}=(0,W.f)({balancer:r}),{visibleEntities:s}=(0,R.u)();return(0,_.i)({additionalNodesProps:o,visibleEntities:s,database:t,groupId:n})}const q=e=>{const{storageType:t}=(0,R.u)();return"nodes"===t?(0,w.jsx)(Y,{...e}):(0,w.jsx)(D,{...e})};var X=n(57180);const J=e=>{let{parentContainer:t,...n}=e;const[s]=(0,o.yu)(r.Qy);return s?(0,w.jsx)(q,{parentContainer:t,...n}):(0,w.jsx)(X.K,{...n})}},83496:(e,t,n)=>{n.d(t,{FW:()=>l,KR:()=>i});var r=n(75850),o=n(28164);const s={[o.g.Dead]:r.K.Red,[o.g.Created]:r.K.Yellow,[o.g.ResolveStateStorage]:r.K.Yellow,[o.g.Candidate]:r.K.Yellow,[o.g.BlockBlobStorage]:r.K.Yellow,[o.g.WriteZeroEntry]:r.K.Yellow,[o.g.Restored]:r.K.Yellow,[o.g.Discover]:r.K.Yellow,[o.g.Lock]:r.K.Yellow,[o.g.Stopped]:r.K.Yellow,[o.g.ResolveLeader]:r.K.Yellow,[o.g.RebuildGraph]:r.K.Yellow,[o.g.Deleted]:r.K.Green,[o.g.Active]:r.K.Green},l=(Object.keys(o.g),Object.entries(s).reduce(((e,t)=>{let[n,r]=t;return e[r]?e[r].push(n):e[r]=[n],e}),{}),e=>{if(!e)return r.K.Grey;return t=e,Object.values(r.K).includes(t)?e:s[e];var t});function i(e){if(!e)return"unknown";switch(e){case o.g.Dead:return"danger";case o.g.Active:case o.g.Deleted:return"success";default:return"warning"}}}}]); \ No newline at end of file
diff --git a/ydb/core/viewer/monitoring/static/js/9870.822da0ba.chunk.js b/ydb/core/viewer/monitoring/static/js/9870.f57e1929.chunk.js
index cae94e80ff..f9fa31b074 100644
--- a/ydb/core/viewer/monitoring/static/js/9870.822da0ba.chunk.js
+++ b/ydb/core/viewer/monitoring/static/js/9870.f57e1929.chunk.js
@@ -1 +1 @@
-"use strict";(self.webpackChunkydb_embedded_ui=self.webpackChunkydb_embedded_ui||[]).push([[9870],{94790:(e,t,a)=>{a.d(t,{f:()=>n});var r=a(68963),s=a(44920),o=a(75859);const n=e=>{let{children:t,content:a,className:n,pinOnClick:l,hasArrow:d=!0,placement:i=["top","bottom"],...u}=e;const[c,m]=r.useState(!1),[h,p]=r.useState(!1),v=r.useRef(null);return(0,o.jsxs)(r.Fragment,{children:[(0,o.jsx)(s.G,{anchorRef:v,open:h||c,placement:i,hasArrow:d,onOutsideClick:()=>{p(!1)},...u,children:a}),(0,o.jsx)("span",{className:n,ref:v,onClick:l?()=>{p(!0)}:void 0,onMouseEnter:()=>{m(!0)},onMouseLeave:()=>{m(!1)},children:t})]})}},36985:(e,t,a)=>{a.d(t,{C:()=>r.C});var r=a(49201)},68242:(e,t,a)=>{a.d(t,{m:()=>u});var r=a(24362),s=a(94790),o=a(27506),n=a(75859);const l=(0,r.cn)("ydb-pool-bar"),d=e=>{let{data:t={}}=e;const{Usage:a=0}=t,r=Math.min(100*a,100),d=(e=>e>=75?"danger":e>=50&&e<75?"warning":"normal")(r);return(0,n.jsx)(s.f,{className:l({type:d}),content:(0,n.jsx)(o.A8,{data:t,className:l("popup-content")}),children:(0,n.jsx)("div",{style:{height:`${r}%`},className:l("value",{type:d})})})},i=(0,r.cn)("ydb-pools-graph"),u=e=>{let{pools:t=[]}=e;return(0,n.jsx)("div",{className:i(),children:t.map(((e,t)=>(0,n.jsx)(d,{data:e},t)))})}},74221:(e,t,a)=>{a.d(t,{T:()=>n});var r=a(79734),s=a(80839),o=a(75859);const n=e=>{let{value:t,onChange:a,className:n}=e;return(0,o.jsxs)(r.E,{value:t,onUpdate:a,className:n,children:[(0,o.jsx)(r.E.Option,{value:s.pu.ALL,children:s.pu.ALL}),(0,o.jsx)(r.E.Option,{value:s.pu.PROBLEMS,children:s.pu.PROBLEMS})]})}},11551:(e,t,a)=>{a.d(t,{o:()=>r.o});var r=a(30629)},9870:(e,t,a)=>{a.d(t,{G:()=>D});var r=a(52317),s=a(17096),o=a(68963),n=a(81413),l=a(48857),d=a(52846),i=a(36985),u=a(86969),c=a(1440),m=a(26688),h=a(56350),p=a(74221),v=a(2098),g=a(11551),N=a(47101),b=a(43989),x=a(3534),P=a(14223),y=a(80839),w=a(24362),j=a(51688),S=a(54997),T=a(57344),C=a(69);function L(e){const t=o.useMemo((()=>(0,C.gM)(e)),[e]);return(0,T.N)(t,S.pM,S.Pr,S.P3,S.nn)}var f=a(30817);const F=JSON.parse('{"empty.default":"No such nodes"}'),M=JSON.parse('{"empty.default":"\u041d\u0435\u0442 \u0443\u0437\u043b\u043e\u0432"}'),A=(0,f.wZ)("ydb-nodes",{ru:M,en:F});var E=a(75859);const U=(0,w.cn)("ydb-nodes"),I=e=>{var t;let{path:a,database:w,additionalNodesProps:T={}}=e;const[C,f]=(0,d.useQueryParams)({uptimeFilter:d.StringParam,search:d.StringParam}),F=j.U8.parse(C.uptimeFilter),M=null!==(t=C.search)&&void 0!==t?t:"",I=(0,s.zL)(),R=(0,s.ix)(y.qz),[Z]=(0,s.Rj)(),{columnsToShow:k,columnsToSelect:z,setColumns:V}=L({getNodeRef:T.getNodeRef,database:w}),{currentData:G,isLoading:O,error:D}=x.k.useGetNodesQuery({path:a,database:w},{pollingInterval:Z}),[W,q]=o.useState({sortValue:"NodeId",sortOrder:n.zE}),[H,Q]=(0,s.sC)(W,(e=>{q(e)})),$=e=>{f({search:e||void 0},"replaceIn")},_=e=>{I((0,y.M6)(e))},B=e=>{f({uptimeFilter:e},"replaceIn")},J=o.useMemo((()=>(0,P.A)(null===G||void 0===G?void 0:G.Nodes,{searchValue:M,uptimeFilter:F,problemFilter:R})),[G,M,F,R]),X=(null===G||void 0===G?void 0:G.TotalNodes)||0;return(0,c.u)(D)?(0,E.jsx)(u.J,{}):(0,E.jsxs)(N.l,{children:[(0,E.jsx)(N.l.Controls,{children:(0,E.jsxs)(o.Fragment,{children:[(0,E.jsx)(g.o,{onChange:$,placeholder:"Host name",className:U("search"),value:M}),(0,E.jsx)(p.T,{value:R,onChange:_}),(0,E.jsx)(b.X,{value:F,onChange:B}),(0,E.jsx)(i.C,{total:X,current:J.length,label:"Nodes",loading:O}),(0,E.jsx)(l.N,{popupWidth:200,items:z,showStatus:!0,onUpdate:V,sortable:!1})]})}),D?(0,E.jsx)(m.V,{error:D}):null,(0,E.jsx)(N.l.Table,{loading:O,children:G?0!==J.length||R===y.pu.ALL&&F===j.Uu.All?(0,E.jsx)(v.G,{columnsWidthLSKey:S.t5,data:J||[],columns:k,settings:r.LE,sortOrder:H,onSort:Q,emptyDataMessage:A("empty.default"),rowClassName:e=>U("node",{unavailable:(0,j.TA)(e)})}):(0,E.jsx)(h.Q,{name:"thumbsUp",width:"200"}):null})]})};var R=a(11635),Z=a(46925),k=a(27070);const z=(e,t)=>`getNodes|offset${t}|limit${e}`,V=async e=>{const{type:t="any",storage:a=!1,tablets:r=!0,limit:s,offset:o,sortParams:n,filters:l}=e,{sortOrder:d,columnId:i}=null!==n&&void 0!==n?n:{},{path:u,database:c,searchValue:m,problemFilter:h,uptimeFilter:p}=null!==l&&void 0!==l?l:{},v=(0,j.oh)(i)?(0,k.A)(i,d):void 0,g=await window.api.getNodes({type:t,storage:a,tablets:r,limit:s,offset:o,sort:v,path:u,database:c,filter:m,problems_only:(0,j.eV)(h),uptime:(0,j.RW)(p)},{concurrentId:z(s,o),signal:e.signal}),N=(0,Z.n)(g);return{data:N.Nodes||[],found:N.FoundNodes||0,total:N.TotalNodes||0}},G=(0,w.cn)("ydb-nodes"),O=e=>{var t;let{path:a,database:r,parentContainer:n,additionalNodesProps:c}=e;const[v,N]=(0,d.useQueryParams)({uptimeFilter:d.StringParam,search:d.StringParam}),x=j.U8.parse(v.uptimeFilter),P=null!==(t=v.search)&&void 0!==t?t:"",w=(0,s.zL)(),T=(0,s.ix)(y.qz),C=o.useMemo((()=>({path:a,database:r,searchValue:P,problemFilter:T,uptimeFilter:x})),[a,r,P,T,x]),{columnsToShow:f,columnsToSelect:F,setColumns:M}=L({getNodeRef:null===c||void 0===c?void 0:c.getNodeRef,database:r});return(0,E.jsx)(R.WQ,{columnsWidthLSKey:S.t5,parentContainer:n,columns:f,fetchData:V,limit:50,renderControls:e=>{let{totalEntities:t,foundEntities:a,inited:r}=e;return(0,E.jsxs)(o.Fragment,{children:[(0,E.jsx)(g.o,{onChange:e=>{N({search:e||void 0},"replaceIn")},placeholder:"Host name",className:G("search"),value:P}),(0,E.jsx)(p.T,{value:T,onChange:e=>{w((0,y.M6)(e))}}),(0,E.jsx)(b.X,{value:x,onChange:e=>{N({uptimeFilter:e},"replaceIn")}}),(0,E.jsx)(i.C,{total:t,current:a,label:"Nodes",loading:!r}),(0,E.jsx)(l.N,{popupWidth:200,items:F,showStatus:!0,onUpdate:M,sortable:!1})]})},renderErrorMessage:e=>e&&403===e.status?(0,E.jsx)(u.J,{position:"left"}):(0,E.jsx)(m.V,{error:e}),renderEmptyDataMessage:()=>T!==y.pu.ALL||x!==j.Uu.All?(0,E.jsx)(h.Q,{name:"thumbsUp",width:"200"}):A("empty.default"),getRowClassName:e=>G("node",{unavailable:(0,j.TA)(e)}),filters:C,tableName:"nodes"})},D=e=>{let{parentContainer:t,...a}=e;const[o]=(0,s.yu)(r.Qy);return o?(0,E.jsx)(O,{parentContainer:t,...a}):(0,E.jsx)(I,{...a})}},69:(e,t,a)=>{a.d(t,{gM:()=>k,LF:()=>V,sQ:()=>z,Cj:()=>G});var r=a(19812),s=a(99683),o=a(89778),n=a(68242),l=a(67359),d=a(83203),i=a(92398),u=a(54665),c=a(24362),m=a(52317),h=a(83496),p=a(75859);const v=(0,c.cn)("tablets-statistic"),g=e=>{let{tablets:t=[],path:a,nodeId:r,backend:s}=e;const o=(e=>e.map((e=>({label:(0,m.qV)(e.Type),type:e.Type,count:e.Count,state:(0,h.FW)(e.State)}))).sort(((e,t)=>String(e.label).localeCompare(String(t.label)))))(t);return(0,p.jsx)("div",{className:v(),children:o.map(((e,t)=>{var o;const n=(0,u.ax)(u.ZP.node,{id:r,activeTab:i.IA},{tenantName:a,backend:s}),l=`${e.label}: ${e.count}`,c=v("tablet",{state:null===(o=e.state)||void 0===o?void 0:o.toLowerCase()});return s?(0,p.jsx)("a",{href:n,className:c,children:l},t):(0,p.jsx)(d.rU,{to:n,className:c,children:l},t)}))})};var N=a(80816),b=a(46925),x=a(34301),P=a(51688),y=a(54997);const w={name:y.xv.NodeId,header:"#",width:80,render:e=>{let{row:t}=e;return t.NodeId},align:r.ZP.RIGHT,sortable:!1},j=(e,t)=>({name:y.xv.Host,header:y.Pr.Host,render:a=>{let{row:r}=a;return(0,p.jsx)(o.k,{node:r,getNodeRef:e,database:t})},width:350,align:r.ZP.LEFT,sortable:!1}),S=e=>({...j(e),width:void 0}),T={name:y.xv.DC,header:y.Pr.DC,align:r.ZP.LEFT,render:e=>{let{row:t}=e;return t.DC||m.jX},width:60},C={name:y.xv.Rack,header:y.Pr.Rack,align:r.ZP.LEFT,render:e=>{let{row:t}=e;return t.Rack?t.Rack:"\u2014"},width:80},L={name:y.xv.Version,header:y.Pr.Version,width:200,align:r.ZP.LEFT,render:e=>{let{row:t}=e;return(0,p.jsx)(s.l,{content:t.Version,children:t.Version})},sortable:!1},f={name:y.xv.Uptime,header:y.Pr.Uptime,sortAccessor:e=>{let{StartTime:t}=e;return t&&-t},render:e=>{let{row:t}=e;return t.Uptime},align:r.ZP.RIGHT,width:110,sortable:!1},F={name:y.xv.Memory,header:y.Pr.Memory,sortAccessor:e=>{let{MemoryUsed:t=0}=e;return Number(t)},defaultOrder:r.ZP.DESCENDING,render:e=>{let{row:t}=e;return(0,p.jsx)(l.y,{value:t.MemoryUsed,capacity:t.MemoryLimit,formatValues:x.q3,colorizeProgress:!0})},align:r.ZP.RIGHT,width:120},M={name:y.xv.CPU,header:y.Pr.CPU,sortAccessor:e=>{let{PoolStats:t=[]}=e;return Math.max(...t.map((e=>{let{Usage:t}=e;return Number(t)})))},defaultOrder:r.ZP.DESCENDING,render:e=>{let{row:t}=e;return t.PoolStats?(0,p.jsx)(n.m,{pools:t.PoolStats}):"\u2014"},align:r.ZP.LEFT,width:80,resizeMinWidth:60,sortable:!1},A={name:y.xv.LoadAverage,header:y.Pr.LoadAverage,sortAccessor:e=>{let{LoadAveragePercents:t=[]}=e;return t[0]},defaultOrder:r.ZP.DESCENDING,render:e=>{let{row:t}=e;return(0,p.jsx)(l.y,{value:t.LoadAveragePercents&&t.LoadAveragePercents.length>0?t.LoadAveragePercents[0]:void 0,percents:!0,colorizeProgress:!0,capacity:100})},align:r.ZP.LEFT,width:140,resizeMinWidth:140,sortable:!1},E=e=>({name:y.xv.Tablets,header:y.Pr.Tablets,width:500,resizeMinWidth:500,render:t=>{let{row:a}=t;return a.Tablets?(0,p.jsx)(g,{path:null!==e&&void 0!==e?e:a.TenantName,nodeId:a.NodeId,tablets:a.Tablets}):"\u2014"},align:r.ZP.LEFT,sortable:!1}),U={name:y.xv.TopNodesLoadAverage,header:y.Pr.TopNodesLoadAverage,render:e=>{let{row:t}=e;return t.LoadAveragePercents&&t.LoadAveragePercents.length>0?(0,p.jsx)(N.a,{value:t.LoadAveragePercents[0].toFixed(),theme:(0,b.w)(t.LoadAveragePercents[0])}):"\u2014"},align:r.ZP.LEFT,width:80,resizeMinWidth:70,sortable:!1},I={name:y.xv.TopNodesMemory,header:y.Pr.TopNodesMemory,render:e=>{let{row:t}=e;return(0,p.jsx)(l.y,{value:t.MemoryUsed,capacity:t.MemoryLimit,formatValues:x.q3,colorizeProgress:!0})},align:r.ZP.LEFT,width:140,resizeMinWidth:140,sortable:!1},R={name:y.xv.SharedCacheUsage,header:y.Pr.SharedCacheUsage,render:e=>{let{row:t}=e;return(0,p.jsx)(l.y,{value:t.SharedCacheUsed,capacity:t.SharedCacheLimit,formatValues:x.q3,colorizeProgress:!0})},align:r.ZP.LEFT,width:140,resizeMinWidth:140,sortable:!1},Z={name:y.xv.TotalSessions,header:y.Pr.TotalSessions,render:e=>{var t;let{row:a}=e;return null!==(t=a.TotalSessions)&&void 0!==t?t:"\u2014"},align:r.ZP.RIGHT,width:100,sortable:!1};function k(e){let{database:t,getNodeRef:a}=e;return[w,j(a,t),T,C,L,f,F,M,A,E(t)].map((e=>({...e,sortable:(0,P.oh)(e.name)})))}function z(e){return[U,w,S(e),L]}function V(e){return[M,w,S(e)]}function G(e){let{database:t,getNodeRef:a}=e;return[w,j(a,t),f,U,I,R,Z,E(t)]}},3534:(e,t,a)=>{a.d(t,{k:()=>o});var r=a(905),s=a(46925);const o=r.h.injectEndpoints({endpoints:e=>({getNodes:e.query({queryFn:async(e,t)=>{let{signal:a}=t;try{const t=await window.api.getNodes({type:"any",storage:!1,tablets:!0,...e},{signal:a});return{data:(0,s.n)(t)}}catch(r){return{error:r}}},providesTags:["All"]})}),overrideExisting:"throw"})},46925:(e,t,a)=>{a.d(t,{n:()=>o,w:()=>n});var r=a(99106),s=a(51688);const o=e=>{var t;const a=(e.Nodes||[]).map((e=>{var t,a,r,o;const n=Number(null===(t=e.SystemState.SharedCacheStats)||void 0===t?void 0:t.LimitBytes)||void 0;return{...(0,s.Ns)(e.SystemState),Tablets:e.Tablets,NodeId:e.NodeId,TenantName:null===(a=e.SystemState)||void 0===a||null===(r=a.Tenants)||void 0===r?void 0:r[0],SharedCacheUsed:null===(o=e.SystemState.SharedCacheStats)||void 0===o?void 0:o.UsedBytes,SharedCacheLimit:n}}));return{Nodes:a,NodeGroups:null===(t=e.NodeGroups)||void 0===t?void 0:t.map((e=>({name:e.GroupName,count:e.NodeCount}))),TotalNodes:Number(e.TotalNodes)||a.length,FoundNodes:Number(e.FoundNodes)}},n=(0,r.p)(60,80,["success","warning","danger"])}}]); \ No newline at end of file
+"use strict";(self.webpackChunkydb_embedded_ui=self.webpackChunkydb_embedded_ui||[]).push([[9870],{94790:(e,t,a)=>{a.d(t,{f:()=>n});var r=a(68963),s=a(44920),o=a(75859);const n=e=>{let{children:t,content:a,className:n,pinOnClick:l,hasArrow:d=!0,placement:i=["top","bottom"],...u}=e;const[c,m]=r.useState(!1),[h,p]=r.useState(!1),v=r.useRef(null);return(0,o.jsxs)(r.Fragment,{children:[(0,o.jsx)(s.G,{anchorRef:v,open:h||c,placement:i,hasArrow:d,onOutsideClick:()=>{p(!1)},...u,children:a}),(0,o.jsx)("span",{className:n,ref:v,onClick:l?()=>{p(!0)}:void 0,onMouseEnter:()=>{m(!0)},onMouseLeave:()=>{m(!1)},children:t})]})}},36985:(e,t,a)=>{a.d(t,{C:()=>r.C});var r=a(49201)},68242:(e,t,a)=>{a.d(t,{m:()=>u});var r=a(24362),s=a(94790),o=a(27506),n=a(75859);const l=(0,r.cn)("ydb-pool-bar"),d=e=>{let{data:t={}}=e;const{Usage:a=0}=t,r=Math.min(100*a,100),d=(e=>e>=75?"danger":e>=50&&e<75?"warning":"normal")(r);return(0,n.jsx)(s.f,{className:l({type:d}),content:(0,n.jsx)(o.A8,{data:t,className:l("popup-content")}),children:(0,n.jsx)("div",{style:{height:`${r}%`},className:l("value",{type:d})})})},i=(0,r.cn)("ydb-pools-graph"),u=e=>{let{pools:t=[]}=e;return(0,n.jsx)("div",{className:i(),children:t.map(((e,t)=>(0,n.jsx)(d,{data:e},t)))})}},74221:(e,t,a)=>{a.d(t,{T:()=>n});var r=a(79734),s=a(80839),o=a(75859);const n=e=>{let{value:t,onChange:a,className:n}=e;return(0,o.jsxs)(r.E,{value:t,onUpdate:a,className:n,children:[(0,o.jsx)(r.E.Option,{value:s.pu.ALL,children:s.pu.ALL}),(0,o.jsx)(r.E.Option,{value:s.pu.PROBLEMS,children:s.pu.PROBLEMS})]})}},11551:(e,t,a)=>{a.d(t,{o:()=>r.o});var r=a(30629)},9870:(e,t,a)=>{a.d(t,{G:()=>D});var r=a(52317),s=a(17096),o=a(68963),n=a(81413),l=a(48857),d=a(98994),i=a(36985),u=a(28492),c=a(1440),m=a(26688),h=a(56350),p=a(74221),v=a(2098),g=a(11551),N=a(47101),b=a(43989),x=a(3534),P=a(14223),y=a(80839),w=a(24362),j=a(51688),S=a(54997),T=a(57344),C=a(69);function L(e){const t=o.useMemo((()=>(0,C.gM)(e)),[e]);return(0,T.N)(t,S.pM,S.Pr,S.P3,S.nn)}var f=a(30817);const F=JSON.parse('{"empty.default":"No such nodes"}'),M=JSON.parse('{"empty.default":"\u041d\u0435\u0442 \u0443\u0437\u043b\u043e\u0432"}'),A=(0,f.wZ)("ydb-nodes",{ru:M,en:F});var E=a(75859);const U=(0,w.cn)("ydb-nodes"),I=e=>{var t;let{path:a,database:w,additionalNodesProps:T={}}=e;const[C,f]=(0,d.useQueryParams)({uptimeFilter:d.StringParam,search:d.StringParam}),F=j.U8.parse(C.uptimeFilter),M=null!==(t=C.search)&&void 0!==t?t:"",I=(0,s.zL)(),R=(0,s.ix)(y.qz),[Z]=(0,s.Rj)(),{columnsToShow:k,columnsToSelect:z,setColumns:V}=L({getNodeRef:T.getNodeRef,database:w}),{currentData:G,isLoading:O,error:D}=x.k.useGetNodesQuery({path:a,database:w},{pollingInterval:Z}),[W,q]=o.useState({sortValue:"NodeId",sortOrder:n.zE}),[H,Q]=(0,s.sC)(W,(e=>{q(e)})),$=e=>{f({search:e||void 0},"replaceIn")},_=e=>{I((0,y.M6)(e))},B=e=>{f({uptimeFilter:e},"replaceIn")},J=o.useMemo((()=>(0,P.A)(null===G||void 0===G?void 0:G.Nodes,{searchValue:M,uptimeFilter:F,problemFilter:R})),[G,M,F,R]),X=(null===G||void 0===G?void 0:G.TotalNodes)||0;return(0,c.u)(D)?(0,E.jsx)(u.J,{}):(0,E.jsxs)(N.l,{children:[(0,E.jsx)(N.l.Controls,{children:(0,E.jsxs)(o.Fragment,{children:[(0,E.jsx)(g.o,{onChange:$,placeholder:"Host name",className:U("search"),value:M}),(0,E.jsx)(p.T,{value:R,onChange:_}),(0,E.jsx)(b.X,{value:F,onChange:B}),(0,E.jsx)(i.C,{total:X,current:J.length,label:"Nodes",loading:O}),(0,E.jsx)(l.N,{popupWidth:200,items:z,showStatus:!0,onUpdate:V,sortable:!1})]})}),D?(0,E.jsx)(m.V,{error:D}):null,(0,E.jsx)(N.l.Table,{loading:O,children:G?0!==J.length||R===y.pu.ALL&&F===j.Uu.All?(0,E.jsx)(v.G,{columnsWidthLSKey:S.t5,data:J||[],columns:k,settings:r.LE,sortOrder:H,onSort:Q,emptyDataMessage:A("empty.default"),rowClassName:e=>U("node",{unavailable:(0,j.TA)(e)})}):(0,E.jsx)(h.Q,{name:"thumbsUp",width:"200"}):null})]})};var R=a(11635),Z=a(46925),k=a(27070);const z=(e,t)=>`getNodes|offset${t}|limit${e}`,V=async e=>{const{type:t="any",storage:a=!1,tablets:r=!0,limit:s,offset:o,sortParams:n,filters:l}=e,{sortOrder:d,columnId:i}=null!==n&&void 0!==n?n:{},{path:u,database:c,searchValue:m,problemFilter:h,uptimeFilter:p}=null!==l&&void 0!==l?l:{},v=(0,j.oh)(i)?(0,k.A)(i,d):void 0,g=await window.api.getNodes({type:t,storage:a,tablets:r,limit:s,offset:o,sort:v,path:u,database:c,filter:m,problems_only:(0,j.eV)(h),uptime:(0,j.RW)(p)},{concurrentId:z(s,o),signal:e.signal}),N=(0,Z.n)(g);return{data:N.Nodes||[],found:N.FoundNodes||0,total:N.TotalNodes||0}},G=(0,w.cn)("ydb-nodes"),O=e=>{var t;let{path:a,database:r,parentContainer:n,additionalNodesProps:c}=e;const[v,N]=(0,d.useQueryParams)({uptimeFilter:d.StringParam,search:d.StringParam}),x=j.U8.parse(v.uptimeFilter),P=null!==(t=v.search)&&void 0!==t?t:"",w=(0,s.zL)(),T=(0,s.ix)(y.qz),C=o.useMemo((()=>({path:a,database:r,searchValue:P,problemFilter:T,uptimeFilter:x})),[a,r,P,T,x]),{columnsToShow:f,columnsToSelect:F,setColumns:M}=L({getNodeRef:null===c||void 0===c?void 0:c.getNodeRef,database:r});return(0,E.jsx)(R.WQ,{columnsWidthLSKey:S.t5,parentContainer:n,columns:f,fetchData:V,limit:50,renderControls:e=>{let{totalEntities:t,foundEntities:a,inited:r}=e;return(0,E.jsxs)(o.Fragment,{children:[(0,E.jsx)(g.o,{onChange:e=>{N({search:e||void 0},"replaceIn")},placeholder:"Host name",className:G("search"),value:P}),(0,E.jsx)(p.T,{value:T,onChange:e=>{w((0,y.M6)(e))}}),(0,E.jsx)(b.X,{value:x,onChange:e=>{N({uptimeFilter:e},"replaceIn")}}),(0,E.jsx)(i.C,{total:t,current:a,label:"Nodes",loading:!r}),(0,E.jsx)(l.N,{popupWidth:200,items:F,showStatus:!0,onUpdate:M,sortable:!1})]})},renderErrorMessage:e=>e&&403===e.status?(0,E.jsx)(u.J,{position:"left"}):(0,E.jsx)(m.V,{error:e}),renderEmptyDataMessage:()=>T!==y.pu.ALL||x!==j.Uu.All?(0,E.jsx)(h.Q,{name:"thumbsUp",width:"200"}):A("empty.default"),getRowClassName:e=>G("node",{unavailable:(0,j.TA)(e)}),filters:C,tableName:"nodes"})},D=e=>{let{parentContainer:t,...a}=e;const[o]=(0,s.yu)(r.Qy);return o?(0,E.jsx)(O,{parentContainer:t,...a}):(0,E.jsx)(I,{...a})}},69:(e,t,a)=>{a.d(t,{gM:()=>z,LF:()=>G,sQ:()=>V,Cj:()=>O});var r=a(19812),s=a(99683),o=a(89778),n=a(68242),l=a(67359),d=a(83203),i=a(92398),u=a(54665),c=a(24362),m=a(52317),h=a(83496),p=a(75859);const v=(0,c.cn)("tablets-statistic"),g=e=>{let{tablets:t=[],path:a,nodeId:r,backend:s}=e;const o=(e=>e.map((e=>({label:(0,m.qV)(e.Type),type:e.Type,count:e.Count,state:(0,h.FW)(e.State)}))).sort(((e,t)=>String(e.label).localeCompare(String(t.label)))))(t);return(0,p.jsx)("div",{className:v(),children:o.map(((e,t)=>{var o;const n=(0,u.ax)(u.ZP.node,{id:r,activeTab:i.IA},{tenantName:a,backend:s}),l=`${e.label}: ${e.count}`,c=v("tablet",{state:null===(o=e.state)||void 0===o?void 0:o.toLowerCase()});return s?(0,p.jsx)("a",{href:n,className:c,children:l},t):(0,p.jsx)(d.rU,{to:n,className:c,children:l},t)}))})};var N=a(80816),b=a(46925),x=a(34301),P=a(51688),y=a(54997);const w={name:y.xv.NodeId,header:"#",width:80,render:e=>{let{row:t}=e;return t.NodeId},align:r.ZP.RIGHT,sortable:!1},j=(e,t)=>({name:y.xv.Host,header:y.Pr.Host,render:a=>{let{row:r}=a;return(0,p.jsx)(o.k,{node:r,getNodeRef:e,database:t})},width:350,align:r.ZP.LEFT,sortable:!1}),S={name:y.xv.NodeName,header:y.Pr.NodeName,align:r.ZP.LEFT,render:e=>{let{row:t}=e;return t.NodeName||m.jX},width:200},T=e=>({...j(e),width:void 0}),C={name:y.xv.DC,header:y.Pr.DC,align:r.ZP.LEFT,render:e=>{let{row:t}=e;return t.DC||m.jX},width:60},L={name:y.xv.Rack,header:y.Pr.Rack,align:r.ZP.LEFT,render:e=>{let{row:t}=e;return t.Rack?t.Rack:"\u2014"},width:80},f={name:y.xv.Version,header:y.Pr.Version,width:200,align:r.ZP.LEFT,render:e=>{let{row:t}=e;return(0,p.jsx)(s.l,{content:t.Version,children:t.Version})},sortable:!1},F={name:y.xv.Uptime,header:y.Pr.Uptime,sortAccessor:e=>{let{StartTime:t}=e;return t&&-t},render:e=>{let{row:t}=e;return t.Uptime},align:r.ZP.RIGHT,width:110,sortable:!1},M={name:y.xv.Memory,header:y.Pr.Memory,sortAccessor:e=>{let{MemoryUsed:t=0}=e;return Number(t)},defaultOrder:r.ZP.DESCENDING,render:e=>{let{row:t}=e;return(0,p.jsx)(l.y,{value:t.MemoryUsed,capacity:t.MemoryLimit,formatValues:x.q3,colorizeProgress:!0})},align:r.ZP.RIGHT,width:120},A={name:y.xv.CPU,header:y.Pr.CPU,sortAccessor:e=>{let{PoolStats:t=[]}=e;return Math.max(...t.map((e=>{let{Usage:t}=e;return Number(t)})))},defaultOrder:r.ZP.DESCENDING,render:e=>{let{row:t}=e;return t.PoolStats?(0,p.jsx)(n.m,{pools:t.PoolStats}):"\u2014"},align:r.ZP.LEFT,width:80,resizeMinWidth:60,sortable:!1},E={name:y.xv.LoadAverage,header:y.Pr.LoadAverage,sortAccessor:e=>{let{LoadAveragePercents:t=[]}=e;return t[0]},defaultOrder:r.ZP.DESCENDING,render:e=>{let{row:t}=e;return(0,p.jsx)(l.y,{value:t.LoadAveragePercents&&t.LoadAveragePercents.length>0?t.LoadAveragePercents[0]:void 0,percents:!0,colorizeProgress:!0,capacity:100})},align:r.ZP.LEFT,width:140,resizeMinWidth:140,sortable:!1},U=e=>({name:y.xv.Tablets,header:y.Pr.Tablets,width:500,resizeMinWidth:500,render:t=>{let{row:a}=t;return a.Tablets?(0,p.jsx)(g,{path:null!==e&&void 0!==e?e:a.TenantName,nodeId:a.NodeId,tablets:a.Tablets}):"\u2014"},align:r.ZP.LEFT,sortable:!1}),I={name:y.xv.TopNodesLoadAverage,header:y.Pr.TopNodesLoadAverage,render:e=>{let{row:t}=e;return t.LoadAveragePercents&&t.LoadAveragePercents.length>0?(0,p.jsx)(N.a,{value:t.LoadAveragePercents[0].toFixed(),theme:(0,b.w)(t.LoadAveragePercents[0])}):"\u2014"},align:r.ZP.LEFT,width:80,resizeMinWidth:70,sortable:!1},R={name:y.xv.TopNodesMemory,header:y.Pr.TopNodesMemory,render:e=>{let{row:t}=e;return(0,p.jsx)(l.y,{value:t.MemoryUsed,capacity:t.MemoryLimit,formatValues:x.q3,colorizeProgress:!0})},align:r.ZP.LEFT,width:140,resizeMinWidth:140,sortable:!1},Z={name:y.xv.SharedCacheUsage,header:y.Pr.SharedCacheUsage,render:e=>{let{row:t}=e;return(0,p.jsx)(l.y,{value:t.SharedCacheUsed,capacity:t.SharedCacheLimit,formatValues:x.q3,colorizeProgress:!0})},align:r.ZP.LEFT,width:140,resizeMinWidth:140,sortable:!1},k={name:y.xv.TotalSessions,header:y.Pr.TotalSessions,render:e=>{var t;let{row:a}=e;return null!==(t=a.TotalSessions)&&void 0!==t?t:"\u2014"},align:r.ZP.RIGHT,width:100,sortable:!1};function z(e){let{database:t,getNodeRef:a}=e;return[w,j(a,t),S,C,L,f,F,M,A,E,U(t)].map((e=>({...e,sortable:(0,P.oh)(e.name)})))}function V(e){return[I,w,T(e),f]}function G(e){return[A,w,T(e)]}function O(e){let{database:t,getNodeRef:a}=e;return[w,j(a,t),F,I,R,Z,k,U(t)]}},3534:(e,t,a)=>{a.d(t,{k:()=>o});var r=a(905),s=a(46925);const o=r.h.injectEndpoints({endpoints:e=>({getNodes:e.query({queryFn:async(e,t)=>{let{signal:a}=t;try{const t=await window.api.getNodes({type:"any",storage:!1,tablets:!0,...e},{signal:a});return{data:(0,s.n)(t)}}catch(r){return{error:r}}},providesTags:["All"]})}),overrideExisting:"throw"})},46925:(e,t,a)=>{a.d(t,{n:()=>o,w:()=>n});var r=a(99106),s=a(51688);const o=e=>{var t;const a=(e.Nodes||[]).map((e=>{var t,a,r,o;const n=Number(null===(t=e.SystemState.SharedCacheStats)||void 0===t?void 0:t.LimitBytes)||void 0;return{...(0,s.Ns)(e.SystemState),Tablets:e.Tablets,NodeId:e.NodeId,TenantName:null===(a=e.SystemState)||void 0===a||null===(r=a.Tenants)||void 0===r?void 0:r[0],SharedCacheUsed:null===(o=e.SystemState.SharedCacheStats)||void 0===o?void 0:o.UsedBytes,SharedCacheLimit:n}}));return{Nodes:a,NodeGroups:null===(t=e.NodeGroups)||void 0===t?void 0:t.map((e=>({name:e.GroupName,count:e.NodeCount}))),TotalNodes:Number(e.TotalNodes)||a.length,FoundNodes:Number(e.FoundNodes)}},n=(0,r.p)(60,80,["success","warning","danger"])}}]); \ No newline at end of file
diff --git a/ydb/core/viewer/monitoring/static/js/main.5702199d.js b/ydb/core/viewer/monitoring/static/js/main.5702199d.js
new file mode 100644
index 0000000000..3e9651c3d6
--- /dev/null
+++ b/ydb/core/viewer/monitoring/static/js/main.5702199d.js
@@ -0,0 +1,2 @@
+/*! For license information please see main.5702199d.js.LICENSE.txt */
+(()=>{var e={40726:(e,t,n)=>{"use strict";n.d(t,{C:()=>s,t:()=>a});var r=n(68963),o=n(75859);const i=r.createContext(void 0);function a(e){let{children:t,registry:n}=e;return(0,o.jsx)(i.Provider,{value:n,children:t})}function s(e){const t=r.useContext(i);if(void 0===t)throw new Error("useComponent must be used within ComponentsProvider");return t.get(e)}},79023:(e,t,n)=>{"use strict";n.d(t,{u:()=>_,$:()=>x});var r,o,i,a,s,l,c,u,d,f,p,h=n(88776),m=n(24362),g=n(68963);function v(){return v=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},v.apply(this,arguments)}const y=function(e){return g.createElement("svg",v({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 383 396",fill:"none"},e),r||(r=g.createElement("path",{d:"M307.333 168.43c9.4-14.2 14.1-32.6 14.1-55.3 0-34.4-11.7-61.9-35.3-82.2-23.4-20.5-63-30.7-106.7-30.7-13.1 0-24.1.9-34.8 2.7-10.7 1.8-20.1 3.9-28.2 6.3-5.4 1.6-16.1 5.7-23.3 8.6-4.1 1.7-6.9 6-6.9 10.8v39.5c0 8.2 7.8 13.8 14.9 10.5a458.74 458.74 0 001.806-.818c2.367-1.074 4.452-2.02 5.894-2.581 5.7-2.3 12.4-4.2 20.1-5.8 7.7-1.6 16.3-2.4 25.7-2.4 22.2 0 43.1 5 52.3 14.9 9.2 10 13.8 22.499 13.8 37.499 0 13-2.7 24.1-8.2 33.2-5.5 9.1-13.1 18-22.9 26.5-7.9 6.9-15.2 13.5-22 19.8-6.8 6.3-12.6 13.2-17.5 20.7s-8.7 16-11.3 25.3c-1.6 5.6-2.7 20.3-3.3 31-.3 6.6 4.5 12.2 10.7 12.2h51.2c5.4 0 10-4.4 10.6-10.2.6-5.7 2-12.5 5.5-17.8 4-5.9 8.7-11.8 14.7-17.3s13-11 20.9-16.7c8-5.6 16.2-12.1 24.9-19.4 12.8-11.4 23.9-24.1 33.3-38.3zm-167.6 212.7c9 9.5 20.1 14.2 33.4 14.2 6.3 0 12.4-1.3 18.2-4 5.8-2.6 10.9-6 15.2-10.3 4.3-4.3 7.7-9.4 10.2-15.2 2.5-5.8 3.7-12.1 3.7-19 0-6.8-1.2-13.2-3.7-19-2.5-5.8-5.9-10.9-10.2-15.4-4.3-4.5-9.4-7.9-15.2-10.3-5.8-2.4-11.9-3.6-18.2-3.6-13.3 0-24.4 4.6-33.4 13.9s-13.5 20.8-13.5 34.5c0 13.4 4.5 24.8 13.5 34.2z",fill:"#ECF2F9"})),o||(o=g.createElement("path",{d:"M213.933 353.03h-193.5c-10 0-18.2-8.2-18.2-18.2v-125.4c0-10 8.2-18.2 18.2-18.2h193.5c10 0 18.2 8.2 18.2 18.2v125.4c0 10.1-8.2 18.2-18.2 18.2z",stroke:"#00E6C5",strokeWidth:4,strokeLinecap:"round",strokeLinejoin:"round",strokeDasharray:"4 10"})),i||(i=g.createElement("path",{d:"M21.034 214.732a5.2 5.2 0 100-10.4 5.2 5.2 0 000 10.4zm16.899 0a5.2 5.2 0 100-10.4 5.2 5.2 0 000 10.4zm16.9 0a5.2 5.2 0 100-10.4 5.2 5.2 0 000 10.4z",fill:"#2EE5C0"})),a||(a=g.createElement("path",{d:"M2.533 228.129h228.9",stroke:"#00E6C5",strokeWidth:4,strokeLinecap:"round",strokeLinejoin:"round",strokeDasharray:"4 10"})),s||(s=g.createElement("path",{d:"M301.033 264.83l-216.9 12c-7.3.4-13.3-5.2-13.3-12.5V96.93c0-7.3 6-12.9 13.3-12.5l216.9 12c5.6.3 10.1 5.7 10.1 12v144.4c0 6.3-4.5 11.7-10.1 12z",fill:"#027BF3"})),l||(l=g.createElement("path",{d:"M90.433 107.93c3.4.2 6.1-2.4 6.1-5.8s-2.7-6.3-6.1-6.4c-3.3-.2-6.1 2.4-6.1 5.8s2.7 6.3 6.1 6.4zm19.8.798c3.3.1 6-2.5 6-5.8s-2.7-6.1-6-6.3c-3.3-.1-6 2.5-6 5.8s2.7 6.2 6 6.3zm25.2-4.9c0 3.3-2.6 5.9-5.8 5.7-3.2-.1-5.9-2.9-5.9-6.2 0-3.3 2.6-5.9 5.9-5.7 3.2.1 5.8 2.9 5.8 6.2zm66.001 61.703l19.1-20.9 17.4 19.1-18.9 20.9 18.9 20.5-17.4 19.5-19.1-20.5-19.4 21.5-18.1-19.1 19.6-21.5-19.6-21 18.1-19.5 19.4 21z",fill:"#fff"})),c||(c=g.createElement("path",{d:"M327.433 112.83c0-28.4-21.7-37.1-33.5-37.9-.1 0-33.5 2.3-33.5 45.3 0 25.5 21.2 45.5 46 44.6 7.8-.3 14.9-2.6 21-6.4v-45.6z",fill:"#67B0F8"})),u||(u=g.createElement("path",{d:"M380.534 195.931c-2.9 3.4-7.6 3.7-10.5.8l-38.6-39 11.3-12.2 37.8 39c2.9 3 2.9 8 0 11.4z",fill:"#FF4645"})),d||(d=g.createElement("path",{d:"M342.833 145.629l-11.3 12.2 3.7 3.7c1.9 1.9 4.9 2 6.8.2 1.1-1 2.2-2.1 3.2-3.2.6-.7 1.3-1.4 1.9-2.1 1.6-1.9 1.5-4.8-.3-6.6l-4-4.2z",fill:"#D93654"})),f||(f=g.createElement("path",{d:"M267.633 154.13c-23-21.401-23-57.3 0-78.1 21.9-19.8 55.1-17 74.4 4.3 18.4 20.399 18.4 51.7 0 71.6-19.3 20.8-52.5 22.6-74.4 2.2zm9.4-10.802c15.6 15 39.8 14.2 54.1-.9 13.8-14.6 13.8-37.8 0-52.8-14.3-15.5-38.5-17-54.1-2.5-16.2 15.1-16.2 40.7 0 56.2z",fill:"#00236B"})),p||(p=g.createElement("path",{d:"M41.034 42.73a2 2 0 10-4 0h4zm-4 8.3a2 2 0 004 0h-4zm4 17.2a2 2 0 10-4 0h4zm-4 8.9a2 2 0 004 0h-4zm19.2-15.2a2 2 0 000-4v4zm-8.2-4a2 2 0 100 4v-4zm-17.9 4a2 2 0 000-4v4zm-8.2-4a2 2 0 100 4v-4zm15.1-15.2v8.3h4v-8.3h-4zm0 25.5v8.9h4v-8.9h-4zm19.2-10.3h-8.2v4h8.2v-4zm-26.1 0h-8.2v4h8.2v-4z",fill:"#2EE5C0"})))};var b=n(75859);const w=(0,m.cn)("empty-state"),E={s:150,m:250,l:350},_=e=>{let{image:t,title:n,description:r,actions:o,size:i="m",position:a="center"}=e;return(0,b.jsx)("div",{className:w({size:i}),children:(0,b.jsxs)("div",{className:w("wrapper",{size:i,position:a}),children:[(0,b.jsx)("div",{className:w("image"),children:t||(0,b.jsx)(h.J,{data:y,width:E[i],height:E[i]})}),(0,b.jsx)("div",{className:w("title",{size:i}),children:n}),(0,b.jsx)("div",{className:w("description"),children:r}),(0,b.jsx)("div",{className:w("actions"),children:o})]})})};function x(e){let{isEmpty:t,children:n,className:r,...o}=e;return t?(0,b.jsx)("div",{className:r,children:(0,b.jsx)(_,{...o})}):n}},27710:(e,t,n)=>{"use strict";n.d(t,{SV:()=>M,l2:()=>z,TI:()=>L});var r=n(68963),o=n(70292),i=n(89646);const a=r.createContext(void 0),s=r.createContext(void 0);function l(e){const{size:t,disabled:n,defaultExpanded:o,arrowPosition:l,summary:c,keepMounted:u,onUpdate:d,expanded:f}=e,[p,h]=r.useState((()=>Boolean(o))),m=void 0!==f,g=(0,i.u)(),v=`disclosure${g}`;return r.createElement(a.Provider,{value:{size:t,disabled:n,summary:c,arrowPosition:l,keepMounted:u,expanded:m?f:p,ariaControls:g,ariaLabelledby:v}},r.createElement(s.Provider,{value:()=>{h((e=>!e));d(m?!f:!p)}},e.children))}function c(){const e=r.useContext(a);if(void 0===e)throw new Error("useDisclosureAttributes must be used within DisclosureProvider");return e}var u=n(62685),d=n(31445);const f=(0,n(36951).Ge)("disclosure"),p={SUMMARY:"disclosure-summary",DETAILS:"disclosure-details"};function h(e){let{children:t}=e;const n=r.useRef(null),{ariaControls:o,ariaLabelledby:i,keepMounted:a,expanded:s}=c();return r.createElement(u.Z,{nodeRef:n,in:s,addEndListener:e=>{var t;return null===(t=n.current)||void 0===t?void 0:t.addEventListener("animationend",e)},classNames:(0,d.Y)(f),mountOnEnter:!a,unmountOnExit:!a,appear:!0},r.createElement("div",{ref:n,id:o,role:"region","aria-labelledby":i,className:f("content",{visible:s}),"data-qa":p.DETAILS},t))}h.displayName="DisclosureDetails";var m=n(33569),g=n(12913);const v={m:14,l:16,xl:20};function y(){(0,g.O)('[Disclosure] Physical values (left, right) of "arrowPosition" property are deprecated. Use logical values (start, end) instead.')}function b(e){let{children:t}=e;const n=function(){const e=r.useContext(s);if(void 0===e)throw new Error("useToggleDisclosure must be used within DisclosureProvider");return e}(),{ariaControls:o,ariaLabelledby:i,expanded:a,disabled:l}=c(),u={onClick:n,ariaControls:o,id:i,expanded:a,disabled:l};return t(u,r.createElement(w,Object.assign({},u)))}function w(e){let{onClick:t,ariaControls:n,id:o,expanded:i,disabled:a}=e;const{size:s,summary:l,arrowPosition:u}=c();let d=u;return"left"===d&&(y(),d="start"),"right"===d&&(y(),d="end"),r.createElement("button",{type:"button","aria-expanded":i,className:f("trigger",{disabled:a,arrow:d}),"aria-controls":n,id:o,onClick:t,disabled:a,"data-qa":p.SUMMARY},r.createElement(m.F,{size:v[s],direction:i?"top":"bottom"}),l)}b.displayName="DisclosureSummary";const E=(0,o.s)(b),_=r.forwardRef((function(e,t){const{size:n="m",disabled:o=!1,defaultExpanded:i=!1,arrowPosition:a="start",summary:s="",className:c,keepMounted:u=!0,children:d,onUpdate:p=(()=>{}),expanded:m,qa:g}=e,[v,y]=function(e){const t=r.Children.toArray(e);let n,o;const i=[];for(const r of t){if(E(r)){if(n)throw new Error("Only one <Disclosure.Summary> component is allowed");n=r}else i.push(r)}i.length>0&&(o=r.createElement(h,null,i));n||(n=r.createElement(b,null,(e=>r.createElement(w,Object.assign({},e)))));return[n,o]}(d);return r.createElement(l,{disabled:o,defaultExpanded:i,expanded:m,keepMounted:u,size:n,summary:s,arrowPosition:a,onUpdate:p},r.createElement("section",{ref:t,className:f({size:n},c),"data-qa":g},v,y))}));_.Summary=b,_.displayName="Disclosure";var x=n(17176);const S=(0,r.createContext)(null),C={didCatch:!1,error:null};class k extends r.Component{constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=C}static getDerivedStateFromError(e){return{didCatch:!0,error:e}}resetErrorBoundary(){const{error:e}=this.state;if(null!==e){for(var t,n,r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];null===(t=(n=this.props).onReset)||void 0===t||t.call(n,{args:o,reason:"imperative-api"}),this.setState(C)}}componentDidCatch(e,t){var n,r;null===(n=(r=this.props).onError)||void 0===n||n.call(r,e,t)}componentDidUpdate(e,t){const{didCatch:n}=this.state,{resetKeys:r}=this.props;var o,i;n&&null!==t.error&&function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e.length!==t.length||e.some(((e,n)=>!Object.is(e,t[n])))}(e.resetKeys,r)&&(null===(o=(i=this.props).onReset)||void 0===o||o.call(i,{next:r,prev:e.resetKeys,reason:"keys"}),this.setState(C))}render(){const{children:e,fallbackRender:t,FallbackComponent:n,fallback:o}=this.props,{didCatch:i,error:a}=this.state;let s=e;if(i){const e={error:a,resetErrorBoundary:this.resetErrorBoundary};if("function"===typeof t)s=t(e);else if(n)s=(0,r.createElement)(n,e);else{if(null!==o&&!(0,r.isValidElement)(o))throw a;s=o}}return(0,r.createElement)(S.Provider,{value:{didCatch:i,error:a,resetErrorBoundary:this.resetErrorBoundary}},s)}}var O=n(24362);var T=n(40726),N=n(56350),I=n(30817);const P=JSON.parse('{"error-title":"Something went wrong","error-description":"We have something broken, but don\'t worry, it won\'t last long","show-details":"Show details","report-problem":"Report a problem","button-reset":"Try again"}'),R=JSON.parse('{"error-title":"\u0427\u0442\u043e-\u0442\u043e \u043f\u043e\u0448\u043b\u043e \u043d\u0435 \u0442\u0430\u043a","error-description":"\u0423 \u043d\u0430\u0441 \u0447\u0442\u043e-\u0442\u043e \u0441\u043b\u043e\u043c\u0430\u043b\u043e\u0441\u044c, \u043d\u043e \u043d\u0435 \u043f\u0435\u0440\u0435\u0436\u0438\u0432\u0430\u0439\u0442\u0435, \u044d\u0442\u043e \u043d\u0435\u043d\u0430\u0434\u043e\u043b\u0433\u043e","show-details":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0434\u0435\u0442\u0430\u043b\u0438","report-problem":"\u0421\u043e\u043e\u0431\u0449\u0438\u0442\u044c \u043e \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0435","button-reset":"\u041f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u0441\u043d\u043e\u0432\u0430"}'),D=(0,I.wZ)("ydb-error-boundary",{ru:R,en:P});var A=n(75859);const j=(0,O.cn)("ydb-error-boundary");function M(e){let{children:t}=e;const n=(0,T.C)("ErrorBoundary");return(0,A.jsx)(n,{children:t})}function L(e){let{children:t,useRetry:n=!0,onReportProblem:r}=e;return(0,A.jsx)(k,{onError:(e,t)=>{var n;!function(e,t){var n;let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"error";"undefined"!==typeof window&&null!==(n=window.Ya)&&void 0!==n&&n.Rum?window.Ya.Rum.logError({additional:{url:window.location.href},type:r,message:t,level:window.Ya.Rum.ERROR_LEVEL.ERROR},e):console.error(e)}(e,null!==(n=t.componentStack)&&void 0!==n?n:void 0,"error-boundary")},fallbackRender:e=>{let{error:t,resetErrorBoundary:o}=e;return(0,A.jsx)(z,{error:t,useRetry:n,resetErrorBoundary:o,onReportProblem:r})},children:t})}function z(e){let{error:t,resetErrorBoundary:n,useRetry:r,onReportProblem:o}=e;return(0,A.jsxs)("div",{className:j(),children:[(0,A.jsx)(N.Q,{name:"error",className:j("illustration")}),(0,A.jsxs)("div",{className:j("content"),children:[(0,A.jsx)("h2",{className:j("error-title"),children:D("error-title")}),(0,A.jsx)("div",{className:j("error-description"),children:D("error-description")}),(0,A.jsx)(_,{summary:D("show-details"),className:j("show-details"),size:"m",children:(0,A.jsx)("pre",{className:j("error-details"),children:t.stack})}),(0,A.jsxs)("div",{className:j("actions"),children:[r&&(0,A.jsx)(x.z,{view:"outlined",onClick:n,children:D("button-reset")}),o&&(0,A.jsx)(x.z,{view:"outlined",onClick:()=>o(t),children:D("report-problem")})]})]})]})}},28492:(e,t,n)=>{"use strict";n.d(t,{J:()=>s});var r=n(79023),o=n(56350),i=n(68746),a=n(75859);const s=e=>{let{title:t,description:n,...s}=e;return(0,a.jsx)(r.u,{image:(0,a.jsx)(o.Q,{name:"403"}),title:t||(0,i.Z)("403.title"),description:n||(0,i.Z)("403.description"),...s})}},1440:(e,t,n)=>{"use strict";n.d(t,{S:()=>u,u:()=>d});var r=n(68963),o=n(79023),i=n(56350),a=n(28492),s=n(26688),l=n(68746),c=n(75859);function u(e){let{title:t,description:n,error:u,children:f,...p}=e;return d(u)?(0,c.jsx)(a.J,{title:t,description:n,...p}):u||n?(0,c.jsx)(o.u,{image:(0,c.jsx)(i.Q,{name:"error"}),title:t||(0,l.Z)("error.title"),description:u?(0,c.jsx)(s.V,{error:u}):n,...p}):(0,c.jsx)(r.Fragment,{children:f})}function d(e){return Boolean(e&&"object"===typeof e&&"status"in e&&(403===e.status||401===e.status))}},8747:(e,t,n)=>{"use strict";n.d(t,{V:()=>i});var r=n(68746),o=n(75859);const i=e=>{let{error:t,className:n,defaultMessage:i=(0,r.Z)("responseError.defaultMessage")}=e,a="";return t&&"string"===typeof t&&(a=t),t&&"object"===typeof t&&("data"in t&&"string"===typeof t.data?a=t.data:"statusText"in t&&"string"===typeof t.statusText?a=t.statusText:"message"in t&&"string"===typeof t.message&&(a=t.message)),(0,o.jsx)("div",{className:`error ${n}`,children:a||i})}},26688:(e,t,n)=>{"use strict";n.d(t,{V:()=>r.V});var r=n(8747)},68746:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(30817);const o=JSON.parse('{"403.title":"Access denied","403.description":"You don\u2019t have the necessary roles to view this page.","responseError.defaultMessage":"Response error","error.title":"Error"}'),i=JSON.parse('{"403.title":"\u0414\u043e\u0441\u0442\u0443\u043f \u0437\u0430\u043f\u0440\u0435\u0449\u0435\u043d","403.description":"\u0423 \u0432\u0430\u0441 \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043f\u0440\u0430\u0432 \u0434\u043b\u044f \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0430 \u0434\u0430\u043d\u043d\u043e\u0439 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b.","responseError.defaultMessage":"\u041e\u0448\u0438\u0431\u043a\u0430 \u0437\u0430\u043f\u0440\u043e\u0441\u0430","error.title":"\u041e\u0448\u0438\u0431\u043a\u0430"}'),a=(0,r.wZ)("ydb-errors-access-denied",{ru:i,en:o})},56350:(e,t,n)=>{"use strict";n.d(t,{Q:()=>c});var r=n(68963),o=n(64270),i=n(24362),a=n(75859);const s={light:{403:()=>n.e(3457).then(n.bind(n,73457)),thumbsUp:()=>n.e(6876).then(n.bind(n,36876)),error:()=>n.e(2435).then(n.bind(n,32435))},dark:{403:()=>n.e(7409).then(n.bind(n,77409)),thumbsUp:()=>n.e(8622).then(n.bind(n,28622)),error:()=>n.e(598).then(n.bind(n,40598))}},l=(0,i.cn)("kv-illustration"),c=e=>{let{name:t,className:n,...i}=e;const c=(0,o.C)(),[u,d]=r.useState(""),f=s[c]&&s[c][t];return r.useEffect((()=>{"function"===typeof f&&f().then((e=>d(e.default))).catch((e=>{console.error(e),d("")}))}),[f]),u?(0,a.jsx)("img",{alt:t,src:u,className:l(null,n),...i}):null}},23373:(e,t,n)=>{"use strict";n.d(t,{_:()=>l});var r=n(68963),o=n(24362),i=n(31954),a=n(75859);const s=(0,o.cn)("info-viewer"),l=e=>{let{title:t,info:n,dots:o=!0,size:l,className:c,multilineLabels:u,renderEmptyState:d}=e;return n&&n.length||!d?(0,a.jsxs)("div",{className:s({size:l},c),children:[t&&(0,a.jsx)("div",{className:s("title"),children:t}),n&&n.length>0?(0,a.jsx)("div",{className:s("items"),children:n.map(((e,t)=>(0,a.jsxs)("div",{className:s("row"),children:[(0,a.jsxs)("div",{className:s("label"),children:[(0,a.jsx)("div",{className:s("label-text",{multiline:u}),children:e.label}),o&&(0,a.jsx)("div",{className:s("dots")})]}),(0,a.jsx)("div",{className:s("value"),children:e.value})]},t)))}):(0,i.Z)("no-data")]}):(0,a.jsx)(r.Fragment,{children:d({title:t,size:l})})}},31954:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(30817);const o=JSON.parse('{"common.created":"Created","common.type":"Type","no-data":"No data"}'),i=(0,r.wZ)("ydb-components-info-viewer",{en:o})},62206:(e,t,n)=>{"use strict";n.d(t,{Z6:()=>o.Z,_P:()=>r._,aE:()=>o.a});var r=n(23373),o=n(93849)},93849:(e,t,n)=>{"use strict";function r(e,t){var n;return null!==(n=t[e])&&void 0!==n?n:e}function o(e,t,n,r){const o=n[e]||r;return o?o(t):t}function i(e){let{values:t,labels:n,defaultValueFormatter:i}=e;return(e,a)=>({label:r(e,n||{}),value:o(e,a,t||{},i)})}n.d(t,{Z:()=>a,a:()=>i});const a=(e,t)=>t?Object.entries(t).map((t=>{let[n,r]=t;return e(n,r)})).filter((e=>{let{value:t}=e;return Boolean(t)})):[]},68036:(e,t,n)=>{"use strict";n.d(t,{h:()=>s});var r=n(83203),o=n(24362),i=n(75859);const a=(0,o.cn)("g-link"),s=e=>{let{className:t,to:n,onClick:o,...s}=e;return n?(0,i.jsx)(r.rU,{to:n,onClick:o,className:a({view:"normal"},t),...s}):(0,i.jsx)("span",{className:t,onClick:o,children:s.children})}},74170:(e,t,n)=>{"use strict";n.d(t,{h:()=>r.h});var r=n(68036)},32270:(e,t,n)=>{"use strict";n.d(t,{j:()=>u});var r=n(68963),o=n(39683),i=n(86017),a=n(24362),s=n(74170),l=n(75859);const c=(0,a.cn)("ydb-link-with-icon"),u=e=>{let{title:t,url:n,external:a=!0,className:u}=e;const d=(0,l.jsxs)(r.Fragment,{children:[t,"\xa0",(0,l.jsx)(o.Z,{})]});return a?(0,l.jsx)(i.r,{href:n,target:"_blank",className:c(null,u),children:d}):(0,l.jsx)(s.h,{to:n,className:c(null,u),children:d})}},91173:(e,t,n)=>{"use strict";n.d(t,{a:()=>l});var r=n(2982),o=n(24362),i=n(42587),a=n(75859);const s=(0,o.cn)("ydb-loader"),l=e=>{let{size:t="m",delay:n=600,className:o}=e;const[l]=(0,i.$)(n);return l?(0,a.jsx)("div",{className:s(null,o),children:(0,a.jsx)(r.a,{size:t})}):null}},96409:(e,t,n)=>{"use strict";n.d(t,{s:()=>i});n(68963);var r=n(91173),o=n(75859);function i(e){let{loading:t,size:n="m",className:i,children:a}=e;return t?(0,o.jsx)(r.a,{size:n,className:i}):a}},42784:(e,t,n)=>{"use strict";n.d(t,{v:()=>a});var r=n(24362),o=n(75859);const i=(0,r.cn)("tablet-icon"),a=e=>{let{text:t,className:n}=e;return(0,o.jsx)("div",{className:i(null,n),children:(0,o.jsx)("div",{className:i("type"),children:t||"T"})})}},27506:(e,t,n)=>{"use strict";n.d(t,{bP:()=>s,A8:()=>f,Fb:()=>u});var r=n(24362),o=n(62206),i=n(75859);const a=(0,r.cn)("ydb-node-endpoints-tooltip-content"),s=e=>{let{data:t}=e;const n=[];return null!==t&&void 0!==t&&t.Rack&&n.push({label:"Rack",value:t.Rack}),null!==t&&void 0!==t&&t.Endpoints&&t.Endpoints.length&&t.Endpoints.forEach((e=>{let{Name:t,Address:r}=e;t&&r&&n.push({label:t,value:r})})),(0,i.jsx)(o._P,{className:a(null),info:n,dots:!1,size:"s"})};var l=n(34301);const c=(0,o.aE)({values:{ChangeTime:e=>(0,l.fG)(e)},labels:{TabletId:"Tablet"},defaultValueFormatter:e=>e&&String(e)}),u=e=>{let{data:t={},className:n}=e;const{TabletId:r,NodeId:a,State:s,Type:l,ChangeTime:u,Generation:d}=t,f=(0,o.Z6)(c,{TabletId:r,NodeId:a,State:s,Type:l,ChangeTime:u,Generation:d});return(0,i.jsx)(o._P,{className:n,info:f,dots:!1,size:"s"})},d=(0,o.aE)({values:{Usage:e=>e&&`${(100*Number(e)).toFixed(2)} %`},labels:{Name:"Pool"},defaultValueFormatter:e=>e&&String(e)}),f=e=>{let{data:t={},className:n}=e;const r=(0,o.Z6)(d,t);return(0,i.jsx)(o._P,{className:n,info:r,dots:!1,size:"s"})}},41616:(e,t,n)=>{"use strict";n.d(t,{f:()=>f,r:()=>d});var r=n(68963),o=n(98994),i=n(20163),a=n(27102),s=n(61293);const l=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.y3,t=arguments.length>1?arguments[1]:void 0;return{getNodeRef:function(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,s.pY)(n,null!==e&&void 0!==e?e:"",t)}}};var c=n(52317),u=n(17096);function d(){const[e]=(0,o.useQueryParam)("clusterName",o.StringParam),{data:t}=i.W1.useGetClustersListQuery(void 0),n=r.useMemo((()=>(t||[]).find((t=>t.name===e))),[t,e]),{solomon:a,balancer:s,versions:l,cluster:c}=n||{};return{monitoring:a,balancer:s,versions:l,cluster:c,...f({balancer:s})}}function f(e){let{balancer:t}=e;const[n]=(0,u.yu)(c.IG);return{additionalNodesProps:l(t,n),useClusterBalancerAsBackend:n}}},81003:(e,t,n)=>{"use strict";n.d(t,{B7:()=>s,V2:()=>a,_Y:()=>i,xu:()=>o});var r=n(54665);const o={overview:"overview",tenants:"tenants",nodes:"nodes",storage:"storage",versions:"versions"},i=[{id:o.overview,title:"Overview"},{id:o.tenants,title:"Databases"},{id:o.nodes,title:"Nodes"},{id:o.storage,title:"Storage"},{id:o.versions,title:"Versions"}];function a(e){return Object.values(o).includes(e)}const s=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,r.ax)(r.ZP.cluster,e?{activeTab:e}:void 0,t)}},92398:(e,t,n)=>{"use strict";n.d(t,{IA:()=>i,P_:()=>o,ZJ:()=>l,a3:()=>c,mD:()=>a,pV:()=>s});var r=n(54665);const o="storage",i="tablets",a="overview",s="structure",l=[{id:a,name:"Overview"},{id:o,name:"Storage"},{id:s,name:"Structure"},{id:i,name:"Tablets"}];function c(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:a;return(0,r.ax)(r.ZP.node,{id:e,activeTab:n},t)}},95478:(e,t,n)=>{"use strict";n.d(t,{Cc:()=>a,Sj:()=>l,XV:()=>i,c7:()=>s});var r=n(54665),o=n(24015);const i={summaryTab:"summaryTab",queryTab:"queryTab",diagnosticsTab:"diagnosticsTab",metricsTab:"metricsTab"},a=[{id:o.uw.overview,title:"Overview"},{id:o.uw.acl,title:"ACL"}],s=[{id:o.uw.schema,title:"Schema"}],l=e=>(0,r.ax)(r.ZP.tenant,void 0,e)},6523:(e,t,n)=>{"use strict";n.d(t,{$J:()=>T,Jp:()=>v,Sb:()=>C,St:()=>_,TV:()=>d,d:()=>c,dC:()=>m,dw:()=>b,fd:()=>O,lZ:()=>a,uL:()=>k,vp:()=>p,zf:()=>w});var r=n(35638);const o={[r.mR.EPathSubTypeSyncIndexImplTable]:"index_table",[r.mR.EPathSubTypeAsyncIndexImplTable]:"index_table",[r.mR.EPathSubTypeStreamImpl]:void 0,[r.mR.EPathSubTypeEmpty]:void 0},i={[r.gb.EPathTypeInvalid]:void 0,[r.gb.EPathTypeSubDomain]:"database",[r.gb.EPathTypeExtSubDomain]:"database",[r.gb.EPathTypeDir]:"directory",[r.gb.EPathTypeColumnStore]:"directory",[r.gb.EPathTypeTable]:"table",[r.gb.EPathTypeTableIndex]:"index",[r.gb.EPathTypeColumnTable]:"column_table",[r.gb.EPathTypeCdcStream]:"stream",[r.gb.EPathTypePersQueueGroup]:"topic",[r.gb.EPathTypeExternalDataSource]:"external_data_source",[r.gb.EPathTypeExternalTable]:"external_table",[r.gb.EPathTypeView]:"view",[r.gb.EPathTypeReplication]:"async_replication"},a=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.gb.EPathTypeDir,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"directory";return t&&o[t]||i[e]||n},s={[r.mR.EPathSubTypeSyncIndexImplTable]:"Secondary Index Table",[r.mR.EPathSubTypeAsyncIndexImplTable]:"Secondary Index Table",[r.mR.EPathSubTypeStreamImpl]:void 0,[r.mR.EPathSubTypeEmpty]:void 0},l={[r.gb.EPathTypeInvalid]:void 0,[r.gb.EPathTypeSubDomain]:"Database",[r.gb.EPathTypeExtSubDomain]:"Database",[r.gb.EPathTypeDir]:"Directory",[r.gb.EPathTypeTable]:"Table",[r.gb.EPathTypeTableIndex]:"Secondary Index",[r.gb.EPathTypeColumnStore]:"Tablestore",[r.gb.EPathTypeColumnTable]:"Column-oriented table",[r.gb.EPathTypeCdcStream]:"Changefeed",[r.gb.EPathTypePersQueueGroup]:"Topic",[r.gb.EPathTypeExternalDataSource]:"External Data Source",[r.gb.EPathTypeExternalTable]:"External Table",[r.gb.EPathTypeView]:"View",[r.gb.EPathTypeReplication]:"Async Replication"},c=(e,t)=>t&&s[t]||e&&l[e],u={UnknownTenantType:"Database",Domain:"Cluster Root",Dedicated:"Dedicated Database",Shared:"Shared Database",Serverless:"Serverless Database"},d=e=>e&&u[e],f={[r.gb.EPathTypeTable]:!0,[r.gb.EPathTypeColumnTable]:!0,[r.gb.EPathTypeExternalTable]:!0,[r.gb.EPathTypeView]:!0,[r.gb.EPathTypeInvalid]:!1,[r.gb.EPathTypeDir]:!1,[r.gb.EPathTypeSubDomain]:!1,[r.gb.EPathTypeTableIndex]:!1,[r.gb.EPathTypeExtSubDomain]:!1,[r.gb.EPathTypeColumnStore]:!1,[r.gb.EPathTypeCdcStream]:!1,[r.gb.EPathTypePersQueueGroup]:!1,[r.gb.EPathTypeExternalDataSource]:!1,[r.gb.EPathTypeReplication]:!1},p=e=>{var t;return null!==(t=e&&f[e])&&void 0!==t&&t},h={[r.mR.EPathSubTypeSyncIndexImplTable]:!0,[r.mR.EPathSubTypeAsyncIndexImplTable]:!0,[r.mR.EPathSubTypeStreamImpl]:!1,[r.mR.EPathSubTypeEmpty]:!1},m=e=>{var t;return null!==(t=e&&h[e])&&void 0!==t&&t},g={[r.gb.EPathTypeColumnStore]:!0,[r.gb.EPathTypeColumnTable]:!0,[r.gb.EPathTypeInvalid]:!1,[r.gb.EPathTypeDir]:!1,[r.gb.EPathTypeTable]:!1,[r.gb.EPathTypeSubDomain]:!1,[r.gb.EPathTypeTableIndex]:!1,[r.gb.EPathTypeExtSubDomain]:!1,[r.gb.EPathTypeCdcStream]:!1,[r.gb.EPathTypePersQueueGroup]:!1,[r.gb.EPathTypeExternalDataSource]:!1,[r.gb.EPathTypeExternalTable]:!1,[r.gb.EPathTypeView]:!1,[r.gb.EPathTypeReplication]:!1},v=e=>{var t;return null!==(t=e&&g[e])&&void 0!==t&&t},y={[r.gb.EPathTypeSubDomain]:!0,[r.gb.EPathTypeExtSubDomain]:!0,[r.gb.EPathTypeInvalid]:!1,[r.gb.EPathTypeDir]:!1,[r.gb.EPathTypeColumnStore]:!1,[r.gb.EPathTypeColumnTable]:!1,[r.gb.EPathTypeTable]:!1,[r.gb.EPathTypeTableIndex]:!1,[r.gb.EPathTypeCdcStream]:!1,[r.gb.EPathTypePersQueueGroup]:!1,[r.gb.EPathTypeExternalDataSource]:!1,[r.gb.EPathTypeExternalTable]:!1,[r.gb.EPathTypeView]:!1,[r.gb.EPathTypeReplication]:!1},b=e=>{var t;return null!==(t=e&&y[e])&&void 0!==t&&t},w=e=>e===r.gb.EPathTypeCdcStream,E={[r.gb.EPathTypeCdcStream]:!0,[r.gb.EPathTypePersQueueGroup]:!1,[r.gb.EPathTypeInvalid]:!1,[r.gb.EPathTypeColumnStore]:!1,[r.gb.EPathTypeColumnTable]:!1,[r.gb.EPathTypeDir]:!1,[r.gb.EPathTypeTable]:!1,[r.gb.EPathTypeSubDomain]:!1,[r.gb.EPathTypeTableIndex]:!1,[r.gb.EPathTypeExtSubDomain]:!1,[r.gb.EPathTypeExternalDataSource]:!1,[r.gb.EPathTypeExternalTable]:!1,[r.gb.EPathTypeView]:!1,[r.gb.EPathTypeReplication]:!1},_=e=>{var t;return null!==(t=e&&E[e])&&void 0!==t&&t},x={[r.mR.EPathSubTypeSyncIndexImplTable]:!0,[r.mR.EPathSubTypeAsyncIndexImplTable]:!0,[r.mR.EPathSubTypeStreamImpl]:!1,[r.mR.EPathSubTypeEmpty]:!1},S={[r.gb.EPathTypeCdcStream]:!0,[r.gb.EPathTypePersQueueGroup]:!0,[r.gb.EPathTypeExternalDataSource]:!0,[r.gb.EPathTypeExternalTable]:!0,[r.gb.EPathTypeView]:!0,[r.gb.EPathTypeReplication]:!0,[r.gb.EPathTypeInvalid]:!1,[r.gb.EPathTypeColumnStore]:!1,[r.gb.EPathTypeColumnTable]:!1,[r.gb.EPathTypeDir]:!1,[r.gb.EPathTypeTable]:!1,[r.gb.EPathTypeSubDomain]:!1,[r.gb.EPathTypeTableIndex]:!1,[r.gb.EPathTypeExtSubDomain]:!1},C=(e,t)=>{var n;return null!==(n=t&&x[t]||e&&S[e])&&void 0!==n&&n},k=(r.gb.EPathTypeCdcStream,r.gb.EPathTypePersQueueGroup,r.gb.EPathTypeInvalid,r.gb.EPathTypeColumnStore,r.gb.EPathTypeColumnTable,r.gb.EPathTypeDir,r.gb.EPathTypeTable,r.gb.EPathTypeSubDomain,r.gb.EPathTypeTableIndex,r.gb.EPathTypeExtSubDomain,r.gb.EPathTypeExternalDataSource,r.gb.EPathTypeExternalTable,r.gb.EPathTypeView,r.gb.EPathTypeReplication,e=>e===r.gb.EPathTypeExternalTable),O=e=>e===r.gb.EPathTypeTable,T=e=>e===r.gb.EPathTypeView},29796:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ASIDE_HEADER_COMPACT_KEY:()=>Be.Ac,AUTOCOMPLETE_ON_ENTER:()=>Be.XX,AUTO_REFRESH_INTERVAL:()=>Be.KU,AUTO_RELOAD_INTERVAL:()=>Be.t_,AppSlots:()=>r,AsideNavigation:()=>yi,BINARY_DATA_IN_PLAIN_TEXT_DISPLAY:()=>Be.N1,CLUSTER_DEFAULT_TITLE:()=>Be.DO,COLORS_PRIORITY:()=>Be.sl,DATA_QA_TUNE_COLUMNS_POPUP:()=>Be.KS,DAY_IN_SECONDS:()=>Be.ii,DEFAULT_CLUSTER_TAB_KEY:()=>Be.S7,DEFAULT_IS_QUERY_RESULT_COLLAPSED:()=>Be.eG,DEFAULT_IS_TENANT_COMMON_INFO_COLLAPSED:()=>Be.Mn,DEFAULT_IS_TENANT_SUMMARY_COLLAPSED:()=>Be.sO,DEFAULT_POLLING_INTERVAL:()=>Be.ME,DEFAULT_SIZE_RESULT_PANE_KEY:()=>Be.XN,DEFAULT_SIZE_TENANT_KEY:()=>Be.z4,DEFAULT_SIZE_TENANT_SUMMARY_KEY:()=>Be.wr,DEFAULT_TABLE_SETTINGS:()=>Be.LE,DEVELOPER_UI_TITLE:()=>Be.Ah,DEV_ENABLE_TRACING_FOR_ALL_REQUESTS:()=>Be.Ik,EMPTY_DATA_PLACEHOLDER:()=>Be.jX,ENABLE_AUTOCOMPLETE:()=>Be.y6,ErrorBoundary:()=>s.TI,ErrorBoundaryFallback:()=>s.l2,GIGABYTE:()=>Be.GS,HOUR_IN_SECONDS:()=>Be.RQ,INVERTED_DISKS_KEY:()=>Be.yT,IS_HOTKEYS_HELP_HIDDEN_KEY:()=>Be.RI,KILOBYTE:()=>Be.h0,LANGUAGE_KEY:()=>Be.Px,LAST_QUERY_EXECUTION_SETTINGS_KEY:()=>Be.RE,LAST_USED_QUERY_ACTION_KEY:()=>Be.w7,LOAD_AVERAGE_TIME_INTERVALS:()=>Be.x5,Lang:()=>pe.Uo,MEGABYTE:()=>Be.nQ,MINUTE_IN_SECONDS:()=>Be.sU,MS_IN_NANOSECONDS:()=>Be.yD,MultiClusterApp:()=>Zi,PARTITIONS_HIDDEN_COLUMNS_KEY:()=>Be.ZY,QUERIES_HISTORY_KEY:()=>Be.if,QUERY_EXECUTION_SETTINGS_KEY:()=>Be.Zi,QUERY_SETTINGS_BANNER_LAST_CLOSED_KEY:()=>Be.Rn,QUERY_USE_MULTI_SCHEMA_KEY:()=>Be.Rq,SAVED_QUERIES_KEY:()=>Be.DG,SECOND_IN_MS:()=>Be.NO,SHOW_DOMAIN_DATABASE_KEY:()=>Be.Zy,SingleClusterApp:()=>_i,TABLET_COLORS:()=>Be.HN,TABLET_SYMBOLS:()=>Be.tV,TENANT_DEFAULT_TITLE:()=>Be.FU,TENANT_INITIAL_PAGE_KEY:()=>Be.pf,TENANT_OVERVIEW_TABLES_LIMIT:()=>Be.fl,TENANT_OVERVIEW_TABLES_SETTINGS:()=>Be.E6,TERABYTE:()=>Be.Bp,THEME_KEY:()=>Be.bw,USE_CLUSTER_BALANCER_AS_BACKEND_KEY:()=>Be.IG,USE_PAGINATED_TABLES_KEY:()=>Be.Qy,WEEK_IN_SECONDS:()=>Be.nU,YdbEmbeddedAPI:()=>Hi.su,YdbWebVersionAPI:()=>Hi.Iy,appRoutes:()=>de.ZP,cn:()=>fe.cn,componentsRegistry:()=>bi,configureStore:()=>Yt.xC,createApi:()=>Hi.LC,getMonitoringClusterLink:()=>Si,getMonitoringLink:()=>xi,getSettingValue:()=>Wi.Cx,getTabletLabel:()=>Be.qV,getUserSettings:()=>lt,i18n:()=>pe.ag,registerKeysets:()=>pe.wZ,reportWebVitals:()=>Yi.Z,rootReducer:()=>Yt.QW,setSettingValue:()=>Wi.xI,settingsManager:()=>Vi.r,toaster:()=>Gi.m,useSetting:()=>u.yu,useTypedSelector:()=>u.ix});var r={};n.r(r),n.d(r,{ClusterSlot:()=>En,ClustersSlot:()=>wn,NodeSlot:()=>xn,PDiskPageSlot:()=>Sn,RedirectSlot:()=>Nn,RoutesSlot:()=>Tn,StorageGroupSlot:()=>kn,TabletSlot:()=>On,TenantSlot:()=>_n,VDiskPageSlot:()=>Cn});var o=n(68963),i=n(49352),a=n(87555),s=n(27710),l=n(40726),c=n(14146),u=n(17096);function d(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}"function"===typeof SuppressedError&&SuppressedError;var f=n(88776),p=n(8179),h=n(77264),m=n(2982),g=n(77796),v=n(5718);function y(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!==typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}var b=n(5687),w=n(54973),E=n(77280),_=n(10288),x=n(17176),S={button_close:"Close"},C={button_close:"\u0417\u0430\u043a\u0440\u044b\u0442\u044c"};var k=(0,w.e)({en:S,ru:C},`${v.N}Title`);y(".gn-title{align-items:center;box-sizing:border-box;display:flex;justify-content:space-between;min-height:64px;padding:14px 10px 14px 20px}.gn-title_separator{border-bottom:1px solid var(--g-color-line-generic)}.gn-title__text{margin:0 20px 0 0}");const O=(0,v.b)("title"),T=e=>{let{children:t,closeIconSize:n=23,hasSeparator:r,closeTitle:i=k("button_close"),onClose:a}=e;return o.createElement("div",{className:O({separator:r})},o.createElement(_.x,{className:O("text"),as:"h3",variant:"subheader-3"},t),a&&o.createElement(x.z,{onClick:a,view:"flat",size:"l",extraProps:{"aria-label":i}},o.createElement(f.J,{data:E.Z,size:n})))};function N(e){const t=o.useRef();return o.useEffect((()=>(t.current=e,()=>{t.current=void 0})),[e]),o.useCallback((function(){if("function"===typeof t.current)return t.current(...arguments)}),[])}function I(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function P(e){const t=I(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"").replace(/\s+/g,".*?");return R(e,"",new RegExp(t,"i"))}function R(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2?arguments[2]:void 0;const r=[],i={};let a=!1,s=!1;return o.Children.forEach(e,(e=>{var l,c;if(o.isValidElement(e))if(e.type===o.Fragment){const{menu:o,pages:a}=R(e.props.children,t,n);r.push(...o),Object.assign(i,a)}else if(e.props.groupTitle){0;const o=`${t}/${null!==(l=e.props.id)&&void 0!==l?l:e.props.groupTitle}`;a=!0;const{menu:s,pages:c}=R(e.props.children,o,n);0,r.push({groupTitle:e.props.groupTitle,items:s}),Object.assign(i,c)}else{s=!0;const o=`${t}/${null!==(c=e.props.id)&&void 0!==c?c:e.props.title}`;0,i[o]=D(e.props.children,n),i[o].id=o,r.push({id:o,title:e.props.title,icon:e.props.icon,withBadge:i[o].withBadge,disabled:i[o].hidden})}})),{menu:r,pages:i}}function D(e,t){const n={id:"",sections:[],hidden:!0};return o.Children.forEach(e,(e=>{if(o.isValidElement(e))if(e.type===o.Fragment){const{sections:r,withBadge:o,hidden:i}=D(e.props.children,t);n.sections.push(...r),n.withBadge=o||n.withBadge,n.hidden=i&&n.hidden}else{const{withBadge:r,showTitle:o=!0}=e.props,{items:i,hidden:a}=A(e.props.children,t);n.withBadge=r||n.withBadge,n.hidden=a&&n.hidden,n.sections.push(Object.assign(Object.assign({},e.props),{withBadge:r,items:i,hidden:a,showTitle:o}))}})),n}function A(e,t){let n=!0;const r=[];return o.Children.forEach(e,(e=>{if(o.isValidElement(e))if(e.type===o.Fragment){const o=A(e.props.children,t);r.push(...o.items),n=n&&o.hidden}else{const o=Object.assign(Object.assign({},e.props),{element:e,hidden:!t.test(e.props.title)});r.push(o),n=n&&o.hidden}})),{items:r,hidden:n}}T.displayName="Title";const j=o.createContext({});function M(e,t){const n=o.useRef(null);return o.useMemo((()=>t?Object.assign({selectedRef:n},function(e,t){if(!t.settingId&&!t.section&&!t.page)return{};for(const n of Object.values(e)){if(!t.settingId&&!t.section){if(t.page!==n.id)continue;return{page:n}}for(const e of n.sections)if(t.settingId){for(const r of e.items)if(r.id===t.settingId)return{page:n,section:e,setting:r}}else if(t.section&&("id"in t.section?t.section.id===e.id:t.section.title===e.title))return{page:n,section:e}}return{}}(e,t)):{selectedRef:n}),[e,t])}j.displayName="SettingsSelectionContext";const L=j.Provider;var z=function(e){return e};y('.gn-settings-menu__group-heading{display:inline-block;font-weight:var(--g-text-accent-font-weight);line-height:18px;margin-bottom:12px;padding:0 20px}.gn-settings-menu__group+.gn-settings-menu__group{margin-top:24px}.gn-settings-menu__item{align-items:center;color:var(--g-color-text-primary);cursor:pointer;display:flex;height:40px;padding:0 20px}.gn-settings-menu__item-icon{color:var(--g-color-text-misc);margin-right:5px}.gn-settings-menu__item:hover,.gn-settings-menu__item_focused{background:var(--g-color-base-simple-hover)}.gn-settings-menu__item_selected{background:var(--g-color-base-selection)}.gn-settings-menu__item_selected.gn-settings-menu__item_focused,.gn-settings-menu__item_selected:hover{background:var(--g-color-base-selection-hover)}.gn-settings-menu__item_disabled{color:var(--g-color-text-secondary);cursor:auto}.gn-settings-menu__item_disabled:hover{background:none}.gn-settings-menu__item_disabled .gn-settings-menu__item-icon{color:var(--g-color-base-misc-heavy)}.gn-settings-menu__item_badge{position:relative}.gn-settings-menu__item_badge:after{background-color:var(--g-color-text-danger);border-radius:50%;content:"";display:block;height:6px;position:absolute;right:9px;top:calc(50% - 3px);width:6px}');const F=(0,v.b)("settings-menu"),B=o.forwardRef((function(e,t){let{items:n,onChange:r,activeItemId:i}=e;const[a,s]=o.useState(),l=o.useRef(null),c=N(r),u=function(e){const t=o.useRef(e);return t.current=e,o.useCallback((()=>t.current),[])}(a);return o.useImperativeHandle(t,(()=>({handleKeyDown(e){if(!l.current)return!1;const t=u();return t&&"Enter"===e.key?(c(t),!0):"ArrowDown"===e.key?(s(q(l.current,t,1)),!0):"ArrowUp"===e.key&&(s(q(l.current,t,-1)),!0)},clearFocus(){s(void 0)}})),[u,c]),o.createElement("div",{ref:l,className:F()},n.map((e=>"groupTitle"in e?o.createElement("div",{key:e.groupTitle,className:F("group")},o.createElement("span",{className:F("group-heading")},e.groupTitle),e.items.map((e=>U(e,r,i,a)))):U(e,r,i,a))))}));function U(e,t,n,r){return o.createElement("span",{key:e.title,className:F("item",{selected:n===e.id,disabled:e.disabled,focused:r===e.id,badge:e.withBadge}),onClick:()=>{e.disabled||t(e.id)},"data-id":e.id},e.icon?o.createElement(f.J,Object.assign({size:16},e.icon,{className:F("item-icon")})):void 0,o.createElement("span",null,e.title))}function q(e,t,n){var r;const o=e.querySelectorAll(`.${F("item")}:not(.${F("item")}_disabled)`);if(0===o.length)return;let i=n>0?-1:0;return t&&(i=Array.prototype.findIndex.call(o,(e=>e.getAttribute("data-id")===t))),i=(o.length+i+n)%o.length,null!==(r=o[i].getAttribute("data-id"))&&void 0!==r?r:void 0}y('.gn-settings-menu-mobile.g-tabs_direction_horizontal{-ms-overflow-style:none;flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:none;scrollbar-width:none}.gn-settings-menu-mobile.g-tabs_direction_horizontal::-webkit-scrollbar{display:none}.gn-settings-menu-mobile__item_badge{position:relative}.gn-settings-menu-mobile__item_badge:after{background-color:var(--g-color-text-danger);border-radius:50%;content:"";display:block;height:6px;position:absolute;right:-8px;top:11px;width:6px}');const $=(0,v.b)("settings-menu-mobile"),Z=e=>{let{items:t,onChange:n,activeItemId:r,className:i}=e;const a=o.useRef(null),s=o.useMemo((()=>{const e=[];return t.forEach((t=>{if("groupTitle"in t)e.push(...t.items.map((e=>{let{id:t,title:n,disabled:r,withBadge:o}=e;return{id:t,title:n,disabled:r,className:$("item",{badge:o})}})));else{const{id:n,title:r,disabled:o,withBadge:i}=t;e.push({id:n,title:r,disabled:o,className:$("item",{badge:i})})}})),e}),[t]);return o.createElement("div",{ref:a,onTouchMove:e=>{e.stopPropagation()}},o.createElement(p.m,{items:s,className:$(null,i),size:"l",activeTab:r,onSelectTab:n}))};var H={label_title:"Settings","label_filter-placeholder":"Search settings","label_empty-placeholder":"No results found",label_search:"Search"},V={label_title:"\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438","label_filter-placeholder":"\u041d\u0430\u0439\u0442\u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438","label_empty-placeholder":"\u041d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u043d\u0430\u0439\u0434\u0435\u043d\u043e",label_search:"\u041f\u043e\u0438\u0441\u043a"};var W=(0,w.e)({en:H,ru:V},`${v.N}Settings`);const G=(0,v.b)("settings-search");function Y(e){let{className:t,initialValue:n,onChange:r,debounce:i=200,inputRef:a,inputSize:s,placeholder:l,autoFocus:c=!0}=e;const[u,d]=o.useState(null!==n&&void 0!==n?n:""),f=N((0,b.d)(r,i)),p=N((e=>{d(e),f(e)}));return o.createElement("div",{className:G(null,t)},o.createElement(h.o,{value:u,controlRef:a,hasClear:!0,autoFocus:c,size:s,placeholder:l,onUpdate:p,controlProps:{"aria-label":W("label_search")}}))}y('.gn-settings{display:grid;grid-template-columns:216px 1fr;height:100%;width:834px}.gn-settings_view_mobile{display:block;height:calc(80vh - 56px);overflow-x:hidden;width:auto}@supports (height:90dvh){.gn-settings_view_mobile{height:calc(90dvh - 56px)}}.gn-settings_view_mobile.gn-settings_loading{text-align:center}.gn-settings_view_mobile .gn-settings__loader{margin-top:20px}.gn-settings_view_mobile .gn-settings__search{margin:4px 0 16px;padding:0 20px}.gn-settings_view_mobile .gn-settings__page{overflow-y:visible}.gn-settings_view_mobile .gn-settings__tabs .g-tabs__item:first-child{margin-left:20px}.gn-settings_view_mobile .gn-settings__tabs .g-tabs__item:last-child{margin-right:20px}.gn-settings_view_mobile .gn-settings__section-heading{font-size:var(--g-text-subheader-3-font-size);font-weight:var(--g-text-subheader-font-weight);line-height:var(--g-text-subheader-3-line-height)}.gn-settings_view_mobile .gn-settings__section-subheader{color:var(--g-color-text-secondary)}.gn-settings_view_mobile .gn-settings__section-heading+.gn-settings-subheader{margin-top:8px}.gn-settings_view_mobile .gn-settings__section-item{margin-top:0}.gn-settings_view_mobile .gn-settings__section-heading+.gn-settings__section-item,.gn-settings_view_mobile .gn-settings__section-subheader+.gn-settings__section-item{margin-top:30px}.gn-settings_view_mobile .gn-settings__section-item+.gn-settings__section-item{margin-top:22px}.gn-settings_view_mobile .gn-settings__item:not(.gn-settings_view_mobile .gn-settings__item_mode_row){gap:8px;grid-template-columns:1fr}.gn-settings_view_mobile .gn-settings__item-heading{font-size:var(--g-text-body-2-font-size);font-weight:var(--g-text-body-font-weight);line-height:var(--g-text-body-2-line-height)}.gn-settings_view_mobile .gn-settings__item-description{font-size:var(--g-text-body-1-font-size);font-weight:var(--g-text-body-font-weight);line-height:var(--g-text-body-1-line-height)}.gn-settings_view_mobile .gn-settings__item_mode_row{grid-template-columns:1fr auto}.gn-settings_view_mobile .gn-settings__item_mode_row .gn-settings__item-heading{padding-right:20px}.gn-settings_view_mobile .gn-settings__item-content{width:100%}.gn-settings_view_mobile .gn-settings__not-found{color:var(--g-color-text-hint);font-size:var(--g-text-body-2-font-size);font-weight:var(--g-text-body-font-weight);justify-items:start;line-height:var(--g-text-body-2-line-height);margin:20px 0 0 20px}.gn-settings_loading{grid-template-columns:auto}.gn-settings__loader{place-self:center}.gn-settings__not-found{display:grid;height:100%;place-items:center}.gn-settings__menu{border-right:1px solid var(--g-color-line-generic)}.gn-settings__heading{font-size:var(--g-text-subheader-2-font-size);font-weight:var(--g-text-subheader-font-weight);line-height:var(--g-text-subheader-2-line-height);margin:20px 20px 0}.gn-settings__search{margin:0 20px 16px}.gn-settings__page{overflow-y:auto}.gn-settings__content{padding:20px}.gn-settings__section-right-adornment_hidden{opacity:0;transition:opacity .2s}.gn-settings__section-heading:hover .gn-settings__section-right-adornment_hidden{opacity:1}.gn-settings__section-heading{font-size:var(--g-text-subheader-2-font-size);font-weight:var(--g-text-subheader-font-weight);line-height:var(--g-text-subheader-2-line-height);margin:0}.gn-settings__section-item{margin-top:24px}.gn-settings__section+.gn-settings__section{margin-top:32px}.gn-settings__item{display:grid;grid-template-columns:216px 1fr;justify-items:start}.gn-settings__item_align_top{align-items:start}.gn-settings__item_align_center{align-items:center}.gn-settings__item-title_badge{position:relative}.gn-settings__item-title_badge:after{background-color:var(--g-color-text-danger);border-radius:50%;content:"";display:block;height:6px;position:absolute;right:-8px;top:1px;width:6px}.gn-settings__item-description{color:var(--g-color-text-secondary);display:block;font-size:var(--g-text-caption-2-font-size);font-weight:var(--g-text-caption-font-weight);line-height:var(--g-text-caption-2-line-height);margin-top:2px;padding-right:20px}.gn-settings__item-right-adornment_hidden{opacity:0;transition:opacity .2s}.gn-settings__item:hover .gn-settings__item-right-adornment_hidden{opacity:1}.gn-settings__item_selected,.gn-settings__section_selected{background:var(--g-color-base-selection);border-radius:8px;margin-left:-8px;padding:8px}.gn-settings__found{background:var(--g-color-base-selection);font-weight:var(--g-text-accent-font-weight)}');const K=(0,v.b)("settings"),Q=o.createContext({}),J=()=>o.useContext(Q);function X(e){var{loading:t,renderLoading:n,children:r,view:i="normal",renderRightAdornment:a,renderSectionRightAdornment:s,showRightAdornmentOnHover:l=!0}=e,c=d(e,["loading","renderLoading","children","view","renderRightAdornment","renderSectionRightAdornment","showRightAdornmentOnHover"]);return t?o.createElement("div",{className:K({loading:!0,view:i})},"function"===typeof n?n():o.createElement(m.a,{className:K("loader"),size:"m"})):o.createElement(Q.Provider,{value:{renderRightAdornment:a,renderSectionRightAdornment:s,showRightAdornmentOnHover:l}},o.createElement(te,Object.assign({view:i},c),r))}const ee=(e,t)=>{for(const n of e)if("groupTitle"in n){for(const e of n.items)if(e.id===t)return e.title}else if(n.id===t)return n.title;return""};function te(e){let{initialPage:t,initialSearch:n,selection:r,children:i,renderNotFound:a,title:s=W("label_title"),filterPlaceholder:l=W("label_filter-placeholder"),emptyPlaceholder:c=W("label_empty-placeholder"),view:u,onPageChange:d,onClose:f}=e;var p,h;const{renderSectionRightAdornment:m,showRightAdornmentOnHover:v}=J(),[y,b]=o.useState(null!==n&&void 0!==n?n:""),{menu:w,pages:E}=P(i,y),_=M(E,r),x=Object.keys(E),S=_.page&&x.includes(_.page.id)?_.page.id:void 0,[C,k]=o.useState(S||(t&&x.includes(t)?t:void 0)),O=o.useRef(null),N=o.useRef(null),I="mobile"===u;o.useEffect((()=>{var e;null===(e=N.current)||void 0===e||e.clearFocus()}),[y]),o.useEffect((()=>{const e=()=>{var e;null===(e=N.current)||void 0===e||e.clearFocus()};return window.addEventListener("click",e),()=>{window.removeEventListener("click",e)}}),[]);let R=C;R&&!(null===(p=E[R])||void 0===p?void 0:p.hidden)||(R=null===(h=Object.values(E).find((e=>{let{hidden:t}=e;return!t})))||void 0===h?void 0:h.id);const D=e=>{k((t=>(t!==e&&(null===d||void 0===d||d(e)),e)))};o.useEffect((()=>{R!==C&&D(R)})),o.useEffect((()=>{S&&k(S)}),[S]),o.useEffect((()=>{var e;(null===(e=_.selectedRef)||void 0===e?void 0:e.current)&&_.selectedRef.current.scrollIntoView()}),[_.selectedRef]);const A=(e,t)=>{const n=function(e,t,n){var r;return!(!e.section||e.setting)&&(!(!e.section.id||e.section.id!==n.id)||!((null===(r=e.page)||void 0===r?void 0:r.id)!==t||!e.section.title||e.section.title!==n.title))}(_,e,t);return o.createElement("div",{key:t.title,className:K("section",{selected:n}),ref:n?_.selectedRef:void 0},t.showTitle&&o.createElement("h3",{className:K("section-heading")},m?o.createElement(g.k,{gap:2,alignItems:"center"},t.title,o.createElement("div",{className:K("section-right-adornment",{hidden:v})},m(t))):t.title),t.header&&(I?o.createElement("div",{className:K("section-subheader")},t.header):t.header),t.items.map((e=>e.hidden?null:(e=>{let{title:t,element:n}=e;return o.createElement("div",{key:t,className:K("section-item")},o.cloneElement(n,Object.assign(Object.assign({},n.props),{highlightedTitle:y&&t?ne(t,y):t})))})(e))))};return o.createElement(L,{value:_},o.createElement("div",{className:K({view:u})},I?o.createElement(o.Fragment,null,o.createElement(Y,{inputRef:O,className:K("search"),initialValue:n,onChange:b,autoFocus:!1,inputSize:"xl"}),o.createElement(Z,{items:w,onChange:D,activeItemId:R,className:K("tabs")})):o.createElement("div",{className:K("menu"),onClick:()=>{O.current&&O.current.focus()},onKeyDown:e=>{N.current&&N.current.handleKeyDown(e)&&e.preventDefault()}},o.createElement(T,null,s),o.createElement(Y,{inputRef:O,className:K("search"),initialValue:n,onChange:b,placeholder:l,autoFocus:!0}),o.createElement(B,{ref:N,items:w,onChange:D,activeItemId:R})),o.createElement("div",{className:K("page")},(e=>{if(!e)return"function"===typeof a?a():o.createElement("div",{className:K("not-found")},c);const t=E[e].sections.filter((e=>!e.hidden));return o.createElement(o.Fragment,null,!I&&o.createElement(T,{hasSeparator:!0,onClose:f},ee(w,e)),o.createElement("div",{className:K("content")},t.map((t=>A(e,t)))))})(R))))}function ne(e,t){let n=e.slice(0);const r=[],i=I(t).split(" ").filter(Boolean);let a=0;for(const s of i){const e=new RegExp(s,"ig").exec(n);if(e){const t=e[0],i=e.index;i>0&&r.push(n.slice(0,i)),r.push(o.createElement("strong",{key:a++,className:K("found")},t)),n=n.slice(i+t.length)}}return n&&r.push(n),r}X.Group=function(e){let{children:t}=e;return o.createElement(o.Fragment,null,t)},X.Page=function(e){let{children:t}=e;return o.createElement(o.Fragment,null,t)},X.Section=function(e){let{children:t}=e;return o.createElement(o.Fragment,null,t)},X.Item=function(e){const{id:t,labelId:n,highlightedTitle:r,children:i,align:a="center",withBadge:s,renderTitleComponent:l=z,mode:c,description:u}=e,d=o.useContext(j),f=d.setting&&d.setting.id===t,{renderRightAdornment:p,showRightAdornmentOnHover:h}=J(),m=o.createElement("span",{className:K("item-title",{badge:s})},l(r));return o.createElement("div",{className:K("item",{align:a,mode:c,selected:f}),ref:f?d.selectedRef:void 0},o.createElement("label",{className:K("item-heading"),id:n},p?o.createElement(g.k,{className:K("item-title-wrapper"),gap:3},m,o.createElement("div",{className:K("item-right-adornment",{hidden:h})},p(e))):m,u?o.createElement("span",{className:K("item-description")},u):null),o.createElement("div",{className:K("item-content")},i))};var re=n(68291),oe=n(79734),ie=n(75859);const ae=e=>{let{type:t="switch",settingKey:n,options:r,defaultValue:o,onValueUpdate:i}=e;const[a,s]=(0,u.yu)(n,o),l=e=>{s(e),null===i||void 0===i||i()};switch(t){case"switch":return(0,ie.jsx)(re.r,{checked:Boolean(a),onUpdate:l});case"radio":return r?(0,ie.jsx)(oe.E,{value:String(a),onUpdate:l,children:r.map((e=>{let{value:t,content:n}=e;return(0,ie.jsx)(oe.E.Option,{value:t,children:n},t)}))}):null;default:return null}},se=e=>{let{settings:t}=e;return(0,ie.jsx)(X,{children:t.map((e=>{const{id:t,title:n,icon:r,sections:o=[]}=e;return(0,ie.jsx)(X.Page,{id:t,title:n,icon:r,children:o.map((e=>{const{title:n,settings:r=[]}=e;return(0,ie.jsx)(X.Section,{title:n,children:r.map((e=>"info"===e.type?(0,ie.jsx)(X.Item,{...e,children:e.content},e.title):(0,ie.jsx)(X.Item,{...e,children:(0,ie.jsx)(ae,{...e})},e.title)))},t)}))},t)}))})},le=e=>o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),o.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M14.78 7.47a.75.75 0 0 1 0 1.06l-2.5 2.5a.75.75 0 1 1-1.06-1.06l1.22-1.22H4.75a.75.75 0 0 1 0-1.5h7.69l-1.22-1.22a.75.75 0 0 1 1.06-1.06l2.5 2.5ZM9.5 4.25a.75.75 0 0 1-1.5 0V4a1.5 1.5 0 0 0-1.5-1.5H4A1.5 1.5 0 0 0 2.5 4v8A1.5 1.5 0 0 0 4 13.5h2.5A1.5 1.5 0 0 0 8 12v-.25a.75.75 0 0 1 1.5 0V12a3 3 0 0 1-3 3H4a3 3 0 0 1-3-3V4a3 3 0 0 1 3-3h2.5a3 3 0 0 1 3 3v.25Z",clipRule:"evenodd"})),ce=e=>o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),o.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M11.78 7.47a.75.75 0 0 1 0 1.06l-2.5 2.5a.75.75 0 1 1-1.06-1.06l1.22-1.22H1.75a.75.75 0 0 1 0-1.5h7.69L8.22 6.03a.75.75 0 0 1 1.06-1.06l2.5 2.5ZM4 11.75a.75.75 0 0 1 1.5 0V12A1.5 1.5 0 0 0 7 13.5h5a1.5 1.5 0 0 0 1.5-1.5V4A1.5 1.5 0 0 0 12 2.5H7A1.5 1.5 0 0 0 5.5 4v.25a.75.75 0 0 1-1.5 0V4a3 3 0 0 1 3-3h5a3 3 0 0 1 3 3v8a3 3 0 0 1-3 3H7a3 3 0 0 1-3-3v-.25Z",clipRule:"evenodd"}));var ue=n(86974),de=n(54665),fe=n(24362),pe=n(30817);const he=JSON.parse('{"navigation-item.documentation":"Documentation","navigation-item.settings":"Settings","navigation-item.account":"Account","account.user":"YDB User","account.login":"Login","account.logout":"Logout"}'),me=(0,pe.wZ)("ydb-aside-navigation",{en:he}),ge=(0,fe.cn)("kv-ydb-internal-user");function ve(e){let{login:t}=e;const[n]=c.nc.useLogoutMutation(),r=(0,ue.k6)();return(0,ie.jsxs)("div",{className:ge(),children:[(0,ie.jsxs)("div",{className:ge("user-info-wrapper"),children:[(0,ie.jsx)("div",{className:ge("ydb-internal-user-title"),children:me("account.user")}),t&&(0,ie.jsx)("div",{className:ge("username"),children:t})]}),t?(0,ie.jsx)(x.z,{view:"flat-secondary",title:me("account.logout"),onClick:()=>{n(void 0)},children:(0,ie.jsx)(f.J,{data:le})}):(0,ie.jsx)(x.z,{view:"flat-secondary",title:me("account.login"),onClick:()=>{r.push((0,de.ax)(de.ZP.auth,void 0,{returnUrl:encodeURIComponent(location.href)}))},children:(0,ie.jsx)(f.J,{data:ce})})]})}function ye(e){let{children:t,userSettings:n}=e;const r=(0,l.C)("AsideNavigation"),o=(0,u.ix)(c.dy);return(0,ie.jsx)(r,{settings:(0,ie.jsx)(se,{settings:n}),ydbInternalUser:(0,ie.jsx)(ve,{login:o}),user:o?{login:o}:void 0,content:t})}const be={top:0,right:0,bottom:0,left:0};var we=n(44920),Ee=n(3027),_e=n(83326),xe=n.n(_e),Se=n(27506);const Ce=(0,fe.cn)("node-tootltip"),ke=e=>{const{data:t}=e;return t&&(0,ie.jsx)("div",{className:Ce(),children:(0,ie.jsx)("table",{children:(0,ie.jsxs)("tbody",{children:[(0,ie.jsxs)("tr",{children:[(0,ie.jsx)("td",{className:Ce("label"),children:"ID"}),(0,ie.jsx)("td",{className:Ce("value"),children:t.nodeId||"?"})]}),(0,ie.jsxs)("tr",{children:[(0,ie.jsx)("td",{className:Ce("label"),children:"Rack"}),(0,ie.jsx)("td",{className:Ce("value"),children:t.rack||"?"})]}),t.connected&&t.capacity?(0,ie.jsxs)("tr",{children:[(0,ie.jsx)("td",{className:Ce("label"),children:"Net"}),(0,ie.jsx)("td",{className:Ce("value"),children:`${t.connected} / ${t.capacity}`})]}):null]})})})},Oe=(0,fe.cn)("tabletsOverall-tooltip"),Te=e=>{const{data:t}=e;return t&&(0,ie.jsx)("div",{className:Oe(),children:(0,ie.jsx)("table",{children:(0,ie.jsx)("tbody",{children:t.map(((e,t)=>(0,ie.jsxs)("tr",{children:[(0,ie.jsxs)("td",{className:Oe("label"),children:[e.color,":"]}),(0,ie.jsx)("td",{className:Oe("value"),children:`${e.value}/${e.total} (${e.percents.toFixed(2)}%)`})]},t)))})})})},Ne=(0,fe.cn)("histogram-tooltip"),Ie=e=>{const{data:t}=e;return t&&(0,ie.jsx)("div",{className:Ne(),children:(0,ie.jsx)("table",{children:(0,ie.jsxs)("tbody",{children:[(0,ie.jsxs)("tr",{children:[(0,ie.jsx)("td",{className:Ne("label"),children:"Count"}),(0,ie.jsx)("td",{className:Ne("value"),children:t.count||"?"})]}),(0,ie.jsxs)("tr",{children:[(0,ie.jsx)("td",{className:Ne("label"),children:"From"}),(0,ie.jsx)("td",{className:Ne("value"),children:t.leftBound||"?"})]}),(0,ie.jsxs)("tr",{children:[(0,ie.jsx)("td",{className:Ne("label"),children:"To"}),(0,ie.jsx)("td",{className:Ne("value"),children:t.rightBound||"?"})]})]})})})},Pe=(0,fe.cn)("cell-tooltip"),Re=(0,fe.cn)("json-tooltip"),De={pool:e=>(0,ie.jsx)(Se.A8,{data:e}),tablet:e=>(0,ie.jsx)(Se.Fb,{data:e}),node:e=>(0,ie.jsx)(ke,{data:e}),nodeEndpoints:e=>(0,ie.jsx)(Se.bP,{data:e}),tabletsOverall:e=>(0,ie.jsx)(Te,{data:e}),histogram:e=>(0,ie.jsx)(Ie,{data:e}),cell:e=>(0,ie.jsx)("div",{className:Pe(),children:e}),json:e=>(0,ie.jsx)("div",{className:Re(),children:(0,ie.jsx)(xe(),{data:e,search:!1,isExpanded:()=>!0,className:Re("inspector")})})};const Ae=(0,a.$j)((e=>{const{toolTipVisible:t,currentHoveredRef:n,data:r,templateType:o,additionalData:i,positions:a}=e.tooltip,{popupClassName:s}=i||{};return{toolTipVisible:t,currentHoveredRef:n,data:r,template:De[o],additionalData:i,positions:a,popupClassName:s}}),{hideTooltip:Ee.i8})((function(e){var t,n;const r=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{rect:t,contextElement:n}=e,r=o.useRef(be),i=o.useRef({contextElement:n,getBoundingClientRect(){const{top:e,right:t,bottom:n,left:o}=r.current;return{top:e,right:t,bottom:n,left:o,width:t-o,height:n-e}}});if(i.current.contextElement=n,t){const{top:e=0,left:n=0,right:o=n,bottom:i=e}=t;r.current={top:e,right:o,bottom:i,left:n}}else r.current=be;return i}({rect:{top:null===(t=e.positions)||void 0===t?void 0:t.top,left:null===(n=e.positions)||void 0===n?void 0:n.left}}),i=o.useCallback((()=>{const{hideTooltip:t,toolTipVisible:n}=e;n&&setTimeout((()=>t()),500)}),[e]);o.useEffect((()=>(window.addEventListener("scroll",i,!0),()=>{window.removeEventListener("scroll",i)})),[i]);const{className:a="",toolTipVisible:s,currentHoveredRef:l,data:c,additionalData:u,positions:d}=e;return(0,ie.jsx)("div",{className:`redux-tooltip ${a}`,children:d?((t,n,i,a)=>{const{template:s,popupClassName:l,hideTooltip:c}=e;return(0,ie.jsx)(o.Fragment,{children:(0,ie.jsx)(we.G,{open:t,placement:["top","bottom","left","right"],contentClassName:l,anchorRef:r,onOutsideClick:c,children:i&&s(i,a)})})})(s,0,c,u):((t,n,r,o)=>{const{template:i,popupClassName:a,hideTooltip:s}=e;return(0,ie.jsx)(we.G,{open:t,anchorRef:{current:n},hasArrow:!0,placement:["top","bottom","left","right"],className:a,onOutsideClick:s,children:r&&i(r,o)})})(s,l,c,u)})})),je=e=>o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),o.createElement("path",{fill:"currentColor",d:"M6.886.773C7.29-.231 8.71-.231 9.114.773l1.472 3.667 3.943.268c1.08.073 1.518 1.424.688 2.118L12.185 9.36l.964 3.832c.264 1.05-.886 1.884-1.802 1.31L8 12.4l-3.347 2.101c-.916.575-2.066-.26-1.802-1.309l.964-3.832L.783 6.826c-.83-.694-.391-2.045.688-2.118l3.943-.268L6.886.773Z"})),Me=e=>o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),o.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M11.494 13.2c.837-.482 1.006-.946 1.006-1.2 0-.35-.105-.692-.303-.981L9.072 6.435a1.854 1.854 0 0 1-.322-1.044V2.909C8.518 2.968 8.265 3 8 3s-.518-.032-.75-.09v2.48c0 .373-.112.737-.322 1.045L3.803 11.02c-.198.289-.303.63-.303.981 0 .254.169.718 1.006 1.2.813.468 2.043.8 3.494.8s2.68-.332 3.494-.8ZM8 .5c2 0 2.25 1 2.25 1.5v3.39c0 .072.021.141.062.2l3.125 4.584c.367.538.563 1.175.563 1.826 0 2-2.686 3.5-6 3.5S2 14 2 12c0-.652.196-1.288.563-1.826L5.69 5.59a.354.354 0 0 0 .061-.2V2C5.75 1.5 6 .5 8 .5Zm.084 7.626a.75.75 0 0 1 1.04.208l1.5 2.25a.75.75 0 1 1-1.248.832l-1.5-2.25a.75.75 0 0 1 .208-1.04Z",clipRule:"evenodd"})),Le=e=>o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),o.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M6.169 6.331a3 3 0 0 0-.833 1.6l-.338 1.912a1 1 0 0 0 1.159 1.159l1.912-.338a3 3 0 0 0 1.6-.833l3.07-3.07 2-2A.894.894 0 0 0 15 4.13 3.13 3.13 0 0 0 11.87 1a.894.894 0 0 0-.632.262l-2 2-3.07 3.07Zm3.936-1.814L7.229 7.392a1.5 1.5 0 0 0-.416.8L6.6 9.4l1.208-.213.057-.01a1.5 1.5 0 0 0 .743-.406l2.875-2.876a1.63 1.63 0 0 0-1.378-1.378Zm2.558.199a3.143 3.143 0 0 0-1.379-1.38l.82-.82a1.63 1.63 0 0 1 1.38 1.38l-.82.82ZM8 2.25a.75.75 0 0 0-.75-.75H4.5a3 3 0 0 0-3 3v7a3 3 0 0 0 3 3h7a3 3 0 0 0 3-3V8.75a.75.75 0 0 0-1.5 0v2.75a1.5 1.5 0 0 1-1.5 1.5h-7A1.5 1.5 0 0 1 3 11.5v-7A1.5 1.5 0 0 1 4.5 3h2.75A.75.75 0 0 0 8 2.25Z",clipRule:"evenodd"}));var ze=n(68010),Fe=n(89900),Be=n(52317);const Ue=JSON.parse('{"page.general":"General","section.appearance":"Appearance","page.experiments":"Experiments","section.experiments":"Experiments","page.editor":"Editor","section.dev-setting":"Development settings","page.about":"About","section.about":"About","settings.editor.autocomplete.title":"Enable autocomplete","settings.editor.autocomplete.description":"You\u2019re always able to get suggestions by pressing Ctrl+Space.","settings.editor.autocomplete-on-enter.title":"Accept suggestion on Enter","settings.editor.autocomplete-on-enter.description":"Controls whether suggestions should be accepted on Enter, in addition to Tab. Helps to avoid ambiguity between inserting new lines or accepting suggestions.","settings.theme.title":"Interface theme","settings.theme.option-dark":"Dark","settings.theme.option-light":"Light","settings.theme.option-system":"System","settings.language.title":"Interface language","settings.language.option-russian":"Russian","settings.language.option-english":"English","settings.binaryDataInPlainTextDisplay.title":"Display binary data in plain text","settings.invertedDisks.title":"Inverted disks space indicators","settings.usePaginatedTables.title":"Use paginated tables","settings.usePaginatedTables.description":" Use table with data load on scroll for Nodes and Storage tabs. It will increase performance, but could work unstable","settings.showDomainDatabase.title":"Show domain database","settings.queryUseMultiSchema.title":"Allow queries with multiple result sets","settings.queryUseMultiSchema.description":"Use \'multi\' schema for queries. It enables queries with multiple result sets. It returns nothing on versions 23-3 and older","settings.useClusterBalancerAsBackend.title":"Use cluster balancer as backend","settings.useClusterBalancerAsBackend.description":"By default random cluster node is used as backend. It causes saved links to become invalid after some time, when node is restarted. Using balancer as backend fixes it","settings.about.interfaceVersionInfoField.title":"Interface version"}'),qe=(0,pe.wZ)("ydb-user-settings",{en:Ue}),$e=[{value:"system",content:qe("settings.theme.option-system")},{value:"light",content:qe("settings.theme.option-light")},{value:"dark",content:qe("settings.theme.option-dark")}],Ze={settingKey:Be.bw,title:qe("settings.theme.title"),type:"radio",options:$e},He=(pe.Uo.Ru,qe("settings.language.option-russian"),pe.Uo.En,qe("settings.language.option-english"),Be.Px,qe("settings.language.title"),pe.Fp,{settingKey:Be.N1,title:qe("settings.binaryDataInPlainTextDisplay.title")}),Ve={settingKey:Be.yT,title:qe("settings.invertedDisks.title")},We={settingKey:Be.Qy,title:qe("settings.usePaginatedTables.title"),description:qe("settings.usePaginatedTables.description")},Ge={settingKey:Be.Zy,title:qe("settings.showDomainDatabase.title")},Ye={settingKey:Be.Rq,title:qe("settings.queryUseMultiSchema.title"),description:qe("settings.queryUseMultiSchema.description")},Ke={settingKey:Be.IG,title:qe("settings.useClusterBalancerAsBackend.title"),description:qe("settings.useClusterBalancerAsBackend.description")},Qe={settingKey:Be.y6,title:qe("settings.editor.autocomplete.title"),description:qe("settings.editor.autocomplete.description")},Je={settingKey:Be.XX,title:qe("settings.editor.autocomplete-on-enter.title"),description:qe("settings.editor.autocomplete-on-enter.description")},Xe={title:qe("settings.about.interfaceVersionInfoField.title"),type:"info",content:"6.23.1"},et={id:"appearanceSection",title:qe("section.appearance"),settings:[Ze,Ve,He,Ge]},tt={id:"experimentsSection",title:qe("section.experiments"),settings:[We,Ye]},nt={id:"devSettingsSection",title:qe("section.dev-setting"),settings:[Qe,Je]},rt={id:"aboutSettingsSection",title:qe("section.about"),settings:[Xe]},ot={id:"generalPage",title:qe("page.general"),icon:{data:je,height:14,width:14},sections:[et]},it={id:"experimentsPage",title:qe("page.experiments"),icon:{data:Me},sections:[tt]},at={id:"editorPage",title:qe("page.editor"),icon:{data:Le},sections:[nt]},st={id:"aboutPage",title:qe("page.about"),icon:{data:ze.Z},sections:[rt]};function lt(e){let{singleClusterMode:t}=e;const n=t?it:(0,Fe.Uy)(it,(e=>{e.sections[0].settings.push(Ke)}));return[ot,at,n,st]}var ct=n(1440),ut=n(96409);function dt(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"unknown";const t=()=>null;return t.displayName=`Slot(${e})`,t.__slotName=e,t}function ft(e){return"function"===typeof e&&"__slotName"in e}class pt{constructor(e){this.children=null,this.slots=void 0;const t=[];this.slots=new Map,o.Children.forEach(e,(e=>{if(n=e,o.isValidElement(n)&&ft(n.type)){const{type:t,props:n,ref:r}=e;if(this.slots.has(t))throw new Error(`Duplicate slot elements with name "${t.__slotName}" found.`);this.slots.set(t,{name:t.__slotName,props:n,ref:r,rendered:n.children})}else null!==e&&void 0!==e&&""!==e&&t.push(e);var n}));t.length>0&&(this.children=t)}get(e){if(!ft(e))throw new Error('Invalid slot component. Should be a component created using "createSlot".');return this.slots.get(e)}}var ht=n(29326),mt=n(99337),gt=n(30410);const vt=e=>o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),o.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M3.03 1.97a.75.75 0 0 0-1.06 1.06l.83.83A8.206 8.206 0 0 0 .5 6.876l-.26.585a1.328 1.328 0 0 0 0 1.079l.26.585a8.208 8.208 0 0 0 11.434 3.87l1.036 1.035a.75.75 0 1 0 1.06-1.06l-11-11Zm7.788 9.908-1.294-1.293a3 3 0 0 1-4.109-4.109L3.866 4.927A6.707 6.707 0 0 0 1.87 7.486L1.641 8l.23.515a6.708 6.708 0 0 0 8.947 3.363ZM6.55 7.611A1.502 1.502 0 0 0 8.389 9.45L6.55 7.611Zm1.658-2.604 2.784 2.784a3 3 0 0 0-2.784-2.784Zm5.92 3.508a6.704 6.704 0 0 1-.915 1.496l1.065 1.066A8.203 8.203 0 0 0 15.5 9.125l.26-.585a1.328 1.328 0 0 0 0-1.08l-.26-.584A8.208 8.208 0 0 0 5.572 2.37L6.81 3.61a6.708 6.708 0 0 1 7.32 3.877l.228.514-.228.515Z",clipRule:"evenodd"})),yt=e=>o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),o.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M1.87 8.515 1.641 8l.229-.515a6.708 6.708 0 0 1 12.26 0l.228.515-.229.515a6.708 6.708 0 0 1-12.259 0ZM.5 6.876l-.26.585a1.328 1.328 0 0 0 0 1.079l.26.584a8.208 8.208 0 0 0 15 0l.26-.584a1.328 1.328 0 0 0 0-1.08l-.26-.584a8.208 8.208 0 0 0-15 0ZM9.5 8a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0ZM11 8a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z",clipRule:"evenodd"}));var bt,wt,Et=n(86017);function _t(e){return Boolean(e&&"object"===typeof e&&"data"in e&&e.data&&"object"===typeof e.data&&"error"in e.data&&"string"===typeof e.data.error)}function xt(){return xt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xt.apply(this,arguments)}const St=function(e){return o.createElement("svg",xt({viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),bt||(bt=o.createElement("path",{d:"M0 16C0 7.163 7.163 0 16 0s16 7.163 16 16-7.163 16-16 16S0 24.837 0 16z",fill:"#5282FF"})),wt||(wt=o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M24 9.5c0 .828-1.343 1.5-3 1.5s-3-.672-3-1.5S19.343 8 21 8s3 .672 3 1.5zM13 19.6v2.7c0 .9 1.3 1.6 3 1.6s3-.7 3-1.6v-2.7c-.8.7-1.9 1-3 1s-2.2-.3-3-1zm5-8.6v-.4c.8.7 1.9 1 3 1s2.2-.3 3-1v2.8c0 .8-1.2 1.5-2.8 1.6l-2.475 2.871c.176.192.275.405.275.629 0 .828-1.343 1.5-3 1.5s-3-.672-3-1.5a.9.9 0 01.232-.58L10.8 15.1C9.3 15 8 14.3 8 13.5v-2.9c.8.7 1.9 1 3 1s2.2-.3 3-1v.4h4zm-.276 6.272A5.27 5.27 0 0016 17c-.265 0-.522.017-.766.05a5.994 5.994 0 00-1.134.25L12 14.9c1.1-.2 2-.8 2-1.5V12h4v1.4c0 .7.7 1.3 1.8 1.5l-2.076 2.372zM14 9.5c0 .828-1.343 1.5-3 1.5s-3-.672-3-1.5S9.343 8 11 8s3 .672 3 1.5z",fill:"#fff"})))},Ct=(0,fe.cn)("authentication");const kt=function(e){let{closable:t=!1}=e;const n=(0,ue.k6)(),r=(0,ue.TH)(),[i,{error:a,isLoading:s}]=c.nc.useAuthenticateMutation(void 0),{returnUrl:l}=(0,de.mB)(r),[u,d]=o.useState(""),[p,m]=o.useState(""),[g,v]=o.useState(""),[y,b]=o.useState(""),[w,_]=o.useState(!1);o.useEffect((()=>{(function(e){return _t(e)&&e.data.error.includes("user")})(a)&&v(a.data.error),function(e){return _t(e)&&e.data.error.includes("password")}(a)&&b(a.data.error)}),[a]);const S=()=>{i({user:u,password:p}).then((()=>{if(l){const e=decodeURIComponent(l.toString()),t=new URL(e),r=t.pathname+t.search;n.replace(r)}}))},C=e=>{13===e.keyCode&&S()};return(0,ie.jsxs)("section",{className:Ct(),children:[(0,ie.jsxs)("form",{className:Ct("form-wrapper"),children:[(0,ie.jsxs)("div",{className:Ct("header"),children:[(0,ie.jsxs)("div",{className:Ct("logo"),children:[(0,ie.jsx)(f.J,{data:St,size:24}),"YDB"]}),(0,ie.jsx)(Et.r,{href:"https://ydb.tech/docs",target:"_blank",children:"Documentation"})]}),(0,ie.jsx)("h2",{className:Ct("title"),children:"Sign in"}),(0,ie.jsx)("div",{className:Ct("field-wrapper"),children:(0,ie.jsx)(h.o,{value:u,onUpdate:e=>{d(e),v("")},placeholder:"Username",error:g,onKeyDown:C,size:"l",autoFocus:!0})}),(0,ie.jsxs)("div",{className:Ct("field-wrapper"),children:[(0,ie.jsx)(h.o,{value:p,onUpdate:e=>{m(e),b("")},type:w?"text":"password",placeholder:"Password",error:y,onKeyDown:C,size:"l"}),(0,ie.jsx)(x.z,{onClick:()=>{_((e=>!e))},size:"l",className:Ct("show-password-button"),children:(0,ie.jsx)(f.J,{data:w?vt:yt,size:16})})]}),(0,ie.jsx)(x.z,{view:"action",onClick:S,width:"max",size:"l",disabled:Boolean(!u||g||y),loading:s,className:Ct("button-sign-in"),children:"Sign in"})]}),t&&n.length>1&&(0,ie.jsx)(x.z,{onClick:()=>{n.go(-1)},className:Ct("close"),children:(0,ie.jsx)(f.J,{data:E.Z,size:24})})]})};var Ot=n(81003),Tt=n(43832),Nt=n.n(Tt),It=n(36951);const Pt=(0,It.Ge)("breadcrumbs");function Rt(e){return o.createElement("button",Object.assign({},e,{type:"button",className:Pt("switcher",{more:!0})}))}const Dt=(0,It.Ge)("breadcrumbs");const At=o.memo((function(e){let{item:t,isCurrent:n,isPrevCurrent:r,renderItemContent:i,renderItem:a}=e;const s=i?i(t,n,r):t.text;if(a)return a({item:t,children:s,isCurrent:n,isPrevCurrent:r});const l=t.title||t.text;return r||!n?void 0!==t.href?o.createElement(Et.r,{key:t.text,view:"secondary",href:t.href,title:l,onClick:t.action,className:Dt("item",{"prev-current":r})},s):o.createElement(Rt,{key:t.text,title:l,onClick:t.action},s):o.createElement("div",{title:l,className:Dt("item",{current:!0})},s)}));At.displayName="Breadcrumbs.Item";var jt=n(30831);const Mt=JSON.parse('{"label_more":"Show more"}'),Lt=JSON.parse('{"label_more":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u0435"}'),zt=(0,w.e)({en:Mt,ru:Lt},"Breadcrumbs"),Ft=(0,It.Ge)("breadcrumbs");function Bt(e){let{popupStyle:t,popupPlacement:n,items:r}=e;return o.createElement(jt.h,{items:r,popupProps:{className:Ft("popup",{staircase:"staircase"===t}),placement:n},renderSwitcher:e=>{let{onClick:t}=e;return o.createElement(Rt,{title:zt("label_more"),onClick:t},"...")}})}Bt.displayName="Breadcrumbs.More";const Ut=(0,It.Ge)("breadcrumbs");function qt(e){let{renderItemDivider:t}=e;return o.createElement("div",{"aria-hidden":!0,className:Ut("divider")},t?t():"/")}qt.displayName="Breadcrumbs.Separator";const $t=(0,It.Ge)("breadcrumbs");var Zt,Ht;!function(e){e[e.One=1]="One",e[e.Two=2]="Two"}(Zt||(Zt={})),function(e){e[e.Zero=0]="Zero",e[e.One=1]="One"}(Ht||(Ht={}));class Vt extends o.Component{static prepareInitialState(e){const{firstDisplayedItemsCount:t}=e;return{calculated:!1,rootItem:t?e.items[0]:void 0,visibleItems:e.items.slice(t),hiddenItems:[],allItems:e.items}}static getDerivedStateFromProps(e,t){return t.allItems!==e.items?Vt.prepareInitialState(e):null}constructor(e){super(e),this.handleResize=()=>{const e=Vt.prepareInitialState(this.props);this.setState(e,this.recalculate)},this.handleResize=Nt()(this.handleResize,200),"undefined"!==typeof window&&(this.resizeObserver=new ResizeObserver(this.handleResize)),this.container=o.createRef(),this.state=Vt.prepareInitialState(e)}componentDidMount(){var e;this.recalculate(),null===(e=this.resizeObserver)||void 0===e||e.observe(this.container.current)}componentDidUpdate(e){e.items!==this.state.allItems&&this.recalculate()}componentWillUnmount(){var e;null===(e=this.resizeObserver)||void 0===e||e.disconnect()}render(){const{className:e,qa:t}=this.props,{calculated:n}=this.state;return o.createElement("div",{className:$t({calculated:n?"yes":"no"},e),"data-qa":t},o.createElement("div",{className:$t("inner"),ref:this.container},this.renderRootItem(),this.renderMoreItem(),this.renderVisibleItems()))}renderItem(e,t,n,r){return o.createElement(At,{item:e,isCurrent:t,isPrevCurrent:n,renderItemContent:r||this.props.renderItemContent,renderItem:this.props.renderItem})}renderItemDivider(){const{renderItemDivider:e}=this.props;return o.createElement(qt,{renderItemDivider:e})}renderRootItem(){const{renderRootContent:e}=this.props,{rootItem:t,visibleItems:n}=this.state,r=0===n.length;return t?this.renderItem(t,r,!1,e):null}renderVisibleItems(){const{visibleItems:e}=this.state;return e.map(((e,t,n)=>{const r=t===n.length-1,i=t===n.length-2;return o.createElement(o.Fragment,{key:t},this.renderItemDivider(),this.renderItem(e,r,i))}))}renderMoreItem(){const{hiddenItems:e}=this.state;if(0===e.length)return null;const{popupStyle:t,popupPlacement:n,renderItemDivider:r}=this.props;return o.createElement(o.Fragment,null,o.createElement(qt,{renderItemDivider:r}),o.createElement(Bt,{items:e,popupPlacement:n,popupStyle:t}))}recalculate(){var e;const{items:t,lastDisplayedItemsCount:n,firstDisplayedItemsCount:r}=this.props;let o=(null===(e=this.container.current)||void 0===e?void 0:e.offsetWidth)||0;if(this.container.current&&o>0){o+=4;const e=Array.from(this.container.current.querySelectorAll(`.${$t("divider")}`)),i=[...Array.from(this.container.current.querySelectorAll(`.${$t("switcher")}`)),...Array.from(this.container.current.querySelectorAll(`.${$t("item")}`))],a=i.map(((e,t)=>e.scrollWidth+(t===i.length-1?4:8))),s=e.map((e=>e.offsetWidth));let l=a.reduce(((e,t,r,o)=>{const i=o.length-1===r,a=n===Zt.Two&&o.length-2===r;return i||a?e+Math.min(t,200):e+t}),0)+s.reduce(((e,t)=>e+t),0),c=1;for(;l>o&&c<i.length-n;)1===c&&(l+=34+s[c]),l-=a[c]+s[c],c++;this.setState({calculated:!0,visibleItems:t.slice(c-(1-r)),hiddenItems:t.slice(r,c-(1-r))})}}}Vt.defaultProps={popupPlacement:["bottom","top"]};var Wt=n(74170),Gt=n(32270),Yt=n(27102),Kt=n(77915);const Qt=e=>o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),o.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M11 2.5a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3ZM14 4a3 3 0 1 0-5.895.79L6.15 5.908a3 3 0 1 0 0 4.185l1.955 1.117A3.003 3.003 0 0 0 11 15a3 3 0 1 0-2.15-5.092L6.895 8.79a3.003 3.003 0 0 0 0-1.58L8.85 6.092A3 3 0 0 0 14 4Zm-3 6.5a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3ZM2.5 8a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0Z",clipRule:"evenodd"})),Jt=e=>o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),o.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M11.615 4.888c.814-.375.885-.714.885-.888 0-.174-.071-.513-.885-.888C10.8 2.737 9.538 2.5 8 2.5c-1.538 0-2.799.237-3.615.612-.814.375-.885.714-.885.888 0 .174.071.513.885.888C5.2 5.263 6.462 5.5 8 5.5c1.538 0 2.799-.237 3.615-.612Zm.885 1.235C11.4 6.708 9.792 7 8 7c-1.792 0-3.4-.292-4.5-.877V8c0 .174.071.513.885.888C5.2 9.263 6.462 9.5 8 9.5c1.538 0 2.799-.237 3.615-.612.814-.375.885-.714.885-.888V6.123Zm0 4C11.4 10.708 9.792 11 8 11c-1.792 0-3.4-.293-4.5-.877V12c0 .174.071.513.885.887.816.377 2.077.613 3.615.613 1.538 0 2.799-.236 3.615-.613.814-.374.885-.713.885-.887v-1.877ZM14 4c0-2-2.686-3-6-3S2 2 2 4v8c0 2 2.686 3 6 3s6-1 6-3V4Z",clipRule:"evenodd"})),Xt=e=>o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),o.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 8.5a1.5 1.5 0 0 1 1.5 1.5v1a1.5 1.5 0 0 1-1.5 1.5H4A1.5 1.5 0 0 1 2.5 11v-1A1.5 1.5 0 0 1 4 8.5h8Zm.89-1.366L11.488 4.33a1.5 1.5 0 0 0-1.342-.829H5.854a1.5 1.5 0 0 0-1.342.83L3.11 7.133A3 3 0 0 1 4 7h8a3 3 0 0 1 .89.134ZM15 9.18V11a3 3 0 0 1-3 3H4a3 3 0 0 1-3-3V9.18a5 5 0 0 1 .528-2.236L3.17 3.658A3 3 0 0 1 5.854 2h4.292a3 3 0 0 1 2.683 1.658l1.643 3.286A5 5 0 0 1 15 9.18Zm-6 .57a.75.75 0 0 0 0 1.5h2.5a.75.75 0 0 0 0-1.5H9Z",clipRule:"evenodd"})),en=e=>o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),o.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M7 1.25a.75.75 0 0 0-1.5 0V2.5a3 3 0 0 0-3 3H1.25a.75.75 0 0 0 0 1.5H2.5v2H1.25a.75.75 0 0 0 0 1.5H2.5a3 3 0 0 0 3 3v1.25a.75.75 0 0 0 1.5 0V13.5h2v1.25a.75.75 0 0 0 1.5 0V13.5a3 3 0 0 0 3-3h1.25a.75.75 0 1 0 0-1.5H13.5V7h1.25a.75.75 0 1 0 0-1.5H13.5a3 3 0 0 0-3-3V1.25a.75.75 0 0 0-1.5 0V2.5H7V1.25ZM10.5 4h-5A1.5 1.5 0 0 0 4 5.5v5A1.5 1.5 0 0 0 5.5 12h5a1.5 1.5 0 0 0 1.5-1.5v-5A1.5 1.5 0 0 0 10.5 4Zm0 2.25a.75.75 0 0 0-.75-.75h-3.5a.75.75 0 0 0-.75.75v3.5a.75.75 0 0 0 .75.75h3.5a.75.75 0 0 0 .75-.75v-3.5ZM7 7h2v2H7V7Z",clipRule:"evenodd"}));var tn=n(42784),nn=n(24015),rn=n(92398),on=n(95478);const an=JSON.parse('{"breadcrumbs.tenant":"Tenant","breadcrumbs.node":"Node","breadcrumbs.pDisk":"PDisk","breadcrumbs.vDisk":"VDisk","breadcrumbs.tablet":"Tablet","breadcrumbs.tablets":"Tablets","breadcrumbs.storageGroup":"Storage Group"}'),sn=(0,pe.wZ)("ydb-header",{en:an}),ln=e=>e.startsWith("/")?e.slice(1):e,cn=e=>({[nn.bS]:nn.m2.diagnostics,[on.XV.diagnosticsTab]:nn.qQ[e]}),un=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{clusterName:n,clusterTab:r}=e;return[{text:n||Be.DO,link:(0,Ot.B7)(r,t),icon:(0,ie.jsx)(Qt,{})}]},dn=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{tenantName:n}=e,r=un(e,t),o={text:n?ln(n):sn("breadcrumbs.tenant"),link:n?(0,on.Sj)({...t,name:n}):void 0,icon:(0,ie.jsx)(Jt,{})};return r.push(o),r},fn=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{nodeId:n,nodeRole:r,nodeActiveTab:o,tenantName:i}=e,a=cn(o===rn.IA?"tablets":"nodes"),s=i?dn(e,{...t,...a}):un(e,t);let l=sn("breadcrumbs.node");n&&(l+=` ${n}`);const c={text:l,link:n?(0,rn.a3)(n,{tenantName:i,...t},o):void 0,icon:pn(r)};return s.push(c),s};function pn(e){switch(e){case"Storage":return(0,ie.jsx)(Xt,{});case"Compute":return(0,ie.jsx)(en,{});default:return}}const hn=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{nodeId:n,pDiskId:r,nodeRole:o}=e,i=fn({...e,nodeRole:null!==o&&void 0!==o?o:"Storage"});let a=sn("breadcrumbs.pDisk");r&&(a+=` ${r}`);const s={text:a,link:r&&n?(0,de.ds)(r,n,t):void 0};return i.push(s),i},mn={cluster:un,node:fn,pDisk:hn,tablet:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{tabletId:n,tabletType:r,nodeId:o,nodeRole:i,nodeActiveTab:a=rn.IA,tenantName:s}=e,l=fn({nodeId:o,nodeRole:i,nodeActiveTab:a,tenantName:s},t),c={text:n||sn("breadcrumbs.tablet"),icon:(0,ie.jsx)(tn.v,{text:(0,Be.qV)(r)})};return l.push(c),l},tenant:dn,vDisk:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{vDiskSlotId:n}=e,r=hn(e,t);let o=sn("breadcrumbs.vDisk");n&&(o+=` ${n}`);const i={text:o};return r.push(i),r},storageGroup:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{groupId:n}=e,r=un(e,t);let o=sn("breadcrumbs.storageGroup");n&&(o+=` ${n}`);const i={text:o};return r.push(i),r}},gn=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(!e)return n;const o=(0,mn[e])(t,r);return[...n,...o]},vn=(0,fe.cn)("header"),yn=e=>e&&!Yt.j4?"/internal":Yt.y3+"/internal";const bn=function(e){let{mainPage:t}=e;const n=(0,u.ix)((e=>e.singleClusterMode)),{page:r,pageBreadcrumbsOptions:i}=(0,u.ix)((e=>e.header)),a=(0,Kt.kW)(),s=a.title||a.name,l=o.useMemo((()=>{const e=[];let n=i;t&&e.push(t),s&&(n={...n,clusterName:s});return gn(r,n,e).map((e=>({...e,action:()=>{}})))}),[s,t,r,i]);return(0,ie.jsxs)("header",{className:vn(),children:[(0,ie.jsx)(Vt,{items:l,lastDisplayedItemsCount:1,firstDisplayedItemsCount:1,className:vn("breadcrumbs"),renderItem:e=>{let{item:t,isCurrent:n}=e;const{icon:r,text:o,link:i}=t;return(0,ie.jsxs)(Wt.h,{className:vn("breadcrumbs-item",{active:n,link:!n}),to:n?void 0:i,children:[r?(0,ie.jsx)("span",{className:vn("breadcrumbs-icon"),children:r}):null,(0,ie.jsx)("span",{children:o})]})}}),(0,ie.jsx)(Gt.j,{title:Be.Ah,url:yn(n)})]})},wn=dt("clusters"),En=dt("cluster"),_n=dt("tenant"),xn=dt("node"),Sn=dt("pDisk"),Cn=dt("vDisk"),kn=dt("storageGroup"),On=dt("tablet"),Tn=dt("routes"),Nn=dt("redirect"),In=JSON.parse('{"pages.clusters":"All clusters"}'),Pn=JSON.parse('{"pages.clusters":"\u0412\u0441\u0435 \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u044b"}'),Rn=(0,pe.wZ)("ydb-app-content",{ru:Pn,en:In}),Dn=(0,fe.cn)("app"),An=[{path:de.ZP.cluster,slot:En,component:(0,gt.k)((()=>Promise.all([n.e(4482),n.e(4726),n.e(6382),n.e(9854),n.e(9870),n.e(3862)]).then(n.bind(n,37070))),"Cluster"),wrapper:zn},{path:de.ZP.tenant,slot:_n,component:(0,gt.k)((()=>Promise.all([n.e(4482),n.e(4726),n.e(9415),n.e(7059),n.e(6382),n.e(9854),n.e(9870),n.e(6194)]).then(n.bind(n,83709))),"Tenant"),wrapper:zn},{path:de.ZP.node,slot:xn,component:(0,gt.k)((()=>Promise.all([n.e(4482),n.e(4726),n.e(7673),n.e(6382),n.e(9854),n.e(7074),n.e(7963)]).then(n.bind(n,72473))),"Node"),wrapper:zn},{path:de.ZP.pDisk,slot:Sn,component:(0,gt.k)((()=>Promise.all([n.e(4482),n.e(4726),n.e(5844),n.e(6382),n.e(7074),n.e(4263)]).then(n.bind(n,64263))),"PDiskPage"),wrapper:zn},{path:de.ZP.vDisk,slot:Cn,component:(0,gt.k)((()=>Promise.all([n.e(4482),n.e(4726),n.e(5345),n.e(6382),n.e(7074),n.e(5410)]).then(n.bind(n,65410))),"VDiskPage"),wrapper:zn},{path:de.ZP.storageGroup,slot:kn,component:(0,gt.k)((()=>Promise.all([n.e(4482),n.e(4726),n.e(6382),n.e(6123)]).then(n.bind(n,35953))),"StorageGroupPage"),wrapper:zn},{path:de.ZP.tablet,slot:On,component:(0,gt.k)((()=>Promise.all([n.e(4482),n.e(9415),n.e(1878)]).then(n.bind(n,4259))),"Tablet"),wrapper:zn}],jn=(0,gt.k)((()=>Promise.all([n.e(4482),n.e(4726),n.e(2244)]).then(n.bind(n,17851))),"Clusters");function Mn(e,t){return(0,ie.jsx)(ue.AW,{path:t.path,exact:t.exact,render:n=>{var r;const i=e.get(t.slot);let a;if(i)a="function"===typeof i.rendered?i.rendered({component:t.component,...n}):i.rendered;else{const e=t.component;a=(0,ie.jsx)(e,{...n})}const s=null!==(r=t.wrapper)&&void 0!==r?r:o.Fragment;return(0,ie.jsx)("main",{className:Dn("main"),children:(0,ie.jsx)(s,{children:a})})}},t.path)}function Ln(e){var t;const{singleClusterMode:n}=e,r=function(e){const{children:t}=e;return o.useMemo((()=>new pt(t)),[t])}(e),i=r.get(Tn),a=r.get(Nn),s=null!==(t=null===a||void 0===a?void 0:a.props)&&void 0!==t?t:n?{to:(0,Ot.B7)()}:{to:de.ZP.clusters};let l;return n||(l={text:Rn("pages.clusters"),link:de.ZP.clusters}),(0,ie.jsxs)(ue.rs,{children:[n?null:Mn(r,{path:de.ZP.clusters,exact:!0,component:jn,slot:wn}),null===i||void 0===i?void 0:i.rendered,(0,ie.jsxs)(ue.AW,{children:[(0,ie.jsx)(bn,{mainPage:l}),(0,ie.jsxs)(ue.rs,{children:[An.map((e=>Mn(r,e))),(0,ie.jsx)(ue.AW,{path:s.from||s.path,exact:s.exact,strict:s.strict,render:()=>(0,ie.jsx)(ue.l_,{to:s.to,push:s.push})})]})]},"single-cluster")]})}function zn(e){let{children:t}=e;return(0,ie.jsxs)(Fn,{children:[(0,ie.jsx)(Bn,{}),(0,ie.jsx)(Un,{}),t]})}function Fn(e){let{children:t}=e;const{isLoading:n,error:r}=c.nc.useWhoamiQuery(void 0);return(0,ie.jsx)(ut.s,{loading:n,size:"l",children:(0,ie.jsx)(ct.S,{error:r,children:t})})}function Bn(){return mt.W.useGetNodesListQuery(void 0),null}function Un(){return ht.Gi.useGetClusterCapabilitiesQuery(void 0),null}const qn=(0,a.$j)((function(e){return{isAuthenticated:e.authentication.isAuthenticated,singleClusterMode:e.singleClusterMode}}))((function(e){const{singleClusterMode:t,isAuthenticated:n}=e;return(0,ie.jsxs)(ue.rs,{children:[(0,ie.jsx)(ue.AW,{path:de.ZP.auth,children:(0,ie.jsx)(kt,{closable:!0})}),(0,ie.jsx)(ue.AW,{children:(0,ie.jsx)("div",{className:Dn({embedded:t}),children:n?e.children:(0,ie.jsx)(kt,{})})})]})}));var $n=n(78761),Zn=n(98994);const Hn=e=>{let{children:t}=e;(0,ue.TH)();const n=(0,ue.k6)();return t({replace(e){n.replace(e.search||"?",e.state)},push(e){n.push(e.search||"?",e.state)},get location(){return n.location}})},Vn=e=>o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),o.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M10 4.5a2 2 0 1 1-4 0 2 2 0 0 1 4 0Zm1.5 0a3.5 3.5 0 1 1-7 0 3.5 3.5 0 0 1 7 0Zm-9 8c0-.204.22-.809 1.32-1.459C4.838 10.44 6.32 10 8 10c1.68 0 3.162.44 4.18 1.041 1.1.65 1.32 1.255 1.32 1.459a1 1 0 0 1-1 1h-9a1 1 0 0 1-1-1Zm5.5-4c-3.85 0-7 2-7 4A2.5 2.5 0 0 0 3.5 15h9a2.5 2.5 0 0 0 2.5-2.5c0-2-3.15-4-7-4Z",clipRule:"evenodd"}));var Wn=n(32257),Gn=n(21645),Yn=n(57107),Kn=n(2266),Qn=n(24917);const Jn=o.createContext(void 0);Jn.displayName="AsideHeaderInnerContext";const Xn=Jn.Provider,er=()=>{const e=o.useContext(Jn);if(void 0===e)throw new Error("AsideHeaderInnerContext is not initialized.\n Please check if you wrapped your component with AsideHeaderInnerContext.Provider");return e},tr=o.createContext({compact:!1,size:0});tr.displayName="AsideHeaderContext";const nr=tr.Provider,rr=()=>{const e=o.useContext(tr);if(void 0===e)throw new Error("AsideHeaderContext is not initialized.\n Please check if you wrapped your component with AsideHeader\n Context.Provider");return e},or=40;var ir=n(98409);y('.gn-composite-bar-highlighted-item{--_--background-color:var(--g-color-base-background);--_--item-icon-background-size:38px;--_--item-background-color-hover:var(--g-color-base-selection-hover);--_--item-selected-background-color-active:var(--g-color-base-selection);display:flex;justify-content:center;position:absolute;z-index:10000}.gn-composite-bar-highlighted-item__icon{align-items:center;background-color:var(--gn-aside-header-background-color,var(--_--background-color));border-radius:7px;box-shadow:0 8px 20px 0 var(--g-color-sfx-shadow);cursor:pointer;display:flex;height:var(--gn-aside-header-item-icon-background-size,var(--_--item-icon-background-size));justify-content:center;overflow:hidden;position:relative;transform:translateY(1px);width:var(--gn-aside-header-item-icon-background-size,var(--_--item-icon-background-size))}.gn-composite-bar-highlighted-item__icon:before{background-color:var(--gn-aside-header-item-current-background-color,var(--_--item-selected-background-color-active));content:"";height:100%;position:absolute;width:100%;z-index:-1}.gn-composite-bar-highlighted-item__icon:hover:before{background-color:var(--gn-aside-header-item-background-color-hover,var(--_--item-background-color-hover))}');const ar=(0,v.b)("composite-bar-highlighted-item"),sr=e=>{let{iconRef:t,iconNode:n,onClick:r,onClickCapture:i}=e;const{openModalSubscriber:a}=er(),[{top:s,left:l,width:c,height:u},d]=(0,o.useState)({top:0,left:0,width:0,height:0}),[f,p]=(0,o.useState)(!1),h=(0,o.useMemo)((()=>(0,b.d)((()=>{var e;const{top:n=0,left:r=0,width:o=0,height:i=0}=(null===(e=null===t||void 0===t?void 0:t.current)||void 0===e?void 0:e.getBoundingClientRect())||{};d({top:n+window.scrollY,left:r+window.scrollX,width:o,height:i})}),200,{leading:!0})),[t]),m=(0,o.useCallback)((()=>h()),[h]);return(0,o.useEffect)((()=>{if(f)return m(),window.addEventListener("resize",m),()=>window.removeEventListener("resize",m)}),[m,f]),null===a||void 0===a||a((e=>{p(e)})),n&&f?o.createElement(Yn.h,null,o.createElement("div",{className:ar(),style:{left:l,top:s,width:c,height:u},onClick:r,onClickCapture:i,"data-toast":!0},o.createElement("div",{className:ar("icon")},n))):null};sr.displayName="HighlightedItem";const lr="collapse-item-id",cr=["right-start","right-end","right"],ur=28;function dr(e){if(!hr(e))return or;switch(e.type){case"action":return 50;case"divider":return 15;default:return or}}function fr(e){return e.reduce(((e,t)=>e+dr(t)),0)}function pr(e){const t=e.findIndex((e=>{let{current:t}=e;return Boolean(t)}));return-1===t?void 0:t}function hr(e){return void 0!==(null===e||void 0===e?void 0:e.id)}y('.gn-composite-bar-item{--gn-composite-bar-item-action-size:36px;--_--horizontal-divider-line-color:var(--g-color-line-generic);--_--item-background-color-hover:var(--g-color-base-simple-hover);--_--item-general-icon-color:var(--g-color-text-primary);--_--item-icon-color:var(--g-color-text-misc);--_--item-text-color:var(--g-color-text-primary);--_--item-selected-text-color:var(--g-color-text-primary);--_--item-selected-background-color-active:var(--g-color-base-selection);align-items:center;cursor:pointer;display:flex;height:100%;width:100%}.gn-composite-bar-item__icon{color:var(--gn-aside-header-item-icon-color,var(--_--item-icon-color))}.gn-composite-bar-item_current .gn-composite-bar-item__icon{color:var(--gn-aside-header-item-current-icon-color,var(--gn-aside-header-item-icon-color,var(--_--item-icon-color)))}.gn-composite-bar-highlighted-item .gn-composite-bar-item__icon,.gn-composite-bar_subheader .gn-composite-bar-item__icon,.gn-footer-item .gn-composite-bar-item__icon{color:var(--gn-aside-header-general-item-icon-color,var(--_--item-general-icon-color))}.gn-composite-bar-highlighted-item.gn-composite-bar-item_current .gn-composite-bar-item__icon,.gn-composite-bar_subheader .gn-composite-bar-item_current .gn-composite-bar-item__icon,.gn-footer-item.gn-composite-bar-item_current .gn-composite-bar-item__icon{color:var(--gn-aside-header-item-current-icon-color,var(--gn-aside-header-general-item-icon-color,var(--_--item-general-icon-color)))}.gn-composite-bar-item__icon-tooltip .g-action-tooltip__description{color:var(--g-color-text-light-primary);margin-block-start:0}.gn-composite-bar-item__icon-place{align-items:center;display:flex;flex-shrink:0;height:100%;justify-content:center;width:var(--gn-aside-header-min-width)}.gn-composite-bar-item__title{display:flex;overflow:hidden}.gn-composite-bar-item__title-text{color:var(--gn-aside-header-item-text-color,var(--_--item-text-color));overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.gn-composite-bar-item_current .gn-composite-bar-item__title-text{color:var(--gn-aside-header-item-current-text-color,var(--_--item-selected-text-color))}.gn-composite-bar-item__title-adornment{margin:0 10px}.gn-composite-bar-item__collapse-item{align-items:center;cursor:pointer;display:flex;height:100%;padding:0 16px;width:100%}.gn-composite-bar-item__collapse-item .gn-composite-bar-item__title-adornment{margin-right:0}.gn-composite-bar-item__menu-divider{border-top:1px solid var(--gn-aside-header-divider-horizontal-color,var(--_--horizontal-divider-line-color));cursor:default;margin:0 8px;width:100%}.gn-composite-bar-item__collapse-items-popup-content{padding:4px 0}.gn-composite-bar-item__link{align-items:center;display:flex;height:100%;width:100%}.gn-composite-bar-item__link,.gn-composite-bar-item__link:active,.gn-composite-bar-item__link:focus,.gn-composite-bar-item__link:hover,.gn-composite-bar-item__link:visited{color:inherit;outline:none;text-decoration:none}.gn-composite-bar-item__btn-icon{align-items:center;display:flex;height:100%;justify-content:center;width:100%}.gn-composite-bar-item_type_action{background:var(--g-color-base-float);border-radius:var(--gn-composite-bar-item-action-size);box-shadow:0 0 0 1px rgba(0,0,0,.03),0 5px 6px rgba(0,0,0,.12);height:var(--gn-composite-bar-item-action-size);justify-content:center;margin:0 10px 8px;transition:transform .1s ease-out,background-color .15s linear}.gn-composite-bar-item_type_action:focus-visible{box-shadow:0 0 0 2px var(--g-color-line-misc)}.gn-composite-bar-item_type_action:hover{background-color:var(--g-color-base-float-hover)}.gn-composite-bar-item_type_action:active{box-shadow:0 1px 2px var(--g-color-sfx-shadow);transform:scale(.96);transition:none}.gn-composite-bar-item_type_action .gn-composite-bar-item__icon-place{width:var(--gn-composite-bar-item-action-size)}.gn-composite-bar-item_type_action .gn-composite-bar-item__title{margin-right:16px}.gn-composite-bar-item__icon-tooltip_item-type_action{margin-left:10px}.gn-composite-bar-item:not(.gn-composite-bar-item_compact).gn-composite-bar-item_current.gn-composite-bar-item_type_regular{background-color:var(--gn-aside-header-item-current-background-color,var(--_--item-selected-background-color-active))}.gn-composite-bar-item:not(.gn-composite-bar-item_compact):hover.gn-composite-bar-item_type_regular{background-color:var(--gn-aside-header-item-current-background-color-hover,var(--gn-aside-header-item-current-background-color,var(--_--item-selected-background-color-active)))}.gn-composite-bar-item:not(.gn-composite-bar-item_compact):not(.gn-composite-bar-item_current):hover.gn-composite-bar-item_type_regular{background-color:var(--gn-aside-header-item-background-color-hover,var(--_--item-background-color-hover))}.gn-composite-bar-item_compact.gn-composite-bar-item_type_action{width:var(--gn-composite-bar-item-action-size)}.gn-composite-bar-item_compact.gn-composite-bar-item_type_action .gn-composite-bar-item__title{margin:0}.gn-composite-bar-item_compact.gn-composite-bar-item_current.gn-composite-bar-item_type_regular .gn-composite-bar-item__btn-icon{background-color:transparent;position:relative}.gn-composite-bar-item_compact.gn-composite-bar-item_current.gn-composite-bar-item_type_regular .gn-composite-bar-item__btn-icon:before{background-color:var(--gn-aside-header-item-current-background-color,var(--_--item-selected-background-color-active));border-radius:7px;content:"";height:var(--gn-aside-header-item-icon-background-size,var(--_--item-icon-background-size));left:50%;margin-left:-19px;margin-top:-19px;position:absolute;top:50%;width:var(--gn-aside-header-item-icon-background-size,var(--_--item-icon-background-size));z-index:-1}.gn-composite-bar-item_compact:hover.gn-composite-bar-item_type_regular .gn-composite-bar-item__btn-icon{background-color:transparent;position:relative}.gn-composite-bar-item_compact:hover.gn-composite-bar-item_type_regular .gn-composite-bar-item__btn-icon:before{background-color:var(--gn-aside-header-item-current-background-color-hover,var(--gn-aside-header-item-current-background-color,var(--_--item-selected-background-color-active)));border-radius:7px;content:"";height:var(--gn-aside-header-item-icon-background-size,var(--_--item-icon-background-size));left:50%;margin-left:-19px;margin-top:-19px;position:absolute;top:50%;width:var(--gn-aside-header-item-icon-background-size,var(--_--item-icon-background-size));z-index:-1}.gn-composite-bar-item_compact:not(.gn-composite-bar-item_current):hover.gn-composite-bar-item_type_regular .gn-composite-bar-item__btn-icon{background-color:transparent;position:relative}.gn-composite-bar-item_compact:not(.gn-composite-bar-item_current):hover.gn-composite-bar-item_type_regular .gn-composite-bar-item__btn-icon:before{background-color:var(--gn-aside-header-item-background-color-hover,var(--_--item-background-color-hover));border-radius:7px;content:"";height:var(--gn-aside-header-item-icon-background-size,var(--_--item-icon-background-size));left:50%;margin-left:-19px;margin-top:-19px;position:absolute;top:50%;width:var(--gn-aside-header-item-icon-background-size,var(--_--item-icon-background-size));z-index:-1}');const mr=(0,v.b)("composite-bar-item");function gr(e){let t=o.createElement("div",{className:mr("title-text")},e.title);return e.rightAdornment&&(t=o.createElement(o.Fragment,null,t,o.createElement("div",{className:mr("title-adornment")},e.rightAdornment))),t}const vr=["right-end"],yr=[-20,8],br=e=>{const{item:t,className:n,collapseItems:r,onMouseLeave:i,onMouseEnter:a,enableTooltip:s=!0,popupVisible:l=!1,popupAnchor:c,popupPlacement:u=vr,popupOffset:d=yr,popupKeepMounted:p,popupContentClassName:h,renderPopupContent:m,onClosePopup:g,onItemClick:v,onItemClickCapture:y,bringForward:b}=e,{compact:w}=rr(),[E,_]=o.useState(!1),x=o.useRef(null),S=c||x,C=o.useRef(null),k=t.type||"regular",O=t.current||!1,T=t.tooltipText||t.title,N=t.icon,I=t.iconSize||18,P=t.iconQa,R=t.id===lr,D=o.useMemo((()=>[{name:"compact",enabled:!0,options:{compact:w},phase:"main",fn(){}}]),[w]),A=o.useCallback((e=>{var t;e instanceof MouseEvent&&e.target&&(null===(t=x.current)||void 0===t?void 0:t.contains(e.target))||null===g||void 0===g||g()}),[g]);if("divider"===t.type)return o.createElement("div",{className:mr("menu-divider")});const j=e=>w?o.createElement(Kn.M,{title:"",description:T,disabled:!s||R&&E||l,placement:"right",className:mr("icon-tooltip",{"item-type":k})},o.createElement("div",{onMouseEnter:()=>null===a||void 0===a?void 0:a(),onMouseLeave:()=>null===i||void 0===i?void 0:i(),className:mr("btn-icon")},e)):e,M=e=>{let{icon:r,title:s}=e;const c=o.createElement(o.Fragment,null,o.createElement("div",{className:mr({type:k,current:O,compact:w},n),ref:x,"data-qa":t.qa,onClick:e=>{R?_(!E):null===v||void 0===v||v(t,!1,e)},onClickCapture:y,onMouseEnter:()=>{w||null===a||void 0===a||a()},onMouseLeave:()=>{w||null===i||void 0===i||i()}},o.createElement("div",{className:mr("icon-place"),ref:C},j(r)),o.createElement("div",{className:mr("title"),title:"string"===typeof t.title?t.title:void 0},s)),m&&Boolean(null===S||void 0===S?void 0:S.current)&&o.createElement(we.G,{contentClassName:mr("popup",h),open:l,keepMounted:p,placement:u,offset:d,anchorRef:S,onClose:A,modifiers:D},m()));return t.link?o.createElement("a",{href:t.link,className:mr("link")},c):c},L=N?o.createElement(f.J,{qa:P,data:N,size:I,className:mr("icon")}):null,z={icon:L,title:gr(t)};let F,B=null;const U={compact:Boolean(w),collapsed:!1,item:t,ref:x};return"function"===typeof t.itemWrapper?(F=t.itemWrapper(z,M,U),B=b&&t.itemWrapper(z,(e=>{let{icon:t}=e;return j(t)}),U)):(F=M(z),B=b&&j(L)),o.createElement(o.Fragment,null,b&&o.createElement(sr,{iconNode:B,iconRef:C,onClick:e=>null===v||void 0===v?void 0:v(t,!1,e),onClickCapture:y}),F,E&&R&&(null===r||void 0===r?void 0:r.length)&&Boolean(null===S||void 0===S?void 0:S.current)&&o.createElement(wr,Object.assign({},e,{anchorRef:x,onClose:()=>_(!1)})))};function wr(e){let{onItemClick:t,collapseItems:n,anchorRef:r,onClose:i}=e;const{compact:a}=rr();return(null===n||void 0===n?void 0:n.length)?o.createElement(we.G,{placement:cr,open:!0,anchorRef:r,onClose:i},o.createElement("div",{className:mr("collapse-items-popup-content")},o.createElement(Qn.a,{itemClassName:mr("root-collapse-item"),items:n,selectedItemIndex:pr(n),itemHeight:ur,itemsHeight:n.length*ur,virtualized:!1,filterable:!1,sortable:!1,onItemClick:i,renderItem:e=>{const n=n=>{let{title:r}=n;const i=o.createElement("div",{className:mr("collapse-item"),onClick:n=>{null===t||void 0===t||t(e,!0,n)}},r);return e.link?o.createElement("a",{href:e.link,className:mr("link")},i):i},i={title:gr(e)},s={compact:Boolean(a),collapsed:!0,item:e,ref:r};return"function"===typeof e.itemWrapper?e.itemWrapper(i,n,s):n(i)}}))):null}br.displayName="Item";n(5247);y(".gn-footer-item{height:40px;width:100%}");const Er=(0,v.b)("footer-item"),_r=e=>{var{item:t}=e,n=d(e,["item"]);return o.createElement(br,Object.assign({},n,{item:Object.assign({iconSize:18},t),className:Er({compact:n.compact}),onItemClick:t.onItemClick,onItemClickCapture:t.onItemClickCapture}))},xr=o.memo((e=>{let{renderContent:t,size:n}=e;return o.createElement(o.Fragment,null,t({size:n}))}));xr.displayName="RenderContent";const Sr=e=>{let{size:t,className:n,cssSizeVariableName:r="--gn-aside-header-size",renderContent:i,children:a}=e;return o.createElement("div",{className:n,style:Object.assign({},{[r]:`${t}px`})},"function"===typeof i?o.createElement(xr,{size:t,renderContent:i}):a)};var Cr=n(50528);y('.g-root{--gn-aside-top-panel-height:0px}.gn-aside-header{--gn-aside-header-min-width:56px;--_--item-icon-background-size:38px;--_--background-color:var(--g-color-base-background);--_--decoration-collapsed-background-color:var(--g-color-base-warning-light);--_--decoration-expanded-background-color:var(--g-color-base-warning-light);--_--vertical-divider-line-color:var(--g-color-line-generic);--_--horizontal-divider-line-color:var(--g-color-line-generic);background-color:var(--g-color-base-background);height:100%;position:relative;width:100%}.gn-aside-header__aside{background-color:var(--gn-aside-header-background-color,var(--_--background-color));box-sizing:border-box;display:flex;flex-direction:column;height:100vh;left:0;margin-top:var(--gn-aside-top-panel-height);max-height:calc(100vh - var(--gn-aside-top-panel-height));position:sticky;top:var(--gn-aside-top-panel-height);width:inherit;z-index:var(--gn-aside-header-z-index,100)}.gn-aside-header__aside:after{background-color:var(--gn-aside-header-divider-vertical-color,var(--_--vertical-divider-line-color));content:"";height:100%;position:absolute;right:0;top:0;width:1px;z-index:2}.gn-aside-header__aside-popup-anchor{inset:0;position:absolute;z-index:1}.gn-aside-header__aside-content{--gradient-height:334px;display:flex;flex-direction:column;height:inherit;overflow-x:hidden;position:relative;user-select:none;width:inherit;z-index:2}.gn-aside-header__aside-content>.gn-aside-header-logo{margin:8px 0}.gn-aside-header__aside-content_with-decoration{background:linear-gradient(180deg,var(--gn-aside-header-decoration-expanded-background-color,var(--_--decoration-expanded-background-color)) calc(var(--gradient-height)*.33),transparent calc(var(--gradient-height)*.88))}.gn-aside-header__aside-custom-background{bottom:0;display:flex;position:absolute;top:0;z-index:-1}.gn-aside-header_compact .gn-aside-header__aside-content{background:transparent}.gn-aside-header__header{--gn-aside-header-header-divider-height:29px;box-sizing:border-box;flex:none;padding-bottom:22px;padding-top:8px;position:relative;width:100%;z-index:1}.gn-aside-header__header .gn-aside-header__header-divider{bottom:0;color:var(--gn-aside-header-decoration-collapsed-background-color,var(--_--decoration-collapsed-background-color));display:none;left:0;position:absolute;z-index:-2}.gn-aside-header__header_with-decoration:before{background-color:var(--gn-aside-header-decoration-collapsed-background-color,var(--_--decoration-collapsed-background-color));content:"";display:none;height:calc(100% - var(--gn-aside-header-header-divider-height));left:0;position:absolute;top:0;width:100%;z-index:-2}.gn-aside-header__header:after{background-color:var(--gn-aside-header-divider-horizontal-color,var(--_--horizontal-divider-line-color));bottom:12px;content:"";height:1px;left:0;position:absolute;width:100%;z-index:-2}.gn-aside-header_compact .gn-aside-header__header:before,.gn-aside-header_compact .gn-aside-header__header_with-decoration .gn-aside-header__header-divider{display:block}.gn-aside-header_compact .gn-aside-header__header_with-decoration:after{display:none}.gn-aside-header__logo-button-wrapper{width:var(--gn-aside-header-min-width)}.gn-aside-header__logo-button[class],.gn-aside-header__logo-button[class] .g-button__icon{height:var(--gn-aside-header-item-icon-background-size,var(--_--item-icon-background-size))}.gn-aside-header__menu-items{flex-grow:1}.gn-aside-header__footer{display:flex;flex-direction:column;flex-shrink:0;margin:8px 0;width:100%}.gn-aside-header__panels{inset:var(--gn-aside-top-panel-height) 0 0;max-height:calc(100vh - var(--gn-aside-top-panel-height));overflow:auto;position:fixed;z-index:var(--gn-aside-header-panel-z-index,98)}.gn-aside-header__panel{height:100%}.gn-aside-header__pane-container{display:flex;flex-direction:row;outline:none;overflow:visible;user-select:text}.gn-aside-header__pane-top-divider{background-color:var(--gn-aside-header-divider-horizontal-color,var(--_--horizontal-divider-line-color));height:1px;margin-top:-1px}.gn-aside-header__pane-top{background:var(--g-color-base-background);position:fixed;top:0;width:100%;z-index:var(--gn-aside-header-pane-top-z-index,98)}.gn-aside-header__pane-top-alert_centered{display:flex;justify-content:space-around}.gn-aside-header__pane-top-alert_dense{padding-bottom:var(--g-spacing-2);padding-top:var(--g-spacing-2)}.gn-aside-header__content{margin-top:var(--gn-aside-top-panel-height);width:calc(100% - var(--gn-aside-header-size));z-index:var(--gn-aside-header-content-z-index,95)}');const kr=o.lazy((()=>n.e(9399).then(n.bind(n,79399)).then((e=>({default:e.TopPanel}))))),Or=Object.assign((e=>{let{compact:t,className:n,children:r,topAlert:i}=e;const a=t?56:236,s=(0,o.useMemo)((()=>({size:a,compact:t})),[t,a]);return o.createElement(nr,{value:s},o.createElement("div",{className:(0,Cr.b)({compact:t},n),style:Object.assign({},{"--gn-aside-header-size":`${a}px`})},i&&o.createElement(o.Suspense,{fallback:null},o.createElement(kr,{topAlert:i})),o.createElement("div",{className:(0,Cr.b)("pane-container")},r)))}),{Content:e=>{let{children:t,renderContent:n}=e;const{size:r}=rr();return o.createElement(Sr,{size:r,className:(0,Cr.b)("content"),renderContent:n},t)}});var Tr=n(9704);const Nr=e=>o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),o.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M10.5 2.255v-.01c.003-.03.013-.157-.361-.35C9.703 1.668 8.966 1.5 8 1.5c-.967 0-1.703.169-2.138.394-.375.194-.365.32-.362.351v.01c-.003.03-.013.157.362.35C6.297 2.832 7.033 3 8 3c.967 0 1.703-.169 2.139-.394.374-.194.364-.32.361-.351ZM8 4.5c.506 0 .99-.04 1.436-.118l.84 2.352.253.707.717.221c.648.2 1.055.44 1.277.65.192.18.227.31.227.438 0 .14-.055.488-.937.878-.869.384-2.2.622-3.813.622s-2.944-.238-3.813-.622c-.882-.39-.937-.738-.937-.878 0-.128.035-.259.227-.439.222-.209.629-.448 1.277-.649l.717-.221.253-.707.84-2.352c.445.079.93.118 1.436.118Zm4-2.25c0 .738-.433 1.294-1.136 1.669l.825 2.31c1.553.48 2.561 1.32 2.561 2.52 0 1.854-2.402 2.848-5.5 2.985V15a.75.75 0 0 1-1.5 0v-3.266c-3.098-.136-5.5-1.131-5.5-2.984 0-1.2 1.008-2.04 2.561-2.52l.825-2.311C4.433 3.544 4 2.988 4 2.25 4 .75 5.79 0 8 0s4 .75 4 2.25Z",clipRule:"evenodd"})),Ir=e=>o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),o.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M10.5 2.255v-.01c.003-.03.013-.157-.361-.35C9.703 1.668 8.966 1.5 8 1.5c-.967 0-1.703.169-2.138.394-.375.194-.365.32-.362.351v.01c-.003.03-.013.157.362.35C6.297 2.832 7.033 3 8 3c.967 0 1.703-.169 2.139-.394.374-.194.364-.32.361-.351ZM12 2.25c0 .738-.433 1.294-1.136 1.669l.825 2.31c1.553.48 2.561 1.32 2.561 2.52 0 1.854-2.402 2.848-5.5 2.985V15a.75.75 0 0 1-1.5 0v-3.266c-3.098-.136-5.5-1.131-5.5-2.984 0-1.2 1.008-2.04 2.561-2.52l.825-2.311C4.433 3.544 4 2.988 4 2.25 4 .75 5.79 0 8 0s4 .75 4 2.25Z",clipRule:"evenodd"}));var Pr;function Rr(){return Rr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Rr.apply(this,arguments)}var Dr=function(e){return o.createElement("svg",Rr({width:56,height:29,viewBox:"0 0 56 29",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),Pr||(Pr=o.createElement("path",{d:"M56 0v29c-.8-1-7-6.1-17.7-8.4L13 15.7A16 16 0 0 1 0 0Z"})))},Ar=n(74100),jr=n(38886);function Mr(){return Mr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Mr.apply(this,arguments)}function Lr(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function zr(e,t){return zr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},zr(e,t)}function Fr(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,zr(e,t)}var Br,Ur,qr,$r;function Zr(){if(Ur)return Br;Ur=1;return Br="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function Hr(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}(function(){if($r)return qr;$r=1;var e=Zr();function t(){}function n(){}return n.resetWarningCache=t,qr=function(){function r(t,n,r,o,i,a){if(a!==e){var s=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 s.name="Invariant Violation",s}}function o(){return r}r.isRequired=r;var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i}})()();var Vr=!1,Wr=o.createContext(null),Gr=function(e){return e.scrollTop},Yr="unmounted",Kr="exited",Qr="entering",Jr="entered",Xr="exiting",eo=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=Kr,r.appearStatus=Qr):o=Jr:o=t.unmountOnExit||t.mountOnEnter?Yr:Kr,r.state={status:o},r.nextCallback=null,r}Fr(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Yr?{status:Kr}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==Qr&&n!==Jr&&(t=Qr):n!==Qr&&n!==Jr||(t=Xr)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!==typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===Qr){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:jr.findDOMNode(this);n&&Gr(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Kr&&this.setState({status:Yr})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[jr.findDOMNode(this),r],i=o[0],a=o[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||Vr?this.safeSetState({status:Jr},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:Qr},(function(){t.props.onEntering(i,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:Jr},(function(){t.props.onEntered(i,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:jr.findDOMNode(this);t&&!Vr?(this.props.onExit(r),this.safeSetState({status:Xr},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:Kr},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:Kr},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:jr.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===Yr)return null;var t=this.props,n=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var r=Lr(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return o.createElement(Wr.Provider,{value:null},"function"===typeof n?n(e,r):o.cloneElement(o.Children.only(n),r))},t}(o.Component);function to(){}eo.contextType=Wr,eo.propTypes={},eo.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:to,onEntering:to,onEntered:to,onExit:to,onExiting:to,onExited:to},eo.UNMOUNTED=Yr,eo.EXITED=Kr,eo.ENTERING=Qr,eo.ENTERED=Jr,eo.EXITING=Xr;var no=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.add(r):function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}(n,r)||("string"===typeof n.className?n.className=n.className+" "+r:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+r)));var n,r}))},ro=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.remove(r):"string"===typeof n.className?n.className=Hr(n.className,r):n.setAttribute("class",Hr(n.className&&n.className.baseVal||"",r)));var n,r}))},oo=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1];t.removeClasses(o,"exit"),t.addClass(o,i?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1]?"appear":"enter";t.addClass(o,i,"active"),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1]?"appear":"enter";t.removeClasses(o,i),t.addClass(o,i,"done"),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"appear"),t.removeClasses(n,"enter"),t.addClass(n,"exit","base"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.resolveArguments(e)[0];t.addClass(n,"exit","active"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"exit"),t.addClass(n,"exit","done"),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,n){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,n]},t.getClassNames=function(e){var n=t.props.classNames,r="string"===typeof n,o=r?""+(r&&n?n+"-":"")+e:n[e];return{baseClassName:o,activeClassName:r?o+"-active":n[e+"Active"],doneClassName:r?o+"-done":n[e+"Done"]}},t}Fr(t,e);var n=t.prototype;return n.addClass=function(e,t,n){var r=this.getClassNames(t)[n+"ClassName"],o=this.getClassNames("enter").doneClassName;"appear"===t&&"done"===n&&o&&(r+=" "+o),"active"===n&&e&&Gr(e),r&&(this.appliedClasses[t][n]=r,no(e,r))},n.removeClasses=function(e,t){var n=this.appliedClasses[t],r=n.base,o=n.active,i=n.done;this.appliedClasses[t]={},r&&ro(e,r),o&&ro(e,o),i&&ro(e,i)},n.render=function(){var e=this.props;e.classNames;var t=Lr(e,["classNames"]);return o.createElement(eo,Mr({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(o.Component);function io(e,t){var n=Object.create(null);return e&&o.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&(0,o.isValidElement)(e)?t(e):e}(e)})),n}function ao(e,t,n){return null!=n[t]?n[t]:e.props[t]}function so(e,t,n){var r=io(e.children),i=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var s={};for(var l in t){if(o[l])for(r=0;r<o[l].length;r++){var c=o[l][r];s[o[l][r]]=n(c)}s[l]=n(l)}for(r=0;r<i.length;r++)s[i[r]]=n(i[r]);return s}(t,r);return Object.keys(i).forEach((function(a){var s=i[a];if((0,o.isValidElement)(s)){var l=a in t,c=a in r,u=t[a],d=(0,o.isValidElement)(u)&&!u.props.in;!c||l&&!d?c||!l||d?c&&l&&(0,o.isValidElement)(u)&&(i[a]=(0,o.cloneElement)(s,{onExited:n.bind(null,s),in:u.props.in,exit:ao(s,"exit",e),enter:ao(s,"enter",e)})):i[a]=(0,o.cloneElement)(s,{in:!1}):i[a]=(0,o.cloneElement)(s,{onExited:n.bind(null,s),in:!0,exit:ao(s,"exit",e),enter:ao(s,"enter",e)})}})),i}oo.defaultProps={classNames:""},oo.propTypes={};var lo,co,uo=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},fo=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}Fr(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,i=t.children,a=t.handleExited;return{children:t.firstRender?(n=e,r=a,io(n.children,(function(e){return(0,o.cloneElement)(e,{onExited:r.bind(null,e),in:!0,appear:ao(e,"appear",n),enter:ao(e,"enter",n),exit:ao(e,"exit",n)})}))):so(e,i,a),firstRender:!1}},n.handleExited=function(e,t){var n=io(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=Mr({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=Lr(e,["component","childFactory"]),i=this.state.contextValue,a=uo(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?o.createElement(Wr.Provider,{value:i},a):o.createElement(Wr.Provider,{value:i},o.createElement(t,r,a))},t}(o.Component);fo.propTypes={},fo.defaultProps={component:"div",childFactory:function(e){return e}},(function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).handleEnter=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEnter",0,n)},t.handleEntering=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEntering",0,n)},t.handleEntered=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEntered",0,n)},t.handleExit=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExit",1,n)},t.handleExiting=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExiting",1,n)},t.handleExited=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExited",1,n)},t}Fr(t,e);var n=t.prototype;return n.handleLifecycle=function(e,t,n){var r,i=this.props.children,a=o.Children.toArray(i)[t];if(a.props[e]&&(r=a.props)[e].apply(r,n),this.props[e]){var s=a.props.nodeRef?void 0:jr.findDOMNode(this);this.props[e](s)}},n.render=function(){var e=this.props,t=e.children,n=e.in,r=Lr(e,["children","in"]),i=o.Children.toArray(t),a=i[0],s=i[1];return delete r.onEnter,delete r.onEntering,delete r.onEntered,delete r.onExit,delete r.onExiting,delete r.onExited,o.createElement(fo,r,n?o.cloneElement(a,{key:"first",onEnter:this.handleEnter,onEntering:this.handleEntering,onEntered:this.handleEntered}):o.cloneElement(s,{key:"second",onEnter:this.handleExit,onEntering:this.handleExiting,onEntered:this.handleExited}))},t}(o.Component)).propTypes={};var po="out-in",ho="in-out",mo=function(e,t,n){return function(){var r;e.props[t]&&(r=e.props)[t].apply(r,arguments),n()}},go=((lo={})[po]=function(e){var t=e.current,n=e.changeState;return o.cloneElement(t,{in:!1,onExited:mo(t,"onExited",(function(){n(Qr,null)}))})},lo[ho]=function(e){var t=e.current,n=e.changeState,r=e.children;return[t,o.cloneElement(r,{in:!0,onEntered:mo(r,"onEntered",(function(){n(Qr)}))})]},lo),vo=((co={})[po]=function(e){var t=e.children,n=e.changeState;return o.cloneElement(t,{in:!0,onEntered:mo(t,"onEntered",(function(){n(Jr,o.cloneElement(t,{in:!0}))}))})},co[ho]=function(e){var t=e.current,n=e.children,r=e.changeState;return[o.cloneElement(t,{in:!1,onExited:mo(t,"onExited",(function(){r(Jr,o.cloneElement(n,{in:!0}))}))}),o.cloneElement(n,{in:!0})]},co),yo=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).state={status:Jr,current:null},t.appeared=!1,t.changeState=function(e,n){void 0===n&&(n=t.state.current),t.setState({status:e,current:n})},t}Fr(t,e);var n=t.prototype;return n.componentDidMount=function(){this.appeared=!0},t.getDerivedStateFromProps=function(e,t){return null==e.children?{current:null}:t.status===Qr&&e.mode===ho?{status:Qr}:!t.current||(n=t.current,r=e.children,n===r||o.isValidElement(n)&&o.isValidElement(r)&&null!=n.key&&n.key===r.key)?{current:o.cloneElement(e.children,{in:!0})}:{status:Xr};var n,r},n.render=function(){var e,t=this.props,n=t.children,r=t.mode,i=this.state,a=i.status,s=i.current,l={children:n,current:s,changeState:this.changeState,status:a};switch(a){case Qr:e=vo[r](l);break;case Xr:e=go[r](l);break;case Jr:e=s}return o.createElement(Wr.Provider,{value:{isMounting:!this.appeared}},e)},t}(o.Component);yo.propTypes={},yo.defaultProps={mode:po};y(".gn-drawer__item{background-color:var(--g-color-base-background);bottom:0;height:100%;left:0;position:absolute;top:0;will-change:transform}.gn-drawer__item_direction_right{left:auto;right:0}.gn-drawer__item-transition-enter{transform:translate(-100%)}.gn-drawer__item-transition_direction_right-enter{transform:translate(100%)}.gn-drawer__item-transition-enter-active,.gn-drawer__item-transition_direction_right-enter-active{transform:translate(0);transition:transform .3s}.gn-drawer__item-transition-enter-done,.gn-drawer__item-transition_direction_right-enter-done{filter:blur(0);transform:translateZ(0)}.gn-drawer__item-transition-exit,.gn-drawer__item-transition_direction_right-exit{transform:translate(0)}.gn-drawer__item-transition-exit-active,.gn-drawer__item-transition_direction_right-exit-active{transition:transform .3s}.gn-drawer__item-transition-exit-active{transform:translate(-100%)}.gn-drawer__item-transition_direction_right-exit-active{transform:translate(100%)}.gn-drawer__item-transition-exit-done,.gn-drawer__item-transition_direction_right-exit-done{visibility:hidden}.gn-drawer__veil{background-color:var(--g-color-sfx-veil);inset:0;position:absolute}.gn-drawer__veil-transition-enter{opacity:0}.gn-drawer__veil-transition-enter-active{opacity:1;transition:opacity .3s}.gn-drawer__veil-transition-exit{opacity:1}.gn-drawer__veil-transition-exit-active{opacity:0;transition:opacity .3s}.gn-drawer__veil-transition-exit-done{visibility:hidden}");const bo=(0,v.b)("drawer"),wo=e=>{let{visible:t,content:n,children:r,direction:i="left",className:a}=e;const s=o.useRef(null),l="left"===i?void 0:i;return o.createElement(oo,{in:t,timeout:300,unmountOnExit:!0,classNames:bo("item-transition",{direction:l}),nodeRef:s},o.createElement("div",{ref:s,className:bo("item",{direction:l},a)},null!==r&&void 0!==r?r:n))},Eo=e=>{let{className:t,children:n,style:r,onVeilClick:i,onEscape:a,preventScrollBody:s=!0}=e,l=!1;o.Children.forEach(n,(e=>{if(o.isValidElement(e)&&e.type===wo){Boolean(e.props.visible)&&(l=!0)}})),o.useEffect((()=>{function e(e){"Escape"===e.key&&(null===a||void 0===a||a())}return l&&window.addEventListener("keydown",e),()=>{window.removeEventListener("keydown",e)}}),[a,l]),(0,Ar.y)({enabled:s&&l});const c=o.useRef(null),u=o.useRef(null);return o.createElement(eo,{in:l,timeout:{enter:0,exit:300},mountOnEnter:!0,unmountOnExit:!0,nodeRef:c},(e=>{const a=l&&"entered"===e;return o.createElement("div",{ref:c,className:bo(null,t),style:r},o.createElement(oo,{in:a,timeout:300,unmountOnExit:!0,classNames:bo("veil-transition"),nodeRef:u},o.createElement("div",{ref:u,className:bo("veil"),onClick:i})),o.Children.map(n,(e=>{if(o.isValidElement(e)&&e.type===wo){const t=Boolean(e.props.visible);return o.cloneElement(e,Object.assign(Object.assign({},e.props),{visible:t&&a}))}return e})))}))};y(".gn-all-pages-list-item{align-items:center;column-gap:var(--g-spacing-4);display:flex;height:40px;padding:0 var(--g-spacing-6);width:100%}.gn-all-pages-list-item__text{flex:1}.gn-all-pages-list-item__icon{color:var(--g-color-text-misc)}");const _o=(0,v.b)("all-pages-list-item"),xo=e=>{const{item:t,editMode:n,onToggle:r}=e,i=(0,o.useCallback)((e=>{e.stopPropagation(),e.preventDefault(),r()}),[r]);return o.createElement("div",{className:_o(),onClick:e=>{n&&(e.stopPropagation(),e.preventDefault())}},t.icon?o.createElement(f.J,{className:_o("icon"),data:t.icon,size:t.iconSize}):null,o.createElement("span",{className:_o("text")},t.title),n&&o.createElement(x.z,{onClick:i,view:t.hidden?"flat-secondary":"flat-action"},o.createElement(x.z.Icon,null,t.hidden?o.createElement(Nr,null):o.createElement(Ir,null))))};var So=(0,w.e)({en:{"menu-item.all-pages.title":"All pages","all-panel.menu.category.allOther":"All other","all-panel.resetToDefault":"Reset to default","all-panel.title.editing":"Editing","all-panel.title.main":"All pages"},ru:{"menu-item.all-pages.title":"\u0412\u0441\u0435 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b","all-panel.menu.category.allOther":"\u041e\u0441\u0442\u0430\u043b\u044c\u043d\u043e\u0435","all-panel.resetToDefault":"\u0421\u0431\u0440\u043e\u0441\u0438\u0442\u044c \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e","all-panel.title.editing":"\u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435","all-panel.title.main":"\u0412\u0441\u0435 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b"}},`${v.N}AllPagesPanel`);const Co="all-pages";y(".gn-all-pages-panel{box-sizing:border-box;height:100%;min-width:300px;padding:var(--g-spacing-4) var(--g-spacing-6)}.gn-all-pages-panel__content{flex:1;margin:0 calc(var(--g-spacing-6)*-1);overflow:auto}.gn-all-pages-panel__category{padding:0 var(--g-spacing-6)}.gn-all-pages-panel__discoverable-feature-wrapper{display:flex}");const ko=(0,v.b)("all-pages-panel"),Oo=e=>{const{startEditIcon:t,onEditModeChanged:n,className:r}=e,{menuItems:i,onMenuItemsChanged:a}=er(),s=(0,o.useRef)(i);s.current=i;const[l,c]=(0,o.useState)(!1),u=(0,o.useCallback)((()=>{c((e=>!e))}),[]),d=(e=>{const t=(0,o.useMemo)((()=>{const t=e.filter((e=>"divider"!==e.type&&e.id!==Co));return t.sort(((e,t)=>"action"===e.type?1:"action"===t.type?-1:0)),t.reduce(((e,t)=>{const n=t.category||So("all-panel.menu.category.allOther");return e[n]||(e[n]=[]),e[n].push(t),e}),{})}),[e]);return t})(i);(0,o.useEffect)((()=>{null===n||void 0===n||n(l)}),[l,n]);const p=(0,o.useCallback)((e=>{var t;null===(t=e.onItemClick)||void 0===t||t.call(e,e,!1)}),[]),h=(0,o.useCallback)((e=>{if(!a)return;const t=Object.assign(Object.assign({},e),{hidden:!e.hidden}),n=s.current.filter((e=>e.id!==Co));a(n.map((e=>e.id!==t.id?e:t)))}),[a]),m=(0,o.useCallback)(((e,t,n)=>o.createElement(xo,{item:e,editMode:l,onToggle:()=>h(e)})),[l,h]),v=(0,o.useCallback)((()=>{if(!a)return;const e=s.current.filter((e=>e.id!==Co));a(e.map((e=>Object.assign(Object.assign({},e),{hidden:!1}))))}),[a]);return o.createElement(g.k,{className:ko(null,r),gap:"5",direction:"column"},o.createElement(g.k,{gap:"4",alignItems:"center",justifyContent:"space-between"},o.createElement(_.x,{variant:"subheader-2"},So(l?"all-panel.title.editing":"all-panel.title.main")),o.createElement(x.z,{selected:l,view:"normal",onClick:u},t||o.createElement(f.J,{data:Gn.Z}))),o.createElement(g.k,{className:ko("content"),gap:"5",direction:"column"},Object.keys(d).map((e=>o.createElement(g.k,{key:e,direction:"column",gap:"3"},o.createElement(_.x,{className:ko("category"),variant:"body-1",color:"secondary"},e),o.createElement(Qn.a,{virtualized:!1,filterable:!1,items:d[e],onItemClick:p,renderItem:m}))))),l&&o.createElement(x.z,{onClick:v},So("all-panel.resetToDefault")))};let To;To="undefined"!==typeof window?window:"undefined"!==typeof self?self:n.g;let No=null,Io=null;const Po=To.clearTimeout,Ro=To.setTimeout,Do=To.cancelAnimationFrame||To.mozCancelAnimationFrame||To.webkitCancelAnimationFrame,Ao=To.requestAnimationFrame||To.mozRequestAnimationFrame||To.webkitRequestAnimationFrame;function jo(e){let t,n,r,o,i,a,s;const l="undefined"!==typeof document&&document.attachEvent;if(!l){a=function(e){const t=e.__resizeTriggers__,n=t.firstElementChild,r=t.lastElementChild,o=n.firstElementChild;r.scrollLeft=r.scrollWidth,r.scrollTop=r.scrollHeight,o.style.width=n.offsetWidth+1+"px",o.style.height=n.offsetHeight+1+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight},i=function(e){return e.offsetWidth!==e.__resizeLast__.width||e.offsetHeight!==e.__resizeLast__.height},s=function(e){if(e.target.className&&"function"===typeof e.target.className.indexOf&&e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)return;const t=this;a(this),this.__resizeRAF__&&No(this.__resizeRAF__),this.__resizeRAF__=Io((function(){i(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach((function(n){n.call(t,e)})))}))};let e=!1,l="";r="animationstart";const c="Webkit Moz O ms".split(" ");let u="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),d="";{const t=document.createElement("fakeelement");if(void 0!==t.style.animationName&&(e=!0),!1===e)for(let n=0;n<c.length;n++)if(void 0!==t.style[c[n]+"AnimationName"]){d=c[n],l="-"+d.toLowerCase()+"-",r=u[n],e=!0;break}}n="resizeanim",t="@"+l+"keyframes "+n+" { from { opacity: 0; } to { opacity: 0; } } ",o=l+"animation: 1ms "+n+"; "}return{addResizeListener:function(i,c){if(l)i.attachEvent("onresize",c);else{if(!i.__resizeTriggers__){const l=i.ownerDocument,c=To.getComputedStyle(i);c&&"static"===c.position&&(i.style.position="relative"),function(n){if(!n.getElementById("detectElementResize")){const r=(t||"")+".resize-triggers { "+(o||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',i=n.head||n.getElementsByTagName("head")[0],a=n.createElement("style");a.id="detectElementResize",a.type="text/css",null!=e&&a.setAttribute("nonce",e),a.styleSheet?a.styleSheet.cssText=r:a.appendChild(n.createTextNode(r)),i.appendChild(a)}}(l),i.__resizeLast__={},i.__resizeListeners__=[],(i.__resizeTriggers__=l.createElement("div")).className="resize-triggers";const u=l.createElement("div");u.className="expand-trigger",u.appendChild(l.createElement("div"));const d=l.createElement("div");d.className="contract-trigger",i.__resizeTriggers__.appendChild(u),i.__resizeTriggers__.appendChild(d),i.appendChild(i.__resizeTriggers__),a(i),i.addEventListener("scroll",s,!0),r&&(i.__resizeTriggers__.__animationListener__=function(e){e.animationName===n&&a(i)},i.__resizeTriggers__.addEventListener(r,i.__resizeTriggers__.__animationListener__))}i.__resizeListeners__.push(c)}},removeResizeListener:function(e,t){if(l)e.detachEvent("onresize",t);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",s,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(r,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(n){}}}}}null==Do||null==Ao?(No=Po,Io=function(e){return Ro(e,20)}):(No=function(e){let[t,n]=e;Do(t),Po(n)},Io=function(e){const t=Ao((function(){Po(n),e()})),n=Ro((function(){Do(t),e()}),20);return[t,n]});class Mo extends o.Component{constructor(){super(...arguments),this.state={height:this.props.defaultHeight||0,scaledHeight:this.props.defaultHeight||0,scaledWidth:this.props.defaultWidth||0,width:this.props.defaultWidth||0},this._autoSizer=null,this._detectElementResize=null,this._parentNode=null,this._resizeObserver=null,this._timeoutId=null,this._onResize=()=>{this._timeoutId=null;const{disableHeight:e,disableWidth:t,onResize:n}=this.props;if(this._parentNode){const r=window.getComputedStyle(this._parentNode)||{},o=parseFloat(r.paddingLeft||"0"),i=parseFloat(r.paddingRight||"0"),a=parseFloat(r.paddingTop||"0"),s=parseFloat(r.paddingBottom||"0"),l=this._parentNode.getBoundingClientRect(),c=l.height-a-s,u=l.width-o-i,d=this._parentNode.offsetHeight-a-s,f=this._parentNode.offsetWidth-o-i;(e||this.state.height===d&&this.state.scaledHeight===c)&&(t||this.state.width===f&&this.state.scaledWidth===u)||(this.setState({height:d,width:f,scaledHeight:c,scaledWidth:u}),"function"===typeof n&&n({height:d,scaledHeight:c,scaledWidth:u,width:f}))}},this._setRef=e=>{this._autoSizer=e}}componentDidMount(){const{nonce:e}=this.props;this._autoSizer&&this._autoSizer.parentNode&&this._autoSizer.parentNode.ownerDocument&&this._autoSizer.parentNode.ownerDocument.defaultView&&this._autoSizer.parentNode instanceof this._autoSizer.parentNode.ownerDocument.defaultView.HTMLElement&&(this._parentNode=this._autoSizer.parentNode,null!=this._parentNode&&("undefined"!==typeof ResizeObserver?(this._resizeObserver=new ResizeObserver((()=>{this._timeoutId=setTimeout(this._onResize,0)})),this._resizeObserver.observe(this._parentNode)):(this._detectElementResize=jo(e),this._detectElementResize.addResizeListener(this._parentNode,this._onResize)),this._onResize()))}componentWillUnmount(){this._parentNode&&(this._detectElementResize&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize),null!==this._timeoutId&&clearTimeout(this._timeoutId),this._resizeObserver&&(this._resizeObserver.observe(this._parentNode),this._resizeObserver.disconnect()))}render(){const{children:e,defaultHeight:t,defaultWidth:n,disableHeight:r=!1,disableWidth:i=!1,nonce:a,onResize:s,style:l={},tagName:c="div",...u}=this.props,{height:d,scaledHeight:f,scaledWidth:p,width:h}=this.state,m={overflow:"visible"},g={};let v=!1;return r||(0===d&&(v=!0),m.height=0,g.height=d,g.scaledHeight=f),i||(0===h&&(v=!0),m.width=0,g.width=h,g.scaledWidth=p),(0,o.createElement)(c,{ref:this._setRef,style:{...m,...l},...u},!v&&e(g))}}const Lo={active:!1,activeIndex:void 0,hideCollapseItemTooltip:!1,lastClickedItemIndex:void 0,setValue:()=>{}},zo=o.createContext(Lo);class Fo extends o.PureComponent{constructor(){super(...arguments),this.state=Object.assign({},Lo),this.setValue=e=>{this.setState(Object.assign({},e))}}render(){const{children:e}=this.props;return o.createElement(zo.Provider,{value:Object.assign(Object.assign({},this.state),{setValue:this.setValue})},e)}}y('.g-root_theme_dark .gn-multiple-tooltip,.g-root_theme_dark-hc .gn-multiple-tooltip{--multiple-tooltip-item-bg-color:var(\n --g-color-base-float-medium,var(--g-color-private-white-100-solid)\n );--multiple-tooltip-item-active-bg-color:var(--g-color-base-float-heavy);--multiple-tooltip-backdrop-background:linear-gradient(90deg,var(--g-color-base-background) 50%,transparent);--multiple-tooltip-backdrop-filter:blur(16px)}.g-root_theme_dark-hc .gn-multiple-tooltip{--multiple-tooltip-item-bg-color:var(\n --g-color-base-float-medium,var(--g-color-private-white-150-solid)\n )}.g-root_theme_light .gn-multiple-tooltip,.g-root_theme_light-hc .gn-multiple-tooltip{--multiple-tooltip-item-bg-color:var(\n --g-color-base-float-medium,var(--g-color-private-black-550-solid)\n );--multiple-tooltip-item-active-bg-color:var(--g-color-base-float-heavy);--multiple-tooltip-backdrop-background:linear-gradient(90deg,var(--g-color-base-background) 50%,transparent);--multiple-tooltip-backdrop-filter:blur(12px)}.gn-multiple-tooltip.gn-multiple-tooltip{background-color:transparent;box-shadow:none}.gn-multiple-tooltip:before{background:var(--multiple-tooltip-backdrop-background);box-shadow:none;content:"";filter:var(--multiple-tooltip-backdrop-filter);height:100%;opacity:.7;position:absolute;width:100%;z-index:-1}.gn-multiple-tooltip__items-container{align-items:flex-start;display:flex;flex-direction:column;padding:32px 40px 32px 12px}.gn-multiple-tooltip__item{align-items:center;background-color:var(--multiple-tooltip-item-bg-color);border-radius:5px;box-sizing:border-box;color:var(--g-color-text-light-primary);display:flex;height:30px;margin-bottom:5px;padding:8px 12px;position:relative;transition:transform .1s ease-in-out}.gn-multiple-tooltip__item:first-child,.gn-multiple-tooltip__item:not(.gn-multiple-tooltip__item_divider)+.gn-multiple-tooltip__item:not(.gn-multiple-tooltip__item_divider){margin-top:5px}.gn-multiple-tooltip__item_divider+.gn-multiple-tooltip__item:not(.gn-multiple-tooltip__item_divider){margin-top:4px}.gn-multiple-tooltip__item_active{background-color:var(--multiple-tooltip-item-active-bg-color);transform:translateX(-12px)}.gn-multiple-tooltip__item_divider{height:15px;margin:0;visibility:hidden}');const Bo=(0,v.b)("multiple-tooltip"),Uo=[-32,4],qo=[{name:"preventOverflow",enabled:!1}],$o=e=>{let{items:t,open:n,anchorRef:r,placement:i}=e;const{activeIndex:a,hideCollapseItemTooltip:s}=o.useContext(zo),l=void 0===a?null:t[a];return o.createElement(we.G,{open:n,anchorRef:r,placement:i,offset:Uo,contentClassName:Bo(null),modifiers:qo,disableLayer:!0},o.createElement("div",{className:Bo("items-container")},t.filter((e=>{let{type:t="regular",id:n}=e;return!s||n!==lr&&"action"!==t})).map(((e,t)=>"divider"===e.type?o.createElement("div",{className:Bo("item",{divider:!0}),key:t},e.title):o.createElement("div",{className:Bo("item",{active:e===l}),key:t},e.title)))))};y(".gn-composite-bar{flex:1 0 auto;min-height:40px;width:100%}.gn-composite-bar .gn-composite-bar__root-menu-item[class]{background-color:transparent}");const Zo=(0,v.b)("composite-bar"),Ho=e=>{let{type:t,items:n,onItemClick:r,collapseItems:i,multipleTooltip:a=!1}=e;const s=(0,o.useRef)(null),l=(0,o.useRef)(null),{setValue:c,active:u,activeIndex:d,lastClickedItemIndex:f}=(0,o.useContext)(zo),{compact:p}=rr();o.useEffect((()=>{function e(){a&&u&&c({active:!1})}return window.addEventListener("blur",e),()=>{window.removeEventListener("blur",e)}}),[a,u,c]);const h=(0,o.useCallback)((e=>{a&&p&&!u&&document.hasFocus()&&d!==f&&e.clientX<=56&&(null===c||void 0===c||c({active:!0}))}),[a,p,u,d,f,c]),m=(0,o.useCallback)((()=>{a&&u&&document.hasFocus()&&(null===c||void 0===c||c({active:!1,lastClickedItemIndex:void 0}))}),[a,u,c]),g=(0,o.useCallback)((e=>()=>{if(a&&document.hasFocus()){let t=u;if(u||e===f||(t=!0),d===e&&u===t)return;c({activeIndex:e,active:t})}}),[a,u,f,d,c]),v=(0,o.useCallback)((()=>{var e;p&&document.hasFocus()&&(null===(e=s.current)||void 0===e||e.activateItem(void 0),!a||void 0===d&&void 0===f||c({activeIndex:void 0,lastClickedItemIndex:void 0}))}),[d,p,f,a,c]),y=(0,o.useCallback)((e=>(t,n,o)=>{p&&a&&e!==f&&t.id!==lr&&c({lastClickedItemIndex:e,active:!1}),null===r||void 0===r||r(t,n,o)}),[p,f,a,r,c]);return o.createElement(o.Fragment,null,o.createElement("div",{ref:l,onMouseEnter:h,onMouseLeave:m},o.createElement(Qn.a,{ref:s,items:n,selectedItemIndex:"menu"===t?pr(n):void 0,itemHeight:dr,itemsHeight:fr,itemClassName:Zo("root-menu-item"),virtualized:!1,filterable:!1,sortable:!1,renderItem:(e,t,n)=>{const r=hr(e)?{item:e}:e,s=hr(e)?!a:e.enableTooltip;return o.createElement(br,Object.assign({},r,{enableTooltip:s,onMouseEnter:g(n),onMouseLeave:v,onItemClick:y(n),collapseItems:i}))}})),"menu"===t&&a&&o.createElement($o,{open:p&&u,anchorRef:l,placement:["right-start"],items:n}))},Vo=e=>{let t,{type:n,items:r,menuMoreTitle:i,onItemClick:a,multipleTooltip:s=!1}=e;if(0===r.length)return null;if("menu"===n){const e=function(e){const t=function(e){const t=[];for(const n of e)(n.pinned||"divider"===n.type&&t.length>0&&"divider"!==t[t.length-1].type)&&t.push(n);return t}(e),n=e.filter((e=>e.afterMoreButton));return fr(t)+fr(n)+(t.length===e.length?0:or)}(r),n=function(e){return{id:lr,title:e,icon:ir.Z,iconSize:18}}(i);t=o.createElement("div",{className:Zo({autosizer:!0}),style:{minHeight:e}},0!==r.length&&o.createElement(Mo,null,(e=>{const t=Number.isNaN(e.width)?0:e.width,i=Number.isNaN(e.height)?0:e.height,{listItems:l,collapseItems:c}=function(e,t,n){var r,o,i;const a=e.filter((e=>e.afterMoreButton)),s=e.filter((e=>!e.afterMoreButton)),l=[...s,...a],c=fr(l);if(c<=t)return{listItems:l,collapseItems:[]};const u=dr(n);l.splice(s.length,0,n);const d=[];let f=c+u,p=l.length;for(;f>t&&0!==p;){p--;const e=l[p];e.pinned||e.id===lr||e.afterMoreButton||("divider"!==e.type?(f-=dr(e),d.unshift(...l.splice(p,1))):p+1<l.length&&"divider"===(null===(r=l[p+1])||void 0===r?void 0:r.type)&&(f-=dr(e),l.splice(p,1)))}return"divider"!==(null===(o=l[p])||void 0===o?void 0:o.type)||0!==p&&"divider"!==(null===(i=l[p-1])||void 0===i?void 0:i.type)||l.splice(p,1),{listItems:l,collapseItems:d}}(r,i,n);return o.createElement("div",{style:{width:t,height:i}},o.createElement(Ho,{type:"menu",items:l,onItemClick:a,collapseItems:c,multipleTooltip:s}))})))}else t=o.createElement("div",{className:Zo({subheader:!0})},o.createElement(Ho,{type:"subheader",items:r,onItemClick:a}));return o.createElement(Fo,null,t)};var Wo={button_collapse:"Collapse",button_expand:"Expand",label_more:"More"},Go={button_collapse:"\u0421\u0432\u0435\u0440\u043d\u0443\u0442\u044c",button_expand:"\u0420\u0430\u0437\u0432\u0435\u0440\u043d\u0443\u0442\u044c",label_more:"\u0415\u0449\u0451"};var Yo,Ko=(0,w.e)({en:Wo,ru:Go},`${v.N}AsideHeader`);function Qo(){return Qo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Qo.apply(this,arguments)}var Jo=function(e){return o.createElement("svg",Qo({width:8,height:8,viewBox:"0 0 8 8",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),Yo||(Yo=o.createElement("path",{d:"m.72 7.64 6.39-3.2a.5.5 0 0 0 0-.89L.72.36A.5.5 0 0 0 0 .81v6.38c0 .37.4.61.72.45Z"})))};y('.gn-collapse-button{--_--focus-outline-color:var(--g-color-line-focus);--_--focus-outline-offset:0;align-items:center;background:none;border:none;border-top:1px solid var(--gn-aside-header-divider-horizontal-color,var(--_--horizontal-divider-line-color));box-sizing:content-box;color:inherit;cursor:pointer;display:flex;font-family:var(--g-text-body-font-family);font-size:inherit;font-weight:var(--g-text-body-font-weight);justify-content:center;min-height:20px;outline:none;padding:0;position:relative;width:100%}.gn-collapse-button:before{content:"";inset:0 2px 2px;position:absolute;z-index:-1}.gn-collapse-button:focus-visible:before{outline:var(--_--focus-outline-color) solid 2px;outline-offset:var(--_--focus-outline-offset)}.gn-collapse-button:not(.gn-collapse-button_compact) .gn-collapse-button__icon{transform:rotate(180deg)}.gn-collapse-button:hover .gn-collapse-button__icon{color:var(--g-color-text-primary)}.gn-collapse-button__icon{color:var(--g-color-text-secondary)}');const Xo=(0,v.b)("collapse-button"),ei=e=>{let{className:t}=e;const{onChangeCompact:n,compact:r,expandTitle:i,collapseTitle:a}=er(),s=(0,o.useCallback)((()=>{null===n||void 0===n||n(!r)}),[r,n]),l=r?i||Ko("button_expand"):a||Ko("button_collapse");return o.createElement("button",{className:Xo({compact:r},t),onClick:s,title:l},o.createElement(f.J,{data:Jo,className:Xo("icon"),width:"16",height:"10"}))};y(".gn-logo{height:40px}.gn-logo,.gn-logo__logo-btn-place{align-items:center;display:flex;flex-shrink:0}.gn-logo__logo-btn-place{cursor:pointer;justify-content:center}.gn-logo__logo-btn-place .g-button:before{background-color:transparent}.gn-logo__logo{cursor:pointer;font-size:var(--g-text-body-2-font-size);font-weight:var(--g-text-body-font-weight);line-height:var(--g-text-body-2-line-height);vertical-align:middle}.gn-logo__logo-link,.gn-logo__logo-link:active,.gn-logo__logo-link:focus,.gn-logo__logo-link:hover,.gn-logo__logo-link:visited{color:inherit;outline:none;text-decoration:none}.g-root .gn-logo__btn-logo.button2_theme_flat.button2_hovered_yes:before{background-color:transparent}");const ti=(0,v.b)("logo"),ni=e=>{let{text:t,icon:n,iconSrc:r,iconClassName:i,iconSize:a=24,textSize:s=15,href:l,target:c="_self",wrapper:u,onClick:d,compact:p,className:h,buttonWrapperClassName:m,buttonClassName:g,"aria-label":v,"aria-labelledby":y}=e;const b="function"===typeof u;let w;r?w=o.createElement(x.z.Icon,{className:i},o.createElement("img",{alt:"logo icon",src:r,width:a,height:a})):n&&(w=o.createElement(f.J,{data:n,size:a,className:i}));const E=o.createElement(x.z,{view:"flat",size:"l",className:ti("btn-logo",g),component:b?"span":void 0,onClick:d,target:c,rel:"_self"===c?void 0:"noreferrer",href:l,extraProps:{"aria-label":v,"aria-labelledby":y}},w);let _;return _="function"===typeof t?t():o.createElement("div",{className:ti("logo"),style:{fontSize:s}},t),o.createElement("div",{className:ti(null,h)},o.createElement("div",{className:ti("logo-btn-place",m)},b?u(E,Boolean(p)):E),!p&&(b?o.createElement("div",{onClick:d},u(_,Boolean(p))):o.createElement("a",{href:null!==l&&void 0!==l?l:"/",target:c,rel:"_self"===c?void 0:"noreferrer",className:ti("logo-link"),onClick:d},_)))},ri=[],oi=()=>{const{logo:e,onItemClick:t,onClosePanel:n,headerDecoration:r,subheaderItems:i}=er(),{compact:a}=rr(),{onClick:s}=e,l=(0,o.useCallback)((e=>{null===n||void 0===n||n(),null===s||void 0===s||s(e)}),[n,s]);return o.createElement("div",{className:(0,Cr.b)("header",{"with-decoration":r})},o.createElement(ni,Object.assign({},e,{onClick:l,compact:a,buttonWrapperClassName:(0,Cr.b)("logo-button-wrapper"),buttonClassName:(0,Cr.b)("logo-button")})),o.createElement(Vo,{type:"subheader",items:i||ri,onItemClick:t}),o.createElement(f.J,{data:Dr,className:(0,Cr.b)("header-divider"),width:56,height:29}))},ii=()=>{const{panelItems:e,onClosePanel:t,size:n}=er();return e?o.createElement(Eo,{className:(0,Cr.b)("panels"),onVeilClick:t,onEscape:t,style:{left:n}},e.map((e=>o.createElement(wo,Object.assign({key:e.id},e))))):null},ai=o.forwardRef(((e,t)=>{const{size:n,onItemClick:r,headerDecoration:i,multipleTooltip:a,menuMoreTitle:s,renderFooter:l,compact:c,customBackground:u,customBackgroundClassName:d,className:f,hideCollapseButton:p,qa:h}=er(),m=(()=>{const{menuItems:e,allPagesIsAvailable:t}=er();return(0,o.useMemo)((()=>{if(!t)return e;let n=0;return e.filter(((e,t,r)=>!e.hidden&&(!(t>0&&"divider"===e.type)||"divider"!==r[n].type&&!r[n].hidden)&&(n=t,!0)))}),[t,e])})(),g=(0,o.useRef)(null);return o.useEffect((()=>{(0,Tr.k)(t,g.current)}),[t]),o.createElement(o.Fragment,null,o.createElement("div",{className:(0,Cr.b)("aside",f),style:{width:n},"data-qa":h},o.createElement("div",{className:(0,Cr.b)("aside-popup-anchor"),ref:g}),o.createElement("div",{className:(0,Cr.b)("aside-content",{"with-decoration":i})},u&&o.createElement("div",{className:(0,Cr.b)("aside-custom-background",d)},u),o.createElement(oi,null),(null===m||void 0===m?void 0:m.length)?o.createElement(Vo,{type:"menu",items:m,menuMoreTitle:null!==s&&void 0!==s?s:Ko("label_more"),onItemClick:r,multipleTooltip:a}):o.createElement("div",{className:(0,Cr.b)("menu-items")}),o.createElement("div",{className:(0,Cr.b)("footer")},null===l||void 0===l?void 0:l({size:n,compact:Boolean(c),asideRef:g})),!p&&o.createElement(ei,null))),o.createElement(ii,null))}));var si;ai.displayName="FirstPanel",function(e){e.AllPages="all-pages"}(si||(si={}));const li=[],ci=e=>{const{size:t,onClosePanel:n,menuItems:r,panelItems:i,onMenuItemsChanged:a}=e,[s,l]=(0,o.useState)(),c=o.useMemo((()=>({id:Co,title:So("menu-item.all-pages.title"),tooltipText:So("menu-item.all-pages.title"),icon:ir.Z})),[]),u=Boolean(a)&&(!r||(null===r||void 0===r?void 0:r.length)>0);(0,o.useEffect)((()=>{(null===i||void 0===i?void 0:i.some((e=>e.visible)))&&l(void 0)}),[i]);const d=(0,o.useCallback)((()=>{l(void 0),null===n||void 0===n||n()}),[n]),f=(0,o.useCallback)(((e,t,n)=>{var r;e.id===c.id?l((e=>e===si.AllPages?void 0:si.AllPages)):d(),null===(r=e.onItemClick)||void 0===r||r.call(e,e,t,n)}),[d,c]),p=(0,o.useMemo)((()=>u?[...r||li,Object.assign(Object.assign({},c),{current:s===si.AllPages})]:r||li),[u,r,s,c]),h=(0,o.useMemo)((()=>u?[...i||[],{id:si.AllPages,content:o.createElement(Oo,null),visible:s===si.AllPages}]:i),[u,i,s]);return Object.assign(Object.assign({},e),{onClosePanel:d,allPagesIsAvailable:u,menuItems:p,panelItems:h,size:t,onItemClick:f})},ui=o.forwardRef(((e,t)=>{const{size:n,compact:r}=rr(),i=ci(Object.assign({size:n,compact:r},e));return o.createElement(Xn,{value:i},o.createElement(ai,{ref:t}))}));ui.displayName="PageLayoutAside";const di=o.forwardRef(((e,t)=>{var{compact:n,className:r,topAlert:i}=e,a=d(e,["compact","className","topAlert"]);return o.createElement(Or,{compact:n,className:r,topAlert:i},o.createElement(ui,Object.assign({ref:t},a)),o.createElement(Or.Content,{renderContent:a.renderContent}))}));var fi;function pi(){return pi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pi.apply(this,arguments)}di.displayName="AsideHeader";const hi=function(e){return o.createElement("svg",pi({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512"},e),fi||(fi=o.createElement("path",{d:"M560 448h-48V113.5c0-27.25-21.5-49.5-48-49.5l-112 .01V128h96v384h112c8.875 0 16-7.125 16-15.1v-31.1c0-10.7-7.1-17.8-16-17.8zM280.3 1.007l-192 49.75C73.1 54.51 64 67.76 64 82.88V448H16c-8.875 0-16 7.125-16 15.1v31.1C0 504.9 7.125 512 16 512h304V33.13c0-21.5-19.5-37.373-39.7-32.123zM232 288c-13.25 0-24-14.37-24-31.1 0-17.62 10.75-31.1 24-31.1s24 12.6 24 30.2-10.7 32-24 32z"})))},mi=(0,fe.cn)("kv-navigation");function gi(e){let{isCompact:t,popupAnchor:n,user:r,children:i}=e;const[a,s]=o.useState(!1),l=r?Vn:hi;return(0,ie.jsx)(_r,{compact:t,item:{id:"user-popup",title:null!==r&&void 0!==r&&r.login?r.login:me("navigation-item.account"),current:a,icon:l,onItemClick:()=>s((e=>!e))},enableTooltip:!a,popupAnchor:n,popupVisible:a,onClosePopup:()=>s(!1),renderPopupContent:()=>(0,ie.jsx)("div",{className:mi("ydb-user-wrapper"),children:i})})}var vi;function yi(e){const t=(0,ue.k6)(),[n,r]=o.useState(),[i,a]=(0,u.yu)(Be.Ac);return(0,ie.jsx)(o.Fragment,{children:(0,ie.jsx)(di,{logo:{text:"YDB",icon:St,onClick:()=>t.push("/")},menuItems:e.menuItems,compact:i,onChangeCompact:a,className:mi(),renderContent:()=>e.content,renderFooter:t=>{let{compact:i,asideRef:a}=t;return(0,ie.jsxs)(o.Fragment,{children:[(0,ie.jsx)(_r,{compact:i,item:{id:"documentation",title:me("navigation-item.documentation"),icon:Wn.Z,onItemClick:()=>{window.open("https://ydb.tech/docs","_blank","noreferrer")}}}),(0,ie.jsx)(_r,{item:{id:"user-settings",title:me("navigation-item.settings"),icon:Gn.Z,current:n===vi.UserSettings,onItemClick:()=>{r(n===vi.UserSettings?void 0:vi.UserSettings)}},compact:i}),(0,ie.jsx)(gi,{isCompact:i,popupAnchor:a,user:e.user,children:e.ydbInternalUser})]})},panelItems:[{id:"user-settings",visible:n===vi.UserSettings,content:e.settings}],onClosePanel:()=>{r(void 0)}})})}!function(e){e.UserSettings="UserSettings"}(vi||(vi={}));const bi=(new class{constructor(){this.type=void 0,this.entities={}}set(e,t){return this.entities[e]=t,this}get(e){return this.entities[e]}register(e,t){return this.entities[e]=t,this}}).register("StaffCard",(function(e){let{children:t}=e;return(0,ie.jsx)(o.Fragment,{children:t})})).register("AsideNavigation",yi).register("ErrorBoundary",s.TI);function wi(e){let{store:t,history:n,componentsRegistry:r=bi,children:o}=e;return(0,ie.jsx)(i.B6,{children:(0,ie.jsx)(a.zt,{store:t,children:(0,ie.jsx)(ue.F0,{history:n,children:(0,ie.jsx)(Zn.QueryParamProvider,{adapter:Hn,children:(0,ie.jsx)(Ei,{children:(0,ie.jsx)(l.t,{registry:r,children:o})})})})})})}function Ei(e){let{children:t}=e;const[n]=(0,u.yu)(Be.bw);return(0,ie.jsx)($n.f,{theme:n,children:t})}const _i=(0,a.$j)((function(e){return{singleClusterMode:e.singleClusterMode}}))((function(e){let{store:t,history:n,singleClusterMode:r,children:o,userSettings:a=lt({singleClusterMode:r})}=e;return(0,ie.jsxs)(wi,{store:t,history:n,children:[(0,ie.jsx)(i.ql,{defaultTitle:"YDB Monitoring",titleTemplate:"%s \u2014 YDB Monitoring"}),(0,ie.jsx)(qn,{children:(0,ie.jsx)(ye,{userSettings:a,children:(0,ie.jsxs)(s.SV,{children:[(0,ie.jsx)(Ln,{singleClusterMode:r,children:o}),(0,ie.jsx)("div",{id:"fullscreen-root"})]})})}),(0,ie.jsx)(Ae,{})]})}));function xi(e){let{monitoring:t,dbName:n,dbType:r,clusterName:o}=e;try{const e=Ci(t);if(e){var i,a;const t=null!==(i=e.host)&&void 0!==i?i:"cluster",s=null!==(a=e.slot)&&void 0!==a?a:"static",l=e.cluster_name||o||"",c=new URL(e.monitoring_url);if(!c.search){const t="Serverless"===r?e.serverless_dashboard:e.dedicated_dashboard;c.pathname+=`/${t}`}return c.searchParams.has("p.cluster")||c.searchParams.set("p.cluster",l),c.searchParams.set("p.host",t),c.searchParams.set("p.slot",s),c.searchParams.set("p.database",n),c.toString()}}catch{}return""}function Si(e,t){try{const n=Ci(e);if(n){const e=n.cluster_dashboard,r=n.cluster_name||t||"",o=new URL(n.monitoring_url);return!o.search&&e&&(o.pathname+=`/${e}/view`),o.searchParams.has("p.cluster")||o.searchParams.set("p.cluster",r),o.searchParams.set("p.database","-"),o.toString()}}catch{}return""}function Ci(e){try{const t=JSON.parse(e);if("object"===typeof t&&"monitoring_url"in t)return t}catch{}}var ki,Oi=n(19797);function Ti(){return Ti=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ti.apply(this,arguments)}const Ni=function(e){return o.createElement("svg",Ti({fill:"currentColor",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg"},e),ki||(ki=o.createElement("path",{d:"M14.195 11.375H3.125v-7.82a.328.328 0 00-.305-.305H1.805a.309.309 0 00-.305.305v9.14c0 .178.127.305.305.305h12.39a.309.309 0 00.305-.305V11.68a.328.328 0 00-.305-.305zm-3.25-5.688L8.812 7.11 6.63 4.24c-.127-.178-.38-.178-.508.026L3.937 7.922v2.64h9.75l-2.285-4.748c-.101-.177-.304-.228-.457-.127z"})))},Ii=(0,fe.cn)("kv-monitoring-button");function Pi(e){let{href:t,visible:n=!1,className:r}=e;return(0,ie.jsx)(x.z,{href:t,target:"_blank",className:Ii({visible:n},r),size:"s",title:"Monitoring dashboard",children:(0,ie.jsx)(f.J,{data:Ni})})}var Ri=n(90860),Di=n(45535),Ai=n(61293),ji=n(41616);const Mi=(0,fe.cn)("extended-cluster"),Li=e=>{const t=(0,Di.q)(e);return{label:"Balancer",value:(0,ie.jsxs)("div",{className:Mi("balancer"),children:[t,(0,ie.jsx)(Oi.m,{text:t,size:"s",className:Mi("clipboard-button")})]})}},zi=(e,t,n,r)=>{const o={};if(t&&r){const n=r(t,e);n&&(o.links=[{title:"Monitoring",url:n}])}return n&&(o.info=[Li(n)]),o},Fi=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return{getVersionToColorMap:()=>(0,Ri.n$)((0,Ri.kn)(e))}},Bi=(e,t,n,r,o)=>{const i={prepareTenantBackend:e=>{if(n){if(r)return(0,Di.M2)(n);if(e)return(0,Ai.sA)(e,n)}}};return t&&o&&(i.getMonitoringLink=(n,r)=>{if(n&&r){const i=o({monitoring:t,dbName:n,dbType:r,clusterName:e});return(0,ie.jsx)(Pi,{href:i})}return null}),i};function Ui(e){let{component:t,getMonitoringLink:n,getMonitoringClusterLink:r}=e;const{monitoring:o,balancer:i,versions:a,cluster:s,useClusterBalancerAsBackend:l,additionalNodesProps:c}=(0,ji.r)();return(0,ie.jsx)("div",{className:Mi(),children:(0,ie.jsx)(t,{additionalClusterProps:zi(null===s||void 0===s?void 0:s.Name,o,i,r),additionalVersionsProps:Fi(a),additionalTenantsProps:Bi(null===s||void 0===s?void 0:s.Name,o,i,l,n),additionalNodesProps:c})})}function qi(e){let{component:t}=e;const{balancer:n}=(0,Kt.kW)(),{additionalNodesProps:r}=(0,ji.f)({balancer:n});return(0,ie.jsx)(t,{additionalNodesProps:r})}function $i(e){let{component:t,getMonitoringLink:n}=e;const{balancer:r,monitoring:o}=(0,Kt.kW)(),{additionalNodesProps:i}=(0,ji.f)({balancer:r}),a={getMonitoringLink:(e,t)=>{if(o&&e&&t&&n){const r=n({monitoring:o,dbName:e,dbType:t});return r?(0,ie.jsx)(Pi,{href:r,visible:!0}):null}return null}};return(0,ie.jsx)(t,{additionalTenantProps:a,additionalNodesProps:i})}function Zi(e){let{store:t,history:n,getMonitoringLink:r=xi,getMonitoringClusterLink:o=Si,userSettings:i,children:a}=e;return(0,ie.jsxs)(_i,{store:t,history:n,userSettings:i,children:[(0,ie.jsx)(En,{children:e=>{let{component:t}=e;return(0,ie.jsx)(Ui,{component:t,getMonitoringLink:r,getMonitoringClusterLink:o})}}),(0,ie.jsx)(xn,{children:e=>{let{component:t}=e;return(0,ie.jsx)(qi,{component:t})}}),(0,ie.jsx)(_n,{children:e=>{let{component:t}=e;return(0,ie.jsx)($i,{component:t,getMonitoringLink:r})}}),a]})}var Hi=n(48710),Vi=n(18193),Wi=n(80839),Gi=n(63660),Yi=n(90058)},90058:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=e=>{e&&e instanceof Function&&n.e(599).then(n.bind(n,40599)).then((t=>{let{getCLS:n,getFID:r,getFCP:o,getLCP:i,getTTFB:a}=t;n(e),r(e),o(e),i(e),a(e)}))}},54665:(e,t,n)=>{"use strict";n.d(t,{By:()=>v,Fz:()=>m,Uu:()=>y,ZP:()=>u,ax:()=>p,ds:()=>g,fK:()=>b,mB:()=>d,vF:()=>h});var r=n(85198),o=n.n(r),i=n(7856),a=n(63041),s=n.n(a),l=n(27102);const c={clusters:"/clusters",cluster:"/cluster/:activeTab?",tenant:"/tenant",node:"/node/:id/:activeTab?",pDisk:"/pDisk",vDisk:"/vDisk",storageGroup:"/storageGroup",tablet:"/tablet/:id",tabletsFilters:"/tabletsFilters",auth:"/auth"},u=c,d=e=>s().parse(e.search,{ignoreQueryPrefix:!0}),f=e=>{let t=e;const n=/:\d{3,5}/g,r=e.match(n);if(r){const o=r[0];t=e.replace(n,":\\"+o.slice(1))}return t};function p(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n;const a="backend"in n&&Boolean(n.backend);l.y3&&!a&&l.dx&&(r={...n,backend:l.y3});const c="clusterName"in n&&Boolean(n.clusterName);l.qw&&!c&&l.dx&&(r={...r,clusterName:l.qw});const u=o()(r)?"":`?${s().stringify(r,{encode:!1,arrayFormat:"repeat"})}`,d=f(e);return`${(0,i.compile)(d)(t)}${u}`}const h=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return p(window.location.pathname,void 0,e)};function m(e){const{pathname:t,search:n,hash:r}=new URL(e,"http://localhost");return{pathname:t,search:n,hash:r}}function g(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return p(c.pDisk,void 0,{...n,nodeId:t,pDiskId:e})}function v(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return p(c.vDisk,void 0,{...r,nodeId:n,pDiskId:t,vDiskSlotId:e})}function y(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return p(c.storageGroup,void 0,{...t,groupId:e})}function b(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return p(c.tablet,{id:e},{...t})}},48710:(e,t,n)=>{"use strict";n.d(t,{su:()=>un,Iy:()=>dn,LC:()=>fn});var r={};n.r(r),n.d(r,{hasBrowserEnv:()=>fe,hasStandardBrowserEnv:()=>pe,hasStandardBrowserWebWorkerEnv:()=>me,origin:()=>ge});var o=n(63585),i=n.n(o);function a(e,t){return function(){return e.apply(t,arguments)}}const{toString:s}=Object.prototype,{getPrototypeOf:l}=Object,c=(u=Object.create(null),e=>{const t=s.call(e);return u[t]||(u[t]=t.slice(8,-1).toLowerCase())});var u;const d=e=>(e=e.toLowerCase(),t=>c(t)===e),f=e=>t=>typeof t===e,{isArray:p}=Array,h=f("undefined");const m=d("ArrayBuffer");const g=f("string"),v=f("function"),y=f("number"),b=e=>null!==e&&"object"===typeof e,w=e=>{if("object"!==c(e))return!1;const t=l(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},E=d("Date"),_=d("File"),x=d("Blob"),S=d("FileList"),C=d("URLSearchParams"),[k,O,T,N]=["ReadableStream","Request","Response","Headers"].map(d);function I(e,t){let n,r,{allOwnKeys:o=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),p(e))for(n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else{const r=o?Object.getOwnPropertyNames(e):Object.keys(e),i=r.length;let a;for(n=0;n<i;n++)a=r[n],t.call(null,e[a],a,e)}}function P(e,t){t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}const R="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:global,D=e=>!h(e)&&e!==R;const A=(j="undefined"!==typeof Uint8Array&&l(Uint8Array),e=>j&&e instanceof j);var j;const M=d("HTMLFormElement"),L=(e=>{let{hasOwnProperty:t}=e;return(e,n)=>t.call(e,n)})(Object.prototype),z=d("RegExp"),F=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};I(n,((n,o)=>{let i;!1!==(i=t(n,o,e))&&(r[o]=i||n)})),Object.defineProperties(e,r)},B="abcdefghijklmnopqrstuvwxyz",U="0123456789",q={DIGIT:U,ALPHA:B,ALPHA_DIGIT:B+B.toUpperCase()+U};const $=d("AsyncFunction"),Z=((e,t)=>{return e?setImmediate:t?(n=`axios@${Math.random()}`,r=[],R.addEventListener("message",(e=>{let{source:t,data:o}=e;t===R&&o===n&&r.length&&r.shift()()}),!1),e=>{r.push(e),R.postMessage(n,"*")}):e=>setTimeout(e);var n,r})("function"===typeof setImmediate,v(R.postMessage)),H="undefined"!==typeof queueMicrotask?queueMicrotask.bind(R):"undefined"!==typeof process&&process.nextTick||Z,V={isArray:p,isArrayBuffer:m,isBuffer:function(e){return null!==e&&!h(e)&&null!==e.constructor&&!h(e.constructor)&&v(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"===typeof FormData&&e instanceof FormData||v(e.append)&&("formdata"===(t=c(e))||"object"===t&&v(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&m(e.buffer),t},isString:g,isNumber:y,isBoolean:e=>!0===e||!1===e,isObject:b,isPlainObject:w,isReadableStream:k,isRequest:O,isResponse:T,isHeaders:N,isUndefined:h,isDate:E,isFile:_,isBlob:x,isRegExp:z,isFunction:v,isStream:e=>b(e)&&v(e.pipe),isURLSearchParams:C,isTypedArray:A,isFileList:S,forEach:I,merge:function e(){const{caseless:t}=D(this)&&this||{},n={},r=(r,o)=>{const i=t&&P(n,o)||o;w(n[i])&&w(r)?n[i]=e(n[i],r):w(r)?n[i]=e({},r):p(r)?n[i]=r.slice():n[i]=r};for(let o=0,i=arguments.length;o<i;o++)arguments[o]&&I(arguments[o],r);return n},extend:function(e,t,n){let{allOwnKeys:r}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return I(t,((t,r)=>{n&&v(t)?e[r]=a(t,n):e[r]=t}),{allOwnKeys:r}),e},trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let o,i,a;const s={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],r&&!r(a,e,t)||s[a]||(t[a]=e[a],s[a]=!0);e=!1!==n&&l(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:c,kindOfTest:d,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(p(e))return e;let t=e.length;if(!y(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:M,hasOwnProperty:L,hasOwnProp:L,reduceDescriptors:F,freezeMethods:e=>{F(e,((t,n)=>{if(v(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];v(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach((e=>{n[e]=!0}))};return p(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:P,global:R,isContextDefined:D,ALPHABET:q,generateString:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:16,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:q.ALPHA_DIGIT,n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n},isSpecCompliantForm:function(e){return!!(e&&v(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(b(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const o=p(e)?[]:{};return I(e,((e,t)=>{const i=n(e,r+1);!h(i)&&(o[t]=i)})),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:$,isThenable:e=>e&&(b(e)||v(e))&&v(e.then)&&v(e.catch),setImmediate:Z,asap:H};function W(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}V.inherits(W,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:V.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const G=W.prototype,Y={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{Y[e]={value:e}})),Object.defineProperties(W,Y),Object.defineProperty(G,"isAxiosError",{value:!0}),W.from=(e,t,n,r,o,i)=>{const a=Object.create(G);return V.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),W.call(a,e.message,t,n,r,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};const K=W,Q=null;function J(e){return V.isPlainObject(e)||V.isArray(e)}function X(e){return V.endsWith(e,"[]")?e.slice(0,-2):e}function ee(e,t,n){return e?e.concat(t).map((function(e,t){return e=X(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const te=V.toFlatObject(V,{},null,(function(e){return/^is[A-Z]/.test(e)}));const ne=function(e,t,n){if(!V.isObject(e))throw new TypeError("target must be an object");t=t||new(Q||FormData);const r=(n=V.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!V.isUndefined(t[e])}))).metaTokens,o=n.visitor||c,i=n.dots,a=n.indexes,s=(n.Blob||"undefined"!==typeof Blob&&Blob)&&V.isSpecCompliantForm(t);if(!V.isFunction(o))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(V.isDate(e))return e.toISOString();if(!s&&V.isBlob(e))throw new K("Blob is not supported. Use a Buffer instead.");return V.isArrayBuffer(e)||V.isTypedArray(e)?s&&"function"===typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,n,o){let s=e;if(e&&!o&&"object"===typeof e)if(V.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(V.isArray(e)&&function(e){return V.isArray(e)&&!e.some(J)}(e)||(V.isFileList(e)||V.endsWith(n,"[]"))&&(s=V.toArray(e)))return n=X(n),s.forEach((function(e,r){!V.isUndefined(e)&&null!==e&&t.append(!0===a?ee([n],r,i):null===a?n:n+"[]",l(e))})),!1;return!!J(e)||(t.append(ee(o,n,i),l(e)),!1)}const u=[],d=Object.assign(te,{defaultVisitor:c,convertValue:l,isVisitable:J});if(!V.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!V.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+r.join("."));u.push(n),V.forEach(n,(function(n,i){!0===(!(V.isUndefined(n)||null===n)&&o.call(t,n,V.isString(i)?i.trim():i,r,d))&&e(n,r?r.concat(i):[i])})),u.pop()}}(e),t};function re(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function oe(e,t){this._pairs=[],e&&ne(e,this,t)}const ie=oe.prototype;ie.append=function(e,t){this._pairs.push([e,t])},ie.toString=function(e){const t=e?function(t){return e.call(this,t,re)}:re;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};const ae=oe;function se(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function le(e,t,n){if(!t)return e;const r=n&&n.encode||se,o=n&&n.serialize;let i;if(i=o?o(t,n):V.isURLSearchParams(t)?t.toString():new ae(t,n).toString(r),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}const ce=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){V.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},ue={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},de={isBrowser:!0,classes:{URLSearchParams:"undefined"!==typeof URLSearchParams?URLSearchParams:ae,FormData:"undefined"!==typeof FormData?FormData:null,Blob:"undefined"!==typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},fe="undefined"!==typeof window&&"undefined"!==typeof document,pe=(he="undefined"!==typeof navigator&&navigator.product,fe&&["ReactNative","NativeScript","NS"].indexOf(he)<0);var he;const me="undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"===typeof self.importScripts,ge=fe&&window.location.href||"http://localhost",ve={...r,...de};const ye=function(e){function t(e,n,r,o){let i=e[o++];if("__proto__"===i)return!0;const a=Number.isFinite(+i),s=o>=e.length;if(i=!i&&V.isArray(r)?r.length:i,s)return V.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!a;r[i]&&V.isObject(r[i])||(r[i]=[]);return t(e,n,r[i],o)&&V.isArray(r[i])&&(r[i]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}(r[i])),!a}if(V.isFormData(e)&&V.isFunction(e.entries)){const n={};return V.forEachEntry(e,((e,r)=>{t(function(e){return V.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null};const be={transitional:ue,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=V.isObject(e);o&&V.isHTMLForm(e)&&(e=new FormData(e));if(V.isFormData(e))return r?JSON.stringify(ye(e)):e;if(V.isArrayBuffer(e)||V.isBuffer(e)||V.isStream(e)||V.isFile(e)||V.isBlob(e)||V.isReadableStream(e))return e;if(V.isArrayBufferView(e))return e.buffer;if(V.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return ne(e,new ve.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return ve.isNode&&V.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((i=V.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return ne(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(V.isString(e))try{return(t||JSON.parse)(e),V.trim(e)}catch(r){if("SyntaxError"!==r.name)throw r}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||be.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(V.isResponse(e)||V.isReadableStream(e))return e;if(e&&V.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(o){if(n){if("SyntaxError"===o.name)throw K.from(o,K.ERR_BAD_RESPONSE,this,null,this.response);throw o}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ve.classes.FormData,Blob:ve.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};V.forEach(["delete","get","head","post","put","patch"],(e=>{be.headers[e]={}}));const we=be,Ee=V.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),_e=Symbol("internals");function xe(e){return e&&String(e).trim().toLowerCase()}function Se(e){return!1===e||null==e?e:V.isArray(e)?e.map(Se):String(e)}function Ce(e,t,n,r,o){return V.isFunction(r)?r.call(this,t,n):(o&&(t=n),V.isString(t)?V.isString(r)?-1!==t.indexOf(r):V.isRegExp(r)?r.test(t):void 0:void 0)}class ke{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=xe(t);if(!o)throw new Error("header name must be a non-empty string");const i=V.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=Se(e))}const i=(e,t)=>V.forEach(e,((e,n)=>o(e,n,t)));if(V.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(V.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach((function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&Ee[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t})(e),t);else if(V.isHeaders(e))for(const[a,s]of e.entries())o(s,a,n);else null!=e&&o(t,e,n);return this}get(e,t){if(e=xe(e)){const n=V.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(V.isFunction(t))return t.call(this,e,n);if(V.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=xe(e)){const n=V.findKey(this,e);return!(!n||void 0===this[n]||t&&!Ce(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=xe(e)){const o=V.findKey(n,e);!o||t&&!Ce(0,n[o],o,t)||(delete n[o],r=!0)}}return V.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!Ce(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return V.forEach(this,((r,o)=>{const i=V.findKey(n,o);if(i)return t[i]=Se(r),void delete t[o];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(o):String(o).trim();a!==o&&delete t[o],t[a]=Se(r),n[a]=!0})),this}concat(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.constructor.concat(this,...t)}toJSON(e){const t=Object.create(null);return V.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&V.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((e=>{let[t,n]=e;return t+": "+n})).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e){const t=new this(e);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return r.forEach((e=>t.set(e))),t}static accessor(e){const t=(this[_e]=this[_e]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=xe(e);t[r]||(!function(e,t){const n=V.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})}))}(n,e),t[r]=!0)}return V.isArray(e)?e.forEach(r):r(e),this}}ke.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),V.reduceDescriptors(ke.prototype,((e,t)=>{let{value:n}=e,r=t[0].toUpperCase()+t.slice(1);return{get:()=>n,set(e){this[r]=e}}})),V.freezeMethods(ke);const Oe=ke;function Te(e,t){const n=this||we,r=t||n,o=Oe.from(r.headers);let i=r.data;return V.forEach(e,(function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)})),o.normalize(),i}function Ne(e){return!(!e||!e.__CANCEL__)}function Ie(e,t,n){K.call(this,null==e?"canceled":e,K.ERR_CANCELED,t,n),this.name="CanceledError"}V.inherits(Ie,K,{__CANCEL__:!0});const Pe=Ie;function Re(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new K("Request failed with status code "+n.status,[K.ERR_BAD_REQUEST,K.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}const De=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,i=0,a=0;return t=void 0!==t?t:1e3,function(s){const l=Date.now(),c=r[a];o||(o=l),n[i]=s,r[i]=l;let u=a,d=0;for(;u!==i;)d+=n[u++],u%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),l-o<t)return;const f=c&&l-c;return f?Math.round(1e3*d/f):void 0}};const Ae=function(e,t){let n,r,o=0,i=1e3/t;const a=function(t){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Date.now();o=i,n=null,r&&(clearTimeout(r),r=null),e.apply(null,t)};return[function(){const e=Date.now(),t=e-o;for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];t>=i?a(l,e):(n=l,r||(r=setTimeout((()=>{r=null,a(n)}),i-t)))},()=>n&&a(n)]},je=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3,r=0;const o=De(50,250);return Ae((n=>{const i=n.loaded,a=n.lengthComputable?n.total:void 0,s=i-r,l=o(s);r=i;e({loaded:i,total:a,progress:a?i/a:void 0,bytes:s,rate:l||void 0,estimated:l&&a&&i<=a?(a-i)/l:void 0,event:n,lengthComputable:null!=a,[t?"download":"upload"]:!0})}),n)},Me=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Le=e=>function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return V.asap((()=>e(...n)))},ze=ve.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let n;function r(n){let r=n;return e&&(t.setAttribute("href",r),r=t.href),t.setAttribute("href",r),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return n=r(window.location.href),function(e){const t=V.isString(e)?r(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return!0},Fe=ve.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const a=[e+"="+encodeURIComponent(t)];V.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),V.isString(r)&&a.push("path="+r),V.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function Be(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Ue=e=>e instanceof Oe?{...e}:e;function qe(e,t){t=t||{};const n={};function r(e,t,n){return V.isPlainObject(e)&&V.isPlainObject(t)?V.merge.call({caseless:n},e,t):V.isPlainObject(t)?V.merge({},t):V.isArray(t)?t.slice():t}function o(e,t,n){return V.isUndefined(t)?V.isUndefined(e)?void 0:r(void 0,e,n):r(e,t,n)}function i(e,t){if(!V.isUndefined(t))return r(void 0,t)}function a(e,t){return V.isUndefined(t)?V.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,o,i){return i in t?r(n,o):i in e?r(void 0,n):void 0}const l={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(e,t)=>o(Ue(e),Ue(t),!0)};return V.forEach(Object.keys(Object.assign({},e,t)),(function(r){const i=l[r]||o,a=i(e[r],t[r],r);V.isUndefined(a)&&i!==s||(n[r]=a)})),n}const $e=e=>{const t=qe({},e);let n,{data:r,withXSRFToken:o,xsrfHeaderName:i,xsrfCookieName:a,headers:s,auth:l}=t;if(t.headers=s=Oe.from(s),t.url=le(Be(t.baseURL,t.url),e.params,e.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),V.isFormData(r))if(ve.hasStandardBrowserEnv||ve.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(!1!==(n=s.getContentType())){const[e,...t]=n?n.split(";").map((e=>e.trim())).filter(Boolean):[];s.setContentType([e||"multipart/form-data",...t].join("; "))}if(ve.hasStandardBrowserEnv&&(o&&V.isFunction(o)&&(o=o(t)),o||!1!==o&&ze(t.url))){const e=i&&a&&Fe.read(a);e&&s.set(i,e)}return t},Ze="undefined"!==typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){const r=$e(e);let o=r.data;const i=Oe.from(r.headers).normalize();let a,s,l,c,u,{responseType:d,onUploadProgress:f,onDownloadProgress:p}=r;function h(){c&&c(),u&&u(),r.cancelToken&&r.cancelToken.unsubscribe(a),r.signal&&r.signal.removeEventListener("abort",a)}let m=new XMLHttpRequest;function g(){if(!m)return;const r=Oe.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());Re((function(e){t(e),h()}),(function(e){n(e),h()}),{data:d&&"text"!==d&&"json"!==d?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:r,config:e,request:m}),m=null}m.open(r.method.toUpperCase(),r.url,!0),m.timeout=r.timeout,"onloadend"in m?m.onloadend=g:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(g)},m.onabort=function(){m&&(n(new K("Request aborted",K.ECONNABORTED,e,m)),m=null)},m.onerror=function(){n(new K("Network Error",K.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const o=r.transitional||ue;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new K(t,o.clarifyTimeoutError?K.ETIMEDOUT:K.ECONNABORTED,e,m)),m=null},void 0===o&&i.setContentType(null),"setRequestHeader"in m&&V.forEach(i.toJSON(),(function(e,t){m.setRequestHeader(t,e)})),V.isUndefined(r.withCredentials)||(m.withCredentials=!!r.withCredentials),d&&"json"!==d&&(m.responseType=r.responseType),p&&([l,u]=je(p,!0),m.addEventListener("progress",l)),f&&m.upload&&([s,c]=je(f),m.upload.addEventListener("progress",s),m.upload.addEventListener("loadend",c)),(r.cancelToken||r.signal)&&(a=t=>{m&&(n(!t||t.type?new Pe(null,e,m):t),m.abort(),m=null)},r.cancelToken&&r.cancelToken.subscribe(a),r.signal&&(r.signal.aborted?a():r.signal.addEventListener("abort",a)));const v=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);v&&-1===ve.protocols.indexOf(v)?n(new K("Unsupported protocol "+v+":",K.ERR_BAD_REQUEST,e)):m.send(o||null)}))},He=(e,t)=>{let n,r=new AbortController;const o=function(e){if(!n){n=!0,a();const t=e instanceof Error?e:this.reason;r.abort(t instanceof K?t:new Pe(t instanceof Error?t.message:t))}};let i=t&&setTimeout((()=>{o(new K(`timeout ${t} of ms exceeded`,K.ETIMEDOUT))}),t);const a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach((e=>{e&&(e.removeEventListener?e.removeEventListener("abort",o):e.unsubscribe(o))})),e=null)};e.forEach((e=>e&&e.addEventListener&&e.addEventListener("abort",o)));const{signal:s}=r;return s.unsubscribe=a,[s,()=>{i&&clearTimeout(i),i=null}]},Ve=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let r,o=0;for(;o<n;)r=o+t,yield e.slice(o,r),o=r},We=(e,t,n,r,o)=>{const i=async function*(e,t,n){for await(const r of e)yield*Ve(ArrayBuffer.isView(r)?r:await n(String(r)),t)}(e,t,o);let a,s=0,l=e=>{a||(a=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await i.next();if(t)return l(),void e.close();let o=r.byteLength;if(n){let e=s+=o;n(e)}e.enqueue(new Uint8Array(r))}catch(t){throw l(t),t}},cancel:e=>(l(e),i.return())},{highWaterMark:2})},Ge="function"===typeof fetch&&"function"===typeof Request&&"function"===typeof Response,Ye=Ge&&"function"===typeof ReadableStream,Ke=Ge&&("function"===typeof TextEncoder?(Qe=new TextEncoder,e=>Qe.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer()));var Qe;const Je=function(e){try{for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return!!e(...n)}catch(o){return!1}},Xe=Ye&&Je((()=>{let e=!1;const t=new Request(ve.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),et=Ye&&Je((()=>V.isReadableStream(new Response("").body))),tt={stream:et&&(e=>e.body)};var nt;Ge&&(nt=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!tt[e]&&(tt[e]=V.isFunction(nt[e])?t=>t[e]():(t,n)=>{throw new K(`Response type '${e}' is not supported`,K.ERR_NOT_SUPPORT,n)})})));const rt=async(e,t)=>{const n=V.toFiniteNumber(e.getContentLength());return null==n?(async e=>null==e?0:V.isBlob(e)?e.size:V.isSpecCompliantForm(e)?(await new Request(e).arrayBuffer()).byteLength:V.isArrayBufferView(e)||V.isArrayBuffer(e)?e.byteLength:(V.isURLSearchParams(e)&&(e+=""),V.isString(e)?(await Ke(e)).byteLength:void 0))(t):n},ot=Ge&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:i,timeout:a,onDownloadProgress:s,onUploadProgress:l,responseType:c,headers:u,withCredentials:d="same-origin",fetchOptions:f}=$e(e);c=c?(c+"").toLowerCase():"text";let p,h,[m,g]=o||i||a?He([o,i],a):[];const v=()=>{!p&&setTimeout((()=>{m&&m.unsubscribe()})),p=!0};let y;try{if(l&&Xe&&"get"!==n&&"head"!==n&&0!==(y=await rt(u,r))){let e,n=new Request(t,{method:"POST",body:r,duplex:"half"});if(V.isFormData(r)&&(e=n.headers.get("content-type"))&&u.setContentType(e),n.body){const[e,t]=Me(y,je(Le(l)));r=We(n.body,65536,e,t,Ke)}}V.isString(d)||(d=d?"include":"omit"),h=new Request(t,{...f,signal:m,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:d});let o=await fetch(h);const i=et&&("stream"===c||"response"===c);if(et&&(s||i)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=o[t]}));const t=V.toFiniteNumber(o.headers.get("content-length")),[n,r]=s&&Me(t,je(Le(s),!0))||[];o=new Response(We(o.body,65536,n,(()=>{r&&r(),i&&v()}),Ke),e)}c=c||"text";let a=await tt[V.findKey(tt,c)||"text"](o,e);return!i&&v(),g&&g(),await new Promise(((t,n)=>{Re(t,n,{data:a,headers:Oe.from(o.headers),status:o.status,statusText:o.statusText,config:e,request:h})}))}catch(b){if(v(),b&&"TypeError"===b.name&&/fetch/i.test(b.message))throw Object.assign(new K("Network Error",K.ERR_NETWORK,e,h),{cause:b.cause||b});throw K.from(b,b&&b.code,e,h)}}),it={http:Q,xhr:Ze,fetch:ot};V.forEach(it,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(n){}Object.defineProperty(e,"adapterName",{value:t})}}));const at=e=>`- ${e}`,st=e=>V.isFunction(e)||null===e||!1===e,lt={getAdapter:e=>{e=V.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i<t;i++){let t;if(n=e[i],r=n,!st(n)&&(r=it[(t=String(n)).toLowerCase()],void 0===r))throw new K(`Unknown adapter '${t}'`);if(r)break;o[t||"#"+i]=r}if(!r){const e=Object.entries(o).map((e=>{let[t,n]=e;return`adapter ${t} `+(!1===n?"is not supported by the environment":"is not available in the build")}));let n=t?e.length>1?"since :\n"+e.map(at).join("\n"):" "+at(e[0]):"as no adapter specified";throw new K("There is no suitable adapter to dispatch the request "+n,"ERR_NOT_SUPPORT")}return r},adapters:it};function ct(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Pe(null,e)}function ut(e){ct(e),e.headers=Oe.from(e.headers),e.data=Te.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return lt.getAdapter(e.adapter||we.adapter)(e).then((function(t){return ct(e),t.data=Te.call(e,e.transformResponse,t),t.headers=Oe.from(t.headers),t}),(function(t){return Ne(t)||(ct(e),t&&t.response&&(t.response.data=Te.call(e,e.transformResponse,t.response),t.response.headers=Oe.from(t.response.headers))),Promise.reject(t)}))}const dt="1.7.3",ft={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{ft[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const pt={};ft.transitional=function(e,t,n){function r(e,t){return"[Axios v"+dt+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,i)=>{if(!1===e)throw new K(r(o," has been removed"+(t?" in "+t:"")),K.ERR_DEPRECATED);return t&&!pt[o]&&(pt[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,i)}};const ht={assertOptions:function(e,t,n){if("object"!==typeof e)throw new K("options must be an object",K.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],a=t[i];if(a){const t=e[i],n=void 0===t||a(t,i,e);if(!0!==n)throw new K("option "+i+" must be "+n,K.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new K("Unknown option "+i,K.ERR_BAD_OPTION)}},validators:ft},mt=ht.validators;class gt{constructor(e){this.defaults=e,this.interceptors={request:new ce,response:new ce}}async request(e,t){try{return await this._request(e,t)}catch(n){if(n instanceof Error){let e;Error.captureStackTrace?Error.captureStackTrace(e={}):e=new Error;const t=e.stack?e.stack.replace(/^.+\n/,""):"";try{n.stack?t&&!String(n.stack).endsWith(t.replace(/^.+\n.+\n/,""))&&(n.stack+="\n"+t):n.stack=t}catch(r){}}throw n}}_request(e,t){"string"===typeof e?(t=t||{}).url=e:t=e||{},t=qe(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&ht.assertOptions(n,{silentJSONParsing:mt.transitional(mt.boolean),forcedJSONParsing:mt.transitional(mt.boolean),clarifyTimeoutError:mt.transitional(mt.boolean)},!1),null!=r&&(V.isFunction(r)?t.paramsSerializer={serialize:r}:ht.assertOptions(r,{encode:mt.function,serialize:mt.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&V.merge(o.common,o[t.method]);o&&V.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=Oe.concat(i,o);const a=[];let s=!0;this.interceptors.request.forEach((function(e){"function"===typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,a.unshift(e.fulfilled,e.rejected))}));const l=[];let c;this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)}));let u,d=0;if(!s){const e=[ut.bind(this),void 0];for(e.unshift.apply(e,a),e.push.apply(e,l),u=e.length,c=Promise.resolve(t);d<u;)c=c.then(e[d++],e[d++]);return c}u=a.length;let f=t;for(d=0;d<u;){const e=a[d++],t=a[d++];try{f=e(f)}catch(p){t.call(this,p);break}}try{c=ut.call(this,f)}catch(p){return Promise.reject(p)}for(d=0,u=l.length;d<u;)c=c.then(l[d++],l[d++]);return c}getUri(e){return le(Be((e=qe(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}V.forEach(["delete","get","head","options"],(function(e){gt.prototype[e]=function(t,n){return this.request(qe(n||{},{method:e,url:t,data:(n||{}).data}))}})),V.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,o){return this.request(qe(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}gt.prototype[e]=t(),gt.prototype[e+"Form"]=t(!0)}));const vt=gt;class yt{constructor(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const r=new Promise((e=>{n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,o){n.reason||(n.reason=new Pe(e,r,o),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;return{token:new yt((function(t){e=t})),cancel:e}}}const bt=yt;const wt={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(wt).forEach((e=>{let[t,n]=e;wt[n]=t}));const Et=wt;const _t=function e(t){const n=new vt(t),r=a(vt.prototype.request,n);return V.extend(r,vt.prototype,n,{allOwnKeys:!0}),V.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(qe(t,n))},r}(we);_t.Axios=vt,_t.CanceledError=Pe,_t.CancelToken=bt,_t.isCancel=Ne,_t.VERSION=dt,_t.toFormData=ne,_t.AxiosError=K,_t.Cancel=_t.CanceledError,_t.all=function(e){return Promise.all(e)},_t.spread=function(e){return function(t){return e.apply(null,t)}},_t.isAxiosError=function(e){return V.isObject(e)&&!0===e.isAxiosError},_t.mergeConfig=qe,_t.AxiosHeaders=Oe,_t.formToJSON=e=>ye(V.isHTMLForm(e)?new FormData(e):e),_t.getAdapter=lt.getAdapter,_t.HttpStatusCode=Et,_t.default=_t;const xt=_t,{Axios:St,AxiosError:Ct,CanceledError:kt,isCancel:Ot,CancelToken:Tt,VERSION:Nt,all:It,Cancel:Pt,isAxiosError:Rt,spread:Dt,toFormData:At,AxiosHeaders:jt,HttpStatusCode:Mt,formToJSON:Lt,getAdapter:zt,mergeConfig:Ft}=xt;class Bt{constructor(){var e=this;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.setApiEndpoint=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";"undefined"!==typeof location&&(t=t.replace("%CURRENT_HOST%",location.host)),e.apiEndpoint=t},this.setCSRFToken=e=>{this._axios.defaults.headers.post["X-CSRF-Token"]=e,this._axios.defaults.headers.put["X-CSRF-Token"]=e,this._axios.defaults.headers.delete["X-CSRF-Token"]=e},this.setDefaultHeader=e=>{let{name:t,value:n,methods:r}=e;const o=this._axios.defaults.headers;Array.isArray(r)?r.forEach((e=>{const r=o[e];r&&r instanceof jt&&(r[t]=n)})):o.common[t]=n},this.apiPath=e=>`${this.apiEndpoint}${e}`;const{config:n={},apiEndpoint:r="/api",collector:o={}}=t,a=Object.assign({xsrfCookieName:"",timeout:Bt.DEFAULT_TIMEOUT,withCredentials:!0},n);this._axios=xt.create(a),this._axios.defaults.headers=i()(this._axios.defaults.headers),this.requestTokens={},this.setApiEndpoint(r),this.collectorSettings=o,this.collector={errors:[],requests:[]}}collectRequest(e){let{method:t,url:n,data:r,requestStart:o,response:i,responseError:a,error:s=!1,cancelled:l=!1}=e;const{collectErrors:c,collectRequests:u}=this.collectorSettings;if(!c&&!u)return;const{responseText:d="",responseURL:f=n}=i&&i.request||{},p=s&&a instanceof Error?a.message:"",h={method:t,url:f,time:{start:o,end:Number(new Date)},status:i&&i.status,size:d.length,requestData:r&&JSON.stringify(r,null,2)||"",responseData:i&&i.data&&JSON.stringify(i.data,null,2)||p,isError:s,isCancelled:l};c&&s&&(this.collector.errors=[...this.collector.errors,h].slice(-c)),u&&(this.collector.requests=[...this.collector.requests,h].slice(-u))}getCollectedRequests(){return{errors:[...this.collector.errors],requests:[...this.collector.requests]}}async request(e){const{method:t,url:n,data:r=null,params:o,options:i={},retries:a=0}=e,s=i.requestConfig||{},{concurrentId:l,collectRequest:c=!0,timeout:u,headers:d,onDownloadProgress:f}=i;l&&(this.cancelRequest(l),s.cancelToken=this.createRequestToken(l)),d&&(s.headers=d),"undefined"!==typeof u&&(s.timeout=u);const p=Number(new Date),h={method:t,url:n,data:r,params:o,onDownloadProgress:f};try{const e=await this._axios.request(Object.assign(Object.assign({},s),h));return this.clearRequestToken(l),c&&this.collectRequest(Object.assign(Object.assign({},h),{requestStart:p,response:e})),e.data}catch(m){if(xt.isCancel(m))throw{isCancelled:!0,error:m};let t;return this.clearRequestToken(l),t=m.response?m.response:"function"===typeof m.toJSON?m.toJSON():m,c&&this.collectRequest(Object.assign(Object.assign({},h),{requestStart:p,response:t,error:!0,cancelled:xt.isCancel(m),responseError:m})),this.handleRequestError(t,(()=>this.request(Object.assign(Object.assign({},e),{retries:a+1}))),a,new Error(m instanceof Error?m.message:"Unknown error"))}}cancelRequest(e){e&&this.requestTokens[e]&&this.requestTokens[e].cancel("Concurrent request")}get(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request({method:"GET",url:e,params:t,options:n})}post(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.request({method:"POST",url:e,data:t,params:n,options:r})}put(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.request({method:"PUT",url:e,data:t,params:n,options:r})}patch(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.request({method:"PATCH",url:e,data:t,params:n,options:r})}delete(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.request({method:"DELETE",url:e,data:t,params:n,options:r})}head(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request({method:"HEAD",url:e,params:t,options:n})}handleRequestError(e){throw e}createRequestToken(e){if(e){const t=xt.CancelToken.source();return this.requestTokens[e]=t,t.token}}clearRequestToken(e){e&&this.requestTokens[e]&&delete this.requestTokens[e]}}Bt.DEFAULT_TIMEOUT=6e4;var Ut=n(36383);const qt="axios-retry";function $t(e){return!e.response&&(!!e.code&&(!["ERR_CANCELED","ECONNABORTED"].includes(e.code)&&Ut(e)))}const Zt=["get","head","options"],Ht=Zt.concat(["put","delete"]);function Vt(e){return"ECONNABORTED"!==e.code&&(!e.response||429===e.response.status||e.response.status>=500&&e.response.status<=599)}function Wt(e){return!!e.config?.method&&(Vt(e)&&-1!==Ht.indexOf(e.config.method))}function Gt(e){return $t(e)||Wt(e)}function Yt(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;const t=e?.response?.headers["retry-after"];if(!t)return 0;let n=1e3*(Number(t)||0);return 0===n&&(n=(new Date(t).valueOf()||0)-Date.now()),Math.max(0,n)}const Kt={retries:3,retryCondition:Gt,retryDelay:function(){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return Math.max(0,Yt(e))},shouldResetTimeout:!1,onRetry:()=>{},onMaxRetryTimesExceeded:()=>{},validateResponse:null};function Qt(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r=function(e,t){return{...Kt,...t,...e[qt]}}(e,t||{});return r.retryCount=r.retryCount||0,r.lastRequestTime&&!n||(r.lastRequestTime=Date.now()),e[qt]=r,r}const Jt=(e,t)=>{const n=e.interceptors.request.use((e=>(Qt(e,t,!0),e[qt]?.validateResponse&&(e.validateStatus=()=>!1),e))),r=e.interceptors.response.use(null,(async n=>{const{config:r}=n;if(!r)return Promise.reject(n);const o=Qt(r,t);return n.response&&o.validateResponse?.(n.response)?n.response:await async function(e,t){const{retries:n,retryCondition:r}=e,o=(e.retryCount||0)<n&&r(t);if("object"===typeof o)try{return!1!==await o}catch(i){return!1}return o}(o,n)?async function(e,t,n,r){t.retryCount+=1;const{retryDelay:o,shouldResetTimeout:i,onRetry:a}=t,s=o(t.retryCount,n);if(function(e,t){e.defaults.agent===t.agent&&delete t.agent,e.defaults.httpAgent===t.httpAgent&&delete t.httpAgent,e.defaults.httpsAgent===t.httpsAgent&&delete t.httpsAgent}(e,r),!i&&r.timeout&&t.lastRequestTime){const e=Date.now()-t.lastRequestTime,o=r.timeout-e-s;if(o<=0)return Promise.reject(n);r.timeout=o}return r.transformRequest=[e=>e],await a(t.retryCount,n,r),r.signal?.aborted?Promise.resolve(e(r)):new Promise((t=>{const n=()=>{clearTimeout(o),t(e(r))},o=setTimeout((()=>{t(e(r)),r.signal?.removeEventListener&&r.signal.removeEventListener("abort",n)}),s);r.signal?.addEventListener&&r.signal.addEventListener("abort",n,{once:!0})}))}(e,o,n,r):(await async function(e,t){e.retryCount>=e.retries&&await e.onMaxRetryTimesExceeded(t,e.retryCount)}(o,n),Promise.reject(n))}));return{requestInterceptorId:n,responseInterceptorId:r}};Jt.isNetworkError=$t,Jt.isSafeRequestError=function(e){return!!e.config?.method&&(Vt(e)&&-1!==Zt.indexOf(e.config.method))},Jt.isIdempotentRequestError=Wt,Jt.isNetworkOrIdempotentRequestError=Gt,Jt.exponentialDelay=function(){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;const t=2**(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)*(arguments.length>2&&void 0!==arguments[2]?arguments[2]:100),n=Math.max(t,Yt(e));return n+.2*n*Math.random()},Jt.isRetryableError=Vt;const Xt=Jt;var en=n(27102),tn=n(52317),nn=n(48169),rn=n(30490),on=n(49683);const an=e=>({TenantInfo:null===e||void 0===e?void 0:e.databases});var sn=n(18193);const ln=2*tn.NO,cn=10*tn.NO;class un extends Bt{constructor(e){super(e),this.DEFAULT_RETRIES_COUNT=3,Xt(this._axios,{retries:this.DEFAULT_RETRIES_COUNT,retryDelay:Xt.exponentialDelay}),this._axios.interceptors.request.use((function(e){return sn.r.readUserSettingsValue(tn.Ik)&&(e.headers["X-Want-Trace"]=1),e})),this._axios.interceptors.response.use((function(e){if(e.data&&e.data instanceof Object&&!Array.isArray(e.data)&&e.headers.traceresponse){const t=e.headers.traceresponse.split("-")[1];e.data={...e.data,_meta:{...e.data._meta,traceId:t}}}return e})),this._axios.interceptors.response.use(null,(function(e){var t;const n=e.response;return n&&401===n.status&&null!==(t=n.data)&&void 0!==t&&t.authUrl&&window.location.assign(n.data.authUrl),Promise.reject(e)}))}getPath(e){return`${null!==en.y3&&void 0!==en.y3?en.y3:""}${e}`}prepareArrayRequestParam(e){return e.join(",")}getClusterCapabilities(){return this.get(this.getPath("/viewer/capabilities"),{},{})}getClusterInfo(e){let{concurrentId:t,signal:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.get(this.getPath("/viewer/json/cluster"),{name:e,tablets:!0},{concurrentId:t||"getClusterInfo",requestConfig:{signal:n}})}getClusterConfig(e){let{concurrentId:t,signal:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.get(this.getPath("/viewer/feature_flags"),{database:e},{concurrentId:t,requestConfig:{signal:n}})}getNodeInfo(e){let{concurrentId:t,signal:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.get(this.getPath("/viewer/json/sysinfo?enums=true"),{node_id:e},{concurrentId:t,requestConfig:{signal:n}})}getTenants(e){let{concurrentId:t,signal:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.get(this.getPath("/viewer/json/tenantinfo"),{tablets:!1,storage:!0,cluster_name:e},{concurrentId:t,requestConfig:{signal:n}})}getTenantInfo(e){let{path:t,database:n=t}=e,{concurrentId:r,signal:o}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.get(this.getPath("/viewer/json/tenantinfo"),{database:n,path:t,tablets:!1,storage:!0},{concurrentId:r,requestConfig:{signal:o}})}getNodes(e){let{type:t="any",tablets:n=!1,database:r,tenant:o,fieldsRequired:i="all",filter:a,...s}=e,{concurrentId:l,signal:c}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const u=Array.isArray(i)?this.prepareArrayRequestParam(i):i;return this.get(this.getPath("/viewer/json/nodes?enums=true"),{type:t,tablets:n,filter:a||void 0,database:r||o,tenant:o||r,fields_required:u,...s},{concurrentId:l,requestConfig:{signal:c}})}getStorageInfo(e){let{tenant:t,database:n,nodeId:r,groupId:o,pDiskId:i,filter:a,...s}=e,{concurrentId:l,signal:c}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.get(this.getPath("/viewer/json/storage?enums=true"),{database:n||t,tenant:t||n,node_id:r,group_id:o,pdisk_id:i,filter:a||void 0,...s},{concurrentId:l,requestConfig:{signal:c}})}getStorageGroups(e){let{nodeId:t,pDiskId:n,groupId:r,fieldsRequired:o="all",filter:i,...a}=e,{concurrentId:s,signal:l}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const c=Array.isArray(t)?this.prepareArrayRequestParam(t):t,u=Array.isArray(n)?this.prepareArrayRequestParam(n):n,d=Array.isArray(r)?this.prepareArrayRequestParam(r):r,f=Array.isArray(o)?this.prepareArrayRequestParam(o):o;return this.get(this.getPath("/storage/groups"),{node_id:c,pdisk_id:u,group_id:d,fields_required:f,filter:i||void 0,...a},{concurrentId:s,requestConfig:{signal:l}})}getNodeWhiteboardPDiskInfo(e){let{nodeId:t,pDiskId:n}=e,{concurrentId:r,signal:o}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.get(this.getPath("/viewer/json/pdiskinfo?enums=true"),{filter:`(NodeId=${t}${n?`;PDiskId=${n}`:""})`},{concurrentId:r,requestConfig:{signal:o}})}getPDiskInfo(e){let{nodeId:t,pDiskId:n}=e,{concurrentId:r,signal:o}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.get(this.getPath("/pdisk/info"),{node_id:t,pdisk_id:n},{concurrentId:r,requestConfig:{signal:o}})}getVDiskInfo(e){let{vDiskSlotId:t,pDiskId:n,nodeId:r}=e,{concurrentId:o,signal:i}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.get(this.getPath("/viewer/json/vdiskinfo?enums=true"),{node_id:r,filter:`(PDiskId=${n};VDiskSlotId=${t})`},{concurrentId:o,requestConfig:{signal:i}})}getGroupInfo(e){let{concurrentId:t,signal:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.get(this.getPath("/viewer/json/storage?enums=true"),{group_id:e},{concurrentId:t,requestConfig:{signal:n}})}getTabletsInfo(e){let{nodeId:t,path:n,database:r}=e,{concurrentId:o,signal:i}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.get(this.getPath("/viewer/json/tabletinfo"),{database:r,node_id:t,path:n,enums:!0},{concurrentId:o,requestConfig:{signal:i}})}getSchema(e){let{path:t,database:n}=e,{concurrentId:r,signal:o}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.get(this.getPath("/viewer/json/describe"),{database:n,path:t,enums:!0,backup:!1,private:!0,partition_config:!1,partition_stats:!1,partitioning_info:!1,subs:1},{concurrentId:r,requestConfig:{signal:o}})}getDescribe(e){let{path:t,database:n}=e,{concurrentId:r,signal:o}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.get(this.getPath("/viewer/json/describe"),{database:n,path:t,enums:!0,partition_stats:!0,subs:0},{concurrentId:r||`getDescribe|${t}`,requestConfig:{signal:o}})}getSchemaAcl(e){let{path:t,database:n}=e,{concurrentId:r,signal:o}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.get(this.getPath("/viewer/json/acl"),{database:n,path:t,merge_rules:!0},{concurrentId:r,requestConfig:{signal:o}})}getHeatmapData(e){let{path:t,database:n}=e,{concurrentId:r,signal:o}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.get(this.getPath("/viewer/json/describe"),{database:n,path:t,enums:!0,backup:!1,children:!1,partition_config:!1,partition_stats:!0},{concurrentId:r,requestConfig:{signal:o}})}getNetwork(e){let{path:t,database:n}=e,{concurrentId:r,signal:o}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.get(this.getPath("/viewer/json/netinfo"),{enums:!0,database:n,path:t},{concurrentId:r,requestConfig:{signal:o}})}getTopic(e){let{path:t,database:n}=e,{concurrentId:r,signal:o}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.get(this.getPath("/viewer/json/describe_topic"),{enums:!0,include_stats:!0,database:n,path:t},{concurrentId:r,requestConfig:{signal:o}})}getConsumer(e){let{path:t,consumer:n,database:r}=e,{concurrentId:o,signal:i}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.get(this.getPath("/viewer/json/describe_consumer"),{enums:!0,include_stats:!0,database:r,path:t,consumer:n},{concurrentId:o||"getConsumer",requestConfig:{signal:i}})}getTablet(e){let{id:t,database:n,nodeId:r}=e,{concurrentId:o,signal:i}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.get(this.getPath("/viewer/json/tabletinfo"),{enums:!0,database:n,node_id:r,filter:`(TabletId=${t})`},{concurrentId:o,requestConfig:{signal:i}})}getTabletHistory(e){let{id:t,database:n,nodeId:r}=e,{concurrentId:o,signal:i}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.get(this.getPath("/viewer/json/tabletinfo"),{enums:!0,merge:!1,database:n,node_id:r,filter:`(TabletId=${t})`},{concurrentId:o,requestConfig:{signal:i}})}getNodesList(){let{concurrentId:e,signal:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.get(this.getPath("/viewer/json/nodelist"),{enums:!0},{concurrentId:e,requestConfig:{signal:t}})}getTenantsList(){let{concurrentId:e,signal:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.get(this.getPath("/viewer/json/tenants"),{enums:!0,state:0},{concurrentId:e,requestConfig:{signal:t}})}sendQuery(e){let{concurrentId:t,signal:n,withRetries:r}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const o=!sn.r.readUserSettingsValue(tn.N1,!0),{schema:i,...a}=e;return this.post(this.getPath("/viewer/json/query"),{...a,base64:o},{schema:i,base64:o},{concurrentId:t,timeout:e.timeout,requestConfig:{signal:n,"axios-retry":{retries:r?this.DEFAULT_RETRIES_COUNT:0}},headers:e.tracingLevel?{"X-Trace-Verbosity":e.tracingLevel}:void 0})}getHotKeys(e){let{path:t,database:n,enableSampling:r}=e,{concurrentId:o,signal:i}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.get(this.getPath("/viewer/json/hotkeys"),{database:n,path:t,enable_sampling:r},{concurrentId:o||"getHotKeys",requestConfig:{signal:i}})}checkTrace(e){let{url:t}=e,{concurrentId:n,signal:r}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.get(t,{},{concurrentId:n||"checkTrace",requestConfig:{signal:r,timeout:ln,"axios-retry":{retries:30,retryDelay:(e,t)=>{var n;return(0,rn.IZ)(t)&&(404===(null===t||void 0===t||null===(n=t.response)||void 0===n?void 0:n.status)||"ERR_NETWORK"===t.code)?ln:cn},shouldResetTimeout:!0,retryCondition:()=>!0}}})}getHealthcheckInfo(e){let{database:t,maxLevel:n}=e,{concurrentId:r,signal:o}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.get(this.getPath("/viewer/json/healthcheck?merge_records=true"),{database:t,tenant:t,max_level:n},{concurrentId:r,requestConfig:{signal:o}})}evictVDiskOld(e){let{groupId:t,groupGeneration:n,failRealmIdx:r,failDomainIdx:o,vDiskIdx:i}=e;return this.post(this.getPath("/tablets/app?TabletID=72057594037932033&exec=1"),{Command:{ReassignGroupDisk:{GroupId:t,GroupGeneration:n,FailRealmIdx:r,FailDomainIdx:o,VDiskIdx:i}}},{},{headers:{Accept:"application/json"}})}evictVDisk(e){let{groupId:t,groupGeneration:n,failRealmIdx:r,failDomainIdx:o,vDiskIdx:i,force:a}=e;return this.post(this.getPath("/vdisk/evict"),{},{group_id:t,group_generation_id:n,fail_realm_idx:r,fail_domain_idx:o,vdisk_idx:i,force:a},{requestConfig:{"axios-retry":{retries:0}}})}restartPDiskOld(e){let{nodeId:t,pDiskId:n}=e;const r=(0,nn.ok)({nodeId:t,pDiskId:n,host:this.getPath("")});return this.post(r,"restartPDisk=",{},{headers:{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"}})}restartPDisk(e){let{nodeId:t,pDiskId:n,force:r}=e;return this.post(this.getPath("/pdisk/restart"),{},{node_id:t,pdisk_id:n,force:r},{requestConfig:{"axios-retry":{retries:0}}})}changePDiskStatus(e){let{nodeId:t,pDiskId:n,force:r,decommissionStatus:o}=e;return this.post(this.getPath("/pdisk/status"),{decommit_status:o},{node_id:t,pdisk_id:n,force:r},{requestConfig:{"axios-retry":{retries:0}}})}killTablet(e){return this.get(this.getPath(`/tablets?KillTabletID=${e}`),{},{requestConfig:{"axios-retry":{retries:0}}})}stopTablet(e,t){return this.get(this.getPath(`/tablets/app?TabletID=${t}&page=StopTablet&tablet=${e}`),{},{requestConfig:{"axios-retry":{retries:0}}})}resumeTablet(e,t){return this.get(this.getPath(`/tablets/app?TabletID=${t}&page=ResumeTablet&tablet=${e}`),{},{requestConfig:{"axios-retry":{retries:0}}})}getTabletFromHive(e){let{id:t,hiveId:n}=e,{concurrentId:r,signal:o}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.get(this.getPath("/tablets/app"),{TabletID:n,page:"TabletInfo",tablet:t},{concurrentId:r,requestConfig:{signal:o}})}getTabletDescribe(e){let{concurrentId:t,signal:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.get(this.getPath("/viewer/json/describe"),{schemeshard_id:null===e||void 0===e?void 0:e.SchemeShard,path_id:null===e||void 0===e?void 0:e.PathId},{concurrentId:t,requestConfig:{signal:n}})}getChartData(e){let{target:t,from:n,until:r,maxDataPoints:o,database:i}=e,{concurrentId:a,signal:s}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const l=`${t}&from=${n}&until=${r}&maxDataPoints=${o}&format=json`;return this.post(this.getPath(`/viewer/json/render?database=${i}`),l,{},{concurrentId:a,headers:{"Content-Type":"application/x-www-form-urlencoded"},requestConfig:{signal:s}})}authenticate(e){return this.post(this.getPath("/login"),e,{})}logout(){return this.post(this.getPath("/logout"),{},{})}whoami(){return this.get(this.getPath("/viewer/json/whoami"),{})}autocomplete(e){const{table:t,...n}=e,r=null===t||void 0===t?void 0:t.join(",");return this.get(this.getPath("/viewer/json/autocomplete"),{...n,table:r},{concurrentId:"sql-autocomplete"})}createSchemaDirectory(e){let{database:t,path:n}=e,{signal:r}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.post(this.getPath("/scheme/directory"),{},{database:t,path:n},{requestConfig:{signal:r}})}getClustersList(e){throw new Error("Method is not implemented.")}getClusterBaseInfo(e){throw new Error("Method is not implemented.")}}class dn extends un{getClustersList(e){let{signal:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.get(`${en.Vq||""}/meta/clusters`,null,{requestConfig:{signal:t}})}getClusterInfo(e){let{signal:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.get(`${en.Vq||""}/meta/cluster`,{name:e},{concurrentId:`getCluster${e}`,requestConfig:{signal:t}}).then(on.i)}getTenants(e){let{signal:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.get(`${en.Vq||""}/meta/cp_databases`,{cluster_name:e},{requestConfig:{signal:t}}).then(an)}getClusterBaseInfo(e){let{concurrentId:t,signal:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.get(`${en.Vq||""}/meta/db_clusters`,{name:e},{concurrentId:t,requestConfig:{signal:n}}).then((e=>e.clusters[0]))}}function fn(){let{webVersion:e=!1,withCredentials:t=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n={withCredentials:t};return e?new dn({config:n}):new un({config:n})}},49683:(e,t,n)=>{"use strict";n.d(t,{i:()=>a,N:()=>s});var r=n(95408);const o=r.z.object({url:r.z.string().url()}),i=r.z.object({url:r.z.string().url()}),a=e=>{const{cluster:t={}}=e,{cluster:n,balancer:r,solomon:o,trace_check:i,trace_view:a}=t,{traceCheck:l,traceView:c}=s({traceCheck:i,traceView:a});return{...n,Name:t.title||(null===n||void 0===n?void 0:n.Name),Balancer:r,Solomon:o,TraceCheck:l,TraceView:c}};function s(e){let{traceCheck:t,traceView:n}=e;try{return{traceCheck:t?o.parse(JSON.parse(t)):void 0,traceView:n?i.parse(JSON.parse(n)):void 0}}catch(r){console.error("Error parsing trace fields:",r)}return{}}},18193:(e,t,n)=>{"use strict";n.d(t,{r:()=>l,t:()=>s});var r=n(24015),o=n(52317),i=n(39623),a=n(55850);const s={[o.bw]:"system",[o.Px]:void 0,[o.yT]:!1,[o.Rq]:!0,[o.N1]:!0,[o.DG]:[],[o.pf]:r.m2.query,[o.w7]:i.Jf.execute,[o.Ac]:!0,[o.ZY]:[],[o.Qy]:!1,[o.IG]:!0,[o.y6]:!0,[o.XX]:!0,[o.RI]:!1,[o.KU]:0,[o.Zy]:!1,[o.RE]:void 0,[o.Rn]:void 0,[o.Zi]:i.hl};const l=new class{constructor(){this.extractSettingsFromLS=e=>Object.entries(e).reduce(((e,t)=>{let[n,r]=t;return e[n]=this.readUserSettingsValue(n,r),e}),{}),this.readValueFromLS=e=>{try{const t=localStorage.getItem(e);return(0,a.Mo)(t)}catch{return}},this.setValueToLS=(e,t)=>{try{"string"===typeof t?localStorage.setItem(e,t):localStorage.setItem(e,JSON.stringify(t))}catch{}}}readUserSettingsValue(e,t){var n;return null!==(n=this.readValueFromLS(e))&&void 0!==n?n:t}setUserSettingsValue(e,t){return this.setValueToLS(e,t)}}},67510:(e,t,n)=>{"use strict";n.d(t,{y3:()=>O,EZ:()=>T,qw:()=>N,xC:()=>z,j4:()=>j,Vq:()=>M,dx:()=>A});var r=n(1399),o=n(91668),i=n(91087),a=n(48710);const s=e=>{let{href:t,singleClusterMode:n,customBackend:r}=e;if(n){if(r){var o;const e=null!==(o=new URL(t).searchParams.get("backend"))&&void 0!==o?o:void 0;return{basename:"/",backend:e||r}}{const e=window.location.pathname.match(/.*(?=\/monitoring)/)||[],t=e.length>0?e[0]:"";return{basename:[t,"monitoring"].filter(Boolean).join("/"),backend:t||""}}}{var i,a;const e=new URL(t).searchParams;return{basename:"/",backend:null!==(i=e.get("backend"))&&void 0!==i?i:void 0,clusterName:null!==(a=e.get("clusterName"))&&void 0!==a?a:void 0}}};var l=n(89795),c=n(905),u=n(80839),d=n(3027),f=n(84142),p=n.n(f),h=n(25484),m=n.n(h),g=n(3186),v=n.n(g),y=n(63041),b=n.n(y),w=n(94909),E=n(58102),_=n(43903),x=n(78103),S=n(93717);const C={global:{problemFilter:{stateKey:"settings.problemFilter",initialState:u.E3.problemFilter}},"/tenant":{sort:{stateKey:"heatmap.sort",initialState:S.E3.sort,type:"bool"},heatmap:{stateKey:"heatmap.heatmap",initialState:S.E3.heatmap,type:"bool"},currentMetric:{stateKey:"heatmap.currentMetric",initialState:S.E3.currentMetric},tenantPage:{stateKey:"tenant.tenantPage"},queryTab:{stateKey:"tenant.queryTab"},diagnosticsTab:{stateKey:"tenant.diagnosticsTab"},summaryTab:{stateKey:"tenant.summaryTab"},metricsTab:{stateKey:"tenant.metricsTab"},shardsMode:{stateKey:"shardsWorkload.mode"},shardsDateFrom:{stateKey:"shardsWorkload.from"},shardsDateTo:{stateKey:"shardsWorkload.to"},topQueriesDateFrom:{stateKey:"executeTopQueries.from"},topQueriesDateTo:{stateKey:"executeTopQueries.to"},selectedConsumer:{stateKey:"partitions.selectedConsumer"}},"/cluster/tenants":{search:{stateKey:"tenants.searchValue"}}};function k(e,t){return v()({},e,t.query)}let O,T,N,I="";function P(e,t,n){const r=(0,x.stateToParams)(e,t,n);let{location:o}=r;if(o.search===I)return{location:n,shouldPush:!1};{const e=/\?\w+/;return I=o.search,e.test(n.search)&&(o=function(e,t){const{search:n,...r}=e,o=b().parse(t.search.slice(1)),i=(0,E.getMatchingDeclaredPath)(C,e),a=i&&C[i];p()(m()(a),(e=>{delete o[e]})),p()(m()(C.global||{}),(e=>{delete o[e]}));const s=b().stringify(o,{encoder:encodeURIComponent}),l=n.startsWith("?")?"&":"?";return{search:`${n}${l}${s}`,...r}}(o,n)),{...r,location:o}}}function R(e,t,n){return(r,o)=>{const i=((n,r)=>{const{type:o,payload:i}=r;if(!i)return n;if(w.LOCATION_POP===o||w.LOCATION_PUSH===o){const r=i;return r.query=(0,_.parseQuery)(e,i),t(n,r)}return n})(n(r,o),o);return i!==r?i:r}}function D(e,t,n,o){const{locationMiddleware:a,reducersWithLocation:s}=function(e,t){const{locationMiddleware:n}=(0,i.zl)(C,k,e,t,P);return{locationMiddleware:n,reducersWithLocation:R(C,k,t)}}(t,e),l=(0,r.xC)({reducer:s,preloadedState:n,middleware:e=>e({immutableCheck:{ignoredPaths:["tooltip.currentHoveredRef"]},serializableCheck:{ignoredPaths:["tooltip.currentHoveredRef","api"],ignoredActions:[d.MB,"api/executeQuery/rejected"]}}).concat(a,...o)});return(0,u.vD)(l),l}const A=window.web_version,j=window.custom_backend,M=window.meta_backend,L="undefined"===`${M}`;function z(){let{aRootReducer:e=l.Z,singleClusterMode:t=L,api:n=(0,a.LC)({webVersion:A,withCredentials:!j})}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};({backend:O,basename:T,clusterName:N}=s({href:window.location.href,singleClusterMode:t,customBackend:j}));const r=(0,o.lX)({basename:T}),u=D(e,r,{singleClusterMode:t},[c.h.middleware]);return(0,i.C1)(u,r),window.api=n,{history:r,store:u}}},27102:(e,t,n)=>{"use strict";n.d(t,{EZ:()=>r.EZ,QW:()=>o.Q,Vq:()=>r.Vq,dx:()=>r.dx,j4:()=>r.j4,qw:()=>r.qw,xC:()=>r.xC,y3:()=>r.y3});var r=n(67510),o=n(89795)},905:(e,t,n)=>{"use strict";n.d(t,{h:()=>w});var r=n(17095),o=n(38907),i=n(1399),a=n(68963),s=n(87555),l=n(36313);function c(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Object.assign(e,...n)}function u(e){return e.replace(e[0],e[0].toUpperCase())}var d=WeakMap?new WeakMap:void 0,f=e=>{let{endpointName:t,queryArgs:n}=e,r="";const i=d?.get(n);if("string"===typeof i)r=i;else{const e=JSON.stringify(n,((e,t)=>(0,o.PO)(t)?Object.keys(t).sort().reduce(((e,n)=>(e[n]=t[n],e)),{}):t));(0,o.PO)(n)&&d?.set(n,e),r=e}return`${t}(${r})`},p=Symbol();function h(e,t,n,r){const o=(0,a.useMemo)((()=>({queryArgs:e,serialized:"object"==typeof e?t({queryArgs:e,endpointDefinition:n,endpointName:r}):e})),[e,t,n,r]),i=(0,a.useRef)(o);return(0,a.useEffect)((()=>{i.current.serialized!==o.serialized&&(i.current=o)}),[o]),i.current.serialized===o.serialized?i.current.queryArgs:e}function m(e){const t=(0,a.useRef)(e);return(0,a.useEffect)((()=>{(0,s.wU)(t.current,e)||(t.current=e)}),[e]),(0,s.wU)(t.current,e)?t.current:e}var g="undefined"!==typeof window&&window.document&&window.document.createElement?a.useLayoutEffect:a.useEffect,v=e=>e.isUninitialized?{...e,isUninitialized:!1,isFetching:!0,isLoading:void 0===e.data,status:r.oZ.pending}:e;var y=Symbol();var b=(0,r.Tk)((0,r.hF)(),function(){let{batch:e=s.dC,hooks:t={useDispatch:s.I0,useSelector:s.v9,useStore:s.oR},createSelector:n=l.P1,unstable__sideEffectsInRender:o=!1,...d}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{name:y,init(l,d,y){let{serializeQueryArgs:b}=d;const w=l,{buildQueryHooks:E,buildMutationHook:_,usePrefetch:x}=function(e){let{api:t,moduleOptions:{batch:n,hooks:{useDispatch:o,useSelector:l,useStore:c},unstable__sideEffectsInRender:u,createSelector:d},serializeQueryArgs:y,context:b}=e;const w=u?e=>e():a.useEffect;return{buildQueryHooks:function(e){const u=function(n){let{refetchOnReconnect:s,refetchOnFocus:l,refetchOnMountOrArgChange:c,skip:u=!1,pollingInterval:d=0,skipPollingIfUnfocused:p=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{initiate:g}=t.endpoints[e],v=o(),y=(0,a.useRef)();if(!y.current){const e=v(t.internalActions.internal_getRTKQSubscriptions());y.current=e}const E=h(u?r.CN:n,f,b.endpointDefinitions[e],e),_=m({refetchOnReconnect:s,refetchOnFocus:l,pollingInterval:d,skipPollingIfUnfocused:p}),x=(0,a.useRef)(!1),S=(0,a.useRef)();let{queryCacheKey:C,requestId:k}=S.current||{},O=!1;C&&k&&(O=y.current.isRequestSubscribed(C,k));const T=!O&&x.current;return w((()=>{x.current=O})),w((()=>{T&&(S.current=void 0)}),[T]),w((()=>{const e=S.current;if(E===r.CN)return e?.unsubscribe(),void(S.current=void 0);const t=S.current?.subscriptionOptions;if(e&&e.arg===E)_!==t&&e.updateSubscriptionOptions(_);else{e?.unsubscribe();const t=v(g(E,{subscriptionOptions:_,forceRefetch:c}));S.current=t}}),[v,g,c,E,_,T]),(0,a.useEffect)((()=>()=>{S.current?.unsubscribe(),S.current=void 0}),[]),(0,a.useMemo)((()=>({refetch:()=>{if(!S.current)throw new Error((0,i.rJ)(38));return S.current?.refetch()}})),[])},_=function(){let{refetchOnReconnect:r,refetchOnFocus:i,pollingInterval:s=0,skipPollingIfUnfocused:l=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{initiate:c}=t.endpoints[e],u=o(),[d,f]=(0,a.useState)(p),h=(0,a.useRef)(),g=m({refetchOnReconnect:r,refetchOnFocus:i,pollingInterval:s,skipPollingIfUnfocused:l});w((()=>{const e=h.current?.subscriptionOptions;g!==e&&h.current?.updateSubscriptionOptions(g)}),[g]);const v=(0,a.useRef)(g);w((()=>{v.current=g}),[g]);const y=(0,a.useCallback)((function(e){let t,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return n((()=>{h.current?.unsubscribe(),h.current=t=u(c(e,{subscriptionOptions:v.current,forceRefetch:!r})),f(e)})),t}),[u,c]);return(0,a.useEffect)((()=>()=>{h?.current?.unsubscribe()}),[]),(0,a.useEffect)((()=>{d===p||h.current||y(d,!0)}),[d,y]),(0,a.useMemo)((()=>[y,d]),[y,d])},x=function(n){let{skip:o=!1,selectFromResult:i}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{select:u}=t.endpoints[e],f=h(o?r.CN:n,y,b.endpointDefinitions[e],e),p=(0,a.useRef)(),m=(0,a.useMemo)((()=>d([u(f),(e,t)=>t,e=>f],E,{memoizeOptions:{resultEqualityCheck:s.wU}})),[u,f]),v=(0,a.useMemo)((()=>i?d([m],i,{devModeChecks:{identityFunctionCheck:"never"}}):m),[m,i]),w=l((e=>v(e,p.current)),s.wU),_=c(),x=m(_.getState(),p.current);return g((()=>{p.current=x}),[x]),w};return{useQueryState:x,useQuerySubscription:u,useLazyQuerySubscription:_,useLazyQuery(e){const[t,n]=_(e),r=x(n,{...e,skip:n===p}),o=(0,a.useMemo)((()=>({lastArg:n})),[n]);return(0,a.useMemo)((()=>[t,r,o]),[t,r,o])},useQuery(e,t){const n=u(e,t),o=x(e,{selectFromResult:e===r.CN||t?.skip?void 0:v,...t}),{data:i,status:s,isLoading:l,isSuccess:c,isError:d,error:f}=o;return(0,a.useDebugValue)({data:i,status:s,isLoading:l,isSuccess:c,isError:d,error:f}),(0,a.useMemo)((()=>({...o,...n})),[o,n])}}},buildMutationHook:function(e){return function(){let{selectFromResult:r,fixedCacheKey:i}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{select:c,initiate:u}=t.endpoints[e],f=o(),[p,h]=(0,a.useState)();(0,a.useEffect)((()=>()=>{p?.arg.fixedCacheKey||p?.reset()}),[p]);const m=(0,a.useCallback)((function(e){const t=f(u(e,{fixedCacheKey:i}));return h(t),t}),[f,u,i]),{requestId:g}=p||{},v=(0,a.useMemo)((()=>c({fixedCacheKey:i,requestId:p?.requestId})),[i,p,c]),y=(0,a.useMemo)((()=>r?d([v],r):v),[r,v]),b=l(y,s.wU),w=null==i?p?.arg.originalArgs:void 0,E=(0,a.useCallback)((()=>{n((()=>{p&&h(void 0),i&&f(t.internalActions.removeMutationResult({requestId:g,fixedCacheKey:i}))}))}),[f,i,p,g]),{endpointName:_,data:x,status:S,isLoading:C,isSuccess:k,isError:O,error:T}=b;(0,a.useDebugValue)({endpointName:_,data:x,status:S,isLoading:C,isSuccess:k,isError:O,error:T});const N=(0,a.useMemo)((()=>({...b,originalArgs:w,reset:E})),[b,w,E]);return(0,a.useMemo)((()=>[m,N]),[m,N])}},usePrefetch:function(e,n){const r=o(),i=m(n);return(0,a.useCallback)(((n,o)=>r(t.util.prefetch(e,n,{...i,...o}))),[e,r,i])}};function E(e,t,n){if(t?.endpointName&&e.isUninitialized){const{endpointName:e}=t,r=b.endpointDefinitions[e];y({queryArgs:t.originalArgs,endpointDefinition:r,endpointName:e})===y({queryArgs:n,endpointDefinition:r,endpointName:e})&&(t=void 0)}let r=e.isSuccess?e.data:t?.data;void 0===r&&(r=e.data);const o=void 0!==r,i=e.isLoading,a=!o&&i,s=e.isSuccess||i&&o;return{...e,data:r,currentData:e.data,isFetching:i,isLoading:a,isSuccess:s}}}({api:l,moduleOptions:{batch:e,hooks:t,unstable__sideEffectsInRender:o,createSelector:n},serializeQueryArgs:b,context:y});return c(w,{usePrefetch:x}),c(y,{batch:e}),{injectEndpoint(e,t){if("query"===t.type){const{useQuery:t,useLazyQuery:n,useLazyQuerySubscription:r,useQueryState:o,useQuerySubscription:i}=E(e);c(w.endpoints[e],{useQuery:t,useLazyQuery:n,useLazyQuerySubscription:r,useQueryState:o,useQuerySubscription:i}),l[`use${u(e)}Query`]=t,l[`useLazy${u(e)}Query`]=n}else if(function(e){return"mutation"===e.type}(t)){const t=_(e);c(w.endpoints[e],{useMutation:t}),l[`use${u(e)}Mutation`]=t}}}}}}());const w=b({baseQuery:function(){throw new Error("When using `fakeBaseQuery`, all queries & mutations must use the `queryFn` definition syntax.")},endpoints:()=>({}),invalidationBehavior:"immediately",tagTypes:["All","PDiskData","PreviewData","StorageData","Tablet","UserData","VDiskData"]});Symbol()},14146:(e,t,n)=>{"use strict";n.d(t,{VH:()=>u,ZP:()=>s,dy:()=>d,nc:()=>f});var r=n(1399),o=n(30490),i=n(905);const a=(0,r.oM)({name:"authentication",initialState:{isAuthenticated:!0,user:""},reducers:{setIsAuthenticated:(e,t)=>{const n=t.payload;e.isAuthenticated=n,n||(e.user="")},setUser:(e,t)=>{const{UserSID:n,AuthType:r,IsMonitoringAllowed:o}=t.payload;e.user="Login"===r?n:void 0,e.isUserAllowedToMakeChanges=!1!==o}},selectors:{selectIsUserAllowedToMakeChanges:e=>e.isUserAllowedToMakeChanges,selectUser:e=>e.user}}),s=a.reducer,{setIsAuthenticated:l,setUser:c}=a.actions,{selectIsUserAllowedToMakeChanges:u,selectUser:d}=a.selectors,f=i.h.injectEndpoints({endpoints:e=>({whoami:e.query({queryFn:async(e,t)=>{let{dispatch:n}=t;try{const e=await window.api.whoami();return n(c(e)),{data:e}}catch(i){var r;return!(0,o.$z)(i)||401!==i.status||null!==(r=i.data)&&void 0!==r&&r.authUrl||n(l(!1)),{error:i}}},providesTags:["UserData"]}),authenticate:e.mutation({queryFn:async(e,t)=>{let{dispatch:n}=t;try{const t=await window.api.authenticate(e);return n(l(!0)),{data:t}}catch(r){return{error:r}}},invalidatesTags:(e,t)=>t?[]:["UserData"]}),logout:e.mutation({queryFn:async(e,t)=>{let{dispatch:n}=t;try{const e=await window.api.logout();return n(l(!1)),{data:e}}catch(r){return{error:r}}}})}),overrideExisting:"throw"})},29326:(e,t,n)=>{"use strict";n.d(t,{AE:()=>s,Gi:()=>o,Yv:()=>a});var r=n(36313);const o=n(905).h.injectEndpoints({endpoints:e=>({getClusterCapabilities:e.query({queryFn:async()=>{try{return{data:await window.api.getClusterCapabilities()}}catch(e){return{error:e}}}})}),overrideExisting:"throw"}),i=o.endpoints.getClusterCapabilities.select(void 0),a=(0,r.P1)((e=>e),((e,t)=>t),((e,t)=>{var n,r;return null===(n=i(e).data)||void 0===n||null===(r=n.Capabilities)||void 0===r?void 0:r[t]}));async function s(e,t){let{dispatch:n,getState:r}=t;const i=o.util.getRunningQueryThunk("getClusterCapabilities",void 0);return await n(i),a(r(),e)||0}},17880:(e,t,n)=>{"use strict";n.d(t,{Pq:()=>d,X_:()=>l,bq:()=>p,j0:()=>s,rU:()=>i,tS:()=>u,th:()=>f,uY:()=>c});var r=n(17096),o=n(29326);function i(){const{data:e,error:t}=o.Gi.useGetClusterCapabilitiesQuery(void 0);return Boolean(e||t)}const a=e=>(0,r.ix)((t=>(0,o.Yv)(t,e)||0)),s=()=>a("/scheme/directory")>0,l=()=>a("/pdisk/info")>0,c=()=>a("/viewer/query")>2,u=()=>a("/storage/groups")>2,d=()=>a("/storage/groups")>4,f=()=>a("/viewer/nodes")>6,p=()=>a("/viewer/feature_flags")>1},77915:(e,t,n)=>{"use strict";n.d(t,{UM:()=>E,ZP:()=>w,le:()=>C,LQ:()=>b,kW:()=>_});var r=n(1399),o=n(36313),i=n(17095),a=n(98994),s=n(81003),l=n(49683),c=n(1558),u=n(52317),d=n(39623),f=n(905);const p=e=>{var t,n;const r=null===(t=e.match(/^Type:(?<type>[A-Za-z]+)/))||void 0===t||null===(n=t.groups)||void 0===n?void 0:n.type;return"ROT"===r?"HDD":r};function h(e){const t={};return null===e||void 0===e||e.forEach((e=>{const{PDiskFilter:n,ErasureSpecies:r,CurrentAvailableSize:o,CurrentAllocatedSize:i,CurrentGroupsCreated:a,AvailableGroupsToCreate:s}=e,l=Number(a)||0,c=l+(Number(s)||0),u=Number(i)||0,d=Number(o)||0,f=n&&"string"===typeof n&&p(n);if(f&&r&&"string"===typeof r&&l){const e={diskType:f,erasure:r,createdGroups:l,totalGroups:c,allocatedSize:u,availableSize:d};if(t[f])if(t[f][r]){const e={...t[f][r]};t[f][r]={diskType:f,erasure:r,createdGroups:e.createdGroups+l,totalGroups:e.totalGroups+c,allocatedSize:e.allocatedSize+u,availableSize:e.availableSize+d}}else t[f][r]=e;else t[f]={[r]:e}}})),t}const m=localStorage.getItem(u.S7);let g;g=(0,s.V2)(m)?m:s.xu.overview;const v={defaultClusterTab:g},y=(0,r.oM)({name:"cluster",initialState:v,reducers:{setDefaultClusterTab(e,t){e.defaultClusterTab=t.payload}}});function b(e){return t=>{(0,s.V2)(e)&&(localStorage.setItem(u.S7,e),t(y.actions.setDefaultClusterTab(e)))}}const w=y.reducer,E=f.h.injectEndpoints({endpoints:e=>({getClusterInfo:e.query({queryFn:async(e,t)=>{let{signal:n}=t;try{const t=await window.api.getClusterInfo(e,{signal:n}),i=t.Domain;if(!i)return{data:{clusterData:t}};if((0,c.j)(t))return{data:{clusterData:t,groupsStats:(o=t,h(o.StorageStats))}};try{const e=(e=>`\nSELECT \n PDiskFilter,\n ErasureSpecies,\n CurrentAvailableSize,\n CurrentAllocatedSize,\n CurrentGroupsCreated,\n AvailableGroupsToCreate\n FROM \`${e}/.sys/ds_storage_stats\`\n ORDER BY CurrentGroupsCreated DESC;\n`)(i),n=await window.api.sendQuery({schema:"modern",query:e,database:i,action:"execute-scan"});return(0,d.gW)(n)?{data:{clusterData:t}}:{data:{clusterData:t,groupsStats:(r=n,h((0,d.gY)(r).result))}}}catch{return{data:{clusterData:t}}}}catch(i){return{error:i}}var r,o},providesTags:["All"]}),getClusterBaseInfo:e.query({queryFn:async(e,t)=>{let{signal:n}=t;try{return{data:await window.api.getClusterBaseInfo(e,{signal:n})}}catch(r){return{error:r}}},providesTags:["All"]})}),overrideExisting:"throw"});function _(){var e;const[t]=(0,a.useQueryParam)("clusterName",a.StringParam),{currentData:n}=E.useGetClusterBaseInfoQuery(null!==t&&void 0!==t?t:i.CN),{solomon:r,name:o,trace_check:s,trace_view:c,...u}=n||{};return{...u,...(0,l.N)({traceCheck:s,traceView:c}),name:null!==(e=null!==o&&void 0!==o?o:t)&&void 0!==e?e:void 0,monitoring:r}}const x=(0,o.P1)((e=>e),(e=>E.endpoints.getClusterInfo.select(e))),S=(0,o.P1)((e=>e),((e,t)=>x(t)),((e,t)=>t(e).data)),C=(0,o.P1)(((e,t)=>t),((e,t)=>S(e,t)),((e,t)=>{const{Name:n,Domain:r}=(null===t||void 0===t?void 0:t.clusterData)||{};return n||e||function(e){if(!e)return;return(e.startsWith("/")?e.slice(1):e).toUpperCase()}(r)||u.DO}))},20163:(e,t,n)=>{"use strict";n.d(t,{g_:()=>c,W1:()=>u,ZP:()=>l});var r=n(1399),o=n(905),i=n(90860);const a=e=>{const{clusters:t=[]}=e;let n=new Map;t.forEach((e=>{let{versions:t=[]}=e;n=(0,i.kn)(t,n)}));const r=(0,i.n$)(n);return t.map((e=>({...e,preparedVersions:(0,i.B_)(e.versions,r)})))},s=(0,r.oM)({name:"clusters",initialState:{clusterName:"",status:[],service:[],version:[]},reducers:{changeClustersFilters:(e,t)=>({...e,...t.payload})}}),l=s.reducer,{changeClustersFilters:c}=s.actions,u=o.h.injectEndpoints({endpoints:e=>({getClustersList:e.query({queryFn:async(e,t)=>{let{signal:n}=t;try{const e=await window.api.getClustersList(void 0,{signal:n});return{data:a(e)}}catch(r){return{error:r}}},providesTags:["All"]})}),overrideExisting:"throw"})},83786:(e,t,n)=>{"use strict";n.d(t,{AJ:()=>k,Ae:()=>S,B8:()=>O,K0:()=>T,NU:()=>C,ZP:()=>R,hO:()=>x,mg:()=>_,qV:()=>I,u$:()=>P,vS:()=>N});var r=n(18193),o=n(6544),i=n(90117),a=n(52317),s=n(39623),l=n(55850),c=n(905);const u=20,d="query/CHANGE_USER_INPUT",f="query/SET_QUERY_RESULT",p="query/SAVE_QUERY_TO_HISTORY",h="query/UPDATE_QUERY_IN_HISTORY",m="query/SET_QUERY_HISTORY_FILTER",g="query/GO_TO_PREVIOUS_QUERY",v="query/GO_TO_NEXT_QUERY",y="query/SET_TENANT_PATH",b=r.r.readUserSettingsValue(a.if,[]),w=b.length-u,E={loading:!1,input:"",history:{queries:b.slice(w<0?0:w).map((function(e){if("string"===typeof e)return{queryText:e};return e})),currentIndex:b.length>u?u-1:b.length-1,filter:""}},_=c.h.injectEndpoints({endpoints:e=>({executeQuery:e.mutation({queryFn:async(e,t)=>{let{query:n,database:r,querySettings:a={},schema:c="modern",enableTracingLevel:u,queryId:d}=e,{signal:f,dispatch:p}=t,m="execute",g=s.jM.yql;p(S({type:i.X.EXECUTE,queryId:d,isLoading:!0})),"pg"===a.queryMode?(m="execute-query",g=s.jM.pg):a.queryMode&&(m=`execute-${a.queryMode}`);try{var v;const e=Date.now(),t=await window.api.sendQuery({schema:c,query:n,database:r,action:m,syntax:g,stats:a.statisticsMode,tracingLevel:a.tracingLevel&&u?o.u[a.tracingLevel]:void 0,limit_rows:(0,l.kE)(a.limitRows)?Number(a.limitRows):void 0,transaction_mode:"implicit"===a.transactionMode?void 0:a.transactionMode,timeout:(0,l.kE)(a.timeout)?1e3*Number(a.timeout):void 0,query_id:d},{signal:f});if((0,s.gW)(t))return p(S({type:i.X.EXECUTE,error:t,isLoading:!1,queryId:d})),{error:t};const y=(0,s.gY)(t);y.traceId=null===t||void 0===t||null===(v=t._meta)||void 0===v?void 0:v.traceId;const b={};if(y.stats){const{DurationUs:e,Executions:[{FinishTimeMs:t}]=[{}]}=y.stats;b.durationUs=e,b.endTime=t}else{const t=Date.now();b.durationUs=1e3*(t-e),b.endTime=t}return p(function(e,t){return{type:h,data:{queryId:t,stats:e}}}(b,d)),p(S({type:i.X.EXECUTE,data:y,isLoading:!1,queryId:d})),{data:null}}catch(y){return p(S({type:i.X.EXECUTE,error:y,isLoading:!1,queryId:d})),{error:y}}}})}),overrideExisting:"throw"}),x=(e,t)=>({type:p,data:{queryText:e,queryId:t}});function S(e){return{type:f,data:e}}const C=()=>({type:g}),k=()=>({type:v}),O=e=>{let{input:t}=e;return{type:d,data:{input:t}}},T=e=>({type:y,data:e}),N=e=>e.executeQuery.history.filter||"",I=e=>{var t;const n=e.executeQuery.history.queries,r=null===(t=e.executeQuery.history.filter)||void 0===t?void 0:t.toLowerCase();return r?n.filter((e=>e.queryText.toLowerCase().includes(r))):n};const P=e=>({type:m,data:{filter:e}}),R=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:E,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case d:return{...e,input:t.data.input};case f:return{...e,result:t.data};case p:{const{queryText:n,queryId:o}=t.data,i=[...e.history.queries,{queryText:n,queryId:o}].slice(e.history.queries.length>=u?1:0);r.r.setUserSettingsValue(a.if,i);const s=i.length-1;return{...e,history:{queries:i,currentIndex:s}}}case h:{const{queryId:n,stats:o}=t.data;if(!o)return e;const i=e.history.queries.findIndex((e=>e.queryId===n));if(-1===i)return e;const s=[...e.history.queries],{durationUs:l,endTime:c}=o;return s.splice(i,1,{...e.history.queries[i],durationUs:l,endTime:c}),r.r.setUserSettingsValue(a.if,s),{...e,history:{...e.history,queries:s}}}case g:{const t=e.history.currentIndex;if(t<=0)return e;const n=t-1,r=e.history.queries[n];return{...e,history:{...e.history,currentIndex:n},input:r.queryText}}case v:{const t=e.history.queries.length-1,n=e.history.currentIndex;if(n>=t)return e;const r=n+1,o=e.history.queries[r];return{...e,history:{...e.history,currentIndex:r},input:o.queryText}}case y:return{...e,tenantPath:t.data};case m:return{...e,history:{...e.history,filter:t.data.filter}};default:return e}}},30667:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>f,Im:()=>d,MU:()=>h});var r=n(396),o=n(1399),i=n(39623),a=n(905);const s="EndTime",l="IntervalEnd",c=e=>`(\n SELECT\n MAX(${l})\n FROM \`${e}/.sys/top_queries_by_cpu_time_one_hour\`\n)`;const u=(0,o.oM)({name:"executeTopQueries",initialState:{},reducers:{setTopQueriesFilters:(e,t)=>({...e,...t.payload})}}),{setTopQueriesFilters:d}=u.actions,f=u.reducer,p=(e,t)=>{const n=function(e,t){var n,o;const i=[],a=null===(n=(0,r.J)(Number(null===t||void 0===t?void 0:t.to)||(null===t||void 0===t?void 0:t.to)))||void 0===n?void 0:n.valueOf(),u=null===(o=(0,r.J)(Number(null===t||void 0===t?void 0:t.from)||(null===t||void 0===t?void 0:t.from)))||void 0===o?void 0:o.valueOf();if(u&&a&&u>a)throw new Error("Invalid date range");if(u){const e=a===u?">=":">";i.push(`${s} ${e} Timestamp('${new Date(u).toISOString()}')`)}return a&&i.push(`${s} <= Timestamp('${new Date(a).toISOString()}')`),u||a||i.push(`${l} IN ${c(e)}`),null!==t&&void 0!==t&&t.text&&i.push(`QueryText ILIKE '%${t.text}%'`),i.join(" AND ")}(e,t);return`\nSELECT\n CPUTime as CPUTimeUs,\n QueryText,\n IntervalEnd,\n EndTime,\n ReadRows,\n ReadBytes,\n UserSID,\n Duration\nFROM \`${e}/.sys/top_queries_by_cpu_time_one_hour\`\nWHERE ${n||"true"}\nORDER BY CPUTimeUs DESC\n`},h=a.h.injectEndpoints({endpoints:e=>({getTopQueries:e.query({queryFn:async(e,t)=>{let{database:n,filters:r}=e,{signal:o}=t;const a={...r,from:(null===r||void 0===r?void 0:r.from)||"now-1h",to:(null===r||void 0===r?void 0:r.to)||"now"};try{const e=await window.api.sendQuery({schema:"modern",query:p(n,a),database:n,action:"execute-scan"},{signal:o,withRetries:!0});if((0,i.gW)(e))throw e;return{data:(0,i.gY)(e)}}catch(s){return{error:s}}},forceRefetch:e=>{var t,n,o,i;let{currentArg:a}=e;return!(null!==a&&void 0!==a&&null!==(t=a.filters)&&void 0!==t&&t.from&&null!==a&&void 0!==a&&null!==(n=a.filters)&&void 0!==n&&n.to&&!(0,r.KN)(null===a||void 0===a||null===(o=a.filters)||void 0===o?void 0:o.from)&&!(0,r.KN)(null===a||void 0===a||null===(i=a.filters)||void 0===i?void 0:i.to))},providesTags:["All"]}),getRunningQueries:e.query({queryFn:async(e,t)=>{let{database:n,filters:r}=e,{signal:o}=t;try{var a;const e=`SELECT UserSID, QueryStartAt, Query as QueryText, ApplicationName from \`.sys/query_sessions\` WHERE ${(null!==r&&void 0!==r&&r.text?`Query ILIKE '%${r.text}%'`:"")||"true"} ORDER BY SessionStartAt limit 100`,t=await window.api.sendQuery({query:e,database:n,action:"execute-scan"},{signal:o,withRetries:!0});if((0,i.gW)(t))throw t;return{data:null===t||void 0===t||null===(a=t.result)||void 0===a?void 0:a.filter((t=>t.QueryText!==e))}}catch(s){return{error:s}}},forceRefetch:()=>!0,providesTags:["All"]})}),overrideExisting:"throw"})},56963:(e,t,n)=>{"use strict";n.d(t,{Xl:()=>a,ZP:()=>l,vj:()=>s});const r="ENABLE_FULLSCREEN_MODE",o="DISABLE_FULLSCREEN_MODE",i=!1;function a(){return{type:r}}function s(){return{type:o}}const l=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i;switch((arguments.length>1?arguments[1]:void 0).type){case o:return!1;case r:return!0;default:return e}}},79061:(e,t,n)=>{"use strict";n.d(t,{J:()=>i,Z:()=>a});const r="header/SET_HEADER_BREADCRUMBS",o={pageBreadcrumbsOptions:{}};function i(e,t){return{type:r,page:e,options:t}}const a=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o,t=arguments.length>1?arguments[1]:void 0;return t.type===r?{page:t.page,pageBreadcrumbsOptions:t.options}:e}},93717:(e,t,n)=>{"use strict";n.d(t,{E3:()=>i,U_:()=>l,Vc:()=>c,ZP:()=>s});var r=n(1399),o=n(905);const i={currentMetric:void 0,sort:!1,heatmap:!1},a=(0,r.oM)({name:"heatmap",initialState:i,reducers:{setHeatmapOptions:(e,t)=>({...e,...t.payload})}}),s=a.reducer,{setHeatmapOptions:l}=a.actions,c=o.h.injectEndpoints({endpoints:e=>({getHeatmapTabletsInfo:e.query({queryFn:async(e,t)=>{let{path:n,database:r}=e,{signal:o,getState:i,dispatch:a}=t;try{var s;const e=function(e){let[t,n]=e;const{TabletStateInfo:r=[]}=t,o=new Map,{PathDescription:i={}}=null!==n&&void 0!==n?n:{},{TablePartitions:a=[],TablePartitionStats:s=[],TablePartitionMetrics:l=[]}=i;r.forEach((e=>{e.TabletId&&o.set(e.TabletId,e)})),a.forEach(((e,t)=>{const n=Object.assign({},s[t],l[t]);e.DatashardId&&o.set(e.DatashardId,{...o.get(e.DatashardId),metrics:n})}));const c=Array.from(o.values()),u=c[0]&&c[0].metrics&&Object.keys(c[0].metrics).map((e=>({value:e,content:e})));return{tablets:c,metrics:u}}(await Promise.all([window.api.getTabletsInfo({path:n,database:r},{signal:o}),window.api.getHeatmapData({path:n,database:r},{signal:o})]));if(null!==(s=e.metrics)&&void 0!==s&&s.length){const t=i().heatmap.currentMetric;t&&e.metrics.find((e=>e.value===t))||a(l({currentMetric:e.metrics[0].value}))}return{data:e}}catch(c){return{error:c}}},providesTags:["All"]})}),overrideExisting:"throw"})},89795:(e,t,n)=>{"use strict";n.d(t,{Z:()=>x,Q:()=>_});var r=n(38907),o=n(905),i=n(14146),a=n(77915),s=n(20163),l=n(83786),c=n(30667),u=n(56963),d=n(79061),f=n(93717),p=n(42703),h=n(89003),m=n(6748),g=n(80839),v=n(9345);const y=function(){return!(arguments.length>0&&void 0!==arguments[0])||arguments[0]};var b=n(8511),w=n(53809),E=n(3027);const _={[o.h.reducerPath]:o.h.reducer,singleClusterMode:y,cluster:a.ZP,tenant:b.ZP,tooltip:E.ZP,schema:m.ZP,tenants:w.ZP,partitions:p.ZP,executeQuery:l.ZP,heatmap:f.ZP,settings:g.ZP,executeTopQueries:c.ZP,shardsWorkload:v.ZP,authentication:i.ZP,header:d.Z,queryActions:h.ZP,fullscreen:u.ZP,clusters:s.ZP},x=(0,r.UY)({..._})},99337:(e,t,n)=>{"use strict";n.d(t,{W:()=>i,s:()=>s});var r=n(36313),o=n(51688);const i=n(905).h.injectEndpoints({endpoints:e=>({getNodesList:e.query({queryFn:async(e,t)=>{let{signal:n}=t;try{return{data:await window.api.getNodesList({signal:n})}}catch(r){return{error:r}}},providesTags:["All"]})}),overrideExisting:"throw"}),a=i.endpoints.getNodesList.select(void 0),s=(0,r.P1)((e=>a(e).data),(e=>(0,o.Xs)(e)))},42703:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>d,TB:()=>f,M$:()=>u});var r=n(1399),o=n(905),i=n(81854),a=n(1504),s=n(55850);const l=e=>{const{partition_offsets:t,store_size_bytes:n="0",last_write_time:r,max_write_time_lag:o,bytes_written:s,partition_node_id:l=0}=e||{},{start:c="0",end:u="0"}=t||{};return{storeSize:n,writeSpeed:(0,i.c4)(s),partitionWriteLag:(0,a.DA)(o),partitionWriteIdleTime:(0,a.lE)(r),startOffset:c,endOffset:u,partitionNodeId:l}},c=(0,r.oM)({name:"partitions",initialState:{selectedConsumer:""},reducers:{setSelectedConsumer:(e,t)=>{e.selectedConsumer=t.payload}}}),{setSelectedConsumer:u}=c.actions,d=c.reducer,f=o.h.injectEndpoints({endpoints:e=>({getPartitions:e.query({queryFn:async(e,t)=>{let{path:n,database:r,consumerName:o}=e,{signal:c}=t;try{if(o){const e=await window.api.getConsumer({path:n,database:r,consumer:o},{signal:c}),t=(e=>null===e||void 0===e?void 0:e.map((e=>{const{partition_id:t="0",partition_stats:n,partition_consumer_stats:r}=e,o=l(n),{endOffset:c}=o,{last_read_offset:u="0",committed_offset:d="0",read_session_id:f,last_read_time:p,max_read_time_lag:h,max_write_time_lag:m,bytes_read:g,reader_name:v,connection_node_id:y=0}=r||{},b=(0,s.kE)(c)&&(0,s.kE)(d)?Number(c)-Number(d):0,w=(0,s.kE)(c)&&(0,s.kE)(u)?Number(c)-Number(u):0;return{...o,partitionId:t,readSpeed:(0,i.c4)(g),consumerWriteLag:(0,a.DA)(m),consumerReadLag:(0,a.DA)(h),consumerReadIdleTime:(0,a.lE)(p),uncommitedMessages:b,unreadMessages:w,commitedOffset:d,readSessionId:f,readerName:v,connectionNodeId:y}})))(e.partitions);return{data:t}}{const e=await window.api.getTopic({path:n,database:r},{signal:c}),t=(e=>null===e||void 0===e?void 0:e.map((e=>{const{partition_id:t="0",partition_stats:n}=e;return{partitionId:t,...l(n)}})))(e.partitions);return{data:t}}}catch(u){return{error:u}}},providesTags:["All"]})}),overrideExisting:"throw"})},89003:(e,t,n)=>{"use strict";n.d(t,{GC:()=>l,PM:()=>g,ZP:()=>s,b0:()=>d,g0:()=>f,lm:()=>u,oK:()=>p,qF:()=>m,y3:()=>c,zC:()=>h});var r=n(1399),o=n(52317),i=n(80839);const a=(0,r.oM)({name:"queryActions",initialState:{queryName:null,queryAction:"idle",savedQueriesFilter:""},reducers:{setQueryNameToEdit:(e,t)=>{e.queryName=t.payload},clearQueryNameToEdit:e=>{e.queryName=null},setQueryAction:(e,t)=>{e.queryAction=t.payload},setSavedQueriesFilter:(e,t)=>{e.savedQueriesFilter=t.payload}},selectors:{selectQueryName:e=>e.queryName,selectQueryAction:e=>e.queryAction,selectSavedQueriesFilter:e=>e.savedQueriesFilter}}),s=a.reducer,{setQueryNameToEdit:l,clearQueryNameToEdit:c,setQueryAction:u,setSavedQueriesFilter:d}=a.actions,{selectQueryName:f,selectQueryAction:p,selectSavedQueriesFilter:h}=a.selectors;function m(e){return function(t,n){var r;const a=n(),s=(null!==(r=(0,i.Cx)(a,o.DG))&&void 0!==r?r:[]).filter((t=>t.name.toLowerCase()!==e.toLowerCase()));t((0,i.xI)(o.DG,s))}}function g(e){return function(t,n){var r;const a=n(),s=null!==(r=(0,i.Cx)(a,o.DG))&&void 0!==r?r:[],l=a.executeQuery.input;if(null===e)return;const c=[...s],u=c.find((t=>t.name.toLowerCase()===e.toLowerCase()));u?u.body=l:c.push({name:e,body:l}),t((0,i.xI)(o.DG,c))}}},6748:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>u,eU:()=>m,hz:()=>g,m3:()=>d,m7:()=>c});var r=n(68963),o=n(36313),i=n(6523),a=n(905);const s="schema/SET_SHOW_PREVIEW",l={loading:!0,data:{},currentSchemaPath:void 0,showPreview:!1};function c(e){return{type:s,data:e}}const u=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l,t=arguments.length>1?arguments[1]:void 0;return t.type===s?{...e,showPreview:t.data}:e},d=a.h.injectEndpoints({endpoints:e=>({createDirectory:e.mutation({queryFn:async(e,t)=>{let{database:n,path:r}=e,{signal:o}=t;try{return{data:await window.api.createSchemaDirectory({database:n,path:r},{signal:o})}}catch(i){return{error:i}}}}),getSchema:e.query({queryFn:async(e,t)=>{let{path:n,database:r}=e,{signal:o}=t;try{const e=await window.api.getSchema({path:n,database:r},{signal:o});return e?{data:{[n]:e,...f(e)}}:{error:new Error("Schema is not available")}}catch(i){return{error:i}}},keepUnusedDataFor:1/0,serializeQueryArgs:e=>{let{queryArgs:{database:t}}=e;return{database:t}},merge:(e,t,n)=>{let{arg:{path:r}}=n;const{[r]:o,...i}=t;return o?{...i,...e,[r]:o}:e}})}),overrideExisting:"throw"});function f(e){const t={},{PathDescription:{Children:n=[]}={},Path:r}=e;for(const o of n){const{Name:e=""}=o,n=`${r}/${e}`;t[n]={PathDescription:{Self:o},Path:n,partial:!0}}return t}const p=(0,o.P1)((e=>e),((e,t)=>t),((e,t)=>d.endpoints.getSchema.select({path:e,database:t}))),h=(0,o.P1)((e=>e),((e,t)=>t),((e,t,n)=>p(t,n)),((e,t,n)=>{var r;return null===(r=n(e).data)||void 0===r?void 0:r[t]})),m=(0,o.P1)([(e,t)=>t,(e,t,n)=>n,(e,t,n,r)=>((e,t,n)=>{var r,o;return null===(r=h(e,t,n))||void 0===r||null===(o=r.PathDescription)||void 0===o?void 0:o.Children})(e,t,r)],((e,t,n)=>(0,i.St)(t)?null===n||void 0===n?void 0:n.map((t=>{let{Name:n}=t;return e+"/"+n})):void 0));function g(e){let{path:t,database:n}=e;const{currentData:o,isFetching:i,error:a,refetch:s,originalArgs:l}=d.useGetSchemaQuery({path:t,database:n}),c=null===o||void 0===o?void 0:o[t],u=i&&void 0===c,f=(null===l||void 0===l?void 0:l.path)===t?a:void 0,p=!u&&(!c&&!a||(null===c||void 0===c?void 0:c.partial));return r.useEffect((()=>{p&&s()}),[s,t,p]),{data:c,isLoading:u,error:f}}},80839:(e,t,n)=>{"use strict";n.d(t,{Cx:()=>f,E3:()=>c,M6:()=>d,ZP:()=>g,pu:()=>a,qz:()=>p,vD:()=>m,xI:()=>h});var r=n(1399),o=n(18193),i=n(55850);const a={ALL:"All",PROBLEMS:"With problems"},s=o.r.extractSettingsFromLS(o.t),l=window.systemSettings||{},c={problemFilter:a.ALL,userSettings:s,systemSettings:l},u=(0,r.oM)({name:"settings",initialState:c,reducers:e=>({changeFilter:e.reducer(((e,t)=>{e.problemFilter=t.payload})),setSettingValue:e.reducer(((e,t)=>{e.userSettings[t.payload.name]=t.payload.value}))}),selectors:{getSettingValue:(e,t)=>e.userSettings[t],selectProblemFilter:e=>e.problemFilter}}),{changeFilter:d}=u.actions,{getSettingValue:f,selectProblemFilter:p}=u.selectors,h=(e,t)=>n=>{n(u.actions.setSettingValue({name:e,value:t})),o.r.setUserSettingsValue(e,t)};function m(e){"undefined"!==typeof window&&window.addEventListener("storage",(t=>{if(t.key&&t.key in o.t){const n=t.key;let r=o.t[n];null!==t.newValue&&(r=(0,i.Mo)(t.newValue)),e.dispatch(u.actions.setSettingValue({name:n,value:r}))}}))}const g=u.reducer},9345:(e,t,n)=>{"use strict";n.d(t,{Ag:()=>h,K2:()=>f,ZP:()=>p});var r=n(396),o=n(1399),i=n(39623),a=n(905),s=n(58660);function l(e){let{columnId:t,order:n}=e;return`${t} ${n}`}function c(e,t,n,o){const i=o?`CAST(SUBSTRING(CAST(Path AS String), ${o.length}) AS Utf8) AS Path`:"Path";let a=`Path='${e}' OR Path LIKE '${e}/%'`;const s=function(e){var t,n;const o=[],i=null===(t=(0,r.J)(Number(null===e||void 0===e?void 0:e.to)||(null===e||void 0===e?void 0:e.to)))||void 0===t?void 0:t.valueOf(),a=null===(n=(0,r.J)(Number(null===e||void 0===e?void 0:e.from)||(null===e||void 0===e?void 0:e.from)))||void 0===n?void 0:n.valueOf();if(a&&i&&a>i)throw new Error("Invalid date range");if(a){const e=i===a?">=":">";o.push(`IntervalEnd ${e} Timestamp('${new Date(a).toISOString()}')`)}return i&&o.push(`IntervalEnd <= Timestamp('${new Date(i).toISOString()}')`),o.join(" AND ")}(t);s.length&&(a=`(${a}) AND ${s}`);return`SELECT\n ${i},\n TabletId,\n CPUCores,\n DataSize,\n NodeId,\n PeakTime,\n InFlightTxCount,\n IntervalEnd\nFROM \`.sys/top_partitions_one_hour\`\nWHERE ${a}\n${n?`ORDER BY ${n.map(l).join(", ")}`:""}\nLIMIT 20`}function u(e,t,n){return`SELECT\n ${n?`CAST(SUBSTRING(CAST(Path AS String), ${n.length}) AS Utf8) AS Path`:"Path"},\n TabletId,\n CPUCores,\n DataSize,\n NodeId,\n InFlightTxCount\nFROM \`.sys/partition_stats\`\nWHERE\n Path='${e}'\n OR Path LIKE '${e}/%'\n${t?`ORDER BY ${t.map(l).join(", ")}`:""}\nLIMIT 20`}const d=(0,o.oM)({name:"shardsWorkload",initialState:{},reducers:{setShardsQueryFilters:(e,t)=>({...e,...t.payload})}}),{setShardsQueryFilters:f}=d.actions,p=d.reducer,h=a.h.injectEndpoints({endpoints:e=>({sendShardQuery:e.query({queryFn:async(e,t)=>{let{database:n,path:r="",sortOrder:o,filters:a}=e,{signal:l}=t;try{const e=await window.api.sendQuery({schema:"modern",query:(null===a||void 0===a?void 0:a.mode)===s.F.Immediate?u(r,o,n):c(r,a,o,n),database:n,action:"execute-scan"},{signal:l,withRetries:!0});if((0,i.gW)(e))return{error:e};return{data:(0,i.gY)(e)}}catch(d){return{error:d}}},providesTags:["All"],forceRefetch:e=>{var t,n,o;let{currentArg:i}=e;return"immediate"===(null===i||void 0===i||null===(t=i.filters)||void 0===t?void 0:t.mode)||!(!(0,r.KN)(null===i||void 0===i||null===(n=i.filters)||void 0===n?void 0:n.from)&&!(0,r.KN)(null===i||void 0===i||null===(o=i.filters)||void 0===o?void 0:o.to))}})}),overrideExisting:"throw"})},58660:(e,t,n)=>{"use strict";let r;n.d(t,{F:()=>r}),function(e){e.Immediate="immediate",e.History="history"}(r||(r={}))},24015:(e,t,n)=>{"use strict";n.d(t,{Xk:()=>l,_0:()=>i,bS:()=>r,m2:()=>o,qQ:()=>a,uw:()=>s});const r="tenantPage",o={query:"query",diagnostics:"diagnostics"},i={newQuery:"newQuery",history:"history",saved:"saved"},a={overview:"overview",schema:"schema",topQueries:"topQueries",topShards:"topShards",nodes:"nodes",tablets:"tablets",storage:"storage",network:"network",describe:"describe",hotKeys:"hotKeys",graph:"graph",consumers:"consumers",partitions:"partitions",configs:"configs"},s={overview:"overview",acl:"acl",schema:"schema"},l={cpu:"cpu",storage:"storage",memory:"memory",healthcheck:"healthcheck"}},8511:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>d,$v:()=>h,jk:()=>p,Tu:()=>m,Cs:()=>f,$1:()=>v});var r=n(1399),o=n(18193),i=n(52317),a=n(905),s=n(95408),l=n(24015);const c={tenantPage:s.z.nativeEnum(l.m2).catch(o.t[i.pf]).parse(o.r.readUserSettingsValue(i.pf))},u=(0,r.oM)({name:"tenant",initialState:c,reducers:{setTenantPage:(e,t)=>{e.tenantPage=t.payload},setQueryTab:(e,t)=>{e.queryTab=t.payload},setDiagnosticsTab:(e,t)=>{e.diagnosticsTab=t.payload},setSummaryTab:(e,t)=>{e.summaryTab=t.payload},setMetricsTab:(e,t)=>{e.metricsTab=t.payload}}}),d=u.reducer,{setTenantPage:f,setQueryTab:p,setDiagnosticsTab:h,setSummaryTab:m,setMetricsTab:g}=u.actions,v=a.h.injectEndpoints({endpoints:e=>({getTenantInfo:e.query({queryFn:async(e,t)=>{let{path:n}=e,{signal:r}=t;try{var o,i;return{data:null!==(o=null===(i=(await window.api.getTenantInfo({path:n},{signal:r})).TenantInfo)||void 0===i?void 0:i[0])&&void 0!==o?o:null}}catch(a){return{error:a}}},providesTags:["All"]}),getClusterConfig:e.query({queryFn:async(e,t)=>{let{database:n}=e,{signal:r}=t;try{const e=await window.api.getClusterConfig(n,{signal:r});return{data:e.Databases[0].FeatureFlags}}catch(o){return{error:o}}}})}),overrideExisting:"throw"})},35240:(e,t,n)=>{"use strict";n.d(t,{L:()=>r,l:()=>o});const r={Unspecified:"Unspecified",Good:"Good",Warning:"Warning",Danger:"Danger"},o={[r.Unspecified]:0,[r.Good]:1,[r.Warning]:2,[r.Danger]:3}},53809:(e,t,n)=>{"use strict";n.d(t,{Xv:()=>c,ZP:()=>l,gI:()=>s});var r=n(1399),o=n(905),i=n(49687);const a=(0,r.oM)({name:"tenants",initialState:{searchValue:""},reducers:{setSearchValue:(e,t)=>{e.searchValue=t.payload}}}),{setSearchValue:s}=a.actions,l=a.reducer,c=o.h.injectEndpoints({endpoints:e=>({getTenantsInfo:e.query({queryFn:async(e,t)=>{let{clusterName:n}=e,{signal:r,getState:o}=t;try{const e=await window.api.getTenants(n,{signal:r});let t;if(Array.isArray(e.TenantInfo)){const{singleClusterMode:n}=o();t=(0,i.Rp)(e.TenantInfo,n)}else t=[];return{data:t}}catch(a){return{error:a}}},providesTags:["All"]})}),overrideExisting:"throw"})},49687:(e,t,n)=>{"use strict";let r,o,i;n.d(t,{Gz:()=>f,hJ:()=>p,nr:()=>g,B8:()=>v,nD:()=>h,_g:()=>m,HH:()=>c,Vn:()=>y,Lv:()=>w,Rp:()=>u,_W:()=>b}),function(e){e.STATE_UNSPECIFIED="STATE_UNSPECIFIED",e.CREATING="CREATING",e.RUNNING="RUNNING",e.REMOVING="REMOVING",e.PENDING_RESOURCES="PENDING_RESOURCES",e.CONFIGURING="CONFIGURING"}(r||(r={})),function(e){e.TABLET_VOLATILE_STATE_UNKNOWN="TABLET_VOLATILE_STATE_UNKNOWN",e.TABLET_VOLATILE_STATE_STOPPED="TABLET_VOLATILE_STATE_STOPPED",e.TABLET_VOLATILE_STATE_BOOTING="TABLET_VOLATILE_STATE_BOOTING",e.TABLET_VOLATILE_STATE_STARTING="TABLET_VOLATILE_STATE_STARTING",e.TABLET_VOLATILE_STATE_RUNNING="TABLET_VOLATILE_STATE_RUNNING"}(o||(o={})),function(e){e.None="None",e.HDD="HDD",e.SSD="SSD"}(i||(i={}));n(81854),n(34301);var a=n(55850),s=n(35240);const l=e=>{if(e)return e.map((e=>{if(e.Name){const t=Number(e.Usage)||0,n=Number(e.Threads),r=n*t;return{name:e.Name,usage:100*t,limit:n,used:r}}})).filter((e=>void 0!==e))},c=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{CoresUsed:t,MemoryUsed:n,StorageAllocatedSize:r,MemoryLimit:o,StorageAllocatedLimit:s,PoolStats:c,Metrics:u={},DatabaseQuotas:f={},StorageUsage:p,QuotaUsage:h}=e,m=1e6*Number(t)||0,g=Number(n)||0,v=Number(r)||0,y=Number(u.Storage)||0,b=(0,a.kE)(o)?Number(o):void 0,w=(0,a.kE)(s)?Number(s):void 0,E=(0,a.kE)(f.data_size_soft_quota)?Number(f.data_size_soft_quota):void 0,_=l(c);let x,S;x=p?p.map((e=>{const{Type:t,Size:n,Limit:r}=e,o=Number(n),i=Number(r);return{name:t,used:o,limit:i,usage:d(o,i)}})):[{name:i.SSD,used:v,limit:w,usage:d(v,w)}],h?S=h.map((e=>{const{Type:t,Size:n,Limit:r}=e,o=Number(n),i=Number(r);return{name:t,used:o,limit:i,usage:d(o,i)}})):E&&(S=[{name:i.SSD,used:y,limit:E,usage:d(y,E)}]);return{memory:g,blobStorage:v,tabletStorage:y,memoryLimit:b,blobStorageLimit:w,tabletStorageLimit:E,cpu:m,poolsStats:_,memoryStats:[{name:"Process",used:g,limit:b,usage:d(g,b)}],blobStorageStats:x,tabletStorageStats:S}},u=(e,t)=>e.map((n=>{var r;const o=t?(e=>{var t;const n=e.Nodes?e.Nodes[0]:{},r=n.Host&&n.Endpoints?null===(t=n.Endpoints.find((e=>"http-mon"===e.Name)))||void 0===t?void 0:t.Address:void 0;return n.Host?`${n.Host}${r||""}`:void 0})(n):void 0,i=null===(r=e.find((e=>e.Id===n.ResourceId)))||void 0===r?void 0:r.Name,s=(e=>{var t,n;const r=null===(t=e.Name)||void 0===t?void 0:t.split("/"),o=null!==r&&void 0!==r&&r.length?r[r.length-1]:"\u2014",i=null===(n=e.ControlPlane)||void 0===n?void 0:n.name;return null!==i&&void 0!==i?i:o})(n),{cpu:l,memory:u,blobStorage:d}=c(n),{nodesCount:f,groupsCount:p}=(e=>{var t;const{StorageGroups:n,NodeIds:r}=e;return{nodesCount:null!==(t=null===r||void 0===r?void 0:r.length)&&void 0!==t?t:0,groupsCount:(0,a.kE)(n)?Number(n):0}})(n);return{...n,backend:o,sharedTenantName:i,controlPlaneName:s,cpu:l,memory:u,storage:d,nodesCount:f,groupsCount:p}}));function d(e,t){if(e&&t)return 100*e/t}const f=70,p=60,h=85,m=75,g=70,v=60,y=e=>e?e>f?s.L.Danger:e>p?s.L.Warning:s.L.Good:s.L.Unspecified,b=e=>e?e>h?s.L.Danger:e>m?s.L.Warning:s.L.Good:s.L.Unspecified,w=e=>e?e>g?s.L.Danger:e>v?s.L.Warning:s.L.Good:s.L.Unspecified},3027:(e,t,n)=>{"use strict";n.d(t,{MB:()=>a,ZP:()=>u,hJ:()=>c,i8:()=>l});var r=n(85690),o=n.n(r);const i="tooltip/HIDE_TOOLTIP",a="tooltip/UPDATE_REF",s={toolTipVisible:!1,currentHoveredRef:void 0,data:void 0,templateType:"pool"},l=()=>({type:i}),c=(e,t,n,r,o)=>({type:a,node:e,data:t,templateType:n,additionalData:r,positions:o}),u=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case i:return{...e,currentHoveredRef:void 0,toolTipVisible:!1};case a:return"cell"===t.templateType&&o()(t.node,e.currentHoveredRef)?{...e,currentHoveredRef:void 0,toolTipVisible:!1}:{...e,toolTipVisible:!0,currentHoveredRef:t.node,positions:t.positions,data:t.data,additionalData:t.additionalData,templateType:t.templateType};default:return e}}},1558:(e,t,n)=>{"use strict";function r(e){return!!e&&("Version"in e&&2===e.Version)}n.d(t,{j:()=>r})},75850:(e,t,n)=>{"use strict";let r;n.d(t,{K:()=>r}),function(e){e.Grey="Grey",e.Green="Green",e.Blue="Blue",e.Yellow="Yellow",e.Orange="Orange",e.Red="Red"}(r||(r={}))},6544:(e,t,n)=>{"use strict";n.d(t,{u:()=>o});var r=n(39623);const o={[r.Rm.off]:0,[r.Rm.toplevel]:4,[r.Rm.basic]:9,[r.Rm.detailed]:13,[r.Rm.diagnostic]:14,[r.Rm.trace]:15}},35638:(e,t,n)=>{"use strict";var r,o;let i,a;var s;let l,c;var u,d,f,p,h;let m;var g,v,y,b,w,E,_;n.d(t,{C6:()=>l,tB:()=>m,mR:()=>a,gb:()=>i}),function(e){e.StatusSuccess="StatusSuccess",e.StatusAccepted="StatusAccepted",e.StatusPathDoesNotExist="StatusPathDoesNotExist",e.StatusPathIsNotDirectory="StatusPathIsNotDirectory",e.StatusAlreadyExists="StatusAlreadyExists",e.StatusSchemeError="StatusSchemeError",e.StatusNameConflict="StatusNameConflict",e.StatusInvalidParameter="StatusInvalidParameter",e.StatusMultipleModifications="StatusMultipleModifications",e.StatusReadOnly="StatusReadOnly",e.StatusTxIdNotExists="StatusTxIdNotExists",e.StatusTxIsNotCancellable="StatusTxIsNotCancellable",e.StatusAccessDenied="StatusAccessDenied",e.StatusNotAvailable="StatusNotAvailable",e.StatusPreconditionFailed="StatusPreconditionFailed",e.StatusRedirectDomain="StatusRedirectDomain",e.StatusQuotaExceeded="StatusQuotaExceeded",e.StatusResourceExhausted="StatusResourceExhausted"}(r||(r={})),function(e){e.UNKNOWN="UNKNOWN",e.USER="USER",e.GROUP="GROUP"}(o||(o={})),function(e){e.EPathTypeInvalid="EPathTypeInvalid",e.EPathTypeDir="EPathTypeDir",e.EPathTypeTable="EPathTypeTable",e.EPathTypePersQueueGroup="EPathTypePersQueueGroup",e.EPathTypeSubDomain="EPathTypeSubDomain",e.EPathTypeTableIndex="EPathTypeTableIndex",e.EPathTypeExtSubDomain="EPathTypeExtSubDomain",e.EPathTypeColumnStore="EPathTypeColumnStore",e.EPathTypeColumnTable="EPathTypeColumnTable",e.EPathTypeCdcStream="EPathTypeCdcStream",e.EPathTypeExternalDataSource="EPathTypeExternalDataSource",e.EPathTypeExternalTable="EPathTypeExternalTable",e.EPathTypeView="EPathTypeView",e.EPathTypeReplication="EPathTypeReplication"}(i||(i={})),function(e){e.EPathSubTypeEmpty="EPathSubTypeEmpty",e.EPathSubTypeSyncIndexImplTable="EPathSubTypeSyncIndexImplTable",e.EPathSubTypeAsyncIndexImplTable="EPathSubTypeAsyncIndexImplTable",e.EPathSubTypeStreamImpl="EPathSubTypeStreamImpl"}(a||(a={})),function(e){e.EPathStateNotExist="EPathStateNotExist",e.EPathStateNoChanges="EPathStateNoChanges",e.EPathStateCreate="EPathStateCreate",e.EPathStateAlter="EPathStateAlter",e.EPathStateDrop="EPathStateDrop",e.EPathStateCopying="EPathStateCopying",e.EPathStateBackup="EPathStateBackup",e.EPathStateUpgrade="EPathStateUpgrade",e.EPathStateMigrated="EPathStateMigrated",e.EPathStateRestore="EPathStateRestore",e.EPathStateMoving="EPathStateMoving"}(s||(s={})),function(e){e.ColumnCodecPlain="ColumnCodecPlain",e.ColumnCodecLZ4="ColumnCodecLZ4",e.ColumnCodecZSTD="ColumnCodecZSTD"}(l||(l={})),function(e){e.UNIT_AUTO="UNIT_AUTO",e.UNIT_SECONDS="UNIT_SECONDS",e.UNIT_MILLISECONDS="UNIT_MILLISECONDS",e.UNIT_MICROSECONDS="UNIT_MICROSECONDS",e.UNIT_NANOSECONDS="UNIT_NANOSECONDS"}(c||(c={})),function(e){e.ECdcStreamModeInvalid="ECdcStreamModeInvalid",e.ECdcStreamModeKeysOnly="ECdcStreamModeKeysOnly",e.ECdcStreamModeUpdate="ECdcStreamModeUpdate",e.ECdcStreamModeNewImage="ECdcStreamModeNewImage",e.ECdcStreamModeOldImage="ECdcStreamModeOldImage",e.ECdcStreamModeNewAndOldImages="ECdcStreamModeNewAndOldImages"}(u||(u={})),function(e){e.ECdcStreamFormatInvalid="ECdcStreamFormatInvalid",e.ECdcStreamFormatProto="ECdcStreamFormatProto",e.ECdcStreamFormatJson="ECdcStreamFormatJson"}(d||(d={})),function(e){e.ECdcStreamStateInvalid="ECdcStreamStateInvalid",e.ECdcStreamStateReady="ECdcStreamStateReady",e.ECdcStreamStateDisabled="ECdcStreamStateDisabled"}(f||(f={})),function(e){e.HASH_FUNCTION_MODULO_N="HASH_FUNCTION_MODULO_N",e.HASH_FUNCTION_CLOUD_LOGS="HASH_FUNCTION_CLOUD_LOGS"}(p||(p={})),function(e){e.COLUMN_ENGINE_NONE="COLUMN_ENGINE_NONE",e.COLUMN_ENGINE_REPLACING_TIMESERIES="COLUMN_ENGINE_REPLACING_TIMESERIES"}(h||(h={})),function(e){e.METERING_MODE_RESERVED_CAPACITY="METERING_MODE_RESERVED_CAPACITY",e.METERING_MODE_REQUEST_UNITS="METERING_MODE_REQUEST_UNITS"}(m||(m={})),function(e){e.SysLog="SysLog",e.Log="Log",e.Data="Data",e.External="External"}(g||(g={})),function(e){e.Unspecified="Unspecified",e.Freeze="Freeze",e.Unfreeze="Unfreeze"}(v||(v={})),function(e){e.ColumnCacheNone="ColumnCacheNone",e.ColumnCacheOnce="ColumnCacheOnce",e.ColumnCacheEver="ColumnCacheEver"}(y||(y={})),function(e){e.ColumnStorage1="ColumnStorage1",e.ColumnStorage2="ColumnStorage2",e.ColumnStorage1Ext1="ColumnStorage1Ext1",e.ColumnStorage1Ext2="ColumnStorage1Ext2",e.ColumnStorage2Ext1="ColumnStorage2Ext1",e.ColumnStorage2Ext2="ColumnStorage2Ext2",e.ColumnStorage1Med2Ext2="ColumnStorage1Med2Ext2",e.ColumnStorage2Med2Ext2="ColumnStorage2Med2Ext2",e.ColumnStorageTest_1_2_1k="ColumnStorageTest_1_2_1k"}(b||(b={})),function(e){e.CompactionStrategyUnset="CompactionStrategyUnset",e.CompactionStrategyGenerational="CompactionStrategyGenerational",e.CompactionStrategySharded="CompactionStrategySharded"}(w||(w={})),function(e){e.EIndexTypeInvalid="EIndexTypeInvalid",e.EIndexTypeGlobal="EIndexTypeGlobal",e.EIndexTypeGlobalAsync="EIndexTypeGlobalAsync"}(E||(E={})),function(e){e.EIndexStateInvalid="EIndexStateInvalid",e.EIndexStateReady="EIndexStateReady",e.EIndexStateNotReady="EIndexStateNotReady",e.EIndexStateWriteOnly="EIndexStateWriteOnly"}(_||(_={}))},28164:(e,t,n)=>{"use strict";let r,o;n.d(t,{F:()=>r,g:()=>o}),function(e){e.Unknown="Unknown",e.OldSchemeShard="OldSchemeShard",e.OldDataShard="OldDataShard",e.OldHive="OldHive",e.OldCoordinator="OldCoordinator",e.Mediator="Mediator",e.OldTxProxy="OldTxProxy",e.OldBSController="OldBSController",e.Dummy="Dummy",e.RTMRPartition="RTMRPartition",e.OldKeyValue="OldKeyValue",e.KeyValue="KeyValue",e.Coordinator="Coordinator",e.Hive="Hive",e.BSController="BSController",e.SchemeShard="SchemeShard",e.TxProxy="TxProxy",e.DataShard="DataShard",e.PersQueue="PersQueue",e.Cms="Cms",e.NodeBroker="NodeBroker",e.TxAllocator="TxAllocator",e.PersQueueReadBalancer="PersQueueReadBalancer",e.BlockStoreVolume="BlockStoreVolume",e.BlockStorePartition="BlockStorePartition",e.TenantSlotBroker="TenantSlotBroker",e.Console="Console",e.Kesus="Kesus",e.BlockStorePartition2="BlockStorePartition2",e.BlockStoreDiskRegistry="BlockStoreDiskRegistry",e.SysViewProcessor="SysViewProcessor",e.FileStore="FileStore",e.ColumnShard="ColumnShard",e.TestShard="TestShard",e.SequenceShard="SequenceShard",e.ReplicationController="ReplicationController",e.BlobDepot="BlobDepot",e.UserTypeStart="UserTypeStart",e.TypeInvalid="TypeInvalid"}(r||(r={})),function(e){e.Created="Created",e.ResolveStateStorage="ResolveStateStorage",e.Candidate="Candidate",e.BlockBlobStorage="BlockBlobStorage",e.RebuildGraph="RebuildGraph",e.WriteZeroEntry="WriteZeroEntry",e.Restored="Restored",e.Discover="Discover",e.Lock="Lock",e.Dead="Dead",e.Active="Active",e.ResolveLeader="ResolveLeader",e.Deleted="Deleted",e.Stopped="Stopped"}(o||(o={}))},90117:(e,t,n)=>{"use strict";let r;n.d(t,{X:()=>r}),function(e){e.EXECUTE="execute",e.EXPLAIN="explain"}(r||(r={}))},57510:(e,t,n)=>{"use strict";n.d(t,{t:()=>p,d:()=>d});var r=n(52317),o=n(34301),i=n(55850),a=n(30817);const s=JSON.parse('{"b":"B","kb":"KB","mb":"MB","gb":"GB","tb":"TB","perSecond":"/s"}'),l=JSON.parse('{"b":"\u0411","kb":"\u041a\u0411","mb":"\u041c\u0411","gb":"\u0413\u0411","tb":"\u0422\u0411","perSecond":"/\u0441"}'),c=(0,a.wZ)("ydb-bytes-parsers",{ru:l,en:s}),u={b:{value:1,label:c("b")},kb:{value:r.h0,label:c("kb")},mb:{value:r.nQ,label:c("mb")},gb:{value:r.GS,label:c("gb")},tb:{value:r.Bp,label:c("tb")}},d=(e,t)=>{const n=10**t,r=u.tb.value*n,o=u.gb.value*n,i=u.mb.value*n;let a="b";return e>=u.kb.value*n&&(a="kb"),e>=i&&(a="mb"),e>=o&&(a="gb"),e>=r&&(a="tb"),a},f=(e,t)=>e+` ${u[t].label}`,p=e=>{let{value:t,size:n,withSpeedLabel:r=!1,withSizeLabel:a=!0,significantDigits:s=0,...l}=e;if(!(0,i.kE)(t))return"";const p=Number(t),h=null!==n&&void 0!==n?n:d(p,s),m=(e=>{let{value:t,size:n="mb",precision:r=0}=e;const i=(0,o.W0)(Number(t)/u[n].value,r);return(0,o.uf)(i)})({value:p,size:h,...l});return r?((e,t)=>f(e,t)+c("perSecond"))(m,h):a?f(m,h):m}},81854:(e,t,n)=>{"use strict";n.d(t,{c4:()=>i,td:()=>r.t,dT:()=>r.d});var r=n(57510),o=n(52317);const i=e=>({perMinute:e&&e.per_minute?Math.round(Number(e.per_minute)/o.sU):0,perHour:e&&e.per_hour?Math.round(Number(e.per_hour)/o.RQ):0,perDay:e&&e.per_day?Math.round(Number(e.per_day)/o.ii):0})},90860:(e,t,n)=>{"use strict";n.d(t,{B_:()=>u,kn:()=>l,n$:()=>c});var r=n(60619),o=n.n(r),i=n(30601),a=n(94076);const s="__no_color__",l=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Map;return e.forEach((e=>{var n;let{version:r,version_base_color_index:o=s}=e;const a=(0,i.H)(r);t.has(o)||t.set(o,new Set),null===(n=t.get(o))||void 0===n||n.add(a)})),t},c=e=>{const t=new Map;for(const[n,r]of e)Array.from(r).sort(((e,t)=>(0,a.un)(t)-(0,a.un)(e))).forEach(((e,o)=>{if(n===s)t.set(e,a.HD);else{const i=Number(n)%a.DM.length,s=r.size,l=a.DM[i],c=Math.max(100-o*(100/s),20),u=`${l}${Math.round(255*c/100).toString(16)}`;t.set(e,u)}}));return t},u=function(){let e=arguments.length>1?arguments[1]:void 0;const t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).filter((e=>e.version));return o()(t,"version").map((e=>({...e,minorVersion:(0,i.H)(e.version)}))).reduce(((t,n)=>{const r=e.get(n.minorVersion);return t.push({...n,color:r}),t}),[])}},24362:(e,t,n)=>{"use strict";n.d(t,{cn:()=>r});const r=(0,n(5247).withNaming)({e:"__",m:"_"})},52317:(e,t,n)=>{"use strict";n.d(t,{Ac:()=>P,Ah:()=>S,Bp:()=>u,DG:()=>I,DO:()=>C,E6:()=>Z,FU:()=>k,GS:()=>c,HN:()=>v,IG:()=>ee,Ik:()=>oe,KS:()=>D,KU:()=>j,LE:()=>$,ME:()=>a,Mn:()=>B,N1:()=>A,NO:()=>d,Px:()=>T,Qy:()=>Q,RE:()=>V,RI:()=>re,RQ:()=>p,Rn:()=>W,Rq:()=>X,S7:()=>q,XN:()=>M,XX:()=>ne,ZY:()=>Y,Zi:()=>H,Zy:()=>J,bw:()=>O,eG:()=>U,fl:()=>_,h0:()=>s,if:()=>R,ii:()=>h,jX:()=>x,nQ:()=>l,nU:()=>m,pf:()=>K,qV:()=>b,sO:()=>F,sU:()=>f,sl:()=>E,tV:()=>y,t_:()=>i,w7:()=>G,wr:()=>L,x5:()=>w,y6:()=>te,yD:()=>g,yT:()=>N,z4:()=>z});var r=n(19812),o=n(28164);const i=1e4,a=3e4,s=1e3,l=1e6,c=1e9,u=1e12,d=1e3,f=60,p=60*f,h=24*p,m=7*h,g=1e6,v={Created:"grey",ResolveStateStorage:"lightgrey",Candidate:"lightgrey",BlockBlobStorage:"lightgrey",RebuildGraph:"yellow",Restored:"yellow",Discover:"orange",Lock:"lightblue",Dead:"black",Active:"lightgreen"},y={[o.F.OldTxProxy]:"P",[o.F.TxProxy]:"P",[o.F.BSController]:"BS",[o.F.Dummy]:"DY",[o.F.RTMRPartition]:"RP",[o.F.PersQueueReadBalancer]:"PB",[o.F.Cms]:"CM",[o.F.BlockStorePartition]:"BP",[o.F.BlockStoreVolume]:"BV",[o.F.Console]:"CN",[o.F.TenantSlotBroker]:"TB",[o.F.BlockStoreDiskRegistry]:"BDR"},b=e=>{var t;if(!e)return;const n=null===(t=e.match(/[A-Z]/g))||void 0===t?void 0:t.join("");return(e=>e in y)(e)?y[e]:n},w=["1 min","5 min","15 min"],E={green:5,yellow:4,orange:3,red:2,blue:1,grey:1},_=5,x="\u2014",S="Developer UI",C="Cluster",k="Database",O="theme",T="language",N="invertedDisks",I="saved_queries",P="asideHeaderCompact",R="queries_history",D="tune-columns-popup",A="binaryDataInPlainTextDisplay",j="auto-refresh-interval",M="default-size-result-pane",L="default-size-tenant-summary-pane",z="default-size-tenant-pane",F="default-is-tenant-summary-collapsed",B="default-is-tenant-common-info-collapsed",U="default-is-query-result-collapsed",q="default-cluster-tab",$={displayIndices:!1,stickyHead:r.ZP.MOVING,syncHeadOnResize:!0,dynamicRender:!0,highlightRows:!0},Z={...$,stickyHead:"fixed",dynamicRender:!1},H="queryExecutionSettings",V="last_query_execution_settings",W="querySettingsBannerLastClosed",G="last_used_query_action",Y="partitionsHiddenColumns",K="saved_tenant_initial_tab",Q="useBackendParamsForTables",J="showDomainDatabase",X="queryUseMultiSchema",ee="useClusterBalancerAsBacked",te="enableAutocomplete",ne="autocompleteOnEnter",re="isHotKeysHelpHidden",oe="enable_tracing_for_all_requests"},34301:(e,t,n)=>{"use strict";n.d(t,{fG:()=>O,OW:()=>k,t$:()=>f,td:()=>d,LO:()=>x,o0:()=>S,gC:()=>m,uf:()=>b,xh:()=>w,QO:()=>g,q3:()=>v,JD:()=>y,i$:()=>C,fm:()=>T,W0:()=>E,a2:()=>p});var r=n(396),o=n(57510),i=n(52317),a=n(24829),s=n(55850),l=n(30817);const c=JSON.parse('{"format-cpu.cores":["core","cores","cores","cores"]}'),u=JSON.parse('{"format-cpu.cores":["\u044f\u0434\u0440\u043e","\u044f\u0434\u0440\u0430","\u044f\u0434\u0435\u0440","\u044f\u0434\u0435\u0440"]}'),d=((0,l.wZ)("ydb-format-cpu",{ru:u,en:c}),e=>(0,s.kE)(e)?(0,a.X)(e).format("0 b"):""),f=e=>{const t=d(e);return t?t+"/s":""},p=e=>e?Object.values(e).join("-"):"",h=e=>{const t=Math.floor(e/i.ii),n=e%i.ii;return[t&&`${t}d`,(0,a.X)(n).format("00:00:00")].filter(Boolean).join(" ")},m=e=>e&&h(e/1e3),g=(e,t,n)=>{let r=(0,o.d)(Number(e),0),i=!0,a=0;(0,s.kE)(t)&&(r=(0,o.d)(Number(t),0),i=!1,a=1);return[(0,o.t)({value:e,withSizeLabel:i,size:n||r,precision:a}),(0,o.t)({value:t,size:n||r})]},v=(e,t)=>g(e,t,"gb"),y=(e,t)=>g(e,t,"tb"),b=e=>(0,s.kE)(e)?(0,a.X)(e).format("0,0.[00000]"):"",w=e=>{const t=(e/i.RQ).toFixed(2);return`${b(t)} hours`},E=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,[n]=String(e).split(".");return Number(e)<1&&(n=""),n.length>=t?Math.round(Number(e)):Number(Number(e).toFixed(t-n.length))},_=e=>{const t=Number(e)/1e6;return E(t,3)},x=e=>{if(void 0!==e)return(0,a.X)(_(e)).format("0.[000]")},S=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const o=null===(t=(0,r.J)(Number(e)))||void 0===t?void 0:t.format("YYYY-MM-DD HH:mm");return null!==o&&void 0!==o?o:n},C=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const o=null===(t=(0,r.J)(e))||void 0===t?void 0:t.format("YYYY-MM-DD HH:mm:ss.SSS");return null!==o&&void 0!==o?o:n},k=e=>{const t=(new Date).getTime()-Number(e);return t<=0?0:t/1e3},O=e=>h(k(Number(e)));function T(e){return void 0===e?"":"object"===typeof e?JSON.stringify(e):e.toString()}},48169:(e,t,n)=>{"use strict";n.d(t,{ok:()=>a,wq:()=>i,wz:()=>l,yf:()=>s});var r=n(27102),o=n(55850);const i=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.y3;const n=/\/node\/\d+\/?$/g;return n.test(String(t))?String(t).replace(n,`/node/${e}/`):`${null!==t&&void 0!==t?t:""}/node/${e}/`},a=e=>{let{nodeId:t,pDiskId:n,host:r}=e;const a="actors/pdisks/pdisk"+(0,o.bJ)(n);return i(t,r)+a},s=e=>{let{nodeId:t,pDiskId:n,vDiskSlotId:r,host:a}=e;const s="actors/vdisks/vdisk"+(0,o.bJ)(n)+"_"+(0,o.bJ)(r);return i(t,a)+s};function l(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"TabletID";return`${arguments.length>3&&void 0!==arguments[3]?arguments[3]:r.y3}/tablets${t?`/${t}`:""}?${n}=${e}`}},17096:(e,t,n)=>{"use strict";n.d(t,{Rj:()=>h,xd:()=>m,dU:()=>a.d,A3:()=>f,yu:()=>i.y,sC:()=>c,zL:()=>o.z,ix:()=>r.i});var r=n(97822),o=n(58876),i=n(14709),a=n(66213),s=n(68963),l=n(81413);const c=(e,t)=>{let{sortValue:n,sortOrder:r=l.hr}=e;return[s.useMemo((()=>{if(n)return{columnId:n,order:r}}),[n,r]),e=>{const n=Array.isArray(e)?e[0]:e;t({sortValue:null===n||void 0===n?void 0:n.columnId,sortOrder:null===n||void 0===n?void 0:n.order})}]};var u=n(86974),d=n(54665);const f=()=>{const e=(0,u.TH)();return(0,d.mB)(e)};var p=n(52317);function h(){return(0,i.y)(p.KU,0)}function m(e){const t=s.useRef(e);return s.useLayoutEffect((()=>{t.current=e}),[e]),s.useCallback((function(){for(var e,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return null===(e=t.current)||void 0===e?void 0:e.call(t,...r)}),[])}},42587:(e,t,n)=>{"use strict";n.d(t,{$:()=>o});var r=n(68963);function o(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:600;const[t,n]=r.useState(!1),[o,i]=r.useState(0);r.useEffect((()=>{n(!1);const t=setTimeout((()=>{n(!0)}),e);return()=>{clearTimeout(t)}}),[e,o]);return[t,r.useCallback((()=>{i((e=>e+1))}),[])]}},66213:(e,t,n)=>{"use strict";n.d(t,{d:()=>s});var r=n(17880),o=n(52317),i=n(39623),a=n(14709);const s=()=>{const e=(0,r.uY)(),[t,n]=(0,a.y)(o.Zi),s=i.nh.parse(t);return[{...s,tracingLevel:e?s.tracingLevel:i.hl.tracingLevel},n]}},14709:(e,t,n)=>{"use strict";n.d(t,{y:()=>s});var r=n(68963),o=n(80839),i=n(58876),a=n(97822);const s=(e,t)=>{const n=(0,i.z)();return[(0,a.i)((n=>{var r;return null!==(r=(0,o.Cx)(n,e))&&void 0!==r?r:t})),r.useCallback((t=>{n((0,o.xI)(e,t))}),[n,e])]}},58876:(e,t,n)=>{"use strict";n.d(t,{z:()=>r});const r=n(87555).I0},97822:(e,t,n)=>{"use strict";n.d(t,{i:()=>r});const r=n(87555).v9},30817:(e,t,n)=>{"use strict";n.d(t,{Uo:()=>r,Fp:()=>l,ag:()=>u,wZ:()=>d});var r,o=n(31329),i=n(24205),a=n(18193),s=n(52317);!function(e){e.En="en",e.Ru="ru"}(r||(r={}));const l=r.En,c=a.r.readUserSettingsValue(s.Px,l),u=new o.mb({lang:c,fallbackLang:r.En});function d(e,t){for(const n of Object.keys(t))u.registerKeyset(n,e,t[n]);return u.keyset(e)}(0,i.jQ)({lang:c})},5922:(e,t,n)=>{"use strict";n.d(t,{D:()=>o,Dc:()=>i,c$:()=>r});const r=e=>[...Array(e).keys()];function o(e){return null!==e&&void 0!==e}async function i(e){return new Promise((t=>{setTimeout(t,e)}))}},30410:(e,t,n)=>{"use strict";n.d(t,{k:()=>l});var r=n(68963),o=n(2982),i=n(40726),a=n(27710),s=n(75859);function l(e,t,n){const o=r.lazy((()=>e().then((e=>({default:e[t]}))).catch((e=>({default:()=>(0,s.jsx)(a.l2,{error:e})}))))),l=(e,t)=>{const a=(0,i.C)("ErrorBoundary");return(0,s.jsx)(a,{children:(0,s.jsx)(r.Suspense,{fallback:null!==n&&void 0!==n?n:(0,s.jsx)(c,{}),children:(0,s.jsx)(o,{ref:t,...e})})})};return l.displayName=t,r.forwardRef(l)}function c(){return(0,s.jsx)("div",{style:{width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center"},children:(0,s.jsx)(o.a,{size:"l"})})}},51688:(e,t,n)=>{"use strict";n.d(t,{Ns:()=>h,RW:()=>g,TA:()=>f,U8:()=>u,Uu:()=>c,Xs:()=>p,eV:()=>m,oh:()=>y,qU:()=>d});var r=n(95408),o=n(80839),i=n(75850),a=n(52317),s=n(34301),l=n(5922);let c;!function(e){e.All="All",e.SmallUptime="SmallUptime"}(c||(c={}));const u=r.z.nativeEnum(c).catch(c.All),d={[c.All]:"All",[c.SmallUptime]:"Uptime < 1h"},f=e=>!e.SystemState||e.SystemState===i.K.Grey,p=e=>null===e||void 0===e?void 0:e.reduce(((e,t)=>(t.Id&&t.Host&&e.set(Number(t.Id),t.Host),e)),new Map);const h=function(){var e,t;let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const r=(null===(e=n.Location)||void 0===e?void 0:e.Rack)||n.Rack,o=(null===(t=n.Location)||void 0===t?void 0:t.DataCenter)||n.DataCenter,i=(0,s.fG)(n.StartTime),a=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{LoadAverage:t,NumberOfCpus:n}=e;if((0,l.D)(t)&&(0,l.D)(n))return t.map((e=>100*e/n))}(n);return{...n,Rack:r,DC:o,Uptime:i,LoadAveragePercents:a}},m=e=>e===o.pu.PROBLEMS,g=e=>e===c.SmallUptime?a.RQ:void 0,v=["NodeId","Host","NodeName","DC","Rack","Version","Uptime","CPU","LoadAverage","Memory","Missing","DiskSpaceUsage","Database"],y=e=>v.includes(e)},24829:(e,t,n)=>{"use strict";n.d(t,{X:()=>a});var r=n(36453),o=n.n(r),i=(n(40022),n(30817));Object.values(i.Uo).forEach((e=>{o().locales[e]&&(o().locales[e].delimiters.thousands=" ")})),o().locale(i.ag.lang);const a=o()},45535:(e,t,n)=>{"use strict";n.d(t,{M2:()=>r,p9:()=>o,q:()=>i});const r=e=>e.replace(/\/viewer\/json/,""),o=e=>{const t=r((e=>e.replace(/http[s]?:\/\//,""))(e)),n=t.split("/");if(1===n.length)return{balancer:n[0],proxy:void 0};const o=n[0];return{balancer:t.replace(o+"/",""),proxy:o}},i=e=>o(e).balancer.replace(/:\d+$/,"")},61293:(e,t,n)=>{"use strict";n.d(t,{pY:()=>a,sA:()=>i});var r=n(45535);const o="https://",i=(e,t)=>{const n=null!==(i=e)&&void 0!==i&&i.startsWith("vm-")?`u-${i}`:i;var i;const a=(0,r.p9)(t).proxy;return a?o+a+"/"+n:o+n},a=(e,t,n)=>{const{Host:o,Endpoints:a,NodeId:s}=e;if(n&&s){return`${(0,r.M2)(t)}/node/${s}/`}if(o&&a){var l;const e=null===(l=a.find((e=>"http-mon"===e.Name)))||void 0===l?void 0:l.Address;if(!e||!o)return null;return i(o+e,t)+"/"}return null}},39623:(e,t,n)=>{"use strict";n.d(t,{hl:()=>k,Jf:()=>f,wZ:()=>p,U4:()=>h,jM:()=>m,$E:()=>l,Ie:()=>c,Rm:()=>u,Vj:()=>d,cy:()=>a,Nf:()=>s,T$:()=>g,gW:()=>b,gY:()=>w,CC:()=>E,dt:()=>S,fV:()=>C,y5:()=>_,Xh:()=>x,nh:()=>R,J7:()=>P});var r=n(95408);let o;!function(e){e.Bool="Bool",e.Int8="Int8",e.Int16="Int16",e.Int32="Int32",e.Int64="Int64",e.Uint8="Uint8",e.Uint16="Uint16",e.Uint32="Uint32",e.Uint64="Uint64",e.Float="Float",e.Double="Double",e.Decimal="Decimal",e.String="String",e.Utf8="Utf8",e.Json="Json",e.JsonDocument="JsonDocument",e.Yson="Yson",e.Uuid="Uuid",e.Date="Date",e.Datetime="Datetime",e.Timestamp="Timestamp",e.Interval="Interval",e.TzDate="TzDate",e.TzDateTime="TzDateTime",e.TzTimestamp="TzTimestamp"}(o||(o={}));var i=n(30490);const a={serializable:"serializable-read-write",stalero:"stale-read-only",onlinero:"online-read-only",snapshot:"snapshot-read-only",implicit:"implicit"},s={[a.serializable]:"Serializable",[a.stalero]:"Stale Read-Only",[a.onlinero]:"Online Read-Only",[a.snapshot]:"Snapshot Read-Only",[a.implicit]:"Implicit"},l={none:"none",basic:"basic",full:"full",profile:"profile"},c={[l.none]:"None",[l.full]:"Full",[l.basic]:"Basic",[l.profile]:"Profile"},u={off:"off",toplevel:"toplevel",basic:"basic",detailed:"detailed",diagnostic:"diagnostic",trace:"trace"},d={[u.off]:"Off",[u.toplevel]:"TopLevel",[u.basic]:"Basic",[u.detailed]:"Detailed",[u.diagnostic]:"Diagnostic",[u.trace]:"Trace"},f={execute:"execute",explain:"explain"},p={scan:"scan",script:"script",data:"data",query:"query",pg:"pg"},h={scan:"Scan",script:"YQL Script",data:"Data",query:"YQL - QueryService",pg:"PostgreSQL"},m={yql:"yql_v1",pg:"pg"},g=e=>{switch(e.replace(/\?$/,"")){case o.Bool:return"boolean";case o.Int8:case o.Int16:case o.Int32:case o.Int64:case o.Uint8:case o.Uint16:case o.Uint32:case o.Uint64:case o.Float:case o.Double:case o.Decimal:return"number";case o.String:case o.Utf8:case o.Json:case o.JsonDocument:case o.Yson:case o.Uuid:return"string";case o.Date:case o.Datetime:case o.Timestamp:case o.Interval:case o.TzDate:case o.TzDateTime:case o.TzTimestamp:return"date";default:return}},v=(e,t)=>e.map((e=>e.reduce(((e,n,r)=>{const{name:o}=t[r];return e[o]=n,e}),{}))),y=e=>Boolean(!e||"object"!==typeof e||Array.isArray(e)||"result"in e&&!Array.isArray(e.result));function b(e){return Boolean(e&&"object"===typeof e&&"error"in e&&"issues"in e)}const w=e=>y(e)?{}:(e=>Boolean(e&&!Array.isArray(e)&&Array.isArray(e.result)&&"object"===typeof e.result[0]&&"rows"in e.result[0]&&"columns"in e.result[0]))(e)?(e=>{const{result:t,...n}=e;return{resultSets:null===t||void 0===t?void 0:t.map((e=>{const{rows:t,columns:n,truncated:r}=e;let o;return n&&(o=[]),t&&n&&(o=v(t,n)),{columns:n,result:o,truncated:r}})),...n}})(e):(e=>Boolean(e&&!Array.isArray(e)&&Array.isArray(e.result)&&Array.isArray(e.columns)))(e)?(e=>{const{result:t,columns:n,...r}=e;return{result:t&&n&&v(t,n),columns:n,...r}})(e):e,E=e=>y(e)?{}:e,_=e=>(e=>Boolean(e&&"queries"in e))(e)?e.queries&&e.queries.length?{Plan:e.queries[0].Plan,tables:e.queries[0].tables,meta:e.meta,SimplifiedPlan:e.queries[0].SimplifiedPlan}:{meta:e.meta}:e,x=e=>Array.isArray(e)?e.map((e=>{const t={};for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)){const r=typeof e[n];null!==e[n]&&"object"===r||"boolean"===r||Array.isArray(e[n])?t[n]=JSON.stringify(e[n]):t[n]=e[n]}return t})):[],S=e=>"string"===typeof e||b(e)?e:(0,i.eE)(e)?e.message:(0,i.$z)(e)?"data"in e&&b(e.data)?e.data:e.statusText:void 0,C=e=>{var t;const n=S(e);return"string"===typeof n?n:null===n||void 0===n||null===(t=n.error)||void 0===t?void 0:t.message},k={queryMode:p.query,transactionMode:a.implicit,timeout:60,limitRows:1e4,statisticsMode:l.none,tracingLevel:u.detailed},O=r.z.nativeEnum(p),T=r.z.nativeEnum(a),N=r.z.nativeEnum(l),I=r.z.nativeEnum(u),P=r.z.object({timeout:r.z.preprocess((e=>""===e?void 0:e),r.z.coerce.number().positive().or(r.z.undefined())),limitRows:r.z.preprocess((e=>""===e?void 0:e),r.z.coerce.number().gt(0).lte(1e4).or(r.z.undefined())),queryMode:O,transactionMode:T,statisticsMode:N,tracingLevel:I}),R=r.z.object({timeout:r.z.preprocess((e=>""===e?void 0:e),r.z.coerce.number().positive().optional().catch(k.timeout)),limitRows:r.z.preprocess((e=>""===e?void 0:e),r.z.coerce.number().gt(0).lte(1e4).optional().catch(k.limitRows)),queryMode:O.catch(k.queryMode),transactionMode:T.catch(k.transactionMode),statisticsMode:N.catch(k.statisticsMode),tracingLevel:I.catch(k.tracingLevel)}).catch(k)},30490:(e,t,n)=>{"use strict";n.d(t,{$z:()=>o,IZ:()=>i,eE:()=>r});const r=e=>Boolean(e&&"object"===typeof e&&"message"in e&&"Network Error"===e.message),o=e=>Boolean(e&&"object"===typeof e&&"status"in e);function i(e){return Boolean(e&&"object"===typeof e&&"name"in e&&"AxiosError"===e.name)}},1504:(e,t,n)=>{"use strict";n.d(t,{tt:()=>c,zm:()=>u,DA:()=>p,lE:()=>h,BO:()=>m});var r=n(52317),o=n(34301),i=n(30817);const a=JSON.parse('{"daysHours":"{{days}}\xa0d\xa0{{hours}}\xa0h","hoursMin":"{{hours}}\xa0h\xa0{{minutes}}\xa0m","minSec":"{{minutes}}\xa0m\xa0{{seconds}}\xa0s","secMs":"{{seconds}}\xa0s\xa0{{ms}}\xa0ms","days":"{{days}}\xa0d","hours":"{{hours}}\xa0h","min":"{{minutes}}\xa0m","sec":"{{seconds}}\xa0s","ms":"{{ms}}\xa0ms"}'),s=JSON.parse('{"daysHours":"{{days}}\xa0\u0434\xa0{{hours}}\xa0\u0447","hoursMin":"{{hours}}\xa0\u0447\xa0{{minutes}}\xa0\u043c","minSec":"{{minutes}}\xa0\u043c\xa0{{seconds}}\xa0\u0441","secMs":"{{seconds}}\xa0\u0441\xa0{{ms}}\xa0\u043c\u0441","days":"{{days}}\xa0\u0434","hours":"{{hours}}\xa0\u0447","min":"{{minutes}}\xa0\u043c","sec":"{{seconds}}\xa0\u0441","ms":"{{ms}}\xa0\u043c\u0441"}'),l=(0,i.wZ)("ydb-time-parsers",{ru:s,en:a}),c=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;const n=e%1e3;let o=Math.floor(e/1e3);const i=Math.floor(o/r.ii);o%=r.ii;const a=Math.floor(o/r.RQ);o%=r.RQ;const s=Math.floor(o/60);o%=60;const c=o,u={days:i,hours:a,minutes:s,seconds:c,ms:n};if(2===t){if(i>0)return l("daysHours",u);if(a>0)return l("hoursMin",u);if(s>0)return l("minSec",u);if(c>0)return l("secMs",u)}if(1===t){if(i>0)return l("days",u);if(a>0)return l("hours",u);if(s>0)return l("min",u);if(c>0)return l("sec",u)}return l("ms",u)},u=e=>l("ms",{ms:(0,o.uf)(e)}),d=e=>(e.seconds?1e3*Number(e.seconds):0)+(e.nanos?e.nanos/r.yD:0);var f=n(55850);const p=e=>e?(e=>"string"===typeof e?1e3*parseInt(e,10):d(e))(e):0,h=e=>{if(!e)return 0;const t=Date.now()-(e=>"string"===typeof e?Date.parse(e):d(e))(e);return t<0?0:t},m=e=>e&&(0,f.kE)(e)?Math.round(Number(e)/1e3):0},55850:(e,t,n)=>{"use strict";function r(e){if(e)try{return JSON.parse(e)}catch(t){return e}}n.d(t,{Mo:()=>r,Qt:()=>a,Uz:()=>s,bJ:()=>l,kE:()=>c,t_:()=>u});const o=[" B"," KB"," MB"," GB"," TB"," PB"," EB"],i=1e3;function a(e){const t=function(e){const t=Number(e);if(isNaN(t))return"";const n=t/i**2;return n<10?n.toFixed(2)+o[2]:n<100?n.toFixed(1)+o[2]:n.toFixed()+o[2]}(e);return`${t}${t?"ps":""}`}function s(e,t){const n=Number(e);if(isNaN(n))return"N/A";const r=n/1e9;return t?r.toFixed()+o[3]:r<10?r.toFixed(2)+o[3]:r<100?r.toFixed(1)+o[3]:r.toFixed()+o[3]}function l(e){const t=String(e);let n=t;for(let r=t.length;r<9;r++)n="0"+n;return n}function c(e){return"number"===typeof e?!isNaN(e):"string"===typeof e&&(!isNaN(Number(e))&&!isNaN(parseFloat(e)))}function u(e,t){return Number(e).toExponential(t)}},94076:(e,t,n)=>{"use strict";n.d(t,{DM:()=>i,HD:()=>a,ZP:()=>c,un:()=>o});var r=n(30601);const o=e=>e.split("").reduce(((e,t)=>{const n=(e<<5)-e+t.charCodeAt(0);return n&n}),0),i=["#008000","#4169e1","#ffd700","#ff8c00","#808000","#e9967a","#ff1493","#00bfff","#da70d6","#3cb371","#b22222"],a="#bfbfbf",s=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Map;return e.forEach((e=>{var n;const o=(0,r.X)(e),i=(0,r.H)(e);t.has(o)||t.set(o,new Set),null===(n=t.get(o))||void 0===n||n.add(i)})),t},l=e=>{const t=Array.from(e.keys()).map((e=>({version:e,hash:o(e)}))),n=new Map;let r=i.length-1;return t.sort(((e,t)=>e.hash-t.hash)).forEach((t=>{if(/^(\w+-)?stable/.test(t.version)){r=(r+1)%i.length,n.set(t.version,i[r]);const a=Array.from(e.get(t.version)||[]).filter((e=>e!==t.version)).map((e=>({version:e,hash:o(e)}))),s=a.length;a.sort(((e,t)=>t.hash-e.hash)).forEach(((e,t)=>{const o=i[r],a=Math.max(100-t*(100/s),20),l=`${o}${Math.round(255*a/100).toString(16)}`;n.set(e.version,l)}))}else n.set(t.version,a)})),n},c=function(){return l(s(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]))}},30601:(e,t,n)=>{"use strict";n.d(t,{H:()=>r,X:()=>o});const r=e=>{let t=e;/\d{1,}-\d{1,}(-\d){0,}(-hotfix-\d{1,}(-\d{1,})?)?\.[0-9a-zA-Z]+$/.test(e)&&(t=t.replace(/(-hotfix-\d{1,}(-\d{1,})?)?\.[0-9a-zA-Z]+$/,""));return/\d{1,}-\d{1,}-\d{1,}-\d{1,}$/.test(e)&&(t=t.replace(/-\d{1,}$/,"")),t},o=e=>{const t=r(e);return/\d{1,}-\d{1,}-\d{1,}/.test(t)?t.replace(/-\d{1,}$/,""):t}},36767:(e,t)=>{"use strict";function n(e){function t(t,o,i,a){var s=o?n+t+e.e+o:n+t,l=s;if(i){var c=" "+l+e.m;for(var u in i)if(i.hasOwnProperty(u)){var d=i[u];!0===d?l+=c+u:d&&(l+=c+u+r+d)}}if(void 0!==a)for(var f=0,p=(a=Array.isArray(a)?a:[a]).length;f<p;f++){var h=a[f];if(h&&"string"==typeof h.valueOf())for(var m=h.valueOf().split(" "),g=0;g<m.length;g++){var v=m[g];v!==s&&(l+=" "+v)}}return l}var n=e.n||"",r=e.v||e.m;return function(e,n){return function(r,o,i){return"string"==typeof r?"string"==typeof o||Array.isArray(o)?t(e,r,void 0,o):t(e,r,o,i):t(e,n,r,o)}}}n({e:"-",m:"_"}),t.withNaming=n},5247:(e,t,n)=>{"use strict";e.exports=n(36767)},66857:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.STRICT=void 0,t.STRICT=!0},85688:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HTML5_INPUT_FORMATS=t.englishFormats=t.INVALID_DATE_STRING=t.DEFAULT_SYSTEM_DATE_FORMAT=void 0,t.DEFAULT_SYSTEM_DATE_FORMAT="YYYY-MM-DD",t.INVALID_DATE_STRING="Invalid Date",t.englishFormats={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t.HTML5_INPUT_FORMATS={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"}},20843:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(66857),t),o(n(85688),t),o(n(38346),t)},38346:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UtcTimeZone=void 0,t.UtcTimeZone="UTC"},79376:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.dateTimeUtc=t.dateTime=t.isDateTime=void 0;var i=n(20843),a=o(n(4796)),s=n(98507),l=n(14783),c=n(87116),u=n(59318),d=n(17935),f=n(71571),p=n(53228),h=Symbol("isDateTime"),m=function(){function e(e){this._weekInfo=null,this[h]=!0,this._timestamp=e.ts,this._locale=e.locale,this._timeZone=e.timeZone,this._offset=e.offset,this._c=(0,u.tsToObject)(e.ts,e.offset),this._localeData=e.localeData,this._isValid=e.isValid}return e.isDateTime=function(e){return"object"===typeof e&&e&&h in e&&!0===e[h]||!1},e.prototype.format=function(e){return this.isValid()?void 0===e&&0===this._offset?this.format("YYYY-MM-DDTHH:mm:ss[Z]"):(0,d.formatDate)(this,e,this._localeData):this._localeData.invalidDate||i.INVALID_DATE_STRING},e.prototype.toISOString=function(e){return e?new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",this.format("Z")):this.toDate().toISOString()},e.prototype.utcOffset=function(e,t){var n=void 0!==e&&null!==e;if(!this.isValid())return n?this:NaN;if(n){var r=void 0;if("string"===typeof e){if(null===(r=(0,u.offsetFromString)(e)))return this}else r=Math.abs(e)<16?60*e:e;var o=this.valueOf();return t&&(o-=60*(r-this._offset)*1e3),y({ts:o,timeZone:i.UtcTimeZone,offset:r,locale:this._locale})}return this._offset},e.prototype.timeZone=function(e,t){var n;if(void 0===e)return"system"===this._timeZone?(0,c.guessUserTimeZone)():this._timeZone;if(!this.isValid())return this;var r=(0,c.normalizeTimeZone)(e,l.settings.getDefaultTimeZone()),o=this.valueOf(),i=(0,c.timeZoneOffset)(r,o);return t&&(o+=60*this._offset*1e3,o=(n=(0,c.fixOffset)(o,i,r))[0],i=n[1]),y({ts:o,timeZone:r,offset:i,locale:this._locale})},e.prototype.add=function(e,t){return this.addSubtract(e,t,1)},e.prototype.subtract=function(e,t){return this.addSubtract(e,t,-1)},e.prototype.startOf=function(e){if(!this.isValid())return this;var t={},n=(0,u.normalizeComponent)(e);switch(n){case"year":case"quarter":t.month="quarter"===n?this.month()-this.month()%3:0;case"month":case"weekNumber":case"isoWeekNumber":t.date="weekNumber"===n?this.date()-this.weekday():"isoWeekNumber"===n?this.date()-(this.isoWeekday()-1):1;case"day":case"date":case"weekday":case"isoWeekday":case"dayOfYear":t.hour=0;case"hour":t.minute=0;case"minute":t.second=0;case"second":t.millisecond=0}return this.set(t)},e.prototype.endOf=function(e){var t;if(!this.isValid())return this;var n={},r=(0,u.normalizeComponent)(e);switch(r){case"year":case"quarter":n.month="quarter"===r?this.month()-this.month()%3+2:11;case"month":case"weekNumber":case"isoWeekNumber":n.date="weekNumber"===r?this.date()-this.weekday()+6:"isoWeekNumber"===r?this.date()-(this.isoWeekday()-1)+6:(0,u.daysInMonth)(this.year(),null!==(t=n.month)&&void 0!==t?t:this.month());case"day":case"date":case"weekday":case"isoWeekday":case"dayOfYear":n.hour=23;case"hour":n.minute=59;case"minute":n.second=59;case"second":n.millisecond=999}return this.set(n)},e.prototype.local=function(e){return this.timeZone("system",e)},e.prototype.valueOf=function(){return this.isValid()?this._timestamp:NaN},e.prototype.isSame=function(e,t){var n=b(e,"system")[0];return!(!this.isValid()||isNaN(n))&&(!this.isBefore(n,t)&&!this.isAfter(n,t))},e.prototype.isBefore=function(e,t){var n=b(e,"system")[0];if(!this.isValid()||isNaN(n))return!1;var r=(0,u.normalizeDurationUnit)(null!==t&&void 0!==t?t:"millisecond");return("milliseconds"===r?this.valueOf():this.endOf(r).valueOf())<n},e.prototype.isAfter=function(e,t){var n=b(e,"system")[0];if(!this.isValid()||isNaN(n))return!1;var r=(0,u.normalizeDurationUnit)(null!==t&&void 0!==t?t:"millisecond");return("milliseconds"===r?this.valueOf():this.startOf(r).valueOf())>n},e.prototype.isValid=function(){return this._isValid},e.prototype.diff=function(t,n,r){if(!this.isValid())return NaN;var o=e.isDateTime(t)?t.timeZone(this._timeZone):y({ts:b(t,"system")[0],timeZone:this._timeZone,locale:this._locale,offset:this._offset});if(!o.isValid())return NaN;var i=(0,u.normalizeDurationUnit)(n||"millisecond"),a=6e4*(o.utcOffset()-this.utcOffset()),s=0;switch(i){case"years":s=(0,u.monthDiff)(this,o)/12;break;case"quarters":s=(0,u.monthDiff)(this,o)/3;break;case"months":s=(0,u.monthDiff)(this,o);break;case"weeks":s=(this.valueOf()-o.valueOf()-a)/6048e5;break;case"days":s=(this.valueOf()-o.valueOf()-a)/864e5;break;case"hours":s=(this.valueOf()-o.valueOf())/36e5;break;case"minutes":s=(this.valueOf()-o.valueOf())/6e4;break;case"seconds":s=(this.valueOf()-o.valueOf())/1e3;break;default:s=this.valueOf()-o.valueOf()}return r?s:Math.floor(Math.abs(s))*Math.sign(s)||0},e.prototype.fromNow=function(e){return this.from(E({timeZone:this._timeZone,lang:this._locale}),e)},e.prototype.from=function(e,t){return this.isValid()?(0,p.fromTo)(this,e,this._localeData.relativeTime,t,!0):this._localeData.invalidDate||i.INVALID_DATE_STRING},e.prototype.locale=function(e){return e?this.isValid()?y({ts:this.valueOf(),timeZone:this._timeZone,offset:this._offset,locale:a.default.locale(e,void 0,!0)}):this:this._locale},e.prototype.toDate=function(){return new Date(this.valueOf())},e.prototype.unix=function(){return this.isValid()?Math.floor(this.valueOf()/1e3):NaN},e.prototype.utc=function(e){return this.timeZone(i.UtcTimeZone,e)},e.prototype.daysInMonth=function(){return this.isValid()?(0,u.daysInMonth)(this._c.year,this._c.month):NaN},e.prototype.set=function(e,t){var n,o;if(!this.isValid())return this;var a,s=this._c,l=(0,u.normalizeDateComponents)("object"===typeof e?e:((n={})[e]=t,n),u.normalizeComponent),d=void 0!==l.day||void 0!==l.weekNumber||void 0!==l.weekYear||void 0!==l.isoWeekNumber||void 0!==l.weekday||void 0!==l.isoWeekday||void 0!==l.isoWeekYear,f=void 0!==l.dayOfYear,p=void 0!==l.year,h=void 0!==l.month||void 0!==l.date;if(d&&(p||h||f))throw new Error("Can't mix weekYear/weekNumber units with year/month/day");if(f&&h)throw new Error("Can't mix day of year with month/day");if(d){var m=l.weekday,v=l.weekNumber,b=l.weekYear,w=l.isoWeekday,E=l.isoWeekNumber,_=l.isoWeekYear,x=l.day,S=void 0!==m||void 0!==v||void 0!==b;if(S&&(void 0!==w||void 0!==E||void 0!==_||void 0!==x))throw new Error("Can't mix local week with ISO week");var C=this.weekInfo();if(S){var k=g(this._localeData),O=k.minDaysInFirstWeek,T=k.startOfWeek,N={weekday:(null!==m&&void 0!==m?m:C.weekday)+1,weekNumber:null!==v&&void 0!==v?v:C.weekNumber,weekYear:null!==b&&void 0!==b?b:C.weekYear};a=r(r(r({},s),l),(0,u.weekToGregorian)(N,O,T))}else{N={weekday:null!==w&&void 0!==w?w:void 0===x?C.isoWeekday:x||7,weekNumber:null!==E&&void 0!==E?E:C.isoWeekNumber,weekYear:null!==_&&void 0!==_?_:C.isoWeekYear};a=r(r(r({},s),l),(0,u.weekToGregorian)(N,4,1))}}else f?a=r(r(r({},s),l),(0,u.uncomputeOrdinal)(r(r({ordinal:this.dayOfYear()},s),l))):(a=r(r({},s),l),void 0===l.date&&(a.date=Math.min((0,u.daysInMonth)(a.year,a.month),a.date)));var I=(0,u.objToTS)(a),P=this._offset;return this._timeZone===i.UtcTimeZone?I-=60*P*1e3:(I=(o=(0,c.fixOffset)(I,P,this._timeZone))[0],P=o[1]),y({ts:I,timeZone:this._timeZone,offset:P,locale:this._locale})},e.prototype.date=function(e){return"number"===typeof e?this.set("date",e):this.isValid()?this._c.date:NaN},e.prototype.month=function(e){return"number"===typeof e?this.set("month",e):this.isValid()?this._c.month:NaN},e.prototype.quarter=function(e){return"number"===typeof e?this.set("quarter",e):this.isValid()?Math.ceil((this._c.month+1)/3):NaN},e.prototype.year=function(e){return"number"===typeof e?this.set("year",e):this.isValid()?this._c.year:NaN},e.prototype.day=function(e){return"number"===typeof e?this.set("day",e):this.isValid()?this.weekInfo().day:NaN},e.prototype.isoWeekday=function(e){return"number"===typeof e?this.set("isoWeekday",e):this.isValid()?this.weekInfo().isoWeekday:NaN},e.prototype.hour=function(e){return"number"===typeof e?this.set("hour",e):this.isValid()?this._c.hour:NaN},e.prototype.minute=function(e){return"number"===typeof e?this.set("minute",e):this.isValid()?this._c.minute:NaN},e.prototype.second=function(e){return"number"===typeof e?this.set("second",e):this.isValid()?this._c.second:NaN},e.prototype.millisecond=function(e){return"number"===typeof e?this.set("millisecond",e):this.isValid()?this._c.millisecond:NaN},e.prototype.week=function(e){return"number"===typeof e?this.set("week",e):this.isValid()?this.weekInfo().weekNumber:NaN},e.prototype.weekYear=function(e){return"number"===typeof e?this.set("weekYear",e):this.isValid()?this.weekInfo().weekYear:NaN},e.prototype.weeksInYear=function(){var e=g(this._localeData),t=e.minDaysInFirstWeek,n=e.startOfWeek;return this.isValid()?(0,u.weeksInWeekYear)(this.year(),t,n):NaN},e.prototype.isoWeek=function(e){return"number"===typeof e?this.set("isoWeek",e):this.isValid()?this.weekInfo().isoWeekNumber:NaN},e.prototype.isoWeekYear=function(e){return"number"===typeof e?this.set("isoWeekYear",e):this.isValid()?this.weekInfo().isoWeekYear:NaN},e.prototype.isoWeeksInYear=function(){return this.isValid()?(0,u.weeksInWeekYear)(this.year(),4,1):NaN},e.prototype.weekday=function(e){return"number"===typeof e?this.set("weekday",e):this.isValid()?this.weekInfo().weekday:NaN},e.prototype.dayOfYear=function(e){return"number"===typeof e?this.set("dayOfYear",e):this.isValid()?(0,u.computeOrdinal)(this._c):NaN},e.prototype.toString=function(){return this.isValid()?this.toDate().toUTCString():this._localeData.invalidDate||i.INVALID_DATE_STRING},e.prototype.toJSON=function(){return this.isValid()?this.toISOString():null},e.prototype[Symbol.for("nodejs.util.inspect.custom")]=function(){return this.isValid()?"DateTime { ts: ".concat(this.toISOString(),", zone: ").concat(this.timeZone(),", offset: ").concat(this.utcOffset(),", locale: ").concat(this.locale()," }"):"DateTime { ".concat(i.INVALID_DATE_STRING," }")},e.prototype.addSubtract=function(e,t,n){var o;if(!this.isValid())return this;var a=this._timeZone,l=this.valueOf(),d=this._offset,f=(0,s.duration)(e,t),p=(0,u.tsToObject)(l,d),h=v(f.months()+3*f.quarters()+12*f.years()),m=v(f.days()+7*f.weeks()),g=f.milliseconds()+1e3*f.seconds()+60*f.minutes()*1e3+60*f.hours()*60*1e3;if(h||m){var b=p.month+n*h,w=Math.min(p.date,(0,u.daysInMonth)(p.year,b))+n*m;l=(0,u.objToTS)(r(r({},p),{month:b,date:w})),a===i.UtcTimeZone?l-=60*d*1e3:(l=(o=(0,c.fixOffset)(l,d,a))[0],d=o[1])}return g&&(l+=n*g,a!==i.UtcTimeZone&&(d=(0,c.timeZoneOffset)(a,l))),y({ts:l,timeZone:a,offset:d,locale:this._locale})},e.prototype.weekInfo=function(){if(!this._weekInfo){var e=g(this._localeData),t=e.startOfWeek,n=e.minDaysInFirstWeek;this._weekInfo=(0,u.gregorianToWeek)(this._c,n,t)}return this._weekInfo},e}();function g(e){return{startOfWeek:e.weekStart||7,minDaysInFirstWeek:e.yearStart||1}}function v(e){var t=Math.sign(e);return Math.round(t*e)*t}function y(e){var t=e.ts,n=e.timeZone,r=e.offset,o=e.locale||"en",i=a.default.Ls[o],s=!isNaN(Number(new Date(t)));return new m({ts:t,timeZone:n,offset:r,locale:o,localeData:i,isValid:s})}function b(e,t,n,r,o){var s,u,d,p;if(void 0===o&&(o=!1),w(e)||"number"===typeof e||e instanceof Date)d=Number(e);else if(null===e||void 0===e)d=Date.now();else if(Array.isArray(e))d=(s=(0,f.getTimestampFromArray)(e,t))[0],p=s[1];else if("object"===typeof e)d=(u=(0,f.getTimestampFromObject)(e,t))[0],p=u[1];else if(o)d=a.default.utc(e,n,i.STRICT).valueOf();else{var h=a.default.locale(r||l.settings.getLocale(),void 0,!0);d=(n?(0,a.default)(e,n,h,i.STRICT):(0,a.default)(e,void 0,h)).valueOf()}return[d,p=null!==p&&void 0!==p?p:(0,c.timeZoneOffset)(t,d)]}function w(e){return m.isDateTime(e)}function E(e){var t=e||{},n=t.input,r=t.format,o=t.timeZone,i=t.lang,s=(0,c.normalizeTimeZone)(o,l.settings.getDefaultTimeZone()),u=a.default.locale(i||l.settings.getLocale(),void 0,!0),d=b(n,s,r,i);return y({ts:d[0],timeZone:s,offset:d[1],locale:u})}t.isDateTime=w,t.dateTime=E,t.dateTimeUtc=function(e){var t=e||{},n=t.input,r=t.format,o=t.lang,s=a.default.locale(o||l.settings.getLocale(),void 0,!0);return y({ts:b(n,i.UtcTimeZone,r,o,!0)[0],timeZone:i.UtcTimeZone,offset:0,locale:s})}},17935:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatDate=t.FORMAT_DEFAULT=t.expandFormat=void 0;var r=n(20843),o=n(14783),i=n(87116);function a(e,t){var n;return void 0===t&&(t=null!==(n=o.settings.getLocaleData().formats)&&void 0!==n?n:r.englishFormats),e.replace(/(\[[^\]]*])|(LTS?|l{1,4}|L{1,4})/g,(function(e,n,o){if(o){if(o in r.englishFormats)return t[o]||r.englishFormats[o];var i=o.toUpperCase();return(t[i]||r.englishFormats[i]).replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}return n}))}t.expandFormat=a,t.FORMAT_DEFAULT="YYYY-MM-DDTHH:mm:ssZ";var s=/(\[[^[]*\])|([Hh]mm(ss)?|Mo|M{1,4}|Do|DDDo|D{1,4}|d{2,4}|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|Y{4,6}|YY?|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,l={};function c(e){return e.replace(/^\[([\s\S)]*)\]$/g,"$1")}function u(e){return e%12||12}function d(e){return e||24}function f(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r}function p(e){var t=e.date,n=e.format,r=e.data,o=e.index,i=e.fullData,a=e.maxLength,s="";if(r&&(s="function"===typeof r?r(t,n):r[o]),!s&&i&&(s="function"===typeof i?i(t,n):i[o])&&(s=s.slice(0,a)),s)return s;throw new Error("Invalid locale data")}function h(e,t,n){void 0===n&&(n=!1);var r=String(Math.abs(e)),o="";return e<0?o="-":n&&(o="+"),"".concat(o).concat(r.padStart(t,"0"))}t.formatDate=function(e,n,r){void 0===n&&(n=t.FORMAT_DEFAULT),void 0===r&&(r=o.settings.getLocaleData());var i=a(n,r.formats);return i.replace(s,(function(t){return l[t]?l[t](e,r,i):c(t)}))},l.Y=function(e){var t=e.year();return t<=9999?h(t,4):"+"+t},l.YY=function(e){return h(e.year()%100,2)},l.YYYY=function(e){return h(e.year(),4)},l.YYYYY=function(e){return h(e.year(),5)},l.YYYYYY=function(e){return h(e.year(),6,!0)},l.M=function(e){return"".concat(e.month()+1)},l.MM=function(e){return h(e.month()+1,2)},l.Mo=function(e,t){var n;return c("".concat(null===(n=t.ordinal)||void 0===n?void 0:n.call(t,e.month()+1,"M")))},l.MMM=function(e,t,n){var r=e.month();return p({date:e,format:n,data:t.monthsShort,index:r,fullData:t.months,maxLength:3})},l.MMMM=function(e,t,n){var r=e.month();return p({date:e,format:n,data:t.months,index:r})},l.w=function(e){return"".concat(e.week())},l.ww=function(e){return h(e.week(),2)},l.wo=function(e,t){var n;return c("".concat(null===(n=t.ordinal)||void 0===n?void 0:n.call(t,e.week(),"w")))},l.W=function(e){return"".concat(e.isoWeek())},l.WW=function(e){return h(e.isoWeek(),2)},l.Wo=function(e,t){var n;return c("".concat(null===(n=t.ordinal)||void 0===n?void 0:n.call(t,e.isoWeek(),"W")))},l.d=function(e){return"".concat(e.day())},l.do=function(e,t){var n;return c("".concat(null===(n=t.ordinal)||void 0===n?void 0:n.call(t,e.day(),"d")))},l.dd=function(e,t,n){var r=e.day();return p({date:e,format:n,data:t.weekdaysMin,index:r,fullData:t.weekdays,maxLength:2})},l.ddd=function(e,t,n){var r=e.day();return p({date:e,format:n,data:t.weekdaysShort,index:r,fullData:t.weekdays,maxLength:3})},l.dddd=function(e,t,n){var r=e.day();return p({date:e,format:n,data:t.weekdays,index:r})},l.e=function(e){return"".concat(e.weekday())},l.E=function(e){return"".concat(e.isoWeekday())},l.H=function(e){return"".concat(e.hour())},l.HH=function(e){return h(e.hour(),2)},l.h=function(e){return"".concat(u(e.hour()))},l.hh=function(e){return h(u(e.hour()),2)},l.k=function(e){return"".concat(d(e.hour()))},l.kk=function(e){return h(d(e.hour()),2)},l.hmm=function(e){return"".concat(u(e.hour())).concat(h(e.minute(),2))},l.hmmss=function(e){return"".concat(u(e.hour())).concat(h(e.minute(),2)).concat(h(e.second(),2))},l.Hmm=function(e){return"".concat(e.hour()).concat(h(e.minute(),2))},l.Hmmss=function(e){return"".concat(e.hour()).concat(h(e.minute(),2)).concat(h(e.second(),2))},l.a=function(e,t){return(t.meridiem||f)(e.hour(),e.minute(),!0)},l.A=function(e,t){return(t.meridiem||f)(e.hour(),e.minute(),!1)},l.Z=function(e){var t=e.utcOffset(),n="+";return t<0&&(t=-t,n="-"),"".concat(n).concat(h(~~(t/60),2),":").concat(h(~~t%60,2))},l.ZZ=function(e){var t=e.utcOffset(),n="+";return t<0&&(t=-t,n="-"),"".concat(n).concat(h(~~(t/60),2)).concat(h(~~t%60,2))},l.Q=function(e){return"".concat(e.quarter())},l.Qo=function(e,t){var n;return c("".concat(null===(n=t.ordinal)||void 0===n?void 0:n.call(t,e.quarter(),"Q")))},l.D=function(e){return"".concat(e.date())},l.DD=function(e){return h(e.date(),2)},l.Do=function(e,t){var n;return c("".concat(null===(n=t.ordinal)||void 0===n?void 0:n.call(t,e.date(),"D")))},l.m=function(e){return"".concat(e.minute())},l.mm=function(e){return h(e.minute(),2)},l.s=function(e){return"".concat(e.second())},l.ss=function(e){return h(e.second(),2)},l.S=function(e){return"".concat(~~(e.millisecond()/100))},l.SS=function(e){return"".concat(~~(e.millisecond()/10))},l.SSS=function(e){return h(e.millisecond(),3)},l.SSSS=function(e){return h(10*e.millisecond(),4)},l.SSSSS=function(e){return h(100*e.millisecond(),5)},l.SSSSSS=function(e){return h(1e3*e.millisecond(),6)},l.SSSSSSS=function(e){return h(1e4*e.millisecond(),7)},l.SSSSSSSS=function(e){return h(1e5*e.millisecond(),8)},l.SSSSSSSSS=function(e){return h(1e6*e.millisecond(),9)},l.x=function(e){return"".concat(e.valueOf())},l.X=function(e){return"".concat(e.unix())},l.z=function(e){return(0,i.parseZoneInfo)({ts:e.valueOf(),locale:e.locale(),timeZone:e.timeZone(),offsetFormat:"short"})},l.zz=function(e){return(0,i.parseZoneInfo)({ts:e.valueOf(),locale:e.locale(),timeZone:e.timeZone(),offsetFormat:"long"})},l.DDD=function(e){return"".concat(e.dayOfYear())},l.DDDD=function(e){return h(e.dayOfYear(),3)},l.DDDo=function(e,t){var n;return c("".concat(null===(n=t.ordinal)||void 0===n?void 0:n.call(t,e.dayOfYear(),"DDD")))},l.gg=function(e){return h(e.weekYear()%100,2)},l.gggg=function(e){return h(e.weekYear(),4)},l.ggggg=function(e){return h(e.weekYear(),5)},l.GG=function(e){return h(e.isoWeekYear()%100,2)},l.GGGG=function(e){return h(e.isoWeekYear(),4)},l.GGGGG=function(e){return h(e.isoWeekYear(),5)}},18916:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(79376),t),o(n(17935),t)},71571:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getTimestampFromObject=t.getTimestampFromArray=void 0;var r=n(87116),o=n(59318);t.getTimestampFromArray=function(e,t){if(0===e.length)return s({},t);var n=e.map(Number),r=n[0],o=n[1],i=void 0===o?0:o,a=n[2],l=void 0===a?1:a,c=n[3],u=void 0===c?0:c,d=n[4],f=void 0===d?0:d,p=n[5],h=void 0===p?0:p,m=n[6];return s({year:r,month:i,date:l,hour:u,minute:f,second:h,millisecond:void 0===m?0:m},t)};var i={year:1,month:1,date:1,hour:0,minute:0,second:0,millisecond:0},a=["year","month","date","hour","minute","second","millisecond"];function s(e,t){var n,s=(0,o.normalizeDateComponents)(e,o.normalizeComponent);s.date=null!==(n=s.day)&&void 0!==n?n:s.date;for(var l=(0,o.tsToObject)(Date.now(),(0,r.timeZoneOffset)(t,Date.now())),c=!1,u=0,d=a;u<d.length;u++){var f=d[u];void 0!==s[f]?c=!0:s[f]=c?i[f]:l[f]}var p=(0,r.fixOffset)((0,o.objToTS)(s),(0,r.timeZoneOffset)(t,Date.now()),t);return[p[0],p[1]]}t.getTimestampFromObject=s},53228:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fromTo=void 0;var r=n(79376),o=[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",r:1/0,d:"year"}],i={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};t.fromTo=function(e,t,n,a,s){void 0===n&&(n=i),void 0===a&&(a=!1),void 0===s&&(s=!0);for(var l,c=0,u="",d=0;d<o.length;d+=1){var f=o[d];f.d&&(c=s?e.diff(t,f.d,!0):(0,r.dateTime)({input:t}).diff(e,f.d,!0));var p=Math.round(Math.abs(c));if(l=c>0,p<=f.r){p<=1&&d>0&&(f=o[d-1]);var h=n[f.l];u="string"===typeof h?h.replace("%d","".concat(p)):h(p,a,f.l,l);break}}if(a)return u;var m=l?n.future:n.past;return"function"===typeof m?m(u):m.replace("%s",u)}},43104:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseDateMath=t.parse=t.isLikeRelative=void 0;var r=n(18916),o=["y","Q","M","w","d","h","m","s"];function i(e,t,n){for(var r=e.replace(/\s/g,""),i=t,a=0,s=r.length;a<s;){var l=r.charAt(a++),c=void 0,u=void 0;if("/"===l)c=0;else if("+"===l)c=1;else{if("-"!==l)return;c=2}if(isNaN(parseInt(r.charAt(a),10)))u=1;else if(2===r.length)u=parseInt(r.charAt(a),10);else{for(var d=a;!isNaN(parseInt(r.charAt(a),10));)if(++a>10)return;u=parseInt(r.substring(d,a),10)}if(0===c&&1!==u)return;var f=r.charAt(a++);if(!o.includes(f))return;0===c?i=n?i.endOf(f):i.startOf(f):1===c?i=i.add(u,f):2===c&&(i=i.subtract(u,f))}return i}t.isLikeRelative=function(e){return e.startsWith("now")},t.parse=function(e,t){if(void 0===t&&(t={}),e){var n,o,a,s=t.roundUp,l=t.timeZone,c="";if("now"===e.substring(0,3)?(n=(0,r.dateTime)({timeZone:l}),c=e.substring("now".length)):(-1===(o=e.indexOf("||"))?(a=e,c=""):(a=e.substring(0,o),c=e.substring(o+2)),n=(0,r.dateTime)({input:a,timeZone:l})),n.isValid())return c.length?i(c,n,s):n}},t.parseDateMath=i},97553:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(43104),t)},4796:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(22877)),i=r(n(52703)),a=r(n(1035)),s=r(n(54591)),l=n(20843);o.default.extend(i.default),o.default.extend(s.default),o.default.extend(a.default),o.default.Ls.en.formats=l.englishFormats,t.default=o.default},48132:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createDuration=void 0;var r=n(39232),o=n(46808),i=n(90390),a=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9]+)(?:[.,]([0-9]+)?)?S)?)?$/;function s(e){var t=e?parseFloat(e.replace(",",".")):0;return isNaN(t)?0:t}t.createDuration=function(e,t,n){void 0===n&&(n={});var l={},c=null,u=(t&&"object"===typeof t?t:n).lang,d="string"===typeof t?t:"milliseconds";if((0,o.isDuration)(e))return e;if(isNaN(Number(e)))if("string"===typeof e&&(c=a.exec(e))){var f="-"===c[1]?-1:1,p=c[8]&&"-"===c[8][0]?-1:1;l=(0,i.removeZeros)({y:s(c[2])*f,M:s(c[3])*f,w:s(c[4])*f,d:s(c[5])*f,h:s(c[6])*f,m:s(c[7])*f,s:s(c[8])*f,ms:Math.floor(1e3*s(c[9]?"0.".concat(c[9]):c[9]))*p*f})}else{if(!e||"object"!==typeof e)throw new Error("Unknown duration: ".concat(e));l=e}else l[d]=Number(e);return new o.DurationImpl({values:(0,r.normalizeDateComponents)(l,r.normalizeDurationUnit),locale:u})}},46808:function(e,t,n){"use strict";var r,o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},o.apply(this,arguments)},i=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.isDuration=t.DurationImpl=void 0;var a=n(18916),s=n(14783),l=n(59318),c=n(55353),u=n(48132),d=n(90390),f=Symbol("isDuration"),p=function(){function e(e){this[r]=!0,this._values=e.values,this._locale=e.locale||s.settings.getLocale(),this._isValid=e.isValid||!0}return e.isDuration=function(e){return"object"===typeof e&&e&&f in e&&!0===e[f]||!1},e.prototype.get=function(e){if(!this.isValid())return NaN;var t=(0,l.normalizeDurationUnit)(e);return this._values[t]||0},e.prototype.set=function(t){return this.isValid()?new e({values:o(o({},this._values),(0,l.normalizeDateComponents)(t,l.normalizeDurationUnit)),locale:this._locale}):this},e.prototype.as=function(e){if(!this.isValid())return NaN;var t=(0,l.normalizeDurationUnit)(e),n=this.days()+7*this.weeks()+this.hours()/24+this.minutes()/1440+this.seconds()/86400,r=this.months()+3*this.quarters()+12*this.years(),o=this.milliseconds();if("months"===t||"quarters"===t||"years"===t){var i=r+function(e){return 4800*e/146097}(n+o/864e5);switch(t){case"months":return i;case"quarters":return i/3;case"years":return i/12}}var a=n+function(e){return 146097*e/4800}(r);switch(t){case"weeks":return a/7+o/6048e5;case"days":return a+o/864e5;case"hours":return 24*a+o/36e5;case"minutes":return 1440*a+o/6e4;case"seconds":return 86400*a+o/1e3;case"milliseconds":return Math.floor(864e5*a)+o;default:throw new Error("Unknown unit "+t)}},e.prototype.milliseconds=function(){return this.isValid()?this._values.milliseconds||0:NaN},e.prototype.asMilliseconds=function(){return this.as("milliseconds")},e.prototype.seconds=function(){return this.isValid()?this._values.seconds||0:NaN},e.prototype.asSeconds=function(){return this.as("seconds")},e.prototype.minutes=function(){return this.isValid()?this._values.minutes||0:NaN},e.prototype.asMinutes=function(){return this.as("minutes")},e.prototype.hours=function(){return this.isValid()?this._values.hours||0:NaN},e.prototype.asHours=function(){return this.as("hours")},e.prototype.days=function(){return this.isValid()?this._values.days||0:NaN},e.prototype.asDays=function(){return this.as("days")},e.prototype.weeks=function(){return this.isValid()?this._values.weeks||0:NaN},e.prototype.asWeeks=function(){return this.as("weeks")},e.prototype.months=function(){return this.isValid()?this._values.months||0:NaN},e.prototype.asMonths=function(){return this.as("months")},e.prototype.quarters=function(){return this.isValid()?this._values.quarters||0:NaN},e.prototype.asQuarters=function(){return this.as("quarters")},e.prototype.years=function(){return this.isValid()?this._values.years||0:NaN},e.prototype.asYears=function(){return this.as("years")},e.prototype.add=function(t,n){if(!this.isValid())return this;for(var r=this.toObject(),o=(0,u.createDuration)(t,n).toObject(),i=0,a=Object.entries(o);i<a.length;i++){var s=a[i],l=s[0],c=s[1],d=l;r[d]=(r[d]||0)+c}return new e({values:r,locale:this._locale})},e.prototype.subtract=function(e,t){var n=(0,u.createDuration)(e,t).negate();return this.add(n)},e.prototype.negate=function(){for(var t={},n=0,r=Object.entries(this._values);n<r.length;n++){var o=r[n],i=o[0],a=o[1];t[i]=a?-a:0}return new e({values:t,locale:this._locale})},e.prototype.normalize=function(t){return this.isValid()?new e({values:(0,d.normalizeValues)(this._values,t),locale:this._locale}):this},e.prototype.shiftTo=function(t,n){if(!this.isValid())return this;var r=t.map((function(e){return(0,l.normalizeDurationUnit)(e)}));return new e({values:(0,d.shiftTo)(this._values,r,n),locale:this._locale})},e.prototype.rescale=function(t){return this.isValid()?new e({values:(0,d.rescale)(this._values,t),locale:this._locale}):this},e.prototype.toISOString=function(){if(!this.isValid())return"Invalid Duration";var e="P";return 0!==this.years()&&(e+=this.years()+"Y"),0===this.months()&&0===this.quarters()||(e+=this.months()+3*this.quarters()+"M"),0!==this.weeks()&&(e+=this.weeks()+"W"),0!==this.days()&&(e+=this.days()+"D"),0===this.hours()&&0===this.minutes()&&0===this.seconds()&&0===this.milliseconds()||(e+="T"),0!==this.hours()&&(e+=this.hours()+"H"),0!==this.minutes()&&(e+=this.minutes()+"M"),0===this.seconds()&&0===this.milliseconds()||(e+=Math.round(1e3*this.seconds()+this.milliseconds())/1e3+"S"),"P"===e&&(e+="T0S"),e},e.prototype.toJSON=function(){return this.toISOString()},e.prototype.toObject=function(){return this.isValid()?o({},this._values):{}},e.prototype.toString=function(){return this.toISOString()},e.prototype.valueOf=function(){return this.asMilliseconds()},e.prototype[(r=f,Symbol.for("nodejs.util.inspect.custom"))]=function(){return this.isValid()?"Duration { values: ".concat(JSON.stringify(this._values)," }"):"Duration { Invalid Duration }"},e.prototype.humanize=function(e){if(!this.isValid())return"Invalid Duration";var t=(0,a.dateTimeUtc)({lang:this._locale});return t.add(this.valueOf(),"ms").from(t,!e)},e.prototype.humanizeIntl=function(e){var t=this;if(void 0===e&&(e={}),!this.isValid())return"Invalid Duration";var n=d.orderedUnits.map((function(n){var r=t._values[n];return void 0===r?null:(0,c.getNumberFormat)(t._locale,o(o({style:"unit",unitDisplay:"long"},e),{unit:n.slice(0,-1)})).format(r)})).filter(Boolean);return(0,c.getListFormat)(this._locale,{type:"conjunction",style:e.listStyle||"narrow"}).format(n)},e.prototype.format=function(e,t){if(void 0===t&&(t={}),!this.isValid())return"Invalid Duration";for(var n,r=/(\[[^[]*\])|y+|M+|w+|d+|h+|m+|s+|S+|./g,a=[],s=[];n=r.exec(e);){var l=n[0],u=n[1],d=h(l[0]);d?(a.push({literal:!1,padTo:l.length,unit:d}),s.push(d)):u?a.push({literal:!0,value:u.slice(1,-1)}):a.push({literal:!0,value:l})}for(var f=this.shiftTo(s),p="",m=t.floor,g=void 0===m||m,v=t.forceSimple,y=i(t,["floor","forceSimple"]),b=!v||Object.keys(y).length>0,w=0,E=a;w<E.length;w++){var _=E[w];if(_.literal)p+=_.value;else{var x=f.get(_.unit);if(b){var S=(0,c.getNumberFormat)(this._locale,o(o({useGrouping:!1},y),{minimumIntegerDigits:_.padTo})),C=g?Math.floor(x):x;p+=S.format(C)}else{C=g?Math.floor(x):Math.round(1e3*x)/1e3;p+="".concat(C<0?"-":"").concat(Math.abs(C).toString().padStart(_.padTo,"0"))}}}return p},e.prototype.isValid=function(){return this._isValid},e.prototype.locale=function(t){return t?new e({values:this._values,locale:t}):this._locale},e}();function h(e){switch(e[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}}t.DurationImpl=p,t.isDuration=function(e){return p.isDuration(e)}},98507:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isDuration=t.duration=void 0;var r=n(48132);Object.defineProperty(t,"duration",{enumerable:!0,get:function(){return r.createDuration}});var o=n(46808);Object.defineProperty(t,"isDuration",{enumerable:!0,get:function(){return o.isDuration}})},90390:function(e,t){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.rescale=t.shiftTo=t.removeZeros=t.normalizeValues=t.orderedUnits=void 0;var r=365.2425,o=30.436875,i=n({years:{quarters:4,months:12,weeks:52.1775,days:r,hours:8765.82,minutes:525949.2,seconds:525949.2*60,milliseconds:525949.2*60*1e3},quarters:{months:3,weeks:13.044375,days:91.310625,hours:2191.455,minutes:131487.3,seconds:525949.2*60/4,milliseconds:7889237999.999999},months:{weeks:4.3481250000000005,days:o,hours:730.485,minutes:43829.1,seconds:2629746,milliseconds:2629746e3}},{weeks:{days:7,hours:168,minutes:10080,seconds:604800,milliseconds:6048e5},days:{hours:24,minutes:1440,seconds:86400,milliseconds:864e5},hours:{minutes:60,seconds:3600,milliseconds:36e5},minutes:{seconds:60,milliseconds:6e4},seconds:{milliseconds:1e3}});t.orderedUnits=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"];var a=t.orderedUnits.slice(0).reverse();function s(e,r){for(var o,s,l,c,u,d,f,p=(void 0===r?{}:r).roundUp,h=n({},e),m=function(e){for(var t,n=null!==(t=e.milliseconds)&&void 0!==t?t:0,r=0,o=a.slice(1);r<o.length;r++){var s=o[r],l=e[s];l&&(n+=l*i[s].milliseconds)}return n}(e)<0?-1:1,g=null,v=0;v<a.length;v++){if(void 0!==h[E=a[v]]&&null!==h[E])if(g){var y=(null!==(o=h[g])&&void 0!==o?o:0)*m,b=i[E][g],w=Math.floor(y/b);h[E]=(null!==(s=h[E])&&void 0!==s?s:0)+w*m,h[g]=(null!==(l=h[g])&&void 0!==l?l:0)-w*b*m,g=E}else g=E}g=null;for(v=0;v<t.orderedUnits.length;v++){var E;if(void 0!==h[E=t.orderedUnits[v]]&&null!==h[E])if(g){var _=(null!==(c=h[g])&&void 0!==c?c:0)%1;h[g]=(null!==(u=h[g])&&void 0!==u?u:0)-_,h[E]=(null!==(d=h[E])&&void 0!==d?d:0)+_*i[g][E],g=E}else g=E}return p&&g&&h[g]&&(h[g]=Math.round(null!==(f=h[g])&&void 0!==f?f:0)),h}function l(e){for(var t={},n=0,r=Object.entries(e);n<r.length;n++){var o=r[n],i=o[0],a=o[1];0!==a&&(t[i]=a)}return t}function c(e,n,r){var o;if(!n.length)return e;for(var a,l={},c={},u=0,d=t.orderedUnits;u<d.length;u++){var f=d[u];if(n.includes(f)){a=f;for(var p=0,h=0,m=Object.keys(c);h<m.length;h++){var g=m[h];p+=i[g][f]*c[g],c[g]=0}(x=e[f])&&(p+=x);var v=Math.trunc(p);l[f]=v,c[f]=(1e3*p-1e3*v)/1e3}else e[f]&&(c[f]=e[f])}if(a){for(var y=0,b=Object.entries(c);y<b.length;y++){var w=b[y],E=w[0],_=w[1];0!==_&&(l[a]=(null!==(o=l[a])&&void 0!==o?o:0)+(E===a?_:_/i[a][E]))}var x;(x=l[a])&&(l[a]=Math.round(1e3*x)/1e3)}return s(l,r)}t.normalizeValues=s,t.removeZeros=l,t.shiftTo=c,t.rescale=function(e,t){return l(c(s(e),["years","months","weeks","days","hours","minutes","seconds","milliseconds"],t))}},396:(e,t,n)=>{"use strict";t.x9=t.m3=t.KN=t.JY=t.J=t._u=t.CQ=void 0,n(14783).settings;var r=n(18916);Object.defineProperty(t,"CQ",{enumerable:!0,get:function(){return r.dateTime}}),Object.defineProperty(t,"_u",{enumerable:!0,get:function(){return r.expandFormat}});var o=n(97553);var i=n(77757);Object.defineProperty(t,"J",{enumerable:!0,get:function(){return i.dateTimeParse}}),Object.defineProperty(t,"JY",{enumerable:!0,get:function(){return i.isValid}}),Object.defineProperty(t,"KN",{enumerable:!0,get:function(){return i.isLikeRelative}});var a=n(87116);Object.defineProperty(t,"m3",{enumerable:!0,get:function(){return a.getTimeZonesList}});var s=n(20843);var l=n(98507);Object.defineProperty(t,"x9",{enumerable:!0,get:function(){return l.duration}})},77757:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(4093),t)},4093:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isValid=t.dateTimeParse=t.isLikeRelative=void 0;var r=n(18916),o=n(14783);function i(e){return"string"===typeof e&&o.settings.getRelativeParser().isLikeRelative(e)}t.isLikeRelative=i;t.dateTimeParse=function(e,t){if(e){var n=function(e,t){var n;if(i(e)){if(null!==(n=null===t||void 0===t?void 0:t.allowRelative)&&void 0!==n&&!n)return;return o.settings.getRelativeParser().parse(e,t)}var a=t||{},s=a.format,l=a.lang,c=(0,r.dateTime)({input:e,format:s,lang:l,timeZone:null===t||void 0===t?void 0:t.timeZone});return c.isValid()?c:void 0}(e,t);return n}},t.isValid=function(e){if((0,r.isDateTime)(e))return e.isValid();var n=(0,t.dateTimeParse)(e,{allowRelative:!0});return!!n&&n.isValid()}},14783:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(82936),t)},24033:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.localeLoaders=void 0,t.localeLoaders={af:function(){return n.e(6392).then(n.t.bind(n,46392,23))},am:function(){return n.e(4618).then(n.t.bind(n,24618,23))},"ar-dz":function(){return n.e(704).then(n.t.bind(n,704,23))},"ar-iq":function(){return n.e(515).then(n.t.bind(n,60515,23))},"ar-kw":function(){return n.e(8858).then(n.t.bind(n,48858,23))},"ar-ly":function(){return n.e(6887).then(n.t.bind(n,96887,23))},"ar-ma":function(){return n.e(4848).then(n.t.bind(n,94848,23))},"ar-sa":function(){return n.e(4198).then(n.t.bind(n,34198,23))},"ar-tn":function(){return n.e(620).then(n.t.bind(n,20620,23))},ar:function(){return n.e(9204).then(n.t.bind(n,89204,23))},az:function(){return n.e(1736).then(n.t.bind(n,11736,23))},be:function(){return n.e(8747).then(n.t.bind(n,38747,23))},bg:function(){return n.e(1528).then(n.t.bind(n,31528,23))},bi:function(){return n.e(6877).then(n.t.bind(n,36877,23))},bm:function(){return n.e(4814).then(n.t.bind(n,34814,23))},"bn-bd":function(){return n.e(202).then(n.t.bind(n,10202,23))},bn:function(){return n.e(9280).then(n.t.bind(n,9280,23))},bo:function(){return n.e(5863).then(n.t.bind(n,65863,23))},br:function(){return n.e(6058).then(n.t.bind(n,46058,23))},bs:function(){return n.e(632).then(n.t.bind(n,70632,23))},ca:function(){return n.e(7202).then(n.t.bind(n,47202,23))},cs:function(){return n.e(7999).then(n.t.bind(n,47999,23))},cv:function(){return n.e(2367).then(n.t.bind(n,52367,23))},cy:function(){return n.e(5373).then(n.t.bind(n,45373,23))},da:function(){return n.e(6393).then(n.t.bind(n,66393,23))},"de-at":function(){return n.e(5448).then(n.t.bind(n,45448,23))},"de-ch":function(){return n.e(6679).then(n.t.bind(n,96679,23))},de:function(){return n.e(4132).then(n.t.bind(n,84132,23))},dv:function(){return n.e(9219).then(n.t.bind(n,29219,23))},el:function(){return n.e(556).then(n.t.bind(n,20556,23))},"en-au":function(){return n.e(8850).then(n.t.bind(n,98850,23))},"en-ca":function(){return n.e(9297).then(n.t.bind(n,29297,23))},"en-gb":function(){return n.e(3630).then(n.t.bind(n,63630,23))},"en-ie":function(){return n.e(3231).then(n.t.bind(n,83231,23))},"en-il":function(){return n.e(6815).then(n.t.bind(n,6815,23))},"en-in":function(){return n.e(2620).then(n.t.bind(n,12620,23))},"en-nz":function(){return n.e(6961).then(n.t.bind(n,96961,23))},"en-sg":function(){return n.e(7257).then(n.t.bind(n,7257,23))},"en-tt":function(){return n.e(8702).then(n.t.bind(n,58702,23))},en:function(){return n.e(3304).then(n.t.bind(n,73304,23))},eo:function(){return n.e(1508).then(n.t.bind(n,11508,23))},"es-do":function(){return n.e(3271).then(n.t.bind(n,53271,23))},"es-mx":function(){return n.e(30).then(n.t.bind(n,50030,23))},"es-pr":function(){return n.e(5117).then(n.t.bind(n,85117,23))},"es-us":function(){return n.e(5387).then(n.t.bind(n,95387,23))},es:function(){return n.e(5670).then(n.t.bind(n,5670,23))},et:function(){return n.e(7388).then(n.t.bind(n,27388,23))},eu:function(){return n.e(3333).then(n.t.bind(n,3333,23))},fa:function(){return n.e(1278).then(n.t.bind(n,61278,23))},fi:function(){return n.e(178).then(n.t.bind(n,10178,23))},fo:function(){return n.e(6892).then(n.t.bind(n,46892,23))},"fr-ca":function(){return n.e(2229).then(n.t.bind(n,62229,23))},"fr-ch":function(){return n.e(4326).then(n.t.bind(n,94326,23))},fr:function(){return n.e(7276).then(n.t.bind(n,97276,23))},fy:function(){return n.e(7803).then(n.t.bind(n,67803,23))},ga:function(){return n.e(5720).then(n.t.bind(n,85720,23))},gd:function(){return n.e(6954).then(n.t.bind(n,6954,23))},gl:function(){return n.e(9413).then(n.t.bind(n,19413,23))},"gom-latn":function(){return n.e(3945).then(n.t.bind(n,53945,23))},gu:function(){return n.e(2981).then(n.t.bind(n,72981,23))},he:function(){return n.e(1150).then(n.t.bind(n,11150,23))},hi:function(){return n.e(3926).then(n.t.bind(n,3926,23))},hr:function(){return n.e(5643).then(n.t.bind(n,45643,23))},ht:function(){return n.e(5161).then(n.t.bind(n,25161,23))},hu:function(){return n.e(2238).then(n.t.bind(n,42238,23))},"hy-am":function(){return n.e(8133).then(n.t.bind(n,18133,23))},id:function(){return n.e(4949).then(n.t.bind(n,84949,23))},is:function(){return n.e(383).then(n.t.bind(n,20383,23))},"it-ch":function(){return n.e(2701).then(n.t.bind(n,32701,23))},it:function(){return n.e(3645).then(n.t.bind(n,73645,23))},ja:function(){return n.e(2677).then(n.t.bind(n,92677,23))},jv:function(){return n.e(2477).then(n.t.bind(n,22477,23))},ka:function(){return n.e(5399).then(n.t.bind(n,45399,23))},kk:function(){return n.e(4985).then(n.t.bind(n,34985,23))},km:function(){return n.e(674).then(n.t.bind(n,10674,23))},kn:function(){return n.e(9207).then(n.t.bind(n,89207,23))},ko:function(){return n.e(7779).then(n.t.bind(n,77779,23))},ku:function(){return n.e(1148).then(n.t.bind(n,61148,23))},ky:function(){return n.e(8011).then(n.t.bind(n,8011,23))},lb:function(){return n.e(96).then(n.t.bind(n,80096,23))},lo:function(){return n.e(8167).then(n.t.bind(n,68167,23))},lt:function(){return n.e(4347).then(n.t.bind(n,64347,23))},lv:function(){return n.e(2223).then(n.t.bind(n,62223,23))},me:function(){return n.e(2033).then(n.t.bind(n,2033,23))},mi:function(){return n.e(8695).then(n.t.bind(n,68695,23))},mk:function(){return n.e(8140).then(n.t.bind(n,18140,23))},ml:function(){return n.e(6227).then(n.t.bind(n,36227,23))},mn:function(){return n.e(148).then(n.t.bind(n,50148,23))},mr:function(){return n.e(9572).then(n.t.bind(n,59572,23))},"ms-my":function(){return n.e(1179).then(n.t.bind(n,81179,23))},ms:function(){return n.e(1746).then(n.t.bind(n,81746,23))},mt:function(){return n.e(3466).then(n.t.bind(n,33466,23))},my:function(){return n.e(4684).then(n.t.bind(n,44684,23))},nb:function(){return n.e(5226).then(n.t.bind(n,45226,23))},ne:function(){return n.e(115).then(n.t.bind(n,50115,23))},"nl-be":function(){return n.e(4964).then(n.t.bind(n,14964,23))},nl:function(){return n.e(1869).then(n.t.bind(n,11869,23))},nn:function(){return n.e(9917).then(n.t.bind(n,59917,23))},"oc-lnc":function(){return n.e(163).then(n.t.bind(n,51343,23))},"pa-in":function(){return n.e(3025).then(n.t.bind(n,73025,23))},pl:function(){return n.e(6156).then(n.t.bind(n,26156,23))},"pt-br":function(){return n.e(6361).then(n.t.bind(n,56361,23))},pt:function(){return n.e(4663).then(n.t.bind(n,74663,23))},rn:function(){return n.e(7992).then(n.t.bind(n,17992,23))},ro:function(){return n.e(3756).then(n.t.bind(n,83756,23))},ru:function(){return n.e(678).then(n.t.bind(n,40678,23))},rw:function(){return n.e(436).then(n.t.bind(n,75643,23))},sd:function(){return n.e(5112).then(n.t.bind(n,5112,23))},se:function(){return n.e(9555).then(n.t.bind(n,49555,23))},si:function(){return n.e(5809).then(n.t.bind(n,25809,23))},sk:function(){return n.e(5450).then(n.t.bind(n,95450,23))},sl:function(){return n.e(5491).then(n.t.bind(n,75491,23))},sq:function(){return n.e(8591).then(n.t.bind(n,98591,23))},"sr-cyrl":function(){return n.e(7016).then(n.t.bind(n,77016,23))},sr:function(){return n.e(9308).then(n.t.bind(n,69308,23))},ss:function(){return n.e(9411).then(n.t.bind(n,99411,23))},"sv-fi":function(){return n.e(6521).then(n.t.bind(n,86521,23))},sv:function(){return n.e(4159).then(n.t.bind(n,14159,23))},sw:function(){return n.e(9528).then(n.t.bind(n,99528,23))},ta:function(){return n.e(4826).then(n.t.bind(n,14826,23))},te:function(){return n.e(5352).then(n.t.bind(n,45352,23))},tet:function(){return n.e(9292).then(n.t.bind(n,49292,23))},tg:function(){return n.e(7684).then(n.t.bind(n,77684,23))},th:function(){return n.e(9212).then(n.t.bind(n,89212,23))},tk:function(){return n.e(6065).then(n.t.bind(n,16065,23))},"tl-ph":function(){return n.e(5341).then(n.t.bind(n,45341,23))},tlh:function(){return n.e(4583).then(n.t.bind(n,4583,23))},tr:function(){return n.e(3920).then(n.t.bind(n,33920,23))},tzl:function(){return n.e(7119).then(n.t.bind(n,97119,23))},"tzm-latn":function(){return n.e(6144).then(n.t.bind(n,36144,23))},tzm:function(){return n.e(1350).then(n.t.bind(n,31350,23))},"ug-cn":function(){return n.e(2590).then(n.t.bind(n,92590,23))},uk:function(){return n.e(6291).then(n.t.bind(n,26291,23))},ur:function(){return n.e(3397).then(n.t.bind(n,53397,23))},"uz-latn":function(){return n.e(1168).then(n.t.bind(n,51168,23))},uz:function(){return n.e(8853).then(n.t.bind(n,8853,23))},vi:function(){return n.e(4535).then(n.t.bind(n,44535,23))},"x-pseudo":function(){return n.e(9101).then(n.t.bind(n,79101,23))},yo:function(){return n.e(2986).then(n.t.bind(n,42986,23))},"zh-cn":function(){return n.e(4080).then(n.t.bind(n,4080,23))},"zh-hk":function(){return n.e(3898).then(n.t.bind(n,73898,23))},"zh-tw":function(){return n.e(1616).then(n.t.bind(n,33739,23))},zh:function(){return n.e(7522).then(n.t.bind(n,87522,23))}}},82936:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(t){i(t)}}function s(e){try{l(r.throw(e))}catch(t){i(t)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(l){s=[6,l],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.settings=void 0;var a=i(n(63585)),s=n(97553),l=i(n(4796)),c=n(87116),u=n(24033),d=function(){function e(){this.loadedLocales=new Set(["en"]),this.defaultLocale="en",this.defaultTimeZone="system",this.parser={parse:s.parse,isLikeRelative:s.isLikeRelative},this.updateLocale({weekStart:1,yearStart:1})}return e.prototype.loadLocale=function(e){return r(this,void 0,void 0,(function(){var t;return o(this,(function(n){switch(n.label){case 0:if(this.isLocaleLoaded(e))return[3,4];n.label=1;case 1:return n.trys.push([1,3,,4]),t=e.toLocaleLowerCase(),[4,(0,u.localeLoaders[t])()];case 2:return n.sent(),this.loadedLocales.add(t),[3,4];case 3:throw n.sent(),new Error("Can't load locale \"".concat(e,'". Either it does not exist, or there was a connection problem. Check the dayjs locations list: https://github.com/iamkun/dayjs/tree/dev/src/locale'));case 4:return[2]}}))}))},e.prototype.getLocale=function(){return this.defaultLocale},e.prototype.getLocaleData=function(){var e=l.default.Ls,t=e[this.getLocale()];if(t||(t=e.en),!t)throw new Error("There is something really wrong happening. Locale data is absent.");return(0,a.default)(t)},e.prototype.setLocale=function(e){if(!this.isLocaleLoaded(e))throw new Error('Seems you are trying to set an unloaded locale "'.concat(e,"\". Load it first by calling settings.loadLocale('").concat(e,"'). Check the dayjs locations list: https://github.com/iamkun/dayjs/tree/dev/src/locale"));this.defaultLocale=e},e.prototype.updateLocale=function(e){var t=this.getLocale();l.default.updateLocale(t,e)},e.prototype.setDefaultTimeZone=function(e){this.defaultTimeZone=(0,c.normalizeTimeZone)(e,"system")},e.prototype.getDefaultTimeZone=function(){return this.defaultTimeZone},e.prototype.setRelativeParser=function(e){this.parser=e},e.prototype.getRelativeParser=function(){return this.parser},e.prototype.isLocaleLoaded=function(e){var t=e.toLocaleLowerCase();return this.loadedLocales.has(t)},e}();t.settings=new d},87116:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(94693),t)},94693:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.parseZoneInfo=t.fixOffset=t.normalizeTimeZone=t.timeZoneOffset=t.isValidTimeZone=t.getTimeZonesList=t.guessUserTimeZone=void 0;var o=n(20843),i=n(55353);t.guessUserTimeZone=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone};t.getTimeZonesList=function(){var e;return(null===(e=Intl.supportedValuesOf)||void 0===e?void 0:e.call(Intl,"timeZone"))||[]};var a={};function s(e){if(!e)return!1;if(Object.prototype.hasOwnProperty.call(a,e))return a[e];try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),a[e]=!0,!0}catch(t){return a[e]=!1,!1}}t.isValidTimeZone=s;var l=["year","month","day","hour","minute","second","era"];function c(e,t){var n=new Date(t);if(isNaN(n.valueOf())||"system"!==e&&!s(e))return NaN;if("system"===e)return-n.getTimezoneOffset()||0;for(var r,o={year:1,month:1,day:1,hour:0,minute:0,second:0,era:"AD"},a=0,c=(0,i.getDateTimeFormat)("en-US",{hour12:!1,timeZone:"system"===e?void 0:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"}).formatToParts(n);a<c.length;a++){var u=c[a],d=u.type,f=u.value;"era"===d?o.era=f:(r=d,l.includes(r)&&(o[d]=parseInt(f,10)))}var p="BC"===o.era?1-Math.abs(o.year):o.year,h=o.month-1,m=24===o.hour?0:o.hour,g=Date.UTC(p,h,o.day,m,o.minute,o.second,0);if(p<100&&p>=0){var v=new Date(g);v.setUTCFullYear(p,h,o.day),g=v.valueOf()}var y=n.valueOf(),b=y%1e3;return(g-(y-=b>=0?b:1e3+b))/6e4}function u(e,t){if(void 0===e||null===e)return t;var n=e.toLowerCase();if("utc"===n||"gmt"===n)return o.UtcTimeZone;if("system"===n)return"system";if("default"===n)return t;if(s(e))return e;throw new Error("InvalidZone: ".concat(e))}t.timeZoneOffset=c,t.normalizeTimeZone=u,t.fixOffset=function(e,t,n){var r=e-60*t*1e3,o=c(n,r);if(t===o)return[r,t];var i=c(n,r-=60*(o-t)*1e3);return o===i?[r,o]:[e-60*Math.min(o,i)*1e3,Math.min(o,i)]},t.parseZoneInfo=function(e){var t=e.timeZone,n=e.ts,o=e.locale,i=e.offsetFormat,a=new Date(n),s={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};t&&(s.timeZone=u(t,t));var l=r({timeZoneName:i},s),c=new Intl.DateTimeFormat(o,l).formatToParts(a).find((function(e){return"timezonename"===e.type.toLowerCase()}));return c?c.value:""}},59318:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(39232),t)},55353:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getNumberFormat=t.getListFormat=t.getDateTimeFormat=void 0;var n=new Map;t.getDateTimeFormat=function(e,t){void 0===t&&(t={});var r=JSON.stringify([e,t]),o=n.get(r);return o||(o=new Intl.DateTimeFormat(e,t),n.set(r,o)),o};var r=new Map;t.getListFormat=function(e,t){void 0===t&&(t={});var n=JSON.stringify([e,t]),o=r.get(n);return o||(o=new Intl.ListFormat(e,t),r.set(n,o)),o};var o=new Map;t.getNumberFormat=function(e,t){void 0===t&&(t={});var n=JSON.stringify([e,t]),r=o.get(n);return r||(r=new Intl.NumberFormat(e,t),o.set(n,r)),r}},39232:(e,t)=>{"use strict";function n(e,t){return e-t*Math.floor(e/t)}function r(e){return e%4===0&&(e%100!==0||e%400===0)}function o(e){return r(e)?366:365}Object.defineProperty(t,"__esModule",{value:!0}),t.monthDiff=t.weekToGregorian=t.weeksInWeekYear=t.gregorianToWeek=t.isoWeekdayToLocal=t.uncomputeOrdinal=t.computeOrdinal=t.offsetFromString=t.normalizeDateComponents=t.normalizeComponent=t.normalizeDurationUnit=t.objToTS=t.tsToObject=t.daysInMonth=t.daysInYear=t.isLeapYear=t.floorMod=void 0,t.floorMod=n,t.isLeapYear=r,t.daysInYear=o,t.daysInMonth=function(e,t){var o=n(t,12);return 1===o?r(e+(t-o)/12)?29:28:[31,-1,31,30,31,30,31,31,30,31,30,31][o]},t.tsToObject=function(e,t){var n=new Date(e+60*t*1e3);return{year:n.getUTCFullYear(),month:n.getUTCMonth(),date:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}},t.objToTS=function(e){var t=Date.UTC(e.year,e.month,e.date,e.hour,e.minute,e.second,e.millisecond);if(e.year<100&&e.year>=0){var n=new Date(t);return n.setUTCFullYear(e.year,e.month,e.date),n.valueOf()}return t};var i={y:"years",year:"years",years:"years",Q:"quarters",quarter:"quarters",quarters:"quarters",M:"months",month:"months",months:"months",w:"weeks",week:"weeks",weeks:"weeks",d:"days",day:"days",days:"days",h:"hours",hour:"hours",hours:"hours",m:"minutes",minute:"minutes",minutes:"minutes",s:"seconds",second:"seconds",seconds:"seconds",ms:"milliseconds",millisecond:"milliseconds",milliseconds:"milliseconds"};t.normalizeDurationUnit=function(e){var t=["d","D","m","M","w","W","E","Q"].includes(e)?e:e.toLowerCase();if(t in i)return i[t];throw new Error("Invalid unit ".concat(e))};var a={y:"year",year:"year",years:"year",M:"month",month:"month",months:"month",D:"date",date:"date",dates:"date",h:"hour",hour:"hour",hours:"hour",m:"minute",minute:"minute",minutes:"minute",Q:"quarter",quarter:"quarter",quarters:"quarter",s:"second",second:"second",seconds:"second",ms:"millisecond",millisecond:"millisecond",milliseconds:"millisecond",d:"day",day:"day",days:"day",weeknumber:"weekNumber",w:"weekNumber",week:"weekNumber",weeks:"weekNumber",isoweeknumber:"isoWeekNumber",W:"isoWeekNumber",isoweek:"isoWeekNumber",isoweeks:"isoWeekNumber",E:"isoWeekday",isoweekday:"isoWeekday",isoweekdays:"isoWeekday",weekday:"weekday",weekdays:"weekday",e:"weekday",dayOfYear:"dayOfYear",dayOfYears:"dayOfYear",DDD:"dayOfYear",weekyear:"weekYear",isoweekyear:"isoWeekYear"};function s(e){var t=Number(e);if("boolean"===typeof e||""===e||Number.isNaN(t))throw new Error("Invalid unit value ".concat(e));return t}t.normalizeComponent=function(e){var t=["d","D","m","M","w","W","e","E","Q"].includes(e)?e:e.toLowerCase();if(t in a)return a[t];throw new Error("Invalid unit ".concat(e))},t.normalizeDateComponents=function(e,t){for(var n={},r=0,o=Object.entries(e);r<o.length;r++){var i=o[r],a=i[0],l=i[1];void 0!==l&&null!==l&&(n[t(a)]=s(l))}return n};var l=/Z|[+-]\d\d(?::?\d\d)?/gi,c=/([+-]|\d\d)/gi;function u(e,t,n){var r=new Date(Date.UTC(e,t,n));return e<100&&e>=0&&r.setUTCFullYear(r.getUTCFullYear()-1900),r.getUTCDay()}function d(e,t,n){var r=u(e,t,n);return 0===r?7:r}t.offsetFromString=function(e){var t=(e||"").match(l);if(null===t)return null;var n=t[t.length-1]||"",r=String(n).match(c)||["-",0,0],o=r[0],i=r[1],a=r[2],s=Number(60*Number(i))+(isFinite(Number(a))?Number(a):0);return"+"===o?s:-s};var f=[0,31,59,90,120,151,181,212,243,273,304,334],p=[0,31,60,91,121,152,182,213,244,274,305,335];function h(e){var t=e.year,n=e.month;return e.date+(r(t)?p:f)[n]}function m(e){var t=e.year,n=e.ordinal,o=r(t)?p:f,i=o.findIndex((function(e){return e<n}));return{month:i,date:n-o[i]}}function g(e,t){return(e-t+7)%7+1}function v(e,t,n){var r,o=e.year,i=e.month,a=e.date,s=g(d(o,i,a),n),l=h({year:o,month:i,date:a}),c=Math.floor((l-s+14-t)/7);return c<1?c=b(r=o-1,t,n):c>b(o,t,n)?(r=o+1,c=1):r=o,{weekYear:r,weekNumber:c,weekday:s}}function y(e,t,n){return-g(d(e,0,t),n)+t-1}function b(e,t,n){void 0===t&&(t=4),void 0===n&&(n=1);var r=y(e,t,n),i=y(e+1,t,n);return(o(e)-r+i)/7}t.computeOrdinal=h,t.uncomputeOrdinal=m,t.isoWeekdayToLocal=g,t.gregorianToWeek=function(e,t,n){var r=u(e.year,e.month,e.date),o=v(e,t,n),i=o.weekYear,a=o.weekNumber,s=o.weekday,l=v(e,4,1);return{day:r,weekYear:i,weekNumber:a,weekday:s-1,isoWeekYear:l.weekYear,isoWeekNumber:l.weekNumber,isoWeekday:l.weekday}},t.weeksInWeekYear=b,t.weekToGregorian=function(e,t,n){var r,i=e.weekYear,a=e.weekNumber,s=e.weekday,l=g(d(i,0,t),n),c=o(i),u=7*a+s-l-7+t;u<1?u+=o(r=i-1):u>c?(r=i+1,u-=o(i)):r=i;var f=m({year:r,ordinal:u});return{year:r,month:f.month,date:f.date}},t.monthDiff=function e(t,n){if(t.date()<n.date())return-e(n,t);var r,o=12*(n.year()-t.year())+(n.month()-t.month()),i=t.add(o,"months");if(n.valueOf()-i.valueOf()<0){var a=t.add(o-1,"months");r=(n.valueOf()-i.valueOf())/(i.valueOf()-a.valueOf())}else{a=t.add(o+1,"months");r=(n.valueOf()-i.valueOf())/(a.valueOf()-i.valueOf())}return-(o+r)||0}},31329:(e,t,n)=>{"use strict";n.d(t,{mb:()=>u});const r=/{{(.*?)}}/g;const o={EmptyKeyset:"EMPTY_KEYSET",EmptyLanguageData:"EMPTY_LANGUAGE_DATA",KeysetNotFound:"KEYSET_NOT_FOUND",MissingKey:"MISSING_KEY",MissingKeyFor0:"MISSING_KEY_FOR_0",MissingKeyParamsCount:"MISSING_KEY_PARAMS_COUNT",MissingKeyPlurals:"MISSING_KEY_PLURALS",NoLanguageData:"NO_LANGUAGE_DATA"};Object.values(o);function i(e){const{code:t,fallbackLang:n,lang:r}=e;let i=`Using language ${r}. `;switch(t){case o.EmptyKeyset:i+="Keyset is empty.";break;case o.EmptyLanguageData:i+="Language data is empty.";break;case o.KeysetNotFound:i+="Keyset not found.";break;case o.MissingKey:i+="Missing key.";break;case o.MissingKeyFor0:return i+="Missing key for 0",i;case o.MissingKeyParamsCount:i+="Missing params.count for key.";break;case o.MissingKeyPlurals:i+="Missing required plurals.";break;case o.NoLanguageData:i=`Language "${r}" is not defined, make sure you call setLang for the same language you called registerKeysets for!`}return n&&(i+=` Trying to use fallback language "${n}"...`),i}var a;function s(e,t){return 0===e?t.None:1===e||-1===e?t.One:t.Many}function l(e,t){const n=Math.abs(e%10),r=Math.abs(e%100);return 0===e?t.None:1===n&&11!==r?t.One:n>1&&n<5&&(r<10||r>20)?t.Few:t.Many}function c(e){let{value:t,count:n,lang:r,pluralizers:o,log:i,key:s}=e;if(!Array.isArray(t))return function(e,t,n){if(e.zero&&0===t)return e.zero;if(!Intl.PluralRules)throw new Error("Intl.PluralRules is not available. Use polyfill.");const r=new Intl.PluralRules(n).select(t);return"other"===r&&"undefined"===typeof e.other?e.many||e.few:e[r]||e.other}(t,n,r)||s;if(!o)return i("Can not use deprecated plural format without pluralizers"),s;if(o[r]||i(`Pluralization is not configured for language '${r}', falling back to the english ruleset`),t.length<3)return i("Missing required plurals"),s;const l=o[r]||o.en;return l?t[l(n,a)]||t[a.Many]||s:(i("Fallback pluralization is not configured!"),s)}!function(e){e[e.One=0]="One",e[e.Few=1]="Few",e[e.Many=2]="Many",e[e.None=3]="None"}(a||(a={}));class u{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.data={},this.pluralizers={en:s,ru:l},this.logger=null;const{data:t,fallbackLang:n,lang:r,logger:o=null}=e;this.fallbackLang=n,this.lang=r,this.logger=o,t&&Object.entries(t).forEach((e=>{let[t,n]=e;this.registerKeysets(t,n)}))}setLang(e){this.lang=e}setFallbackLang(e){this.fallbackLang=e}configurePluralization(e){this.pluralizers=Object.assign({},this.pluralizers,e)}registerKeyset(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=this.data[e]&&Object.prototype.hasOwnProperty.call(this.data[e],t);if(r)throw new Error(`Keyset '${t}' is already registered, aborting!`);r&&this.warn(`Keyset '${t}' is already registered.`),this.data[e]=Object.assign({},this.data[e],{[t]:n})}registerKeysets(e,t){Object.keys(t).forEach((n=>{this.registerKeyset(e,n,t[n])}))}has(e,t,n){var r;const o=this.getLanguageData(n);return Boolean(o&&o[e]&&(null===(r=o[e])||void 0===r?void 0:r[t]))}i18n(e,t,n){if(!this.lang&&!this.fallbackLang)throw new Error('Language is not specified. You should set at least one of these: "lang", "fallbackLang"');let r,o;if(this.lang){if(({text:r,details:o}=this.getTranslationData({keysetName:e,key:t,params:n,lang:this.lang})),o){const e=i({code:o.code,lang:this.lang,fallbackLang:this.fallbackLang===this.lang?void 0:this.fallbackLang});this.warn(e,o.keysetName,o.key)}}else this.warn("Target language is not specified.");if(void 0===r&&this.fallbackLang&&this.fallbackLang!==this.lang&&(({text:r,details:o}=this.getTranslationData({keysetName:e,key:t,params:n,lang:this.fallbackLang})),o)){const e=i({code:o.code,lang:this.fallbackLang});this.warn(e,o.keysetName,o.key)}return null!==r&&void 0!==r?r:t}keyset(e){return(t,n)=>this.i18n(e,t,n)}warn(e,t,n){var r;let o="";t?(o+=t,n&&(o+=`.${n}`)):o="languageData",null===(r=this.logger)||void 0===r||r.log(`I18n: ${e}`,{level:"info",logger:o,extra:{type:"i18n"}})}getLanguageData(e){const t=e||this.lang;return t?this.data[t]:void 0}getTranslationData(e){const{lang:t,key:n,keysetName:i,params:a}=e,s=this.getLanguageData(t);if("undefined"===typeof s)return{details:{code:o.NoLanguageData}};if(0===Object.keys(s).length)return{details:{code:o.EmptyLanguageData}};const l=s[i];if(!l)return{details:{code:o.KeysetNotFound,keysetName:i}};if(0===Object.keys(l).length)return{details:{code:o.EmptyKeyset,keysetName:i}};const u=l&&l[n],d={};if(void 0===u)return{details:{code:o.MissingKey,keysetName:i,key:n}};if("string"!==typeof u){const e=Number(null===a||void 0===a?void 0:a.count);if(Number.isNaN(e))return{details:{code:o.MissingKeyParamsCount,keysetName:i,key:n}};d.text=c({key:n,value:u,count:e,lang:this.lang||"en",pluralizers:this.pluralizers,log:e=>this.warn(e,i,n)})}else d.text=u;return a&&(d.text=function(e,t){let n,o="",i=r.lastIndex=0;for(;n=r.exec(e);){i!==n.index&&(o+=e.slice(i,n.index)),i=r.lastIndex;const[a,s]=n;s&&Object.prototype.hasOwnProperty.call(t,s)?o+=t[s]:o+=a}return i<e.length&&(o+=e.slice(i)),o}(d.text,a)),d}}},39683:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(68963);const o=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M10 1.5A.75.75 0 0 0 10 3h1.94L6.97 7.97a.75.75 0 0 0 1.06 1.06L13 4.06V6a.75.75 0 0 0 1.5 0V2.25a.75.75 0 0 0-.75-.75H10ZM7.5 3.25a.75.75 0 0 0-.75-.75H4.5a3 3 0 0 0-3 3v6a3 3 0 0 0 3 3h6a3 3 0 0 0 3-3V9.25a.75.75 0 0 0-1.5 0v2.25a1.5 1.5 0 0 1-1.5 1.5h-6A1.5 1.5 0 0 1 3 11.5v-6A1.5 1.5 0 0 1 4.5 4h2.25a.75.75 0 0 0 .75-.75Z",clipRule:"evenodd"}))},57542:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(68963);const o=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M2.97 5.47a.75.75 0 0 1 1.06 0L8 9.44l3.97-3.97a.75.75 0 1 1 1.06 1.06l-4.5 4.5a.75.75 0 0 1-1.06 0l-4.5-4.5a.75.75 0 0 1 0-1.06Z",clipRule:"evenodd"}))},30755:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(68963);const o=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M10.53 2.97a.75.75 0 0 1 0 1.06L6.56 8l3.97 3.97a.75.75 0 1 1-1.06 1.06l-4.5-4.5a.75.75 0 0 1 0-1.06l4.5-4.5a.75.75 0 0 1 1.06 0Z",clipRule:"evenodd"}))},44821:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(68963);const o=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M5.47 13.03a.75.75 0 0 1 0-1.06L9.44 8 5.47 4.03a.75.75 0 0 1 1.06-1.06l4.5 4.5a.75.75 0 0 1 0 1.06l-4.5 4.5a.75.75 0 0 1-1.06 0Z",clipRule:"evenodd"}))},96261:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(68963);const o=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M13.5 8a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0ZM15 8A7 7 0 1 1 1 8a7 7 0 0 1 14 0Zm-3.9-1.55a.75.75 0 1 0-1.2-.9L7.419 8.858 6.03 7.47a.75.75 0 0 0-1.06 1.06l2 2a.75.75 0 0 0 1.13-.08l3-4Z",clipRule:"evenodd"}))},68010:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(68963);const o=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 13.5a5.5 5.5 0 1 0 0-11 5.5 5.5 0 0 0 0 11ZM8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14Zm1-9.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0Zm-.25 3a.75.75 0 0 0-1.5 0V11a.75.75 0 0 0 1.5 0V8.5Z",clipRule:"evenodd"}))},32257:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(68963);const o=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 13.5a5.5 5.5 0 1 0 0-11 5.5 5.5 0 0 0 0 11ZM8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14ZM6.44 4.54c.43-.354.994-.565 1.56-.565 1.217 0 2.34.82 2.34 2.14 0 .377-.079.745-.298 1.1-.208.339-.513.614-.875.867-.217.153-.326.257-.379.328-.038.052-.038.07-.038.089a.75.75 0 0 1-1.5 0c0-.794.544-1.286 1.057-1.645.28-.196.4-.332.458-.426a.543.543 0 0 0 .074-.312c0-.3-.243-.641-.839-.641a.997.997 0 0 0-.608.223c-.167.138-.231.287-.231.418a.75.75 0 1 1-1.5 0c0-.674.345-1.22.78-1.577ZM8 12a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z",clipRule:"evenodd"}))},98409:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(68963);const o=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M3 9.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3ZM9.5 8a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Zm5 0a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Z",clipRule:"evenodd"}))},21645:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(68963);const o=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("g",{clipPath:"url(#a)"},r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M7.199 2H8.8a.2.2 0 0 1 .2.2c0 1.808 1.958 2.939 3.524 2.034a.199.199 0 0 1 .271.073l.802 1.388a.199.199 0 0 1-.073.272c-1.566.904-1.566 3.164 0 4.069a.199.199 0 0 1 .073.271l-.802 1.388a.199.199 0 0 1-.271.073C10.958 10.863 9 11.993 9 13.8a.2.2 0 0 1-.199.2H7.2a.199.199 0 0 1-.2-.2c0-1.808-1.958-2.938-3.524-2.034a.199.199 0 0 1-.272-.073l-.8-1.388a.199.199 0 0 1 .072-.271c1.566-.905 1.566-3.165 0-4.07a.199.199 0 0 1-.073-.271l.801-1.388a.199.199 0 0 1 .272-.073C5.042 5.138 7 4.007 7 2.2c0-.11.089-.199.199-.199ZM5.5 2.2c0-.94.76-1.7 1.699-1.7H8.8c.94 0 1.7.76 1.7 1.7a.85.85 0 0 0 1.274.735 1.699 1.699 0 0 1 2.32.622l.802 1.388c.469.813.19 1.851-.622 2.32a.85.85 0 0 0 0 1.472 1.7 1.7 0 0 1 .622 2.32l-.802 1.388a1.699 1.699 0 0 1-2.32.622.85.85 0 0 0-1.274.735c0 .939-.76 1.7-1.699 1.7H7.2a1.7 1.7 0 0 1-1.699-1.7.85.85 0 0 0-1.274-.735 1.698 1.698 0 0 1-2.32-.622l-.802-1.388a1.699 1.699 0 0 1 .622-2.32.85.85 0 0 0 0-1.471 1.699 1.699 0 0 1-.622-2.321l.801-1.388a1.699 1.699 0 0 1 2.32-.622A.85.85 0 0 0 5.5 2.2Zm4 5.8a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0ZM11 8a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z",clipRule:"evenodd"})),r.createElement("defs",null,r.createElement("clipPath",{id:"a"},r.createElement("path",{fill:"currentColor",d:"M0 0h16v16H0z"}))))},20397:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(68963);const o=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M7 3a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0ZM5.5 9.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Zm5 0a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Zm0-5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3ZM7 13a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Zm3.5 1.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z",clipRule:"evenodd"}))},3442:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(68963);const o=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"m7.835 6 .76-2.027L9.336 2H5.5a.716.716 0 0 0-.664.45L2.513 8.257a.177.177 0 0 0 .164.243h4.965l-.732 2.013-1.082 2.975a.382.382 0 0 0 .637.392l6.956-7.391A.29.29 0 0 0 13.21 6H7.835Zm1.558-4.154ZM10.563 3l.235-.627A1.386 1.386 0 0 0 9.5.5h-4c-.906 0-1.72.552-2.057 1.393L1.12 7.7A1.677 1.677 0 0 0 2.677 10H5.5l-.545 1.5-.537 1.475a1.882 1.882 0 0 0 3.14 1.933l6.956-7.391A1.79 1.79 0 0 0 13.21 4.5H10l.563-1.5Z",clipRule:"evenodd"}))},93316:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(68963);const o=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M7.134 2.994 2.217 11.5a1 1 0 0 0 .866 1.5h9.834a1 1 0 0 0 .866-1.5L8.866 2.993a1 1 0 0 0-1.732 0Zm3.03-.75c-.962-1.665-3.366-1.665-4.328 0L.919 10.749c-.964 1.666.239 3.751 2.164 3.751h9.834c1.925 0 3.128-2.085 2.164-3.751l-4.917-8.505ZM8 5a.75.75 0 0 1 .75.75v2a.75.75 0 0 1-1.5 0v-2A.75.75 0 0 1 8 5Zm1 5.75a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z",clipRule:"evenodd"}))},77280:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(68963);const o=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M3.47 3.47a.75.75 0 0 1 1.06 0L8 6.94l3.47-3.47a.75.75 0 1 1 1.06 1.06L9.06 8l3.47 3.47a.75.75 0 1 1-1.06 1.06L8 9.06l-3.47 3.47a.75.75 0 0 1-1.06-1.06L6.94 8 3.47 4.53a.75.75 0 0 1 0-1.06Z",clipRule:"evenodd"}))},5718:(e,t,n)=>{"use strict";n.d(t,{N:()=>o,b:()=>i});var r=n(5247);const o="gn-";(0,r.withNaming)({e:"__",m:"_"});const i=(0,r.withNaming)({n:o,e:"__",m:"_"})},5687:(e,t,n)=>{"use strict";n.d(t,{d:()=>Z});var r="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:"undefined"!==typeof self?self:{};var o=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},i="object"==typeof r&&r&&r.Object===Object&&r,a="object"==typeof self&&self&&self.Object===Object&&self,s=i||a||Function("return this")(),l=s,c=function(){return l.Date.now()},u=/\s/;var d=function(e){for(var t=e.length;t--&&u.test(e.charAt(t)););return t},f=/^\s+/;var p=function(e){return e?e.slice(0,d(e)+1).replace(f,""):e},h=s.Symbol,m=h,g=Object.prototype,v=g.hasOwnProperty,y=g.toString,b=m?m.toStringTag:void 0;var w=function(e){var t=v.call(e,b),n=e[b];try{e[b]=void 0;var r=!0}catch(i){}var o=y.call(e);return r&&(t?e[b]=n:delete e[b]),o},E=Object.prototype.toString;var _=w,x=function(e){return E.call(e)},S="[object Null]",C="[object Undefined]",k=h?h.toStringTag:void 0;var O=function(e){return null==e?void 0===e?C:S:k&&k in Object(e)?_(e):x(e)},T=function(e){return null!=e&&"object"==typeof e},N="[object Symbol]";var I=p,P=o,R=function(e){return"symbol"==typeof e||T(e)&&O(e)==N},D=NaN,A=/^[-+]0x[0-9a-f]+$/i,j=/^0b[01]+$/i,M=/^0o[0-7]+$/i,L=parseInt;var z=o,F=c,B=function(e){if("number"==typeof e)return e;if(R(e))return D;if(P(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=P(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=I(e);var n=j.test(e);return n||M.test(e)?L(e.slice(2),n?2:8):A.test(e)?D:+e},U="Expected a function",q=Math.max,$=Math.min;var Z=function(e,t,n){var r,o,i,a,s,l,c=0,u=!1,d=!1,f=!0;if("function"!=typeof e)throw new TypeError(U);function p(t){var n=r,i=o;return r=o=void 0,c=t,a=e.apply(i,n)}function h(e){var n=e-l;return void 0===l||n>=t||n<0||d&&e-c>=i}function m(){var e=F();if(h(e))return g(e);s=setTimeout(m,function(e){var n=t-(e-l);return d?$(n,i-(e-c)):n}(e))}function g(e){return s=void 0,f&&r?p(e):(r=o=void 0,a)}function v(){var e=F(),n=h(e);if(r=arguments,o=this,l=e,n){if(void 0===s)return function(e){return c=e,s=setTimeout(m,t),u?p(e):a}(l);if(d)return clearTimeout(s),s=setTimeout(m,t),p(l)}return void 0===s&&(s=setTimeout(m,t)),a}return t=B(t)||0,z(n)&&(u=!!n.leading,i=(d="maxWait"in n)?q(B(n.maxWait)||0,t):i,f="trailing"in n?!!n.trailing:f),v.cancel=function(){void 0!==s&&clearTimeout(s),c=0,r=l=o=s=void 0},v.flush=function(){return void 0===s?a:g(F())},v}},50528:(e,t,n)=>{"use strict";n.d(t,{b:()=>r});const r=(0,n(5718).b)("aside-header")},81413:(e,t,n)=>{"use strict";n.d(t,{RL:()=>i,dv:()=>a,hA:()=>l,hr:()=>o,oc:()=>u,pX:()=>s,qA:()=>c,zE:()=>r});const r=1,o=-1,i="left",a="center",s="right",l="fixed",c="moving",u="__index__"},19812:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>D});var r=n(95097),o=n(68963),i=n(83570),a=n.n(i),s=n(5247),l=n(81413);const c=(0,s.withNaming)({e:"__",m:"_"})("data-table");function u(e,t){let{name:n,defaultOrder:o}=e,{sortOrder:i={},sortColumns:a=[]}=t,s=arguments.length>2&&void 0!==arguments[2]&&arguments[2],{defaultOrder:c,disableSortReset:u}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const d=o||c,f={sortOrder:{},sortColumns:[]};if(!n)return s?{sortOrder:i,sortColumns:a}:f;let p=a;const h=i[n];let m=d;if(h&&(m=h===d||u?h===l.zE?l.hr:l.zE:void 0),!s)return m?{sortOrder:{[n]:m},sortColumns:[n]}:f;const g=i,v=n,y=(g[v],(0,r._T)(g,["symbol"===typeof v?v:v+""]));return m?(y[n]=m,new Set(a).has(n)||(p=[...a,n])):p=a.filter((e=>e!==n)),{sortOrder:y,sortColumns:p}}function d(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=t,{sortAscending:o}=e;return"function"===typeof o?(e,t)=>r*o(e,t):(t,o)=>{const i=e._getSortValue(t.row),a=e._getSortValue(o.row);return null==i&&null!=a?n.nullBeforeNumbers?-r:1:null==a&&null!=i?n.nullBeforeNumbers?r:-1:i<a?Number(-r):i>a?Number(r):0}}function f(e,t,n,r){let{sortOrder:o,sortColumns:i}=n;const a={};t.forEach((e=>{o[e.name]?a[e.name]=d(e,o[e.name],r):e.group&&e.autogroup&&(a[e.name]=d(e,l.zE,r))}));const s=t.filter((e=>e.group)),c=s.length>0,u=[...s.map((e=>a[e.name])).filter(Boolean),...i.map((e=>a[e])).filter(Boolean)],f=e.map(((e,t)=>c?{row:e,index:t,span:{}}:{row:e,index:t}));if(u.length&&!r.externalSort&&f.sort(((e,t)=>{let n=0;return u.some((r=>(n=r(e,t),Boolean(n)))),n||e.index-t.index})),f.length>1&&c){const e=[],t=[];f.forEach((n=>{s.every(((r,o)=>{const i=r._getValue(n.row);return e[o]&&i===t[o]?(e[o].span[r.name]+=1,n.span[r.name]=0,!0):(s.slice(o).forEach(((r,i)=>{e[o+i]=n,t[o+i]=r._getValue(n.row),n.span[r.name]=1})),!1)}))}))}return f}function p(e,t){return(Array.isArray(e)?e:[e]).reduce(((e,n)=>{let{columnId:r,order:o}=n;return u({name:r,defaultOrder:o},e,!0,t)}),{sortOrder:{},sortColumns:[]})}function h(e){let{getColumn:t,columnIndex:n,columnId:r,minWidth:i,maxWidth:a,onResize:s}=e;const l=o.useRef(null),[u,d]=o.useState(!1);return o.useEffect((()=>{const e=l.current;if(!e)return;let o,c,u;const f=function(e){let t,n=null;return function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];t=o,"number"!==typeof n&&(n=requestAnimationFrame((()=>{e(...t),n=null})))}}((e=>{if(m(e),"number"!==typeof o||"number"!==typeof c)return;const t=e.clientX-o,n=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:40,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0;return Math.max(t,Math.min(e,n))}(c+t,i,a);n!==u&&(u=n,null===s||void 0===s||s(r,u))})),p=e=>{m(e),void 0!==u&&(null===s||void 0===s||s(r,u)),d(!1),o=void 0,document.removeEventListener("mousemove",f),document.removeEventListener("mouseup",p)},h=e=>{var r;c=null===(r=t(n))||void 0===r?void 0:r.getBoundingClientRect().width,m(e),o=e.clientX,d(!0),document.addEventListener("mousemove",f),document.addEventListener("mouseup",p)};return e.addEventListener("mousedown",h),()=>{e.removeEventListener("mousedown",h),document.removeEventListener("mousemove",f),document.removeEventListener("mouseup",p)}}),[r,s,i,a,t,n]),o.createElement("span",{ref:l,className:c("resize-handler",{resizing:u}),onClick:e=>m(e)})}function m(e){e.preventDefault(),e.stopPropagation()}const g=function(){const e=document.createElement("a").style;return e.cssText="position:sticky; position:-webkit-sticky;",-1!==e.position.indexOf("sticky")}(),v={getSrcElement:()=>null,onHeightChange:()=>{}};class y{constructor(e){this.prevHeight=0,this.params=v,this.checkAndUpdateHeight=()=>{this.node?requestAnimationFrame((()=>{const e=this.node;e?this.updateHeight(e.offsetHeight):this.updateHeight(0)})):this.updateHeight(0)},this.params=Object.assign({},e)}destroy(){this.updateHeight(0),this.params=v}get node(){return this.params.getSrcElement()}updateHeight(e){this.prevHeight!==e&&(this.prevHeight=e,this.params.onHeightChange(e))}}const b=o.createElement("svg",{className:c("icon"),viewBox:"0 0 10 6",width:"10",height:"6"},o.createElement("path",{fill:"currentColor",d:"M0 5h10l-5 -5z"})),w=o.createElement("svg",{className:c("icon"),viewBox:"0 0 10 6",width:"10",height:"6"},o.createElement("path",{fill:"currentColor",d:"M0 1h10l-5 5z"})),E={ICON_ASC:b,ICON_DESC:w};const _=e=>{let{sortOrder:t,sortIndex:n,sortable:r,defaultOrder:i}=e;return r?o.createElement("span",{className:c("sort-icon",{shadow:!t}),"data-index":n},function(e){switch(e){case l.zE:return E.ICON_ASC;case l.hr:return E.ICON_DESC;default:return!1}}(t||i)):null};class x extends o.PureComponent{constructor(){super(...arguments),this.onClick=e=>{if(this.props.onClick){const{row:t,index:n}=this.props;this.props.onClick(t,n,e)}}}render(){const{className:e,columns:t,row:n,index:r,odd:i,footer:a,span:s,getColSpansOfRow:l,headerData:u}=this.props,d=l?l(this.props):void 0;let f=0;return o.createElement("tr",{className:c("row",{odd:i,footer:a,"header-data":u},e),onClick:this.onClick},t.map(((e,t)=>{if(d){if(--f>0)return null;d[e.name]>1&&(f=d[e.name])}let i;if(s){if(0===s[e.name])return null;i=s[e.name]}const l=e._getValue(n);let c=e.customStyle({row:n,index:r,name:e.name,header:!1,footer:a,headerData:u});return e.resizeable&&(c=Object.assign(Object.assign({},c),{width:e.width,maxWidth:e.width})),o.createElement("td",{key:t,className:e._className,title:e._getTitle(n),style:c,colSpan:d?d[e.name]:void 0,rowSpan:i,onClick:e._getOnClick({row:n,index:r,footer:a,headerData:u})},e._renderValue({value:l,row:n,index:r,footer:a,headerData:u}))})))}}x.defaultProps={footer:!1};class S extends o.Component{constructor(){super(...arguments),this._dataRowsRef=null,this.renderedColumns=[],this.renderHeadCell=e=>{var t;const{onResize:n}=this.props,{column:r,rowSpan:i,colSpan:a}=e,{sortable:s=!1,header:l=r.name,className:u,index:d,columnIndex:f,align:p,name:m,width:g,resizeable:v,resizeMinWidth:y,resizeMaxWidth:b}=r,{headerTitle:w="string"===typeof l&&l||void 0}=r;let E=null===(t=r.customStyle)||void 0===t?void 0:t.call(r,{header:!0,name:m});return v&&(E=Object.assign(Object.assign({},E),{width:g,maxWidth:g})),o.createElement("th",{ref:r.dataColumn?this._getColumnRef(f):null,className:c("th",{sortable:s,align:p},u),key:m,title:w,"data-index":d,colSpan:a,rowSpan:i,style:E,onClick:this._getOnSortClick(r)},o.createElement("div",{className:c("head-cell")},l,o.createElement(_,Object.assign({},r))),v&&o.createElement(h,{getColumn:this._getRenderedColumn,columnIndex:f,onResize:n,columnId:m,minWidth:y,maxWidth:b}))},this.renderHeadLevel=(e,t)=>o.createElement("tr",{key:t,className:c("head-row")},e.map(this.renderHeadCell)),this.dataRowsRef=e=>{var t;this._dataRowsRef=e,e&&(null===(t=this.dataRowsHeightObserver)||void 0===t||t.checkAndUpdateHeight())},this._getColumnRef=e=>t=>{this.renderedColumns[e]=t},this._getRenderedColumn=e=>{if(void 0!==e)return this.renderedColumns[e]}}componentDidMount(){this._calculateColumnsWidth(),"function"===typeof this.props.onDataRowsHeightChange&&(this.dataRowsHeightObserver=new y({getSrcElement:()=>this._dataRowsRef,onHeightChange:e=>{"function"===typeof this.props.onDataRowsHeightChange&&this.props.onDataRowsHeightChange(e)}}))}componentDidUpdate(){var e;this._calculateColumnsWidth(),null===(e=this.dataRowsHeightObserver)||void 0===e||e.checkAndUpdateHeight()}componentWillUnmount(){var e;null===(e=this.dataRowsHeightObserver)||void 0===e||e.destroy()}render(){const{headColumns:e,dataColumns:t,renderedDataRows:n}=this.props;return this.renderedColumns.length=t.length,o.createElement(o.Fragment,null,o.createElement("thead",{className:c("head")},e.map(this.renderHeadLevel)),void 0===n?null:o.createElement("tbody",{ref:this.dataRowsRef},n))}_calculateColumnsWidth(){const{onColumnsUpdated:e}=this.props;"function"===typeof e&&requestAnimationFrame((()=>{const t=this.renderedColumns.map((e=>e&&e.getBoundingClientRect().width));e(t)}))}onSort(e,t){const{onSort:n}=this.props;"function"===typeof n&&n(e,t)}_getOnSortClick(e){const{sortable:t=!1,name:n}=e;return n===l.oc?()=>{this.onSort()}:t?t=>{this.onSort(e,t.ctrlKey||t.metaKey)}:void 0}}class C extends o.Component{constructor(){super(...arguments),this.state={style:{top:C.defaultProps.top}},this.onDataRowsHeightChange=e=>{this.props.onDataRowsHeightChange(e+1)},this._nodeRef=e=>{this._node=e}}static getDerivedStateFromProps(e,t){var n;return e.top!==(null===(n=t.style)||void 0===n?void 0:n.top)?void 0===e.top?null:{style:{top:e.top}}:null}render(){const e=this.props,{mode:t,top:n}=e,i=(0,r._T)(e,["mode","top"]);if(t===l.qA){const{style:e}=this.state;return o.createElement("div",{className:c("sticky",{moving:!0,head:!0}),style:e},this.renderHeader(i))}{const{widths:e=[],right:t=0}=this.state,n=e.reduce(((e,t)=>e+t),0);return o.createElement("div",{ref:this._nodeRef,className:c("sticky",{fixed:!0,head:!0}),style:{right:t,display:n?void 0:"none"}},this.renderHeader(i))}}setScrollLeft(e){requestAnimationFrame((()=>{this._node&&(this._node.scrollLeft=e)}))}setRightPosition(e){this.state.right===e||this.props.top||this.props.mode===l.qA||this.setState({right:e})}renderHeader(e){const{widths:t=[]}=this.state,n=t.reduce(((e,t)=>e+t),0);return o.createElement("div",{className:c("table-wrapper",{sticky:!0})},o.createElement("table",{className:c("table",{sticky:!0}),style:{width:n||"auto"}},o.createElement("colgroup",null,t.map(((e,t)=>o.createElement("col",{key:t,style:{width:e}})))),o.createElement(S,Object.assign({},e,{onDataRowsHeightChange:this.onDataRowsHeightChange}))))}updateWidths(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];const{widths:t=[]}=this.state;e.some(((e,n)=>e!==t[n]))&&this.setState({widths:e})}}C.defaultProps={top:0};class k extends o.PureComponent{constructor(){super(...arguments),this.state={style:{bottom:0}},this._nodeFixed=null,this._nodeMoving=null,this._nodeFixedRef=e=>{this._nodeFixed=e},this._nodeMovingRef=e=>{var t;this._nodeMoving=e,e&&(null===(t=this.heightObserver)||void 0===t||t.checkAndUpdateHeight())}}static getDerivedStateFromProps(e,t){var n;return e.bottom!==(null===(n=t.style)||void 0===n?void 0:n.bottom)?void 0===e.bottom?null:{style:{bottom:e.bottom}}:null}componentDidMount(){this.heightObserver=new y({getSrcElement:()=>this._nodeMoving,onHeightChange:this.props.onMovingHeightChange})}componentDidUpdate(){var e;null===(e=this.heightObserver)||void 0===e||e.checkAndUpdateHeight()}componentWillUnmount(){var e;null===(e=this.heightObserver)||void 0===e||e.destroy()}render(){if(!this.props.renderedRows)return null;const{mode:e,renderedRows:t}=this.props;if(e===l.qA){const{style:e}=this.state;return o.createElement("div",{ref:this._nodeMovingRef,className:c("sticky",{footer:!0,moving:!0}),style:e},this.renderFooter(t))}{const{widths:e=[],right:n=0}=this.state,r=e.reduce(((e,t)=>e+t),0);return o.createElement("div",{ref:this._nodeFixedRef,className:c("sticky",{footer:!0,fixed:!0}),style:{right:n,display:r?void 0:"none"}},this.renderFooter(t))}}setScrollLeft(e){requestAnimationFrame((()=>{this._nodeFixed&&(this._nodeFixed.scrollLeft=e)}))}setRightPosition(e){this.state.right!==e&&!this.props.bottom&&this._nodeFixed&&this.setState({right:e})}renderFooter(e){const{widths:t=[]}=this.state,n=t.reduce(((e,t)=>e+t),0);return o.createElement("div",{className:c("table-wrapper",{sticky:!0})},o.createElement("table",{className:c("table",{sticky:!0}),style:{width:n||"auto"}},o.createElement("colgroup",null,t.map(((e,t)=>o.createElement("col",{key:t,style:{width:e}})))),o.createElement("tbody",null,e)))}updateWidths(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];const{widths:t=[]}=this.state;e.some(((e,n)=>e!==t[n]))&&this.setState({widths:e})}}k.defaultProps={bottom:0};class O extends o.PureComponent{constructor(){var e;super(...arguments),e=this,this.state={},this._refBody=e=>{this._body=e},this._refBox=e=>{this._box=e},this._refHead=e=>{this._head=e},this._refStickyHead=e=>{this._stickyHead=e},this._refStickyFooter=e=>{this._stickyFooter=e},this._onBoxScroll=()=>{this._updateBoxConstraints()},this._onColumnsUpdated=e=>{this._stickyHead&&this._stickyHead.updateWidths(e),this._stickyFooter&&this._stickyFooter.updateWidths(e)},this.onMovingHeaderDataRowsHeightChange=e=>{var t;-e!==(null===(t=this.state.movingHeaderStyle)||void 0===t?void 0:t.marginTop)&&this.setState({movingHeaderStyle:{marginTop:-e}})},this.onMovingFooterHeightChange=e=>{var t;-e!==(null===(t=this.state.movingFooterStyle)||void 0===t?void 0:t.marginBottom)&&this.setState({movingFooterStyle:{marginBottom:-e}})},this.renderRow=e=>{const{data:t,onRowClick:n}=this.props,{row:r,index:o,span:i}=t[e];return this.renderRowImpl(r,o,{onRowClick:n,odd:e%2===0,span:i})},this.renderFooterRow=(e,t)=>this.renderRowImpl(e,t,{footer:!0}),this.renderHeaderRow=(e,t)=>this.renderRowImpl(e,t,{headerData:!0}),this.renderRowImpl=function(t,n){let{onRowClick:r,odd:i,span:a,footer:s,headerData:l}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{columns:{dataColumns:c},rowClassName:u,rowKey:d,getColSpansOfRow:f}=e.props,p="function"===typeof u?u(t,n,s,l):"";return o.createElement(x,{getColSpansOfRow:f,key:d(t,n),className:p,columns:c,row:t,index:n,span:a,odd:i,onClick:r,footer:s,headerData:l})},this.renderTable=(e,t)=>{const{footerData:n,columns:{dataColumns:r},settings:{stickyHead:i}}=this.props,{movingHeaderStyle:a,movingFooterStyle:s}=this.state,u=this.getStickyFooterMode();return o.createElement("div",{className:c("table-wrapper"),style:u===l.qA?s:void 0},o.createElement("table",{className:c("table"),style:i===l.qA?a:void 0},o.createElement("colgroup",null,r.map(((e,t)=>{let{width:n}=e;return o.createElement("col",{key:t,width:n})}))),this.renderHead(),o.createElement("tbody",{ref:t},e.length?e:this._getEmptyRow()),n&&o.createElement("tfoot",{className:c("foot",{"has-sticky-footer":u})},n.map(this.renderFooterRow))))}}componentDidMount(){const{stickyHead:e,syncHeadOnResize:t}=this.props.settings;this._updateBoxConstraints(),e&&t&&!this._onWindowResize&&(this._onWindowResize=()=>{this.syncHeadWidths()},window.addEventListener("resize",this._onWindowResize))}componentDidUpdate(){this._updateBoxConstraints()}componentWillUnmount(){this._onWindowResize&&(window.removeEventListener("resize",this._onWindowResize),delete this._onWindowResize)}render(){const{className:e}=this.props,{stickyHead:t,dynamicRender:n}=this.props.settings,r=this.getStickyFooterMode();return o.createElement("div",{className:e,ref:this._refBody},t&&this.renderStickyHead(),o.createElement("div",{ref:this._refBox,className:c("box",{"sticky-head":t,"sticky-footer":r}),onScroll:this._onBoxScroll},n?this.renderTableDynamic():this.renderTableSimple()),r&&this.renderStickyFooter())}_updateBoxConstraints(){const e=this._stickyHead||this._stickyFooter;if(this._box&&e){const e=this._box.offsetWidth-this._box.clientWidth;this._stickyHead&&(this._stickyHead.setRightPosition(e),this._stickyHead.setScrollLeft(this._box.scrollLeft)),this._stickyFooter&&(this._stickyFooter.setRightPosition(e),this._stickyFooter.setScrollLeft(this._box.scrollLeft))}}syncHeadWidths(){this._head&&this._head._calculateColumnsWidth()}_getEmptyRow(){const{columns:{dataColumns:e},emptyDataMessage:t,renderEmptyRow:n}=this.props;return"function"===typeof n?n(e):o.createElement("tr",{className:c("row")},o.createElement("td",{className:c("td",c("no-data")),colSpan:e.length},t))}renderHead(){const{columns:e,onSort:t,onResize:n}=this.props,{displayIndices:r}=this.props.settings,i=this.renderHeaderRows();return o.createElement(S,Object.assign({ref:this._refHead},e,{displayIndices:Boolean(r),onSort:t,onResize:n,onColumnsUpdated:this._onColumnsUpdated,renderedDataRows:i}))}renderStickyHead(){const{columns:e,onSort:t,onResize:n}=this.props,{displayIndices:r,stickyTop:i,stickyHead:a}=this.props.settings,s="auto"===i&&this._body&&this._body.parentNode?this._body.parentNode.offsetTop:Number(i)||0,l=this.renderHeaderRows();return o.createElement(C,Object.assign({mode:a,top:s,ref:this._refStickyHead},e,{displayIndices:r,onSort:t,onResize:n,renderedDataRows:l,onDataRowsHeightChange:this.onMovingHeaderDataRowsHeightChange}))}renderStickyFooter(){const{columns:e}=this.props,{stickyBottom:t}=this.props.settings;let n=Number(t)||0;if("auto"===t&&this._body&&this._body.parentNode){const e=this._body.parentNode;n=e.offsetTop+e.offsetHeight}const r=this.renderFooterRows();return o.createElement(k,{ref:this._refStickyFooter,mode:this.getStickyFooterMode(),bottom:n,dataColumns:e.dataColumns,renderedRows:r,onMovingHeightChange:this.onMovingFooterHeightChange})}renderTableDynamic(){const{data:e,settings:{dynamicInnerRef:t,dynamicRenderType:n="uniform",dynamicRenderUseStaticSize:r,dynamicRenderThreshold:i,dynamicRenderMinSize:s,dynamicRenderScrollParentGetter:l,dynamicRenderScrollParentViewportSizeGetter:c,dynamicItemSizeEstimator:u,dynamicItemSizeGetter:d}={}}=this.props;return o.createElement(a(),{ref:t,type:n,useStaticSize:r,threshold:i,minSize:s,itemSizeEstimator:u,itemSizeGetter:d,length:e.length,itemRenderer:this.renderRow,itemsRenderer:this.renderTable,scrollParentGetter:l,scrollParentViewportSizeGetter:c})}renderTableSimple(){const{data:e}=this.props,t=e.map(((e,t)=>this.renderRow(t)));return this.renderTable(t,null)}renderHeaderRows(){const{headerData:e}=this.props;return e&&e.map(this.renderHeaderRow)}renderFooterRows(){const{footerData:e}=this.props;return null===e||void 0===e?void 0:e.map(this.renderFooterRow)}getStickyFooterMode(){const{footerData:e}=this.props;if(!(null===e||void 0===e?void 0:e.length))return!1;const{stickyFooter:t}=this.props.settings;return t}}const T=o.memo((function(e){const{column:t,value:n,row:r,index:i,footer:a,headerData:s}=e;return o.createElement(o.Fragment,null,t.render({value:n,row:r,index:i,footer:a,headerData:s}))}));class N extends o.Component{constructor(){super(...arguments),this.state=Object.assign({settings:{}},p(this.props.initialSortOrder,this.props.settings)),this._tableRef=e=>{this.table=e},this.renderMemoizedCell=e=>{let{column:t,value:n,row:r,index:i,footer:a,headerData:s}=e;return o.createElement(T,{column:t,value:n,row:r,index:i,footer:a,headerData:s})},this.getColumn=(e,t)=>{var n;const{onResize:r}=this.props,{settings:o}=this.state,{defaultOrder:i}=o,{sortOrder:a={},sortColumns:s,indexColumn:l}=this.state,u=Number(Boolean(l)),d=this.isSortEnabled(),{name:f,accessor:p=e.name,align:h,sortable:m=o.sortable,group:g,autogroup:v=!0}=e,{sortAccessor:y,onClick:b}=e,w=c("td",{align:h},e.className),E=(null!==(n=e.resizeable)&&void 0!==n?n:o.defaultResizeable)&&Boolean(r),_="function"===typeof p?e=>p(e):e=>Object.prototype.hasOwnProperty.call(e,p)?e[p]:void 0,x="function"===typeof e.title?t=>e.title(t):()=>"string"===typeof e.title&&e.title||void 0,S="function"===typeof y?e=>y(e):_,C="function"===typeof e.render?t=>{let{value:n,row:r,index:o,footer:i,headerData:a}=t;return this.renderMemoizedCell({column:e,value:n,row:r,index:o,footer:i,headerData:a})}:e=>{let{value:t}=e;return t},k="function"===typeof e.customStyle?e.customStyle:()=>{},O="function"===typeof b?t=>n=>b(t,e,n):()=>{};return Object.assign(Object.assign({index:t-u,columnIndex:t,dataColumn:!0,defaultOrder:i},e),{resizeable:E,sortable:m&&d,_className:w,_getValue:_,_getTitle:x,_getSortValue:S,_renderValue:C,_getOnClick:O,customStyle:k,group:g,autogroup:v,sortOrder:a[f]||void 0,sortIndex:s.length>1?s.indexOf(f)+1:void 0})},this.isSortEnabled=()=>{const{data:e}=this.props;return Array.isArray(e)&&e.length>1},this.onSort=(e,t)=>{if(e){const{sortOrder:n,sortColumns:r}=u(e,this.state,t,this.props.settings);this.setState({sortOrder:n,sortColumns:r});const{onSort:o}=this.props;if("function"===typeof o){const e=function(e){return Object.keys(e).map((t=>({columnId:t,order:e[t]})))}(n);o(e)}}else{this.setState({sortOrder:{},sortColumns:[]});const{onSort:e}=this.props;"function"===typeof e&&e([])}}}static normalizeStickyHead(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return e!==l.qA||g?e:(console.warn("Your browser does not support position: sticky, moving sticky headers will be disabled."),!1)}static calculateSettings(e){return Object.assign(Object.assign(Object.assign({},N.defaultProps.settings),e),{stickyHead:N.normalizeStickyHead(e.stickyHead),stickyFooter:N.normalizeStickyHead(e.stickyFooter)})}static getIndexColumn(e){let{startIndex:t,data:n,visibleRowIndex:r}=e;const o=t+n.length+1;return{name:l.oc,header:"#",className:c("index"),render:e=>{let{row:n,index:o,footer:i,headerData:a}=e;var s,l;return a?null!==(s=n.headerIndex)&&void 0!==s?s:t+o:i?null!==(l=n.footerIndex)&&void 0!==l?l:t+o:"function"===typeof r?r(n,o):t+o},sortable:!1,resizeable:!1,width:20+10*Math.ceil(Math.log10(o))}}static getDerivedStateFromProps(e){const t=N.calculateSettings(e.settings);return Object.assign({settings:t,indexColumn:Boolean(t.displayIndices)&&N.getIndexColumn(e)},e.sortOrder?Object.assign({},p(e.sortOrder,e.settings)):void 0)}render(){const{getColSpansOfRow:e,headerData:t,data:n,footerData:r,columns:i,startIndex:a,emptyDataMessage:s,rowClassName:l,rowKey:u,onRowClick:d,onResize:p,theme:h,renderEmptyRow:m,nullBeforeNumbers:g}=this.props,{settings:v,sortOrder:y,sortColumns:b}=this.state,{highlightRows:w=!1,stripedRows:E=!1,headerMod:_=!1}=v,x=c({"highlight-rows":w,"striped-rows":E,header:_,theme:h}),S=this.getComplexColumns(i);return v.dynamicRender&&S.dataColumns.some((e=>e.group))&&console.warn("Simultaneously used grouping cells and dynamic render. The table will render unpredictable."),o.createElement(O,{ref:this._tableRef,getColSpansOfRow:e,className:x,settings:v,startIndex:a,columns:S,emptyDataMessage:s,renderEmptyRow:m,rowClassName:l,rowKey:u||N.defaultProps.rowKey,onRowClick:d,headerData:t,data:f(n,S.dataColumns,{sortOrder:y,sortColumns:b},{nullBeforeNumbers:g,externalSort:null===v||void 0===v?void 0:v.externalSort}),footerData:r,onSort:this.onSort,onResize:p})}getComplexColumns(e){const t=[],n=[],r=[],{indexColumn:o}=this.state,i=o?[o,...e]:e,a=(e,o)=>{t[o]||(t[o]=[]);const i=t[o];return e.reduce(((e,t)=>{let s=1,l=-1,c=t;if(Array.isArray(t.sub))s=a(t.sub,o+1);else{const e=this.getColumn(t,n.length);n.push(e),l=o,c=e}const u={column:c,itemLevel:l,colSpan:s,rowSpan:0};return r.push(u),i.push(u),s+e}),0)};return a(i,0),r.forEach((e=>{e.rowSpan=e.itemLevel<0?1:t.length-e.itemLevel})),{headColumns:t,dataColumns:n}}resize(){this.table&&this.table.syncHeadWidths()}}function I(e){return new Set(e.map((e=>e.name))).size!==e.length}N.defaultProps={startIndex:0,emptyDataMessage:"No data",settings:{displayIndices:!0,dynamicRenderMinSize:1,stickyHead:!1,stickyFooter:!1,sortable:!0,externalSort:!1,defaultOrder:l.zE,defaultResizeable:!1},rowKey:(e,t)=>Object.prototype.hasOwnProperty.call(e,"id")?e.id:t,initialSortOrder:{},initialSortColumns:[],theme:"yandex-cloud"},N.getSortedData=f;const P="It is strongly recommended against using duplicate column names. They act as default accessors and titles, so doing so may lead to confusing titles and the wrong data being extracted.";class R extends o.PureComponent{constructor(){super(...arguments),this.state={},this._tableRef=e=>{this.table=e}}static setCustomIcons(e){E.ICON_ASC=e.ICON_ASC||b,E.ICON_DESC=e.ICON_DESC||w}componentDidMount(){I(this.props.columns)&&console.warn(P)}componentDidUpdate(e){const{columns:t}=this.props;t!==e.columns&&I(t)&&console.warn(P)}componentDidCatch(e){console.error(e),this.setState({error:e});const{onError:t}=this.props;"function"===typeof t&&t(e)}render(){const{error:e}=this.state;return e?o.createElement("pre",{className:c("error")},"DataTable got stuck in invalid state. Please tell developers about it.","\n\n",e.stack&&String(e.stack)||String(e)):o.createElement(N,Object.assign({ref:this._tableRef},this.props))}resize(){this.table&&this.table.resize()}}R.FIXED=l.hA,R.MOVING=l.qA,R.ASCENDING=l.zE,R.DESCENDING=l.hr,R.LEFT=l.RL,R.CENTER=l.dv,R.RIGHT=l.pX;const D=R},2266:(e,t,n)=>{"use strict";n.d(t,{M:()=>C});var r=n(95097),o=n(68963),i=n(48027),a=n(79004),s=n(36951);const l={pc:{NormalizeMap:{arrowup:"up",arrowdown:"down",arrowleft:"left",arrowright:"right",esc:"escape",return:"enter",mod:"ctrl",control:"ctrl",opt:"alt",option:"alt",cmd:"ctrl",command:"ctrl"},Priority:{shift:200,alt:300,ctrl:400},DisplayName:{up:"\u2191",down:"\u2193",left:"\u2190",right:"\u2192",escape:"Esc",plus:"\uff0b",enter:"Enter",ctrl:"Ctrl",alt:"Alt",shift:"Shift",tab:"Tab",backspace:"Backspace"}},mac:{NormalizeMap:{arrowup:"up",arrowdown:"down",arrowleft:"left",arrowright:"right",esc:"escape",enter:"return",mod:"command",ctrl:"control",alt:"option",opt:"option",cmd:"command"},Priority:{command:100,shift:200,option:300,control:400},DisplayName:{up:"\u25b2",down:"\u25bc",left:"\u25c0",right:"\u25b6",escape:"\u238b",plus:"\uff0b",return:"\u23ce",command:"\u2318",option:"\u2325",control:"\u2303",shift:"\u21e7",backspace:"\u232b",tab:"\u21e5"}}};var c=n(6381),u=n.n(c),d=n(60619),f=n.n(d);const p=()=>"undefined"!==typeof navigator&&/Mac|iP(hone|[oa]d)/.test(navigator.platform);function h(e,t){return e.trim().split(t).filter(Boolean)}const m=/\s/,g="+";function v(e,t){return h(t,m).map((t=>f()(h(t,g).map(function(e){return function(t){var n;const r=function(e,t){var n;return t=t.toLowerCase(),null!==(n=e.NormalizeMap[t])&&void 0!==n?n:t}(e,t);return{raw:t,id:r,priority:null!==(n=e.Priority[r])&&void 0!==n?n:0,displayName:e.DisplayName[r]}}}(e)).sort(((e,t)=>t.priority-e.priority)),(e=>e.id)).map(y)))}function y(e){var t;return null!==(t=e.displayName)&&void 0!==t?t:u()(e.id)}const b=(0,s.Ge)("hotkey"),w={BetweenGroups:String.fromCharCode(160),BetweenKeys:String.fromCharCode(8239)},E=o.forwardRef((function(e,t){const{value:n,platform:r,view:i="light",qa:a,style:s,className:c}=e,u=function(e,t){var n;const r=null!==(n=t.platform)&&void 0!==n?n:p()?"mac":"pc",o=l[r];return v(o,e)}(n,{platform:r}),d=[];let f=!1;return u.forEach(((e,t)=>{0!==e.length&&(f?d.push(w.BetweenGroups):f=!0,e.forEach(((e,n)=>{0===n||d.push(w.BetweenKeys,o.createElement("span",{key:`${e}_${t}_${n}_plus`,className:b("plus")},"+"),w.BetweenKeys),d.push(o.createElement("kbd",{key:`${e}_${t}_${n}`},e))})))})),0===d.length?null:o.createElement("kbd",{ref:t,style:s,"data-qa":a,className:b({view:i},c)},d)}));var _=n(44920);const x=["bottom","top"],S=(0,s.Ge)("action-tooltip");function C(e){const{placement:t=x,title:n,hotkey:s,children:l,className:c,contentClassName:u,description:d,disabled:f=!1,style:p,qa:h,id:m,disablePortal:g}=e,v=(0,r._T)(e,["placement","title","hotkey","children","className","contentClassName","description","disabled","style","qa","id","disablePortal"]),[y,b]=o.useState(null),w=(0,a.p)(y,v),C=o.Children.only(l),k=C.ref,O=(0,i.c)(b,k);return o.createElement(o.Fragment,null,o.cloneElement(C,{ref:O}),y?o.createElement(_.G,{id:m,disablePortal:g,role:"tooltip",className:S(null,c),style:p,open:w&&!f,placement:t,anchorRef:{current:y},disableEscapeKeyDown:!0,disableOutsideClick:!0,disableLayer:!0,qa:h},o.createElement("div",{className:S("content",u)},o.createElement("div",{className:S("heading")},o.createElement("div",{className:S("title")},n),s&&o.createElement(E,{view:"dark",value:s,className:S("hotkey")})),d&&o.createElement("div",{className:S("description")},d))):null)}},33569:(e,t,n)=>{"use strict";n.d(t,{F:()=>s});var r=n(68963),o=n(57542),i=n(88776);const a=(0,n(36951).Ge)("arrow-toggle");function s(e){let{size:t=16,direction:n="bottom",className:s,qa:l}=e;return r.createElement("span",{style:{width:t,height:t},className:a({direction:n},s),"data-qa":l},r.createElement(i.J,{data:o.Z,size:t}))}},17176:(e,t,n)=>{"use strict";n.d(t,{z:()=>m});var r=n(68963),o=n(36951),i=n(99742),a=n(93404),s=n(70292),l=n(12913);const c=(0,o.Ge)("button");function u(){(0,l.O)('[Button.Icon] Physical values (left, right) of "side" property are deprecated. Use logical values (start, end) instead.')}const d=e=>{let{side:t,className:n,children:o}=e;return r.createElement("span",{className:c("icon",{side:f(t)},n)},r.createElement("span",{className:c("icon-inner")},o))};function f(e){let t=e;return"left"===t&&(u(),t="start"),"right"===t&&(u(),t="end"),t}d.displayName="Button.Icon";const p=(0,o.Ge)("button"),h=r.forwardRef((function(e,t){let{view:n="normal",size:o="m",pin:i="round-round",selected:s,disabled:l=!1,loading:c=!1,width:u,title:d,tabIndex:f,type:h="button",component:m,href:g,target:v,rel:y,extraProps:w,onClick:E,onMouseEnter:_,onMouseLeave:x,onFocus:S,onBlur:C,children:k,id:O,style:T,className:N,qa:I}=e;const P={title:d,tabIndex:f,onClick:E,onClickCapture:r.useCallback((e=>{a.P.publish({componentId:"Button",eventId:"click",domEvent:e,meta:{content:e.currentTarget.textContent,view:n}})}),[n]),onMouseEnter:_,onMouseLeave:x,onFocus:S,onBlur:C,id:O,style:T,className:p({view:n,size:o,pin:i,selected:s,disabled:l||c,loading:c,width:u},N),"data-qa":I};if("string"===typeof g||m){const e={href:g,target:v,rel:"_blank"!==v||y?y:"noopener noreferrer"};return r.createElement(m||"a",Object.assign(Object.assign(Object.assign(Object.assign({},w),P),m?{}:e),{ref:t,"aria-disabled":l||c}),b(k))}return r.createElement("button",Object.assign({},w,P,{ref:t,type:h,disabled:l||c,"aria-pressed":s}),b(k))}));h.displayName="Button";const m=Object.assign(h,{Icon:d}),g=(0,s.s)(d),v=(0,s.s)("span"),y=RegExp(`^${p("icon")}($|\\s+\\w)`);function b(e){const t=r.Children.toArray(e);if(1===t.length){const e=t[0];return g(e)||v(e)&&y.test(e.props.className||"")?e:(0,i.yb)(e)||(0,i.Dc)(e)?r.createElement(m.Icon,{key:"icon"},e):r.createElement("span",{key:"text",className:p("text")},e)}{let e,n,o;const a=[];for(const s of t){const t=(0,i.yb)(s)||(0,i.Dc)(s),o=g(s),l=v(s)&&y.test(s.props.className||"");if(t||o||l)if(e||0!==a.length){if(!n&&0!==a.length){const e="icon-end",i="end";n=t?r.createElement(m.Icon,{key:e,side:i},s):o?r.cloneElement(s,{side:i}):r.cloneElement(s,{className:p("icon",{side:f(i)},s.props.className)})}}else{const n="icon-start",i="start";e=t?r.createElement(m.Icon,{key:n,side:i},s):o?r.cloneElement(s,{side:i}):r.cloneElement(s,{className:p("icon",{side:f(i)},s.props.className)})}else a.push(s)}return a.length>0&&(o=r.createElement("span",{key:"text",className:p("text")},a)),[e,n,o]}}},19797:(e,t,n)=>{"use strict";n.d(t,{m:()=>g});var r=n(95097),o=n(68963),i=n(2266),a=n(17176),s=n(11050),l=n(81434),c=n(54973);const u=JSON.parse('{"startCopy":"Copy","endCopy":"Copied!"}'),d=JSON.parse('{"startCopy":"\u041a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c","endCopy":"\u0421\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u043e!"}'),f=(0,c.e)({en:u,ru:d},"ClipboardButton"),p=1e3,h={xs:12,s:16,m:16,l:16,xl:20},m=e=>{const{size:t="m",hasTooltip:n=!0,tooltipInitialText:l=f("startCopy"),tooltipSuccessText:c=f("endCopy"),status:u,view:d="flat",extraProps:p={}}=e,m=(0,r._T)(e,["size","hasTooltip","tooltipInitialText","tooltipSuccessText","status","view","extraProps"]);return o.createElement(i.M,{disabled:!n,title:"success"===u?c:l},o.createElement(a.z,Object.assign({view:d,size:t,extraProps:Object.assign({"aria-label":l},p)},m),o.createElement(a.z.Icon,null,o.createElement(s.K,{size:h[t],status:u}))))};function g(e){const{text:t,timeout:n=p,onCopy:i,options:a}=e,s=(0,r._T)(e,["text","timeout","onCopy","options"]);return o.createElement(l.h,{text:t,timeout:n,onCopy:i,options:a},(e=>o.createElement(m,Object.assign({},s,{status:e}))))}},11050:(e,t,n)=>{"use strict";n.d(t,{K:()=>c});var r=n(95097),o=n(68963);const i=e=>o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),o.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M9.5 12c0 .414-.168.79-.44 1.06A1.49 1.49 0 0 1 8 13.5H4a1.49 1.49 0 0 1-1.06-.44A1.496 1.496 0 0 1 2.5 12V8c0-.414.168-.79.44-1.06A1.49 1.49 0 0 1 4 6.5h4c.414 0 .79.168 1.06.44.272.27.44.646.44 1.06v4Zm-1.47-1.03s.001 0 0 0L7.06 10l.97-.97a.75.75 0 0 0-1.06-1.06L6 8.94l-.97-.97a.75.75 0 0 0-1.06 1.06l.97.97-.97.97a.75.75 0 0 0 1.06 1.06c0 .001 0 0 0 0l.97-.97.97.97a.75.75 0 0 0 1.06-1.06ZM6.5 5H8a3 3 0 0 1 3 3v1.5h1A1.498 1.498 0 0 0 13.5 8V4A1.5 1.5 0 0 0 12 2.5H8A1.5 1.5 0 0 0 6.5 4v1ZM5 4a3 3 0 0 1 3-3h4a3 3 0 0 1 3 3v4a3 3 0 0 1-3 3h-1v1a3 3 0 0 1-3 3H4a3 3 0 0 1-3-3V8a3 3 0 0 1 3-3h1V4Z",clipRule:"evenodd"})),a=e=>o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),o.createElement("g",{fill:"currentColor"},o.createElement("path",{d:"m8 9.076.085-.107a.751.751 0 1 0-1.171-.937L5.438 9.877 5.03 9.47a.747.747 0 0 0-1.06 0 .75.75 0 0 0 0 1.06l.407.408.593.592a.75.75 0 0 0 1.116-.061l.522-.654h.001L8 9.074Z"}),o.createElement("path",{fillRule:"evenodd",d:"M12 11a3 3 0 0 0 3-3V4a3 3 0 0 0-3-3H8a3 3 0 0 0-3 3v1H4a3 3 0 0 0-3 3v4a3 3 0 0 0 3 3h4a3 3 0 0 0 3-3v-1h1ZM4 6.5A1.5 1.5 0 0 0 2.5 8v4A1.5 1.5 0 0 0 4 13.5h4A1.5 1.5 0 0 0 9.5 12V8A1.498 1.498 0 0 0 8 6.5H4ZM13.5 4A1.5 1.5 0 0 0 12 2.5H8A1.5 1.5 0 0 0 6.5 4v1H8a3 3 0 0 1 3 3v1.5h1A1.498 1.498 0 0 0 13.5 8V4Z",clipRule:"evenodd"}))),s=e=>o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),o.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 2.5H8A1.5 1.5 0 0 0 6.5 4v1H8a3 3 0 0 1 3 3v1.5h1A1.5 1.5 0 0 0 13.5 8V4A1.5 1.5 0 0 0 12 2.5ZM11 11h1a3 3 0 0 0 3-3V4a3 3 0 0 0-3-3H8a3 3 0 0 0-3 3v1H4a3 3 0 0 0-3 3v4a3 3 0 0 0 3 3h4a3 3 0 0 0 3-3v-1ZM4 6.5h4A1.5 1.5 0 0 1 9.5 8v4A1.5 1.5 0 0 1 8 13.5H4A1.5 1.5 0 0 1 2.5 12V8A1.5 1.5 0 0 1 4 6.5Z",clipRule:"evenodd"}));var l=n(88776);function c(e){var{status:t}=e,n=(0,r._T)(e,["status"]);return"error"===t?o.createElement(l.J,Object.assign({data:i},n)):"success"===t?o.createElement(l.J,Object.assign({data:a},n)):o.createElement(l.J,Object.assign({data:s},n))}},24288:(e,t,n)=>{"use strict";n.d(t,{J:()=>i});var r=n(68963);const o=(0,n(36951).Ge)("control-label"),i=r.forwardRef(((e,t)=>{let{children:n,className:i,labelClassName:a,title:s,style:l,disabled:c=!1,control:u,size:d="m",qa:f}=e;const p=r.cloneElement(u,{className:o("indicator",u.props.className)});return r.createElement("label",{ref:t,title:s,style:l,className:o({size:d,disabled:c},i),"data-qa":f},p,n?r.createElement("span",{className:o("text",a)},n):null)}));i.displayName="ControlLabel"},81434:(e,t,n)=>{"use strict";n.d(t,{h:()=>s});var r=n(68963),o=n(15942),i=n.n(o);const a="pending";function s(e){const{children:t,text:n,options:o,timeout:s,onCopy:l}=e,[c,u]=r.useState(a),d=r.useRef(),f=r.useMemo((()=>t(c)),[t,c]),p=r.useCallback(((e,t)=>{u(t?"success":"error"),window.clearTimeout(d.current),d.current=window.setTimeout((()=>u(a)),s),null===l||void 0===l||l(e,t)}),[l,s]);if(r.useEffect((()=>()=>window.clearTimeout(d.current)),[]),!r.isValidElement(f))throw new Error("Content must be a valid react element");return r.createElement(i(),{text:n,onCopy:p,options:o},f)}},30831:(e,t,n)=>{"use strict";n.d(t,{h:()=>B});var r=n(68963),o=n(98409),i=n(68512),a=n(17176),s=n(88776),l=n(36951);const c=(0,l.Ge)("dropdown-menu"),u=r.createContext({toggle(){},data:void 0});u.displayName="DropdownMenu.Context";var d=n(95097),f=n(30755),p=n(44821),h=n(89646);const m=(0,l.Ge)("menu"),g=r.forwardRef((function(e,t){let{label:n,children:o,style:i,className:a,qa:s}=e;const l=(0,h.u)();return r.createElement("li",{ref:t,className:m("list-group-item")},r.createElement("div",{style:i,className:m("group",a),"data-qa":s},n&&r.createElement("div",{id:l,className:m("group-label")},n),r.createElement("ul",{role:"group","aria-labelledby":l,className:m("group-list")},o)))}));var v=n(93404);const y=(0,l.Ge)("menu"),b=r.forwardRef((function(e,t){let{icon:n,iconStart:o=n,iconEnd:a,title:s,disabled:l,active:c,selected:u,href:d,target:f,rel:p,onClick:h,style:m,className:g,theme:b,extraProps:w,children:E,qa:_}=e;const{onKeyDown:x}=(0,i.b)(h),S=r.useCallback((e=>{v.P.publish({componentId:"MenuItem",eventId:"click",domEvent:e})}),[]),C={role:"menuitem",onKeyDown:h&&!l?x:void 0},k={title:s,onClick:l?void 0:h,onClickCapture:l?void 0:S,style:m,tabIndex:l?-1:0,className:y("item",{disabled:l,active:c,selected:u,theme:b,interactive:Boolean(h)||Boolean(d)},g),"data-qa":_},O=[o&&r.createElement("div",{key:"icon-start",className:y("item-icon")},o),r.createElement("div",{key:"content",className:y("item-content")},E),a&&r.createElement("div",{key:"icon-end",className:y("item-icon-end")},a)];let T;return T=d?r.createElement("a",Object.assign({},C,w,k,{href:d,target:f,rel:p}),O):r.createElement("div",Object.assign({},C,w,k),O),r.createElement("li",{ref:t,className:y("list-item")},T)})),w=(0,l.Ge)("menu"),E=r.forwardRef((function(e,t){let{size:n="m",children:o,style:i,className:a,qa:s}=e;return r.createElement("ul",{ref:t,role:"menu",style:i,className:w({size:n},a),"data-qa":s},o)}));E.Item=b,E.Group=g;var _=n(72644);function x(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3?arguments[3]:void 0;const o=(e.length+t-n%e.length)%e.length;return r&&r(e[o])?x(e,o,1,r):o}function S(e,t){let n=arguments.length>3?arguments[3]:void 0;const r=(t+(arguments.length>2&&void 0!==arguments[2]?arguments[2]:1))%e.length;return n&&n(e[r])?S(e,r,1,n):r}var C=n(44920);const k=[],O=r.createContext({activeMenuPath:k,setActiveMenuPath:()=>{},anchorRef:{current:null}}),T=e=>{let{anchorRef:t,children:n,disabled:o}=e;const[i,a]=r.useState(k);r.useEffect((()=>{o&&a(k)}),[o]);const s=r.useMemo((()=>({activeMenuPath:i,setActiveMenuPath:a,anchorRef:t})),[i,t]);return r.createElement(O.Provider,{value:s},n)},N={text:"",action:()=>{},path:[]};function I(e){return e===N}function P(e){return e.disabled||I(e)}function R(e){var t;return null!==(t=null===e||void 0===e?void 0:e.join(" "))&&void 0!==t?t:""}const D=e=>{let{items:t,open:n,anchorRef:o,onClose:i,size:a,menuProps:s,children:l,popupProps:d,path:f=[]}=e;const{toggle:p,data:h}=r.useContext(u),{activeMenuPath:m,setActiveMenuPath:g,anchorRef:v}=r.useContext(O),y=f.length>0,b=r.useCallback((()=>{g(f.slice(0,f.length-1))}),[g,f]),w=r.useCallback((e=>{var t;g(f),null===(t=null===d||void 0===d?void 0:d.onMouseEnter)||void 0===t||t.call(d,e)}),[f,d,g]),_=r.useCallback((e=>{var t;b(),null===(t=null===d||void 0===d?void 0:d.onMouseLeave)||void 0===t||t.call(d,e)}),[b,d]),k=r.useCallback(((e,t)=>{var n;e.items&&e.path?g(e.path):(null===(n=e.action)||void 0===n||n.call(e,t,h),p(!1))}),[h,g,p]),T=r.useCallback(((e,n)=>{switch(n.key){case"Escape":return y&&(n.stopPropagation(),null===b||void 0===b||b()),!1;case"Enter":case" ":{const r=t[e],o=null===r||void 0===r?void 0:r.items;return(y||o)&&(n.stopPropagation(),n.preventDefault()),r&&k(r,n),!1}}return!0}),[b,k,y,t]),N=n&&R(f)===R(m),{activeItemIndex:D,setActiveItemIndex:A,reset:j}=function(e){let{items:t,skip:n,pageSize:o,processHomeKey:i=!0,processEndKey:a=!0,anchorRef:s,disabled:l=!1,initialValue:c=-1,onAnchorKeyDown:u}=e;const[d,f]=r.useState(c),p=r.useCallback((()=>{f(c)}),[c]);return r.useEffect((()=>{t&&p()}),[t,p]),r.useLayoutEffect((()=>{if(l)return;if(!t.some((e=>!(null===n||void 0===n?void 0:n(e)))))return;const e=null===s||void 0===s?void 0:s.current;if(!e)return;const r=e=>{if(!1!==(null===u||void 0===u?void 0:u(d,e)))switch(e.key){case"ArrowDown":e.preventDefault(),f((e=>S(t,e,1,n)));break;case"ArrowUp":e.preventDefault(),f((e=>x(t,e,1,n)));break;case"PageDown":if(!o)return;e.preventDefault(),f((e=>S(t,e,o,n)));break;case"PageUp":if(!o)return;e.preventDefault(),f((e=>x(t,e,o,n)));break;case"Home":if(!i)return;e.preventDefault(),f((e=>x(t,e,e,n)));break;case"End":if(!a)return;e.preventDefault(),f((e=>x(t,e,e+1,n)))}};return e.addEventListener("keydown",r),()=>{e.removeEventListener("keydown",r)}}),[d,s,l,t,u,o,a,i,n]),{activeItemIndex:d,setActiveItemIndex:f,reset:p}}({items:t,skip:P,anchorRef:v,onAnchorKeyDown:T,disabled:!N,initialValue:y?0:-1});return r.useEffect((()=>{n||j()}),[n,j]),r.createElement(C.G,Object.assign({open:n,anchorRef:o,onClose:i},d,{onMouseEnter:w,onMouseLeave:_}),l||r.createElement(E,Object.assign({className:c("menu"),size:a},s),t.map(((e,t)=>{var o;const a=N&&D===t,s=n&&!a&&0!==m.length&&R(e.path)===R(m.slice(0,e.path.length)),l=Object.assign(Object.assign({},e.extraProps),{onMouseEnter:()=>A(t)});return r.createElement(M,Object.assign({key:t,className:c("menu-item",{separator:I(e),"active-parent":s,"with-submenu":Boolean(null===(o=e.items)||void 0===o?void 0:o.length)},e.className),selected:a,popupProps:d,closeMenu:i},e,{extraProps:l}))}))))};function A(e,t){var n;return null!==(n=null===e||void 0===e?void 0:e.every(((e,n)=>e===(null===t||void 0===t?void 0:t[n]))))&&void 0!==n&&n}function j(e){let{items:t,path:n}=e;const{activeMenuPath:o,setActiveMenuPath:i}=r.useContext(O),a=Boolean(n)&&Boolean(null===t||void 0===t?void 0:t.length),s=r.useCallback((()=>{n&&i(n.slice(0,n.length-1))}),[n,i]),l=r.useCallback((()=>{n&&i(n)}),[n,i]);return{hasSubmenu:a,isSubmenuOpen:A(n,o),openSubmenu:l,closeSubmenu:s}}const M=e=>{var{text:t,action:n,items:o,popupProps:i,closeMenu:a,children:l,path:h}=e,m=(0,d._T)(e,["text","action","items","popupProps","closeMenu","children","path"]);const{toggle:g,data:v}=r.useContext(u),y=r.useRef(null),b=(0,_.g)(),{hasSubmenu:w,isSubmenuOpen:x,closeSubmenu:S,openSubmenu:C}=j({items:o,path:h}),k=r.useCallback((()=>{const e=()=>{a?a():g(!1)};w?(S(),requestAnimationFrame(e)):e()}),[a,S,w,g]),O=r.useCallback((e=>{w||(null===n||void 0===n||n(e,v),k())}),[n,v,k,w]),T=r.useMemo((()=>Object.assign(Object.assign({},m.extraProps),{onMouseEnter:e=>{var t,n;null===(n=null===(t=m.extraProps)||void 0===t?void 0:t.onMouseEnter)||void 0===n||n.call(t,e),w&&C()},onMouseLeave:e=>{var t,n;null===(n=null===(t=m.extraProps)||void 0===t?void 0:t.onMouseLeave)||void 0===n||n.call(t,e),w&&S()}})),[m.extraProps,S,w,C]),N=r.useMemo((()=>"rtl"===b?["left-start","right-start"]:["right-start","left-start"]),[b]),I=r.useMemo((()=>w?r.createElement(s.J,{data:"rtl"===b?f.Z:p.Z,size:10,className:c("sub-menu-arrow")}):m.iconEnd),[w,b,m.iconEnd]);return r.createElement(r.Fragment,null,r.createElement(E.Item,Object.assign({ref:y},m,{extraProps:T,onClick:O,iconEnd:I}),t||l),w&&o&&r.createElement(D,{popupProps:Object.assign(Object.assign({},i),{className:c("sub-menu",null===i||void 0===i?void 0:i.className),placement:N}),items:o,path:h,open:x,anchorRef:y,onClose:k}))},L=e=>"function"===typeof e;function z(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0!==e&&void 0!==t;const i=function(e,t){const[n,o]=r.useState(e);return[n,r.useCallback((e=>{L(e)?o((n=>{const r=e(n);return null===t||void 0===t||t(r),r})):(null===t||void 0===t||t(e),o(e))}),[t])]}(e||n,t);return o?[e,t]:i}function F(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];const r=[];let o=!1,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;for(const a of e)if(Array.isArray(a)){const e=F(a,t,n,i);0!==r.length&&r.push(t),r.push(...e),i+=e.length,o=!0}else{if(a.hidden)continue;o&&r.push(t);const e=Object.assign(Object.assign({},a),{path:[...n,i++]});a.items&&(e.items=F(a.items,t,e.path)),r.push(e),o=!1}return r}const B=Object.assign((e=>{let{items:t=[],size:n="m",icon:l=r.createElement(s.J,{data:o.Z}),open:d,onOpenToggle:f,hideOnScroll:p=!0,data:h,disabled:m,switcher:g,renderSwitcher:v,switcherWrapperClassName:y,defaultSwitcherProps:b,defaultSwitcherClassName:w,onSwitcherClick:E,menuProps:_,popupProps:x,children:S}=e;const C=r.useRef(null),{isPopupShown:k,togglePopup:O,closePopup:I}=function(e,t,n){const[o,i]=z(e,t,!1),a=r.useCallback((e=>{i((t=>"boolean"===typeof e?e:!t))}),[i]),s=r.useCallback((()=>{i(!1)}),[i]);return r.useEffect((()=>{n&&o&&s()}),[s,n,o]),{isPopupShown:o,togglePopup:a,closePopup:s}}(d,f,m);!function(e,t,n){r.useEffect((()=>{if(n)return;const r=n=>{n.target.contains(t.current)&&e(n)};return document.addEventListener("scroll",r,!0),()=>{document.removeEventListener("scroll",r,!0)}}),[t,e,n])}(I,C,!k||!p);const P=r.useMemo((()=>({toggle:O,data:h})),[h,O]),R=r.useMemo((()=>F(t,N)),[t]),A=r.useCallback((e=>{m||(null===E||void 0===E||E(e),O())}),[m,E,O]),{onKeyDown:j}=(0,i.b)(A),M=r.useMemo((()=>({onClick:A,onKeyDown:j})),[A,j]);return r.createElement(u.Provider,{value:P},r.createElement("div",Object.assign({ref:C,className:c("switcher-wrapper",y)},v?{}:M),(null===v||void 0===v?void 0:v(M))||g||r.createElement(a.z,Object.assign({view:"flat",size:n},b,{className:c("switcher-button",w),disabled:m}),l)),r.createElement(T,{anchorRef:C,disabled:!k},r.createElement(D,{items:R,open:k,size:n,menuProps:_,anchorRef:C,onClose:I,popupProps:x},S)))}),{Item:M})},88776:(e,t,n)=>{"use strict";n.d(t,{J:()=>c});var r=n(68963),o=n(36951);const i={"aria-hidden":!0};function a(e){return"object"===typeof e}function s(e){return"string"===typeof e}const l=(0,o.Ge)("icon"),c=r.forwardRef(((e,t)=>{let n,o,u,{data:d,width:f,height:p,size:h,className:m,fill:g="currentColor",stroke:v="none",qa:y}=e;if(h&&(n=h,o=h),f&&(n=f),p&&(o=p),a(d))({viewBox:u}=d);else if(s(d))u=function(e){const t=e.match(/viewBox=(["']?)([\d\s,-]+)\1/);return t?t[2]:void 0}(d);else if(function(e){return"object"===typeof e&&"defaultProps"in e}(d))({viewBox:u}=d.defaultProps);else if(function(e){return"function"===typeof e&&(!e.prototype||!e.prototype.render)}(d)){const e=d({});e&&({viewBox:u}=e.props)}if(u&&(!n||!o)){const e=u.split(/\s+|\s*,\s*/);n||(n=e[2]),o||(o=e[3])}const b=Object.assign({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:n,height:o,className:l(null,m),fill:g,stroke:v,"data-qa":y},i);if(s(d)){const e=function(e){return e.replace(/<svg[^>]*>/,(e=>e.replace(/(width|height)=(["']?)\d+\2/g,"").replace(/(\s){2,}\b/g,"$1").replace(/(\s)+>/g,">")))}(d);return r.createElement("svg",Object.assign({},b,{ref:t,dangerouslySetInnerHTML:{__html:e}}))}if(a(d)){const e=c.prefix+(d.url||`#${d.id}`);return r.createElement("svg",Object.assign({},b,{viewBox:u,ref:t}),r.createElement("use",{href:e,xlinkHref:e}))}const w=d;return w.defaultProps&&(w.defaultProps.width=w.defaultProps.height=void 0),r.createElement("svg",Object.assign({},b,{ref:t}),r.createElement(w,{width:void 0,height:void 0}))}));c.displayName="Icon",c.prefix=""},14979:(e,t,n)=>{"use strict";n.d(t,{_:()=>u});var r=n(68963),o=n(77280),i=n(11050),a=n(81434),s=n(88776);const l=(0,n(36951).Ge)("label"),c={xs:{copyIconSize:12,closeIconSize:12},s:{copyIconSize:14,closeIconSize:14},m:{copyIconSize:16,closeIconSize:16}},u=r.forwardRef((function(e,t){const{type:n="default",theme:u="normal",size:d="xs",icon:f,children:p,onCloseClick:h,className:m,disabled:g,copyText:v,closeButtonLabel:y,copyButtonLabel:b,interactive:w=!1,value:E,onCopy:_,onClick:x,qa:S}=e,C=Boolean(""!==p&&r.Children.count(p)>0),k="close"===n&&C,O="copy"===n&&C,T="function"===typeof x,N=Boolean(O&&v),I=(T||N||w)&&!g,{copyIconSize:P,closeIconSize:R}=c[d],D=f&&r.createElement("div",{className:l("addon",{side:C?"start":void 0,type:"icon"})},f),A=C&&r.createElement("div",{className:l("text")},r.createElement("div",{className:l("content")},p),Boolean(E)&&r.createElement("div",{className:l("value")},r.createElement("div",{className:l("separator")},":"),r.createElement("div",{className:l("key")},E))),j=e=>{let n;return O?n=r.createElement("button",{type:"button","aria-label":b||void 0,onClick:T?x:void 0,disabled:g,className:l("addon",{side:"end",type:"button"})},r.createElement(i.K,{status:e||"pending",size:P})):k&&(n=r.createElement("button",{type:"button",onClick:h,"aria-label":y||void 0,disabled:g,className:l("addon",{side:"end",type:"button"})},r.createElement(s.J,{size:R,data:o.Z}))),r.createElement("div",{ref:t,className:l({theme:u,size:d,interactive:I,disabled:g},m),"data-qa":S},D,T?r.createElement("button",{disabled:g,type:"button",onClick:x,className:l("main-button")},A):A,n)};return N&&v&&!T?r.createElement(a.h,{text:v,onCopy:_,timeout:1e3},(e=>j(e))):j()}))},86017:(e,t,n)=>{"use strict";n.d(t,{r:()=>s});var r=n(68963),o=n(36951),i=n(93404);const a=(0,o.Ge)("link"),s=r.forwardRef((function(e,t){let{view:n="normal",visitable:o,underline:s,href:l,target:c,rel:u,title:d,children:f,extraProps:p,onClick:h,onFocus:m,onBlur:g,id:v,style:y,className:b,qa:w}=e;const E={title:d,onClick:h,onClickCapture:r.useCallback((e=>{i.P.publish({componentId:"Link",eventId:"click",domEvent:e})}),[]),onFocus:m,onBlur:g,id:v,style:y,className:a({view:n,visitable:o,underline:s},b),"data-qa":w},_="_blank"!==c||u?u:"noopener noreferrer";return r.createElement("a",Object.assign({},p,E,{ref:t,href:l,target:c,rel:_}),f)}))},24917:(e,t,n)=>{"use strict";n.d(t,{a:()=>ce});var r=n(68963),o=n(85690),i=n.n(o),a=n(95188),s=n.n(a),l=n(90966);let c;c="undefined"!==typeof window?window:"undefined"!==typeof self?self:n.g;let u=null,d=null;const f=c.clearTimeout,p=c.setTimeout,h=c.cancelAnimationFrame||c.mozCancelAnimationFrame||c.webkitCancelAnimationFrame,m=c.requestAnimationFrame||c.mozRequestAnimationFrame||c.webkitRequestAnimationFrame;function g(e){let t,n,r,o,i,a,s;const l="undefined"!==typeof document&&document.attachEvent;if(!l){a=function(e){const t=e.__resizeTriggers__,n=t.firstElementChild,r=t.lastElementChild,o=n.firstElementChild;r.scrollLeft=r.scrollWidth,r.scrollTop=r.scrollHeight,o.style.width=n.offsetWidth+1+"px",o.style.height=n.offsetHeight+1+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight},i=function(e){return e.offsetWidth!==e.__resizeLast__.width||e.offsetHeight!==e.__resizeLast__.height},s=function(e){if(e.target.className&&"function"===typeof e.target.className.indexOf&&e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)return;const t=this;a(this),this.__resizeRAF__&&u(this.__resizeRAF__),this.__resizeRAF__=d((function(){i(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach((function(n){n.call(t,e)})))}))};let e=!1,l="";r="animationstart";const c="Webkit Moz O ms".split(" ");let f="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),p="";{const t=document.createElement("fakeelement");if(void 0!==t.style.animationName&&(e=!0),!1===e)for(let n=0;n<c.length;n++)if(void 0!==t.style[c[n]+"AnimationName"]){p=c[n],l="-"+p.toLowerCase()+"-",r=f[n],e=!0;break}}n="resizeanim",t="@"+l+"keyframes "+n+" { from { opacity: 0; } to { opacity: 0; } } ",o=l+"animation: 1ms "+n+"; "}return{addResizeListener:function(i,u){if(l)i.attachEvent("onresize",u);else{if(!i.__resizeTriggers__){const l=i.ownerDocument,u=c.getComputedStyle(i);u&&"static"===u.position&&(i.style.position="relative"),function(n){if(!n.getElementById("detectElementResize")){const r=(t||"")+".resize-triggers { "+(o||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',i=n.head||n.getElementsByTagName("head")[0],a=n.createElement("style");a.id="detectElementResize",a.type="text/css",null!=e&&a.setAttribute("nonce",e),a.styleSheet?a.styleSheet.cssText=r:a.appendChild(n.createTextNode(r)),i.appendChild(a)}}(l),i.__resizeLast__={},i.__resizeListeners__=[],(i.__resizeTriggers__=l.createElement("div")).className="resize-triggers";const d=l.createElement("div");d.className="expand-trigger",d.appendChild(l.createElement("div"));const f=l.createElement("div");f.className="contract-trigger",i.__resizeTriggers__.appendChild(d),i.__resizeTriggers__.appendChild(f),i.appendChild(i.__resizeTriggers__),a(i),i.addEventListener("scroll",s,!0),r&&(i.__resizeTriggers__.__animationListener__=function(e){e.animationName===n&&a(i)},i.__resizeTriggers__.addEventListener(r,i.__resizeTriggers__.__animationListener__))}i.__resizeListeners__.push(u)}},removeResizeListener:function(e,t){if(l)e.detachEvent("onresize",t);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",s,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(r,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(n){}}}}}null==h||null==m?(u=f,d=function(e){return p(e,20)}):(u=function(e){let[t,n]=e;h(t),f(n)},d=function(e){const t=m((function(){f(n),e()})),n=p((function(){h(t),e()}),20);return[t,n]});class v extends r.Component{constructor(){super(...arguments),this.state={height:this.props.defaultHeight||0,scaledHeight:this.props.defaultHeight||0,scaledWidth:this.props.defaultWidth||0,width:this.props.defaultWidth||0},this._autoSizer=null,this._detectElementResize=null,this._parentNode=null,this._resizeObserver=null,this._timeoutId=null,this._onResize=()=>{this._timeoutId=null;const{disableHeight:e,disableWidth:t,onResize:n}=this.props;if(this._parentNode){const r=window.getComputedStyle(this._parentNode)||{},o=parseFloat(r.paddingLeft||"0"),i=parseFloat(r.paddingRight||"0"),a=parseFloat(r.paddingTop||"0"),s=parseFloat(r.paddingBottom||"0"),l=this._parentNode.getBoundingClientRect(),c=l.height-a-s,u=l.width-o-i,d=this._parentNode.offsetHeight-a-s,f=this._parentNode.offsetWidth-o-i;(e||this.state.height===d&&this.state.scaledHeight===c)&&(t||this.state.width===f&&this.state.scaledWidth===u)||(this.setState({height:d,width:f,scaledHeight:c,scaledWidth:u}),"function"===typeof n&&n({height:d,scaledHeight:c,scaledWidth:u,width:f}))}},this._setRef=e=>{this._autoSizer=e}}componentDidMount(){const{nonce:e}=this.props,t=this._autoSizer?this._autoSizer.parentNode:null;if(null!=t&&t.ownerDocument&&t.ownerDocument.defaultView&&t instanceof t.ownerDocument.defaultView.HTMLElement){this._parentNode=t;const n=t.ownerDocument.defaultView.ResizeObserver;null!=n?(this._resizeObserver=new n((()=>{this._timeoutId=setTimeout(this._onResize,0)})),this._resizeObserver.observe(t)):(this._detectElementResize=g(e),this._detectElementResize.addResizeListener(t,this._onResize)),this._onResize()}}componentWillUnmount(){this._parentNode&&(this._detectElementResize&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize),null!==this._timeoutId&&clearTimeout(this._timeoutId),this._resizeObserver&&this._resizeObserver.disconnect())}render(){const{children:e,defaultHeight:t,defaultWidth:n,disableHeight:o=!1,disableWidth:i=!1,doNotBailOutOnEmptyChildren:a=!1,nonce:s,onResize:l,style:c={},tagName:u="div",...d}=this.props,{height:f,scaledHeight:p,scaledWidth:h,width:m}=this.state,g={overflow:"visible"},v={};let y=!1;return o||(0===f&&(y=!0),g.height=0,v.height=f,v.scaledHeight=p),i||(0===m&&(y=!0),g.width=0,v.width=m,v.scaledWidth=h),a&&(y=!1),(0,r.createElement)(u,{ref:this._setRef,style:{...g,...c},...d},!y&&e(v))}}var y=n(87462),b=n(97326),w=n(51721),E=n(90083),_="object"===typeof performance&&"function"===typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function x(e){cancelAnimationFrame(e.id)}function S(e,t){var n=_();var r={id:requestAnimationFrame((function o(){_()-n>=t?e.call(null):r.id=requestAnimationFrame(o)}))};return r}var C=-1;function k(e){if(void 0===e&&(e=!1),-1===C||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),C=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return C}var O=null;function T(e){if(void 0===e&&(e=!1),null===O||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),o=r.style;return o.width="100px",o.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?O="positive-descending":(t.scrollLeft=1,O=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),O}return O}var N=150,I=function(e,t){return e};function P(e){var t,n=e.getItemOffset,o=e.getEstimatedTotalSize,i=e.getItemSize,a=e.getOffsetForIndexAndAlignment,s=e.getStartIndexForOffset,l=e.getStopIndexForStartIndex,c=e.initInstanceProps,u=e.shouldResetStyleCacheOnItemSizeChange,d=e.validateProps;return t=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=c(r.props,(0,b.Z)(r)),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:(0,b.Z)(r),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"===typeof r.props.initialScrollOffset?r.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},r._callOnItemsRendered=void 0,r._callOnItemsRendered=(0,E.Z)((function(e,t,n,o){return r.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:o})})),r._callOnScroll=void 0,r._callOnScroll=(0,E.Z)((function(e,t,n){return r.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:n})})),r._getItemStyle=void 0,r._getItemStyle=function(e){var t,o=r.props,a=o.direction,s=o.itemSize,l=o.layout,c=r._getItemStyleCache(u&&s,u&&l,u&&a);if(c.hasOwnProperty(e))t=c[e];else{var d=n(r.props,e,r._instanceProps),f=i(r.props,e,r._instanceProps),p="horizontal"===a||"horizontal"===l,h="rtl"===a,m=p?d:0;c[e]=t={position:"absolute",left:h?void 0:m,right:h?m:void 0,top:p?0:d,height:p?"100%":f,width:p?f:"100%"}}return t},r._getItemStyleCache=void 0,r._getItemStyleCache=(0,E.Z)((function(e,t,n){return{}})),r._onScrollHorizontal=function(e){var t=e.currentTarget,n=t.clientWidth,o=t.scrollLeft,i=t.scrollWidth;r.setState((function(e){if(e.scrollOffset===o)return null;var t=r.props.direction,a=o;if("rtl"===t)switch(T()){case"negative":a=-o;break;case"positive-descending":a=i-n-o}return a=Math.max(0,Math.min(a,i-n)),{isScrolling:!0,scrollDirection:e.scrollOffset<a?"forward":"backward",scrollOffset:a,scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._onScrollVertical=function(e){var t=e.currentTarget,n=t.clientHeight,o=t.scrollHeight,i=t.scrollTop;r.setState((function(e){if(e.scrollOffset===i)return null;var t=Math.max(0,Math.min(i,o-n));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._outerRefSetter=function(e){var t=r.props.outerRef;r._outerRef=e,"function"===typeof t?t(e):null!=t&&"object"===typeof t&&t.hasOwnProperty("current")&&(t.current=e)},r._resetIsScrollingDebounced=function(){null!==r._resetIsScrollingTimeoutId&&x(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=S(r._resetIsScrolling,N)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1,null)}))},r}(0,w.Z)(t,e),t.getDerivedStateFromProps=function(e,t){return R(e,t),d(e),null};var f=t.prototype;return f.scrollTo=function(e){e=Math.max(0,e),this.setState((function(t){return t.scrollOffset===e?null:{scrollDirection:t.scrollOffset<e?"forward":"backward",scrollOffset:e,scrollUpdateWasRequested:!0}}),this._resetIsScrollingDebounced)},f.scrollToItem=function(e,t){void 0===t&&(t="auto");var n=this.props,r=n.itemCount,o=n.layout,i=this.state.scrollOffset;e=Math.max(0,Math.min(e,r-1));var s=0;if(this._outerRef){var l=this._outerRef;s="vertical"===o?l.scrollWidth>l.clientWidth?k():0:l.scrollHeight>l.clientHeight?k():0}this.scrollTo(a(this.props,e,t,i,this._instanceProps,s))},f.componentDidMount=function(){var e=this.props,t=e.direction,n=e.initialScrollOffset,r=e.layout;if("number"===typeof n&&null!=this._outerRef){var o=this._outerRef;"horizontal"===t||"horizontal"===r?o.scrollLeft=n:o.scrollTop=n}this._callPropsCallbacks()},f.componentDidUpdate=function(){var e=this.props,t=e.direction,n=e.layout,r=this.state,o=r.scrollOffset;if(r.scrollUpdateWasRequested&&null!=this._outerRef){var i=this._outerRef;if("horizontal"===t||"horizontal"===n)if("rtl"===t)switch(T()){case"negative":i.scrollLeft=-o;break;case"positive-ascending":i.scrollLeft=o;break;default:var a=i.clientWidth,s=i.scrollWidth;i.scrollLeft=s-a-o}else i.scrollLeft=o;else i.scrollTop=o}this._callPropsCallbacks()},f.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&x(this._resetIsScrollingTimeoutId)},f.render=function(){var e=this.props,t=e.children,n=e.className,i=e.direction,a=e.height,s=e.innerRef,l=e.innerElementType,c=e.innerTagName,u=e.itemCount,d=e.itemData,f=e.itemKey,p=void 0===f?I:f,h=e.layout,m=e.outerElementType,g=e.outerTagName,v=e.style,b=e.useIsScrolling,w=e.width,E=this.state.isScrolling,_="horizontal"===i||"horizontal"===h,x=_?this._onScrollHorizontal:this._onScrollVertical,S=this._getRangeToRender(),C=S[0],k=S[1],O=[];if(u>0)for(var T=C;T<=k;T++)O.push((0,r.createElement)(t,{data:d,key:p(T,d),index:T,isScrolling:b?E:void 0,style:this._getItemStyle(T)}));var N=o(this.props,this._instanceProps);return(0,r.createElement)(m||g||"div",{className:n,onScroll:x,ref:this._outerRefSetter,style:(0,y.Z)({position:"relative",height:a,width:w,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:i},v)},(0,r.createElement)(l||c||"div",{children:O,ref:s,style:{height:_?"100%":N,pointerEvents:E?"none":void 0,width:_?N:"100%"}}))},f._callPropsCallbacks=function(){if("function"===typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],n=e[1],r=e[2],o=e[3];this._callOnItemsRendered(t,n,r,o)}if("function"===typeof this.props.onScroll){var i=this.state,a=i.scrollDirection,s=i.scrollOffset,l=i.scrollUpdateWasRequested;this._callOnScroll(a,s,l)}},f._getRangeToRender=function(){var e=this.props,t=e.itemCount,n=e.overscanCount,r=this.state,o=r.isScrolling,i=r.scrollDirection,a=r.scrollOffset;if(0===t)return[0,0,0,0];var c=s(this.props,a,this._instanceProps),u=l(this.props,c,a,this._instanceProps),d=o&&"backward"!==i?1:Math.max(1,n),f=o&&"forward"!==i?1:Math.max(1,n);return[Math.max(0,c-d),Math.max(0,Math.min(t-1,u+f)),c,u]},t}(r.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var R=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},D=function(e,t,n){var r=e.itemSize,o=n.itemMetadataMap,i=n.lastMeasuredIndex;if(t>i){var a=0;if(i>=0){var s=o[i];a=s.offset+s.size}for(var l=i+1;l<=t;l++){var c=r(l);o[l]={offset:a,size:c},a+=c}n.lastMeasuredIndex=t}return o[t]},A=function(e,t,n,r,o){for(;r<=n;){var i=r+Math.floor((n-r)/2),a=D(e,i,t).offset;if(a===o)return i;a<o?r=i+1:a>o&&(n=i-1)}return r>0?r-1:0},j=function(e,t,n,r){for(var o=e.itemCount,i=1;n<o&&D(e,n,t).offset<r;)n+=i,i*=2;return A(e,t,Math.min(n,o-1),Math.floor(n/2),r)},M=function(e,t){var n=e.itemCount,r=t.itemMetadataMap,o=t.estimatedItemSize,i=t.lastMeasuredIndex,a=0;if(i>=n&&(i=n-1),i>=0){var s=r[i];a=s.offset+s.size}return a+(n-i-1)*o},L=P({getItemOffset:function(e,t,n){return D(e,t,n).offset},getItemSize:function(e,t,n){return n.itemMetadataMap[t].size},getEstimatedTotalSize:M,getOffsetForIndexAndAlignment:function(e,t,n,r,o,i){var a=e.direction,s=e.height,l=e.layout,c=e.width,u="horizontal"===a||"horizontal"===l?c:s,d=D(e,t,o),f=M(e,o),p=Math.max(0,Math.min(f-u,d.offset)),h=Math.max(0,d.offset-u+d.size+i);switch("smart"===n&&(n=r>=h-u&&r<=p+u?"auto":"center"),n){case"start":return p;case"end":return h;case"center":return Math.round(h+(p-h)/2);default:return r>=h&&r<=p?r:r<h?h:p}},getStartIndexForOffset:function(e,t,n){return function(e,t,n){var r=t.itemMetadataMap,o=t.lastMeasuredIndex;return(o>0?r[o].offset:0)>=n?A(e,t,o,0,n):j(e,t,Math.max(0,o),n)}(e,n,t)},getStopIndexForStartIndex:function(e,t,n,r){for(var o=e.direction,i=e.height,a=e.itemCount,s=e.layout,l=e.width,c="horizontal"===o||"horizontal"===s?l:i,u=D(e,t,r),d=n+c,f=u.offset+u.size,p=t;p<a-1&&f<d;)p++,f+=D(e,p,r).size;return p},initInstanceProps:function(e,t){var n={itemMetadataMap:{},estimatedItemSize:e.estimatedItemSize||50,lastMeasuredIndex:-1};return t.resetAfterIndex=function(e,r){void 0===r&&(r=!0),n.lastMeasuredIndex=Math.min(n.lastMeasuredIndex,e-1),t._getItemStyleCache(-1),r&&t.forceUpdate()},n},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.itemSize}});var z=n(77264),F=n(84584),B=n(72644),U=n(36951),q=n(99742),$=n(63096),Z=n(2982);const H=(0,U.Ge)("list"),V=e=>{const t=r.useRef(null);return(0,$.s)({element:t.current,onIntersect:null===e||void 0===e?void 0:e.onIntersect}),r.createElement("div",{ref:t,className:H("loading-indicator")},r.createElement(Z.a,{qa:"list-loader"}))};var W=n(20397),G=n(88776),Y=n(93404),K=n(59926);const Q="list-active-item",J=[K.V.TAB],X=(0,U.Ge)("list"),ee=e=>String(e);function te(e,t){return t?Object.assign(Object.assign({},null===e||void 0===e?void 0:e.draggableProps.style),t):null===e||void 0===e?void 0:e.draggableProps.style}class ne extends r.Component{constructor(){super(...arguments),this.node=null,this.getNode=()=>this.node,this.setRef=e=>{var t;this.node=e,null===(t=this.props.provided)||void 0===t||t.innerRef(e)},this.onClick=e=>{this.props.onClick&&this.props.onClick(this.props.item,this.props.itemIndex,!1,e)},this.onClickCapture=e=>{ne.publishEvent({domEvent:e,eventId:"click"})},this.onMouseEnter=()=>!this.props.item.disabled&&this.props.onActivate(this.props.itemIndex),this.onMouseLeave=()=>this.props.onActivate(void 0)}render(){var e,t;const{item:n,style:o,sortable:i,sortHandleAlign:a,itemClassName:s,selected:l,active:c,role:u="listitem",isDragging:d=!1}=this.props,f=Object.assign(Object.assign({},o),{right:void 0});return r.createElement("div",Object.assign({role:u,"aria-selected":l,"data-qa":c?Q:void 0,className:X("item",{sortable:i,active:c,selected:l,inactive:n.disabled,"sort-handle-align":a,dragging:d},s)},null===(e=this.props.provided)||void 0===e?void 0:e.draggableProps,null===(t=this.props.provided)||void 0===t?void 0:t.dragHandleProps,{style:te(this.props.provided,f),onClick:n.disabled?void 0:this.onClick,onClickCapture:n.disabled?void 0:this.onClickCapture,onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave,ref:this.setRef,id:`${this.props.listId}-item-${this.props.itemIndex}`}),this.renderSortIcon(),this.renderContent())}renderSortIcon(){const{sortable:e}=this.props;return e?r.createElement("div",{className:X("item-sort-icon")},r.createElement(G.J,{data:W.Z,size:12})):null}renderContent(){const{renderItem:e=ee,item:t,active:n,itemIndex:o}=this.props;return r.createElement("div",{className:X("item-content")},e(t,n,o))}}ne.publishEvent=Y.P.withEventPublisher("List");var re=n(28925),oe=n.n(re);function ie(e){return oe()(e).reduce(((e,t)=>(e[t]=r.createRef(),e)),{})}class ae extends r.Component{static getDerivedStateFromProps(e,t){let{itemCount:n}=e;return n===Object.keys(t.refsList).length?t:{refsList:ie(n)}}constructor(e){super(e),this.node=null,this.setRef=e=>{var t;this.node=e,null===(t=this.props.provided)||void 0===t||t.innerRef(e)},this.state={refsList:ie(e.itemCount)}}render(){const e=r.Children.map(this.props.children,((e,t)=>r.cloneElement(e,{ref:this.state.refsList[t]})));return r.createElement("div",{ref:this.setRef},e)}scrollToItem(e){var t,n;const r=null===(t=this.state.refsList[e])||void 0===t?void 0:t.current;if(r&&"function"===typeof r.getNode){const e=r.getNode();e&&(null===(n=e.scrollIntoView)||void 0===n||n.call(e,{block:"nearest"}))}}}const se=(0,U.Ge)("list"),le=r.forwardRef(((e,t)=>r.createElement(L,Object.assign({ref:t},e,{direction:(0,B.g)()}))));le.displayName="ListContainer";class ce extends r.Component{constructor(){super(...arguments),this.state={items:this.props.items,filter:""},this.refFilter=r.createRef(),this.refContainer=r.createRef(),this.blurTimer=null,this.loadingItem={value:"__LIST_ITEM_LOADING__",disabled:!1},this.uniqId=(0,q.xA)(),this.onKeyDown=e=>{const{activeItem:t,pageSize:n}=this.state;if(J.includes(e.key))return;const r=e.target instanceof HTMLInputElement;switch(e.key){case"ArrowDown":this.handleKeyMove(e,1,-1);break;case"ArrowUp":this.handleKeyMove(e,-1);break;case"PageDown":this.handleKeyMove(e,n);break;case"PageUp":this.handleKeyMove(e,-n);break;case"Home":if(r)return;this.handleKeyMove(e,this.state.items.length-(t||0));break;case"End":if(r)return;this.handleKeyMove(e,-(t||0)-1);break;case"Enter":"number"===typeof t&&this.props.onItemClick&&this.props.onItemClick(this.state.items[t],t,!0,e);break;default:this.refFilter.current&&this.refFilter.current.focus()}},this.renderItemContent=(e,t,n)=>{const{onLoadMore:o}=this.props;return s()(e)&&"value"in e&&e.value===this.loadingItem.value?r.createElement(V,{onIntersect:0===n?void 0:o}):this.props.renderItem?this.props.renderItem(e,t,n):ee(e)},this.renderItem=e=>{let{index:t,style:n,provided:o,isDragging:i}=e;var a;const{sortHandleAlign:s,role:l}=this.props,{items:c,activeItem:u}=this.state,d=this.getItemsWithLoading()[t],f=this.props.sortable&&c.length>1&&!this.getFilter(),p=t===u||t===this.props.activeItemIndex,h=Array.isArray(this.props.selectedItemIndex)?this.props.selectedItemIndex.includes(t):t===this.props.selectedItemIndex;return r.createElement(ne,{key:t,style:n,itemIndex:t,item:d,sortable:f,sortHandleAlign:s,renderItem:this.renderItemContent,itemClassName:this.props.itemClassName,active:p,selected:h,onActivate:this.onItemActivate,onClick:this.props.onItemClick,role:"listbox"===l?"option":"listitem",listId:null!==(a=this.props.id)&&void 0!==a?a:this.uniqId,provided:o,isDragging:i})},this.renderVirtualizedItem=e=>{let{index:t,style:n}=e;return r.createElement(l._l,{draggableId:String(t),index:t,key:`item-key-${t}`},(e=>this.renderItem({index:t,style:n,provided:e})))},this.filterItem=e=>t=>String(t).includes(e),this.scrollToIndex=e=>{const t=this.refContainer.current;t&&t.scrollToItem(e)},this.deactivate=()=>{this.blurTimer&&this.props.deactivateOnLeave&&this.setState({activeItem:void 0})},this.handleFocus=()=>{this.blurTimer&&(clearTimeout(this.blurTimer),this.blurTimer=null)},this.handleBlur=()=>{this.blurTimer||(this.blurTimer=setTimeout(this.deactivate,50))},this.onUpdateFilterInternal=e=>{const{items:t,filterItem:n=this.filterItem,onFilterEnd:r}=this.props;this.setState({filter:e,items:e?t.filter(n(e)):t},(()=>{r&&r({items:this.state.items})}))},this.onFilterUpdate=e=>{this.props.onFilterUpdate?this.props.onFilterUpdate(e):this.onUpdateFilterInternal(e)},this.onItemsRendered=e=>{let{visibleStartIndex:t,visibleStopIndex:n}=e;this.setState({pageSize:n-t})},this.onItemActivate=e=>{this.state.sorting||this.activateItem(e,!1)},this.onMouseLeave=()=>{this.deactivate()},this.onSortStart=()=>{this.setState({sorting:!0})},this.onSortEnd=e=>{if(!e.destination)return void this.setState({sorting:!1});if(e.source.index===e.destination.index)return void this.setState({sorting:!1});const t=e.source.index,n=e.destination.index;this.props.onSortEnd&&this.props.onSortEnd({oldIndex:t,newIndex:n});const r=((e,t,n)=>{const r=Array.from(e),[o]=r.splice(t,1);return r.splice(n,0,o),r})(this.getItems(),t,n);this.setState({activeItem:n,items:r,sorting:!1})},this.getItemHeight=e=>{const{itemHeight:t}=this.props;if("function"===typeof t){const{items:n}=this.state;return t(n[e],e)}return t},this.getVirtualizedItemHeight=e=>this.getItemHeight(e)||28}static moveListElement(e,t,n){if(t!==n){const[r]=e.splice(t,1);e.splice(n,0,r)}return e}static findNextIndex(e,t,n){const r=e.length;let o=(t+r)%r;for(let i=0;i<r;i+=1){if(e[o]&&!e[o].disabled)return o;o=(o+r+n)%r}}componentDidUpdate(e,t){if(!i()(this.props.items,e.items)){const e=this.getFilter();e&&!this.props.onFilterUpdate?this.onUpdateFilterInternal(e):this.setState({items:this.props.items})}this.props.activeItemIndex!==e.activeItemIndex&&this.activateItem(this.props.activeItemIndex),this.props.onChangeActive&&this.state.activeItem!==t.activeItem&&this.props.onChangeActive(this.state.activeItem)}componentWillUnmount(){this.blurTimer=null}render(){const{id:e,emptyPlaceholder:t,virtualized:n,className:o,itemsClassName:i,qa:a,role:s="list"}=this.props,{items:l}=this.state;return r.createElement(F.z.Consumer,null,(c=>{let{mobile:u}=c;return r.createElement("div",{className:se({mobile:u},o),"data-qa":a,tabIndex:-1,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyDown:this.onKeyDown},this.renderFilter(),r.createElement("div",{id:e,className:se("items",{virtualized:n},i),style:this.getItemsStyle(),onMouseLeave:this.onMouseLeave,role:s},this.renderItems(),0===l.length&&Boolean(t)&&r.createElement("div",{className:se("empty-placeholder")},t)))}))}getItems(){return this.state.items}getItemsWithLoading(){return this.props.sortable?this.getItems():this.props.loading?[...this.state.items,this.loadingItem]:this.getItems()}getActiveItem(){return"number"===typeof this.state.activeItem?this.state.activeItem:null}activateItem(e){"number"===typeof e&&(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])&&this.scrollToIndex(e),this.setState({activeItem:e})}renderFilter(){const{size:e,filterable:t,filter:n=this.state.filter,filterPlaceholder:o,filterClassName:i="",autoFocus:a}=this.props;return t?r.createElement("div",{className:se("filter",i)},r.createElement(z.o,{controlRef:this.refFilter,size:e,placeholder:o,value:n,hasClear:!0,onUpdate:this.onFilterUpdate,autoFocus:a})):null}renderSimpleContainer(){const{sortable:e}=this.props,t=this.getItemsWithLoading();return e?r.createElement(l.Z5,{onDragStart:this.onSortStart,onDragEnd:this.onSortEnd},r.createElement(l.bK,{droppableId:"droppable",renderClone:(e,t,n)=>this.renderItem({index:n.source.index,provided:e,isDragging:t.isDragging})},(e=>r.createElement(ae,{ref:this.refContainer,itemCount:t.length,provided:e},t.map(((e,t)=>r.createElement(l._l,{draggableId:String(t),index:t,key:`item-key-${t}`},((e,n)=>this.renderItem({index:t,isDragging:n.isDragging,provided:e,style:{height:this.getItemHeight(t)}}))))))))):r.createElement(ae,{itemCount:t.length,ref:this.refContainer},t.map(((e,t)=>this.renderItem({index:t,style:{height:this.getItemHeight(t)}}))))}renderVirtualizedContainer(){const e=[...this.getItemsWithLoading()];return this.props.sortable?r.createElement(l.Z5,{onDragStart:this.onSortStart,onDragEnd:this.onSortEnd},r.createElement(l.bK,{droppableId:"droppable",mode:"virtual",renderClone:(e,t,n)=>this.renderItem({index:n.source.index,provided:e,isDragging:t.isDragging})},(t=>r.createElement(v,null,(n=>{let{width:o,height:i}=n;return r.createElement(le,{ref:this.refContainer,outerRef:t.innerRef,width:o,height:i,itemSize:this.getVirtualizedItemHeight,itemData:e,itemCount:e.length,overscanCount:10,onItemsRendered:this.onItemsRendered,activeItem:this.state.activeItem},this.renderVirtualizedItem)}))))):r.createElement(v,null,(t=>{let{width:n,height:o}=t;return r.createElement(le,{ref:this.refContainer,width:n,height:o,itemSize:this.getVirtualizedItemHeight,itemData:e,itemCount:e.length,overscanCount:10,onItemsRendered:this.onItemsRendered,activeItem:this.state.activeItem},this.renderItem)}))}renderItems(){return this.props.virtualized?this.renderVirtualizedContainer():this.renderSimpleContainer()}getFilter(){const{filter:e=this.state.filter}=this.props;return e}getItemsStyle(){let{itemsHeight:e}=this.props;return"function"===typeof e&&(e=e(this.state.items)),e?{height:e}:void 0}handleKeyMove(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const{activeItem:r=n}=this.state;e.preventDefault();const o=this.getItemsWithLoading();this.activateItem(ce.findNextIndex(o,r+t,Math.sign(t)))}}ce.defaultProps={items:[],itemClassName:"",filterable:!0,sortable:!1,virtualized:!0,deactivateOnLeave:!0}},2982:(e,t,n)=>{"use strict";n.d(t,{a:()=>i});var r=n(68963);const o=(0,n(36951).Ge)("loader");function i(e){let{size:t="s",className:n,qa:i}=e;return r.createElement("div",{className:o({size:t},n),"data-qa":i},r.createElement("div",{className:o("left")}),r.createElement("div",{className:o("center")}),r.createElement("div",{className:o("right")}))}},68330:(e,t,n)=>{"use strict";n.d(t,{J:()=>w});var r=n(68963),o=n(77280),i=n(17176),a=n(88776),s=n(44920),l=n(72644),c=n(12913);const u=(0,n(36951).Ge)("popover"),d=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];switch(e){case"special":return t?"normal-contrast":"flat-contrast";case"announcement":return t?"normal-contrast":"outlined";default:return t?"normal":"flat"}},f=e=>{let{theme:t,tooltipActionButton:n,tooltipCancelButton:o}=e;return n||o?r.createElement("div",{className:u("tooltip-buttons")},n&&r.createElement(i.z,{view:d(t,!0),width:"max",onClick:n.onClick,className:u("tooltip-button")},n.text),o&&r.createElement(i.z,{view:d(t,!1),width:"max",onClick:o.onClick,className:u("tooltip-button")},o.text)):null},p=e=>{let{secondary:t,htmlContent:n,content:o,className:i}=e;return n||o?n?r.createElement("div",{className:u("tooltip-content",{secondary:t},i),dangerouslySetInnerHTML:{__html:n}}):o?r.createElement("div",{className:u("tooltip-content",{secondary:t},i)},o):null:null};var h=n(86017);const m=e=>{let{links:t}=e;return 0===t.length?null:r.createElement("div",{className:u("tooltip-links")},t.map(((e,t)=>{const{text:n,href:o,target:i="_blank",onClick:a}=e;return r.createElement(r.Fragment,{key:`link-${t}`},r.createElement(h.r,{href:o,target:i,onClick:a,className:u("tooltip-link")},n),r.createElement("br",null))})))};var g=n(68512);const v=e=>{let{open:t,openOnHover:n,disabled:o,className:i,openTooltip:a,closeTooltip:s,closedManually:l,onClick:c,children:u}=e;const d=async e=>{if(o||t&&n)return;if(!(!c||await c(e)))return;t?(s(),l.current=!0):(a(),l.current=!1)},{onKeyDown:f}=(0,g.b)(d);return"function"===typeof u?r.createElement(r.Fragment,null,u({onClick:d,onKeyDown:f,open:t})):r.createElement("div",{className:i,onClick:d,onKeyDown:c?f:void 0},u)};var y=n(10502);const b=e=>{let{initialOpen:t,disabled:n,autoclosable:o,onOpenChange:i,delayOpening:a,delayClosing:s,behavior:l,shouldBeOpen:c}=e;const u=r.useRef(null),d=r.useRef(null),[f,p]=r.useState(t),h=r.useCallback((()=>{u.current&&(clearTimeout(u.current),u.current=null)}),[]),m=r.useCallback((()=>{d.current&&(clearTimeout(d.current),d.current=null)}),[]);r.useEffect((()=>()=>{h(),m()}),[m,h]);const g=r.useCallback((e=>{p(e),c.current=e,null===i||void 0===i||i(e)}),[i,c]),v=r.useCallback((()=>{h(),g(!0)}),[g,h]),b=r.useCallback((()=>{m(),g(!1)}),[g,m]);r.useEffect((()=>{n&&b()}),[n,b]),((e,t)=>{const n=r.useRef(!0);r.useEffect((()=>{n.current?n.current=!1:e()}),t)})((()=>{o&&!c.current&&b()}),[o,b,c]);const[w,E]=y.q[l],_=r.useCallback((()=>{u.current=setTimeout((()=>{u.current=null,v()}),null!==a&&void 0!==a?a:w)}),[w,a,v]),x=r.useCallback((()=>{d.current=setTimeout((()=>{d.current=null,b()}),null!==s&&void 0!==s?s:E)}),[b,E,s]);return{isOpen:f,closingTimeout:d,openTooltip:v,openTooltipDelayed:_,unsetOpeningTimeout:h,closeTooltip:b,closeTooltipDelayed:x,unsetClosingTimeout:m}},w=r.forwardRef((function(e,t){let{initialOpen:n=!1,disabled:d=!1,autoclosable:h=!0,openOnHover:g=!0,delayOpening:w,delayClosing:E,behavior:_=y.x.Delayed,placement:x,offset:S={},tooltipOffset:C,tooltipClassName:k,tooltipContentClassName:O,theme:T="info",size:N="s",hasArrow:I=!0,hasClose:P=!1,className:R,children:D,title:A,content:j,htmlContent:M,contentClassName:L,links:z,forceLinksAppearance:F=!1,tooltipActionButton:B,tooltipCancelButton:U,onOpenChange:q,onCloseClick:$,onClick:Z,anchorRef:H,strategy:V,qa:W,disablePortal:G=!1,tooltipId:Y,focusTrap:K,autoFocus:Q,restoreFocusRef:J,modifiers:X}=e;const ee=(0,l.g)(),te=r.useRef(null),ne=r.useRef(!1),re=r.useRef(n),{isOpen:oe,closingTimeout:ie,openTooltip:ae,openTooltipDelayed:se,unsetOpeningTimeout:le,closeTooltip:ce,closeTooltipDelayed:ue,unsetClosingTimeout:de}=b({initialOpen:n,disabled:d,autoclosable:h,onOpenChange:q,delayOpening:w,delayClosing:E,behavior:_,shouldBeOpen:re}),fe=r.useMemo((()=>x||("rtl"===ee?["left","bottom"]:["right","bottom"])),[ee,x]);r.useImperativeHandle(t,(()=>({openTooltip:ae,closeTooltip:ce})),[ae,ce]);const pe=Boolean(A),he=r.createElement(s.G,{id:Y,role:g?"tooltip":"dialog",strategy:V,anchorRef:H||te,className:u("tooltip",{theme:T,size:N,"with-close":P,"force-links-appearance":F},k),contentClassName:u("tooltip-popup-content",O),open:oe,placement:fe,hasArrow:I,offset:C,onClose:H?void 0:ce,qa:W?`${W}-tooltip`:"",disablePortal:G,focusTrap:K,autoFocus:Q,restoreFocus:!0,restoreFocusRef:J||te,modifiers:X},r.createElement(r.Fragment,null,A&&r.createElement("h3",{className:u("tooltip-title")},A),r.createElement(p,{secondary:!!pe&&"announcement"!==T,content:j,htmlContent:M,className:L}),z&&r.createElement(m,{links:z}),r.createElement(f,{theme:T,tooltipActionButton:B,tooltipCancelButton:U}),P&&r.createElement("div",{className:u("tooltip-close")},r.createElement(i.z,{size:"s",view:"flat-secondary",onClick:async e=>{ce(),null===$||void 0===$||$(e)},extraProps:{"aria-label":"Close"}},r.createElement(a.J,{data:o.Z,size:16})))));if(H)return he;const me=()=>{de(),oe||d||ne.current?re.current=!0:se()},ge=()=>{!h||ne.current||ie.current?re.current=!1:(le(),ue()),ne.current=!1};return!S||"number"!==typeof S.top&&"number"!==typeof S.left||(0,c.O)('[Popover] Physical names (top, left) of "offset" property are deprecated. Use logical names (block, inline) instead.'),r.createElement("div",{ref:te,className:u({disabled:d},R),onMouseEnter:g?me:void 0,onMouseLeave:g?ge:void 0,onFocus:g?me:void 0,onBlur:g?ge:void 0,style:{top:S.top,left:S.left,insetBlockStart:S.block,insetInlineStart:S.inline},"data-qa":W},r.createElement(v,{closeTooltip:ce,openTooltip:ae,open:oe,openOnHover:g,className:u("handler"),disabled:d,onClick:Z,closedManually:ne},D),he)}));w.displayName="Popover"},10502:(e,t,n)=>{"use strict";var r;n.d(t,{q:()=>o,x:()=>r}),function(e){e.Immediate="immediate",e.Delayed="delayed",e.DelayedClosing="delayedClosing"}(r||(r={}));const o={[r.Immediate]:[0,0],[r.Delayed]:[300,300],[r.DelayedClosing]:[0,300]}},44920:(e,t,n)=>{"use strict";n.d(t,{G:()=>$e});var r=n(68963),o=n(62685),i=n(48027),a=n(38886);function s(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function l(e){return e instanceof s(e).Element||e instanceof Element}function c(e){return e instanceof s(e).HTMLElement||e instanceof HTMLElement}function u(e){return"undefined"!==typeof ShadowRoot&&(e instanceof s(e).ShadowRoot||e instanceof ShadowRoot)}var d=Math.max,f=Math.min,p=Math.round;function h(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function m(){return!/^((?!chrome|android).)*safari/i.test(h())}function g(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&c(e)&&(o=e.offsetWidth>0&&p(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&p(r.height)/e.offsetHeight||1);var a=(l(e)?s(e):window).visualViewport,u=!m()&&n,d=(r.left+(u&&a?a.offsetLeft:0))/o,f=(r.top+(u&&a?a.offsetTop:0))/i,h=r.width/o,g=r.height/i;return{width:h,height:g,top:f,right:d+h,bottom:f+g,left:d,x:d,y:f}}function v(e){var t=s(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function y(e){return e?(e.nodeName||"").toLowerCase():null}function b(e){return((l(e)?e.ownerDocument:e.document)||window.document).documentElement}function w(e){return g(b(e)).left+v(e).scrollLeft}function E(e){return s(e).getComputedStyle(e)}function _(e){var t=E(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function x(e,t,n){void 0===n&&(n=!1);var r=c(t),o=c(t)&&function(e){var t=e.getBoundingClientRect(),n=p(t.width)/e.offsetWidth||1,r=p(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),i=b(t),a=g(e,o,n),l={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(r||!r&&!n)&&(("body"!==y(t)||_(i))&&(l=function(e){return e!==s(e)&&c(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:v(e);var t}(t)),c(t)?((u=g(t,!0)).x+=t.clientLeft,u.y+=t.clientTop):i&&(u.x=w(i))),{x:a.left+l.scrollLeft-u.x,y:a.top+l.scrollTop-u.y,width:a.width,height:a.height}}function S(e){var t=g(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 C(e){return"html"===y(e)?e:e.assignedSlot||e.parentNode||(u(e)?e.host:null)||b(e)}function k(e){return["html","body","#document"].indexOf(y(e))>=0?e.ownerDocument.body:c(e)&&_(e)?e:k(C(e))}function O(e,t){var n;void 0===t&&(t=[]);var r=k(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=s(r),a=o?[i].concat(i.visualViewport||[],_(r)?r:[]):r,l=t.concat(a);return o?l:l.concat(O(C(a)))}function T(e){return["table","td","th"].indexOf(y(e))>=0}function N(e){return c(e)&&"fixed"!==E(e).position?e.offsetParent:null}function I(e){for(var t=s(e),n=N(e);n&&T(n)&&"static"===E(n).position;)n=N(n);return n&&("html"===y(n)||"body"===y(n)&&"static"===E(n).position)?t:n||function(e){var t=/firefox/i.test(h());if(/Trident/i.test(h())&&c(e)&&"fixed"===E(e).position)return null;var n=C(e);for(u(n)&&(n=n.host);c(n)&&["html","body"].indexOf(y(n))<0;){var r=E(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}var P="top",R="bottom",D="right",A="left",j="auto",M=[P,R,D,A],L="start",z="end",F="clippingParents",B="viewport",U="popper",q="reference",$=M.reduce((function(e,t){return e.concat([t+"-"+L,t+"-"+z])}),[]),Z=[].concat(M,[j]).reduce((function(e,t){return e.concat([t,t+"-"+L,t+"-"+z])}),[]),H=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function V(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}function W(e){var t;return function(){return t||(t=new Promise((function(n){Promise.resolve().then((function(){t=void 0,n(e())}))}))),t}}var G={placement:"bottom",modifiers:[],strategy:"absolute"};function Y(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"===typeof e.getBoundingClientRect)}))}function K(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,i=void 0===o?G:o;return function(e,t,n){void 0===n&&(n=i);var o={placement:"bottom",orderedModifiers:[],options:Object.assign({},G,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},a=[],s=!1,c={state:o,setOptions:function(n){var s="function"===typeof n?n(o.options):n;u(),o.options=Object.assign({},i,o.options,s),o.scrollParents={reference:l(e)?O(e):e.contextElement?O(e.contextElement):[],popper:O(t)};var d=function(e){var t=V(e);return H.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}(function(e){var t=e.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}([].concat(r,o.options.modifiers)));return o.orderedModifiers=d.filter((function(e){return e.enabled})),o.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,i=e.effect;if("function"===typeof i){var s=i({state:o,name:t,instance:c,options:r}),l=function(){};a.push(s||l)}})),c.update()},forceUpdate:function(){if(!s){var e=o.elements,t=e.reference,n=e.popper;if(Y(t,n)){o.rects={reference:x(t,I(n),"fixed"===o.options.strategy),popper:S(n)},o.reset=!1,o.placement=o.options.placement,o.orderedModifiers.forEach((function(e){return o.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<o.orderedModifiers.length;r++)if(!0!==o.reset){var i=o.orderedModifiers[r],a=i.fn,l=i.options,u=void 0===l?{}:l,d=i.name;"function"===typeof a&&(o=a({state:o,options:u,name:d,instance:c})||o)}else o.reset=!1,r=-1}}},update:W((function(){return new Promise((function(e){c.forceUpdate(),e(o)}))})),destroy:function(){u(),s=!0}};if(!Y(e,t))return c;function u(){a.forEach((function(e){return e()})),a=[]}return c.setOptions(n).then((function(e){!s&&n.onFirstUpdate&&n.onFirstUpdate(e)})),c}}var Q={passive:!0};function J(e){return e.split("-")[0]}function X(e){return e.split("-")[1]}function ee(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function te(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?J(o):null,a=o?X(o):null,s=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(i){case P:t={x:s,y:n.y-r.height};break;case R:t={x:s,y:n.y+n.height};break;case D:t={x:n.x+n.width,y:l};break;case A:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var c=i?ee(i):null;if(null!=c){var u="y"===c?"height":"width";switch(a){case L:t[c]=t[c]-(n[u]/2-r[u]/2);break;case z:t[c]=t[c]+(n[u]/2-r[u]/2)}}return t}var ne={top:"auto",right:"auto",bottom:"auto",left:"auto"};function re(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,l=e.position,c=e.gpuAcceleration,u=e.adaptive,d=e.roundOffsets,f=e.isFixed,h=a.x,m=void 0===h?0:h,g=a.y,v=void 0===g?0:g,y="function"===typeof d?d({x:m,y:v}):{x:m,y:v};m=y.x,v=y.y;var w=a.hasOwnProperty("x"),_=a.hasOwnProperty("y"),x=A,S=P,C=window;if(u){var k=I(n),O="clientHeight",T="clientWidth";if(k===s(n)&&"static"!==E(k=b(n)).position&&"absolute"===l&&(O="scrollHeight",T="scrollWidth"),o===P||(o===A||o===D)&&i===z)S=R,v-=(f&&k===C&&C.visualViewport?C.visualViewport.height:k[O])-r.height,v*=c?1:-1;if(o===A||(o===P||o===R)&&i===z)x=D,m-=(f&&k===C&&C.visualViewport?C.visualViewport.width:k[T])-r.width,m*=c?1:-1}var N,j=Object.assign({position:l},u&&ne),M=!0===d?function(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:p(n*o)/o||0,y:p(r*o)/o||0}}({x:m,y:v},s(n)):{x:m,y:v};return m=M.x,v=M.y,c?Object.assign({},j,((N={})[S]=_?"0":"",N[x]=w?"0":"",N.transform=(C.devicePixelRatio||1)<=1?"translate("+m+"px, "+v+"px)":"translate3d("+m+"px, "+v+"px, 0)",N)):Object.assign({},j,((t={})[S]=_?v+"px":"",t[x]=w?m+"px":"",t.transform="",t))}const oe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=void 0===o?[0,0]:o,a=Z.reduce((function(e,n){return e[n]=function(e,t,n){var r=J(e),o=[A,P].indexOf(r)>=0?-1:1,i="function"===typeof n?n(Object.assign({},t,{placement:e})):n,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[A,D].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}(n,t.rects,i),e}),{}),s=a[t.placement],l=s.x,c=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=a}};var ie={left:"right",right:"left",bottom:"top",top:"bottom"};function ae(e){return e.replace(/left|right|bottom|top/g,(function(e){return ie[e]}))}var se={start:"end",end:"start"};function le(e){return e.replace(/start|end/g,(function(e){return se[e]}))}function ce(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&u(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ue(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function de(e,t,n){return t===B?ue(function(e,t){var n=s(e),r=b(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,l=0,c=0;if(o){i=o.width,a=o.height;var u=m();(u||!u&&"fixed"===t)&&(l=o.offsetLeft,c=o.offsetTop)}return{width:i,height:a,x:l+w(e),y:c}}(e,n)):l(t)?function(e,t){var n=g(e,!1,"fixed"===t);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}(t,n):ue(function(e){var t,n=b(e),r=v(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=d(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=d(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+w(e),l=-r.scrollTop;return"rtl"===E(o||n).direction&&(s+=d(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}(b(e)))}function fe(e,t,n,r){var o="clippingParents"===t?function(e){var t=O(C(e)),n=["absolute","fixed"].indexOf(E(e).position)>=0&&c(e)?I(e):e;return l(n)?t.filter((function(e){return l(e)&&ce(e,n)&&"body"!==y(e)})):[]}(e):[].concat(t),i=[].concat(o,[n]),a=i[0],s=i.reduce((function(t,n){var o=de(e,n,r);return t.top=d(o.top,t.top),t.right=f(o.right,t.right),t.bottom=f(o.bottom,t.bottom),t.left=d(o.left,t.left),t}),de(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 pe(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function he(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function me(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,i=n.strategy,a=void 0===i?e.strategy:i,s=n.boundary,c=void 0===s?F:s,u=n.rootBoundary,d=void 0===u?B:u,f=n.elementContext,p=void 0===f?U:f,h=n.altBoundary,m=void 0!==h&&h,v=n.padding,y=void 0===v?0:v,w=pe("number"!==typeof y?y:he(y,M)),E=p===U?q:U,_=e.rects.popper,x=e.elements[m?E:p],S=fe(l(x)?x:x.contextElement||b(e.elements.popper),c,d,a),C=g(e.elements.reference),k=te({reference:C,element:_,strategy:"absolute",placement:o}),O=ue(Object.assign({},_,k)),T=p===U?O:C,N={top:S.top-T.top+w.top,bottom:T.bottom-S.bottom+w.bottom,left:S.left-T.left+w.left,right:T.right-S.right+w.right},I=e.modifiersData.offset;if(p===U&&I){var A=I[o];Object.keys(N).forEach((function(e){var t=[D,R].indexOf(e)>=0?1:-1,n=[P,R].indexOf(e)>=0?"y":"x";N[e]+=A[n]*t}))}return N}const ge={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=void 0===o||o,a=n.altAxis,s=void 0===a||a,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,h=void 0===p||p,m=n.allowedAutoPlacements,g=t.options.placement,v=J(g),y=l||(v===g||!h?[ae(g)]:function(e){if(J(e)===j)return[];var t=ae(e);return[le(e),t,le(t)]}(g)),b=[g].concat(y).reduce((function(e,n){return e.concat(J(n)===j?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?Z:l,u=X(r),d=u?s?$:$.filter((function(e){return X(e)===u})):M,f=d.filter((function(e){return c.indexOf(e)>=0}));0===f.length&&(f=d);var p=f.reduce((function(t,n){return t[n]=me(e,{placement:n,boundary:o,rootBoundary:i,padding:a})[J(n)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}(t,{placement:n,boundary:u,rootBoundary:d,padding:c,flipVariations:h,allowedAutoPlacements:m}):n)}),[]),w=t.rects.reference,E=t.rects.popper,_=new Map,x=!0,S=b[0],C=0;C<b.length;C++){var k=b[C],O=J(k),T=X(k)===L,N=[P,R].indexOf(O)>=0,I=N?"width":"height",z=me(t,{placement:k,boundary:u,rootBoundary:d,altBoundary:f,padding:c}),F=N?T?D:A:T?R:P;w[I]>E[I]&&(F=ae(F));var B=ae(F),U=[];if(i&&U.push(z[O]<=0),s&&U.push(z[F]<=0,z[B]<=0),U.every((function(e){return e}))){S=k,x=!1;break}_.set(k,U)}if(x)for(var q=function(e){var t=b.find((function(t){var n=_.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return S=t,"break"},H=h?3:1;H>0;H--){if("break"===q(H))break}t.placement!==S&&(t.modifiersData[r]._skip=!0,t.placement=S,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function ve(e,t,n){return d(e,f(t,n))}const ye={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=void 0===o||o,a=n.altAxis,s=void 0!==a&&a,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,p=n.padding,h=n.tether,m=void 0===h||h,g=n.tetherOffset,v=void 0===g?0:g,y=me(t,{boundary:l,rootBoundary:c,padding:p,altBoundary:u}),b=J(t.placement),w=X(t.placement),E=!w,_=ee(b),x="x"===_?"y":"x",C=t.modifiersData.popperOffsets,k=t.rects.reference,O=t.rects.popper,T="function"===typeof v?v(Object.assign({},t.rects,{placement:t.placement})):v,N="number"===typeof T?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),j=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,M={x:0,y:0};if(C){if(i){var z,F="y"===_?P:A,B="y"===_?R:D,U="y"===_?"height":"width",q=C[_],$=q+y[F],Z=q-y[B],H=m?-O[U]/2:0,V=w===L?k[U]:O[U],W=w===L?-O[U]:-k[U],G=t.elements.arrow,Y=m&&G?S(G):{width:0,height:0},K=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},Q=K[F],te=K[B],ne=ve(0,k[U],Y[U]),re=E?k[U]/2-H-ne-Q-N.mainAxis:V-ne-Q-N.mainAxis,oe=E?-k[U]/2+H+ne+te+N.mainAxis:W+ne+te+N.mainAxis,ie=t.elements.arrow&&I(t.elements.arrow),ae=ie?"y"===_?ie.clientTop||0:ie.clientLeft||0:0,se=null!=(z=null==j?void 0:j[_])?z:0,le=q+oe-se,ce=ve(m?f($,q+re-se-ae):$,q,m?d(Z,le):Z);C[_]=ce,M[_]=ce-q}if(s){var ue,de="x"===_?P:A,fe="x"===_?R:D,pe=C[x],he="y"===x?"height":"width",ge=pe+y[de],ye=pe-y[fe],be=-1!==[P,A].indexOf(b),we=null!=(ue=null==j?void 0:j[x])?ue:0,Ee=be?ge:pe-k[he]-O[he]-we+N.altAxis,_e=be?pe+k[he]+O[he]-we-N.altAxis:ye,xe=m&&be?function(e,t,n){var r=ve(e,t,n);return r>n?n:r}(Ee,pe,_e):ve(m?Ee:ge,pe,m?_e:ye);C[x]=xe,M[x]=xe-pe}t.modifiersData[r]=M}},requiresIfExists:["offset"]};var be=function(e,t){return pe("number"!==typeof(e="function"===typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:he(e,M))};const we={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,s=J(n.placement),l=ee(s),c=[A,D].indexOf(s)>=0?"height":"width";if(i&&a){var u=be(o.padding,n),d=S(i),f="y"===l?P:A,p="y"===l?R:D,h=n.rects.reference[c]+n.rects.reference[l]-a[l]-n.rects.popper[c],m=a[l]-n.rects.reference[l],g=I(i),v=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,y=h/2-m/2,b=u[f],w=v-d[c]-u[p],E=v/2-d[c]/2+y,_=ve(b,E,w),x=l;n.modifiersData[r]=((t={})[x]=_,t.centerOffset=_-E,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!==typeof r||(r=t.elements.popper.querySelector(r)))&&ce(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ee(e,t,n){return void 0===n&&(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 _e(e){return[P,D,R,A].some((function(t){return e[t]>=0}))}var xe=K({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=void 0===o||o,a=r.resize,l=void 0===a||a,c=s(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach((function(e){e.addEventListener("scroll",n.update,Q)})),l&&c.addEventListener("resize",n.update,Q),function(){i&&u.forEach((function(e){e.removeEventListener("scroll",n.update,Q)})),l&&c.removeEventListener("resize",n.update,Q)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=te({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,i=n.adaptive,a=void 0===i||i,s=n.roundOffsets,l=void 0===s||s,c={placement:J(t.placement),variation:X(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,re(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,re(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})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];c(o)&&y(o)&&(Object.assign(o.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(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(e){var r=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});c(r)&&y(r)&&(Object.assign(r.style,i),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]},oe,ge,ye,we,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=me(t,{elementContext:"reference"}),s=me(t,{altBoundary:!0}),l=Ee(a,r),c=Ee(s,o,i),u=_e(l),d=_e(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}}]}),Se=n(77808),Ce=n.n(Se),ke=function(e){return e.reduce((function(e,t){var n=t[0],r=t[1];return e[n]=r,e}),{})},Oe="undefined"!==typeof window&&window.document&&window.document.createElement?r.useLayoutEffect:r.useEffect,Te=[],Ne=function(e,t,n){void 0===n&&(n={});var o=r.useRef(null),i={onFirstUpdate:n.onFirstUpdate,placement:n.placement||"bottom",strategy:n.strategy||"absolute",modifiers:n.modifiers||Te},s=r.useState({styles:{popper:{position:i.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),l=s[0],c=s[1],u=r.useMemo((function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(e){var t=e.state,n=Object.keys(t.elements);a.flushSync((function(){c({styles:ke(n.map((function(e){return[e,t.styles[e]||{}]}))),attributes:ke(n.map((function(e){return[e,t.attributes[e]]})))})}))},requires:["computeStyles"]}}),[]),d=r.useMemo((function(){var e={onFirstUpdate:i.onFirstUpdate,placement:i.placement,strategy:i.strategy,modifiers:[].concat(i.modifiers,[u,{name:"applyStyles",enabled:!1}])};return Ce()(o.current,e)?o.current||e:(o.current=e,e)}),[i.onFirstUpdate,i.placement,i.strategy,i.modifiers,u]),f=r.useRef();return Oe((function(){f.current&&f.current.setOptions(d)}),[d]),Oe((function(){if(null!=e&&null!=t){var r=(n.createPopper||xe)(e,t,d);return f.current=r,function(){r.destroy(),f.current=null}}}),[e,t,n.createPopper]),{state:f.current?f.current.state:null,styles:l.styles,attributes:l.attributes,update:f.current?f.current.update:null,forceUpdate:f.current?f.current.forceUpdate:null}},Ie=n(72644);const Pe=["bottom-start","bottom","bottom-end","top-start","top","top-end","right-start","right","right-end","left-start","left","left-end"],Re={name:"rtlOffsetFix",enabled:!0,phase:"main",requires:["offset"],fn(e){let{state:t}=e;var n;if(!t.placement.startsWith("top")&&!t.placement.startsWith("bottom"))return;const r=null===(n=t.modifiersData.offset)||void 0===n?void 0:n[t.placement];r&&(t.modifiersData.popperOffsets.x-=2*r.x)}};var De=n(95753),Ae=n(57107),je=n(89459),Me=n(36951),Le=n(3262),ze=n(31445);const Fe=(0,Me.Ge)("popup");function Be(e){let{styles:t,attributes:n,setArrowRef:o}=e;return r.createElement("div",Object.assign({"data-popper-arrow":!0,ref:o,className:Fe("arrow"),style:t},n),r.createElement("div",{className:Fe("arrow-content")},r.createElement("div",{className:Fe("arrow-circle-wrapper")},r.createElement("div",{className:Fe("arrow-circle",{left:!0})})),r.createElement("div",{className:Fe("arrow-circle-wrapper")},r.createElement("div",{className:Fe("arrow-circle",{right:!0})}))))}const Ue=(0,Me.Ge)("popup"),qe=8;function $e(e){let{keepMounted:t=!1,hasArrow:n=!1,offset:a=[0,4],open:s,placement:l,anchorRef:c,disableEscapeKeyDown:u,disableOutsideClick:d,disableLayer:f,style:p,className:h,contentClassName:m,modifiers:g=[],children:v,onEscapeKeyDown:y,onOutsideClick:b,onClose:w,onClick:E,onMouseEnter:_,onMouseLeave:x,onFocus:S,onBlur:C,onTransitionEnter:k,onTransitionEntered:O,onTransitionExit:T,onTransitionExited:N,disablePortal:I,container:P,strategy:R,qa:D,restoreFocus:A,restoreFocusRef:j,"aria-label":M,"aria-labelledby":L,role:z,id:F,focusTrap:B=!1,autoFocus:U=!1}=e;const q=r.useRef(null);(0,Le.s)({open:s,disableEscapeKeyDown:u,disableOutsideClick:d,onEscapeKeyDown:y,onOutsideClick:b,onClose:w,contentRefs:[c,q],enabled:!f,type:"popup"});const{attributes:$,styles:Z,setPopperRef:H,setArrowRef:V}=function(e){let{anchorRef:t,placement:n=Pe,offset:o,modifiers:i=[],strategy:a,altBoundary:s}=e;const[l,c]=r.useState(null),[u,d]=r.useState(null),f=(0,Ie.g)(),p=r.useMemo((()=>{let e=Array.isArray(n)?n:[n];return"rtl"===f&&(e=e.map((e=>e.replace(/(top|bottom)-(start|end)/g,((e,t,n)=>"start"===n?t+"-end":"end"===n?t+"-start":e))))),e}),[n,f]),{attributes:h,styles:m}=Ne(null===t||void 0===t?void 0:t.current,l,{strategy:a,modifiers:[{name:"arrow",options:{element:u}},{name:"offset",options:{offset:o,altBoundary:s}},{name:"flip",options:{fallbackPlacements:p.slice(1),altBoundary:s}},..."rtl"===f?[Re]:[],...i],placement:p[0]});return{attributes:h,styles:m,setPopperRef:c,setArrowRef:d}}({anchorRef:c,placement:l,offset:n?[a[0],a[1]+qe]:a,strategy:R,altBoundary:I,modifiers:[{name:"arrow",options:{enabled:n,padding:4}},{name:"preventOverflow",options:{padding:1,altBoundary:I}},...g]}),W=(0,i.c)(H,q,(0,je.e)()),G=(0,De.H)({enabled:Boolean(A&&s),restoreFocusRef:j});return r.createElement(o.Z,{nodeRef:q,in:s,addEndListener:e=>{var t;return null===(t=q.current)||void 0===t?void 0:t.addEventListener("animationend",e)},classNames:(0,ze.Y)(Ue),mountOnEnter:!t,unmountOnExit:!t,appear:!0,onEnter:()=>{null===k||void 0===k||k()},onEntered:()=>{null===O||void 0===O||O()},onExit:()=>{null===T||void 0===T||T()},onExited:()=>{null===N||void 0===N||N()}},r.createElement(Ae.h,{container:P,disablePortal:I},r.createElement("div",Object.assign({ref:W,style:Z.popper},$.popper,G,{className:Ue({open:s},h),"data-qa":D,id:F,role:z,"aria-label":M,"aria-labelledby":L}),r.createElement(je.i,{enabled:B&&s,disableAutoFocus:!U},r.createElement("div",{onClick:E,onMouseEnter:_,onMouseLeave:x,onFocus:S,onBlur:C,className:Ue("content",m),style:p,tabIndex:-1},n&&r.createElement(Be,{styles:Z.arrow,attributes:$.arrow,setArrowRef:V}),v)))))}},57107:(e,t,n)=>{"use strict";n.d(t,{h:()=>c});var r=n(68963),o=n(38886);const i=r.createContext({current:null});i.displayName="PortalContext";var a=n(78761),s=n(40797);const l=(0,n(36951).Ge)("portal");function c(e){let{container:t,children:n,disablePortal:c}=e;const u=function(){var e;const t=r.useContext(i);let n=null;return"object"===typeof window&&(n=window.document.body),null!==(e=t.current)&&void 0!==e?e:n}(),{scoped:d}=(0,s.T)(),f=null!==t&&void 0!==t?t:u;return c?r.createElement(r.Fragment,null,n):f?o.createPortal(d?r.createElement(a.f,{rootClassName:l("theme-wrapper"),scoped:!0},n):n,f):null}},79734:(e,t,n)=>{"use strict";n.d(t,{E:()=>y});var r=n(68963),o=n(89646),i=n(56407);const a=new Set(["id"]),s=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),l=/^(data-.*)$/;var c=n(92006);function u(e){var t,n;const{name:r,value:u,defaultValue:d,options:f=[],disabled:p,onUpdate:h,onChange:m,onFocus:g,onBlur:v}=e,y=(0,o.u)(),[b,w]=(0,i.z)(u,null!==(n=null!==d&&void 0!==d?d:null===(t=f[0])||void 0===t?void 0:t.value)&&void 0!==n?n:null,h),E=(0,c.q)({initialValue:b,onReset:w}),_=e=>{w(e.target.value),m&&m(e)},x=Object.assign(Object.assign({},function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{labelable:n,propNames:r}=t,o={};for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(a.has(i)||n&&s.has(i)||(null===r||void 0===r?void 0:r.has(i))||l.test(i))&&(o[i]=e[i]);return o}(e,{labelable:!0})),{role:"radiogroup","aria-disabled":p});return{containerProps:x,optionsProps:f.map((e=>({name:r||y,value:e.value,content:e.content,title:e.title,checked:b===String(e.value),disabled:p||e.disabled,onChange:_,onFocus:g,onBlur:v,ref:E})))}}var d=n(36951),f=n(48027),p=n(93404);var h=n(99742);const m=(0,d.Ge)("radio-button"),g=r.forwardRef((function(e,t){const{disabled:n=!1,content:a,children:s,title:l}=e,{checked:u,inputProps:d}=function(e){let{name:t,value:n,checked:a,defaultChecked:s,disabled:l,controlRef:u,controlProps:d,onUpdate:h,onChange:m,onFocus:g,onBlur:v,id:y}=e;const b=(0,o.u)(),w=r.useRef(null),[E,_]=(0,i.z)(a,null!==s&&void 0!==s&&s,h),x=(0,c.q)({initialValue:E,onReset:_}),S=(0,f.c)(u,w,x);return{checked:E,inputProps:Object.assign(Object.assign({},d),{name:t||b,value:n,id:y,onFocus:g,onBlur:v,disabled:l,type:"radio",onChange:e=>{_(e.target.checked),m&&m(e)},onChangeCapture:e=>{p.P.publish({componentId:"Radio",eventId:"click",domEvent:e})},checked:a,defaultChecked:s,"aria-checked":E,ref:S})}}(e),g=a||s,v=(0,h.yb)(g)||(0,h.Dc)(g);return r.createElement("label",{className:m("option",{disabled:n,checked:u}),ref:t,title:l},r.createElement("input",Object.assign({},d,{className:m("option-control")})),r.createElement("span",{className:m("option-outline")}),g&&r.createElement("span",{className:m("option-text",{icon:v})},g))})),v=(0,d.Ge)("radio-button"),y=r.forwardRef((function(e,t){const{size:n="m",width:o,style:i,className:a,qa:s,children:l}=e;let c=e.options;c||(c=r.Children.toArray(l).map((e=>{let{props:t}=e;return{value:t.value,content:t.content||t.children,disabled:t.disabled,title:t.title}})));const d=r.useRef(null),f=r.useRef(),p=r.useCallback((e=>{if(!e)return;const t=d.current;if(!t)return;const n=f.current;if(n&&n!==e){const r=e=>{t.style.left=`${e.offsetLeft}px`,t.style.width=`${e.offsetWidth}px`};r(n),t.hidden=!1,r(e)}f.current=e}),[]),{containerProps:h,optionsProps:m}=u(Object.assign(Object.assign({},e),{options:c}));return r.createElement("div",Object.assign({},h,{ref:t,style:i,className:v({size:n,width:o},a),"data-qa":s}),r.createElement("div",{ref:d,className:v("plate"),onTransitionEnd:e=>{e.currentTarget.hidden=!0},hidden:!0}),m.map((e=>r.createElement(g,Object.assign({},e,{key:e.value,ref:e.checked?p:void 0})))))}));y.Option=g},68291:(e,t,n)=>{"use strict";n.d(t,{r:()=>s});var r=n(68963),o=n(33180),i=n(24288);const a=(0,n(36951).Ge)("switch"),s=r.forwardRef((function(e,t){const{size:n="m",disabled:s=!1,content:l,children:c,title:u,style:d,className:f,qa:p}=e,{checked:h,inputProps:m}=(0,o.O)(Object.assign(Object.assign({},e),{controlProps:Object.assign(Object.assign({},e.controlProps),{role:"switch"})})),g=l||c,v=r.createElement("span",{className:a("indicator")},r.createElement("input",Object.assign({},m,{className:a("control")})),r.createElement("span",{className:a("outline")}),r.createElement("span",{className:a("slider")}));return r.createElement(i.J,{ref:t,title:u,style:d,size:n,disabled:s,className:a({size:n,disabled:s,checked:h},f),labelClassName:a("text"),qa:p,control:v},g)}))},8179:(e,t,n)=>{"use strict";n.d(t,{m:()=>p});var r=n(68963),o=n(36951);const i=r.createContext({activeTabId:void 0});i.displayName="TabsContext";var a=n(14979);const s=(0,o.Ge)("tabs");function l(e){let{id:t,className:n,title:o,meta:l,hint:c,icon:u,counter:d,label:f,active:p,disabled:h,hasOverflow:m,extraProps:g,onClick:v}=e;const{activeTabId:y}=r.useContext(i),b="boolean"===typeof p?p:y===t,w=r.useMemo((()=>void 0!==c?c:"string"===typeof o?o:void 0),[c,o]);return r.createElement("div",Object.assign({},g,{role:"tab","aria-selected":b,"aria-disabled":!0===h,tabIndex:h?-1:0,className:s("item",{active:b,disabled:h,overflow:Boolean(m)},n),title:w,onClick:()=>{v(t)},onKeyDown:e=>{" "===e.key&&v(t)}}),r.createElement("div",{className:s("item-content")},u&&r.createElement("div",{className:s("item-icon")},u),r.createElement("div",{className:s("item-title")},o||t),"number"===typeof d&&r.createElement("div",{className:s("item-counter")},d),f&&r.createElement(a._,{className:s("item-label"),theme:f.theme},f.content)),l&&r.createElement("div",{className:s("item-meta")},l))}l.displayName="Tabs.Item";const c=(0,o.Ge)("tabs");var u;!function(e){e.Horizontal="horizontal",e.Vertical="vertical"}(u||(u={}));const d=[],f=r.forwardRef(((e,t)=>{let{direction:n=u.Horizontal,size:o="m",activeTab:a,allowNotSelected:s=!1,items:f=d,children:p,className:h,onSelectTab:m,wrapTo:g,qa:v}=e;const y=((e,t,n)=>{var r;return e||(t||0===(null===n||void 0===n?void 0:n.length)||null===(r=null===n||void 0===n?void 0:n[0])||void 0===r?void 0:r.id)})(a,s,f),b=r.useMemo((()=>({activeTabId:y})),[y]),w=r.useMemo((()=>{const e=e=>{m&&m(e)};return f.map(((t,n)=>{const o=r.createElement(l,Object.assign({key:t.id},t,{onClick:e}));return g?g(t,o,n):o}))}),[f,m,g]);return r.createElement("div",{role:"tablist",className:c({direction:n,size:o},h),"data-qa":v,ref:t},r.createElement(i.Provider,{value:b},p||w))}));f.displayName="Tabs";const p=Object.assign(f,{Item:l})},10288:(e,t,n)=>{"use strict";n.d(t,{x:()=>l});var r=n(95097),o=n(68963),i=n(39137);const a=(0,n(36951).Ge)("text"),s=(e,t)=>{let{variant:n="body-1",ellipsis:r,ellipsisLines:o,whiteSpace:i,wordBreak:s}=e;return a({variant:n,ellipsis:r,ws:i,wb:s,"ellipsis-lines":o},t)},l=o.forwardRef((function(e,t){var{as:n,children:a,variant:l,className:c,ellipsis:u,color:d,whiteSpace:f,wordBreak:p,ellipsisLines:h,style:m,qa:g}=e,v=(0,r._T)(e,["as","children","variant","className","ellipsis","color","whiteSpace","wordBreak","ellipsisLines","style","qa"]);const y=n||"span",b=Object.assign({},m);return"number"===typeof h&&(b.WebkitLineClamp=h),o.createElement(y,Object.assign({ref:t,className:s({variant:l,ellipsis:u,whiteSpace:f,wordBreak:p,ellipsisLines:"number"===typeof h},d?(0,i.V)({color:d},c):c),style:b,"data-qa":g},v),a)}));l.displayName="Text"},39137:(e,t,n)=>{"use strict";n.d(t,{V:()=>o});const r=(0,n(36951).Ge)("color-text"),o=(e,t)=>{let{color:n}=e;return r({color:n},t)}},77264:(e,t,n)=>{"use strict";n.d(t,{o:()=>j});var r=n(68963),o=n(93316),i=n(56407),a=n(48027),s=n(89646),l=n(92006),c=n(54466),u=n.n(c),d=n(43832),f=n.n(d);const p=16,h=2;function m(e,t){const[n,o]=r.useState({width:0,height:0});return r.useLayoutEffect((()=>{if(!(null===e||void 0===e?void 0:e.current))return;const t=new ResizeObserver(f()((e=>{if(!Array.isArray(e))return;const t=e[0];if(t.borderBoxSize){const e=t.borderBoxSize[0]?t.borderBoxSize[0]:t.borderBoxSize;o({width:u()(e.inlineSize,h),height:u()(e.blockSize,h)})}else{const e=t.target;o({width:u()(e.offsetWidth,h),height:u()(e.offsetHeight,h)})}}),p));return t.observe(e.current),()=>{t.disconnect()}}),[e,t]),n}var g=n(88776),v=n(68330),y=n(36951),b=n(77280),w=n(17176),E=n(54973);const _=JSON.parse('{"label_clear-button":"Clear"}'),x=JSON.parse('{"label_clear-button":"\u041e\u0447\u0438\u0441\u0442\u0438\u0442\u044c"}'),S=(0,E.e)({en:_,ru:x},`${y.A7}clear-button`),C=(0,y.Ge)("clear-button"),k=e=>{switch(e){case"s":return"xs";case"m":return"s";case"l":return"m";case"xl":return"l";default:throw new Error(`Unknown text input size "${e}"`)}},O=e=>{const{size:t,className:n,onClick:o}=e;return r.createElement(w.z,{size:t,className:C(null,n),onClick:o,extraProps:{onMouseDown:e=>{e.preventDefault()},"aria-label":S("label_clear-button")}},r.createElement(g.J,{data:b.Z,size:16}))};var T=n(85636),N=n(97908);const I=(0,y.Ge)("text-input"),P=r.forwardRef((function(e,t){let{placement:n,children:o,onClick:i}=e;return o?r.createElement("div",{ref:t,className:I("additional-content",{placement:n}),onClick:i},o):null})),R=(0,y.Ge)("text-input");function D(e){const{controlProps:t,controlRef:n,type:o,name:i,id:a,tabIndex:s,autoComplete:l,placeholder:c,value:u,defaultValue:d,autoFocus:f,disabled:p,onChange:h,onFocus:m,onBlur:g,onKeyDown:v,onKeyUp:y,onKeyPress:b}=e;return r.createElement("input",Object.assign({},t,{ref:n,className:R("control",{type:"input"},t.className),type:o,name:i,id:a,tabIndex:s,placeholder:c,value:u,defaultValue:d,autoFocus:f,autoComplete:l,onChange:h,onFocus:m,onBlur:g,onKeyDown:v,onKeyUp:y,onKeyPress:b,disabled:null!==p&&void 0!==p?p:t.disabled}))}const A=(0,y.Ge)("text-input"),j=r.forwardRef((function(e,t){const{view:n="normal",size:c="m",pin:u="round-round",name:d,value:f,defaultValue:p,label:h,disabled:y=!1,hasClear:b=!1,error:w,errorMessage:E,errorPlacement:_="outside",validationState:x,autoComplete:S,id:C,tabIndex:I,style:R,className:j,qa:M,controlProps:L,leftContent:z,rightContent:F,startContent:B=z,endContent:U=F,note:q,onUpdate:$,onChange:Z}=e,{errorMessage:H,errorPlacement:V,validationState:W}=(0,N.II)({error:w,errorMessage:E,errorPlacement:_,validationState:x}),[G,Y]=(0,i.z)(f,null!==p&&void 0!==p?p:"",$),K=r.useRef(null),Q=(0,l.q)({initialValue:G,onReset:Y}),J=(0,a.c)(e.controlRef,K,Q),X=r.useRef(null),ee=r.useRef(null),te=(0,N.O_)(W),ne=Boolean(h),re="invalid"===W&&Boolean(H)&&"outside"===V,oe="invalid"===W&&Boolean(H)&&"inside"===V,ie=Boolean(b&&!y&&G),ae=Boolean(B),se=Boolean(U),le=ne&&!C&&!d&&"undefined"===typeof S,ce=(0,s.u)(),ue=ne?C||ce:C,de=m(ne?X:null,c),fe=m(ae?ee:null,c),pe=(0,s.u)(),he=(0,s.u)(),me=[null===L||void 0===L?void 0:L["aria-describedby"],q?he:void 0,re?pe:void 0].filter(Boolean).join(" "),ge=Object.assign(Object.assign({},L),{style:Object.assign(Object.assign({},null===L||void 0===L?void 0:L.style),ne&&de.width?{paddingInlineStart:`${de.width}px`}:{}),"aria-invalid":"invalid"===W||void 0,"aria-describedby":me||void 0}),ve={id:ue,tabIndex:I,name:d,onChange(e){Y(e.target.value),Z&&Z(e)},autoComplete:le?"off":(0,N.xp)(S),controlProps:ge},ye=e=>{var t,n;const r=!e.currentTarget.contains(document.activeElement)&&e.currentTarget.contains(e.target),o=Boolean(null===(t=document.getSelection())||void 0===t?void 0:t.toString());r&&!o&&(null===(n=K.current)||void 0===n||n.focus())};return r.createElement("span",{ref:t,style:R,className:A({view:n,size:c,disabled:y,state:te,pin:"clear"===n?void 0:u,"has-clear":ie,"has-start-content":ae,"has-end-content":ie||se},j),"data-qa":M},r.createElement("span",{className:A("content")},ae&&r.createElement(P,{ref:ee,placement:"start",onClick:ye},B),ne&&r.createElement("label",{ref:X,style:{insetInlineStart:ae?fe.width:void 0,maxWidth:`calc(50% - ${fe.width}px)`},className:A("label"),title:h,htmlFor:ue},`${h}`),r.createElement(D,Object.assign({},e,ve,{controlRef:J})),ie&&r.createElement(O,{size:k(c),onClick:e=>{Y("");const t=K.current;if(t){const n=Object.create(e);n.target=t,n.currentTarget=t,t.value="",Z&&Z(n)}},className:A("clear",{size:c})}),se&&r.createElement(P,{placement:"end",onClick:ye},U),oe&&r.createElement(v.J,{content:H},r.createElement("span",{"data-qa":N.eP},r.createElement(g.J,{data:o.Z,className:A("error-icon"),size:"s"===c?12:16})))),r.createElement(T.Z,{note:q,errorMessage:re?H:null,noteId:he,errorMessageId:pe}))}))},85636:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(68963),o=n(36951),i=n(97908);const a=(0,o.Ge)("outer-additional-content"),s=e=>{let{errorMessage:t,note:n,noteId:o,errorMessageId:s}=e;return t||n?r.createElement("div",{className:a()},t&&r.createElement("div",{className:a("error"),id:s,"data-qa":i.fz},t),n&&r.createElement("div",{className:a("note"),id:o},n)):null}},97908:(e,t,n)=>{"use strict";n.d(t,{II:()=>s,O_:()=>a,eP:()=>o,fz:()=>r,xp:()=>i});const r="control-error-message-qa",o="control-error-icon-qa",i=e=>"boolean"===typeof e?e?"on":"off":e,a=e=>"invalid"===e?"error":void 0,s=e=>{const{error:t,errorMessage:n,errorPlacement:r,validationState:o}=e;let i,a;return"string"===typeof t&&(i=t),n&&(i=n),("invalid"===o||Boolean(t))&&(a="invalid"),{errorMessage:i,errorPlacement:r,validationState:a}}},28989:(e,t,n)=>{"use strict";n.d(t,{x:()=>l});var r=n(95097),o=n(68963),i=n(36951),a=n(95216);const s=(0,i.Ge)("box"),l=o.forwardRef((function(e,t){var{as:n,children:i,qa:l,className:c,width:u,height:d,minWidth:f,minHeight:p,maxHeight:h,maxWidth:m,position:g,style:v,spacing:y,overflow:b}=e,w=(0,r._T)(e,["as","children","qa","className","width","height","minWidth","minHeight","maxHeight","maxWidth","position","style","spacing","overflow"]);const E=n||"div",_=Object.assign({width:u,height:d,minWidth:f,minHeight:p,maxHeight:h,maxWidth:m,position:g},v);return o.createElement(E,Object.assign({},w,{"data-qa":l,style:_,ref:t,className:s({overflow:b},y?(0,a.sp)(y,c):c)}),i)}))},77796:(e,t,n)=>{"use strict";n.d(t,{k:()=>u});var r=n(95097),o=n(68963),i=n(36951),a=n(28989),s=n(35490),l=n(34293);const c=(0,i.Ge)("flex"),u=o.forwardRef((function(e,t){const{as:n,direction:i,grow:u,basis:d,children:f,style:p,alignContent:h,alignItems:m,alignSelf:g,justifyContent:v,justifyItems:y,justifySelf:b,shrink:w,wrap:E,inline:_,gap:x,gapRow:S,className:C,space:k,centerContent:O}=e,T=(0,r._T)(e,["as","direction","grow","basis","children","style","alignContent","alignItems","alignSelf","justifyContent","justifyItems","justifySelf","shrink","wrap","inline","gap","gapRow","className","space","centerContent"]),N=n||"div",{getClosestMediaProps:I,theme:{spaceBaseSize:P}}=(()=>{const{activeMediaQuery:e,theme:t}=o.useContext(s.V),{isMediaActive:n,getClosestMediaProps:r}=o.useMemo((()=>({isMediaActive:(0,l.ur)(e),getClosestMediaProps:(0,l.GD)(e)})),[e]);return{theme:t,activeMediaQuery:e,isMediaActive:n,getClosestMediaProps:r}})(),R=e=>"object"===typeof e&&null!==e?I(e):e,D=R(x),A=D?P*Number(D):void 0,j=R(S)||D,M=j?P*Number(j):void 0,L=R(k),z=x||S||!L?void 0:(0,l.cA)(L);return o.createElement(a.x,Object.assign({as:N,className:c({"center-content":O,inline:_,s:z},C),ref:t,style:Object.assign({flexDirection:R(i),flexGrow:!0===u?1:u,flexWrap:!0===E?"wrap":E,flexBasis:d,flexShrink:w,columnGap:A,rowGap:M,alignContent:R(h),alignItems:R(m),alignSelf:R(g),justifyContent:R(v),justifyItems:R(y),justifySelf:R(b)},p)},T),k?o.Children.map(f,(e=>e?o.createElement("div",{className:c("wr")},e):e)):f)}))},14399:(e,t,n)=>{"use strict";n.d(t,{A:()=>o,Q:()=>r});const r={.5:"half"},o={breakpoints:{s:576,m:768,l:1080,xl:1200,xxl:1400,xxxl:1920},spaceBaseSize:4,components:{container:{gutters:"3",media:{l:{gutters:"5"}}}}}},35490:(e,t,n)=>{"use strict";n.d(t,{V:()=>i});var r=n(68963),o=n(14399);const i=r.createContext({theme:o.A,activeMediaQuery:"s"})},95216:(e,t,n)=>{"use strict";n.d(t,{sp:()=>s,W:()=>a});var r=n(36951),o=n(34293);const i=(0,r.Ge)("s"),a=(e,t)=>{const n=[];for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)){const t=e[r];"undefined"!==typeof t&&n.push(i(`${r}_${(0,o.cA)(t)}`))}return t&&n.push(t),n.join(" ")},s=a},34293:(e,t,n)=>{"use strict";n.d(t,{GD:()=>s,cA:()=>l,ur:()=>i});var r=n(14399);const o={s:0,m:1,l:2,xl:3,xxl:4,xxxl:5},i=e=>t=>e in o&&o[e]-o[t]>=0,a=["s","m","l","xl","xxl","xxxl"],s=e=>function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!e)return;let n=e;for(;n;){if(t[n])return t[n];n=a[o[n]-1]}},l=e=>e in r.Q?r.Q[e]:String(e)},84584:(e,t,n)=>{"use strict";n.d(t,{z:()=>i});var r=n(68963);const o={mobile:!1,platform:n(66573).t.BROWSER,useHistory:()=>({action:"",replace(){},push(){},goBack(){}}),useLocation:()=>({pathname:"",search:"",hash:""})},i=r.createContext(o)},66573:(e,t,n)=>{"use strict";n.d(t,{t:()=>r});var r,o=n(36951);!function(e){e.IOS="ios",e.ANDROID="android",e.BROWSER="browser"}(r||(r={}));(0,o.Ge)("root")({mobile:!0}).split(/\s+/)[1]},79805:(e,t,n)=>{"use strict";n.d(t,{X:()=>i});var r=n(68963),o=n(84584);function i(){return r.useContext(o.z).mobile}},57840:(e,t,n)=>{"use strict";n.d(t,{N:()=>r});const r=n(68963).createContext(void 0);r.displayName="ThemeContext"},78761:(e,t,n)=>{"use strict";n.d(t,{f:()=>O});var r=n(68963),o=n(35490);const i={media:"",matches:!1,onchange:()=>{},addListener:()=>{},removeListener:()=>{},addEventListener:()=>{},removeEventListener:()=>{},dispatchEvent:e=>!0},a=e=>"undefined"===typeof window||"function"!==typeof window.matchMedia?i:window.matchMedia(e);class s{constructor(e){this.queryListsDecl=[];const t={s:`(max-width: ${(n=e).m-1}px)`,m:`(min-width: ${n.m}px) and (max-width: ${n.l-1}px)`,l:`(min-width: ${n.l}px) and (max-width: ${n.xl-1}px)`,xl:`(min-width: ${n.xl}px) and (max-width: ${n.xxl-1}px)`,xxl:`(min-width: ${n.xxl}px) and (max-width: ${n.xxxl-1}px)`,xxxl:`(min-width: ${n.xxxl}px)`};var n;this.queryListsDecl=[["s",a(t.s)],["m",a(t.m)],["l",a(t.l)],["xl",a(t.xl)],["xxl",a(t.xxl)],["xxxl",a(t.xxxl)]]}getCurrentActiveMedia(){const e=this.queryListsDecl.find((e=>{let[t,n]=e;return n.matches}));return e?e[0]:"s"}addListeners(e){this.queryListsDecl.forEach((t=>{let[n,r]=t;return r.addEventListener("change",e)}))}removeListeners(e){this.queryListsDecl.forEach((t=>{let[n,r]=t;return r.removeEventListener("change",e)}))}}const l=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"s";const[n,o]=r.useState(t);return r.useLayoutEffect((()=>{const t=new s(e),n=()=>{o(t.getCurrentActiveMedia())};return t.addListeners(n),n(),()=>{t.removeListeners(n)}}),[e]),n};var c=n(3186),u=n.n(c);function d(e){let{children:t,config:n,initialMediaQuery:i}=e;const a=r.useContext(o.V),s=r.useMemo((()=>function(e){let{theme:t,override:n}=e;return u()(t,n)}({theme:a.theme,override:n})),[n,a.theme]),c=l(s.breakpoints,i),d=r.useMemo((()=>({activeMediaQuery:c,theme:s})),[c,s]);return r.createElement(o.V.Provider,{value:d},t)}var f=n(36951),p=n(57840);const h=r.createContext(void 0);h.displayName="ThemeSettingsContext";const m="system",g="light",v="dark",y="root",b="ltr",w=(0,f.Ge)(y),E=w();function _(e){let{theme:t,nativeScrollbar:n=!1,className:r,prevClassName:o}=e;const i=document.body;if(i.classList.contains(E)||i.classList.add(E),o){o.split(" ").forEach((e=>{e&&i.classList.remove(e)}))}if(r){r.split(" ").forEach((e=>{e&&!i.classList.contains(e)&&i.classList.add(e)}))}[...i.classList].forEach((e=>{e.startsWith((0,f.Ui)(w({theme:!0})))&&i.classList.remove(e)})),i.classList.add((0,f.Ui)(w({theme:t})));const a={"native-scrollbar":n};for(const[s,l]of Object.entries(a))i.classList.toggle((0,f.Ui)(w({[s]:!0})),l)}const x="undefined"!==typeof window&&"function"===typeof window.matchMedia,S=()=>window.matchMedia("(prefers-color-scheme: dark)");function C(){const[e,t]=r.useState(x&&S().matches?"dark":"light");return r.useEffect((()=>{if(!x)return;const e=function(e,t){const n="function"!==typeof e.addEventListener;return n?e.addListener(t):e.addEventListener("change",t),()=>{n?e.removeListener(t):e.removeEventListener("change",t)}}(S(),(function(e){t(e.matches?"dark":"light")}));return()=>e()}),[]),e}const k=(0,f.Ge)(y);function O(e){let{theme:t,systemLightTheme:n,systemDarkTheme:o,direction:i,nativeScrollbar:a,scoped:s=!1,rootClassName:l="",children:c,layout:u}=e;var f,y,w,E;const x=r.useContext(p.N),S=r.useContext(h),O=void 0!==x||s,T=null!==(f=null===x||void 0===x?void 0:x.theme)&&void 0!==f?f:m,N=null!==t&&void 0!==t?t:T,I=null!==(y=null!==n&&void 0!==n?n:null===S||void 0===S?void 0:S.systemLightTheme)&&void 0!==y?y:g,P=null!==(w=null!==o&&void 0!==o?o:null===S||void 0===S?void 0:S.systemDarkTheme)&&void 0!==w?w:v,R=null!==(E=null===x||void 0===x?void 0:x.direction)&&void 0!==E?E:b,D=null!==i&&void 0!==i?i:R,A="light"===C()?I:P,j="system"===N?A:N,M=r.useRef("");r.useLayoutEffect((()=>{O||(_({theme:j,nativeScrollbar:a,className:l,prevClassName:M.current}),function(e){const t=document.body;e===b?t.removeAttribute("dir"):t.setAttribute("dir",e)}(D),M.current=l)}),[O,j,D,a,l]);const L=r.useMemo((()=>({theme:N,themeValue:j,direction:D,scoped:O})),[N,j,D,O]),z=r.useMemo((()=>({systemLightTheme:I,systemDarkTheme:P})),[I,P]);return r.createElement(d,Object.assign({},u),r.createElement(p.N.Provider,{value:L},r.createElement(h.Provider,{value:z},O?r.createElement("div",{className:k({theme:j,"native-scrollbar":!1!==a},l),dir:D},c):c)))}O.displayName="ThemeProvider"},72644:(e,t,n)=>{"use strict";n.d(t,{g:()=>o});var r=n(40797);function o(){return(0,r.T)().direction}},40797:(e,t,n)=>{"use strict";n.d(t,{T:()=>i});var r=n(68963),o=n(57840);function i(){const e=r.useContext(o.N);if(void 0===e)throw new Error("useTheme* hooks must be used within ThemeProvider");return e}},64270:(e,t,n)=>{"use strict";n.d(t,{C:()=>o});var r=n(40797);function o(){return(0,r.T)().themeValue}},89459:(e,t,n)=>{"use strict";n.d(t,{i:()=>_,e:()=>x});var r=n(68963),o=n(35503);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var l=function(e,t){if(e.length>0){var n=e[e.length-1];n!==t&&n.pause()}var r=e.indexOf(t);-1===r||e.splice(r,1),e.push(t)},c=function(e,t){var n=e.indexOf(t);-1!==n&&e.splice(n,1),e.length>0&&e[e.length-1].unpause()},u=function(e){return"Tab"===(null===e||void 0===e?void 0:e.key)||9===(null===e||void 0===e?void 0:e.keyCode)},d=function(e){return u(e)&&!e.shiftKey},f=function(e){return u(e)&&e.shiftKey},p=function(e){return setTimeout(e,0)},h=function(e,t){var n=-1;return e.every((function(e,r){return!t(e)||(n=r,!1)})),n},m=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return"function"===typeof e?e.apply(void 0,n):e},g=function(e){return e.target.shadowRoot&&"function"===typeof e.composedPath?e.composedPath()[0]:e.target},v=[],y=function(e,t){var n,r=(null===t||void 0===t?void 0:t.document)||document,i=(null===t||void 0===t?void 0:t.trapStack)||v,s=a({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:d,isKeyBackward:f},t),y={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},b=function(e,t,n){return e&&void 0!==e[t]?e[t]:s[n||t]},w=function(e,t){var n="function"===typeof(null===t||void 0===t?void 0:t.composedPath)?t.composedPath():void 0;return y.containerGroups.findIndex((function(t){var r=t.container,o=t.tabbableNodes;return r.contains(e)||(null===n||void 0===n?void 0:n.includes(r))||o.find((function(t){return t===e}))}))},E=function(e){var t=s[e];if("function"===typeof t){for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];t=t.apply(void 0,o)}if(!0===t&&(t=void 0),!t){if(void 0===t||!1===t)return t;throw new Error("`".concat(e,"` was specified but was not a node, or did not return a node"))}var a=t;if("string"===typeof t&&!(a=r.querySelector(t)))throw new Error("`".concat(e,"` as selector refers to no known node"));return a},_=function(){var e=E("initialFocus");if(!1===e)return!1;if(void 0===e||!(0,o.EB)(e,s.tabbableOptions))if(w(r.activeElement)>=0)e=r.activeElement;else{var t=y.tabbableGroups[0];e=t&&t.firstTabbableNode||E("fallbackFocus")}if(!e)throw new Error("Your focus-trap needs to have at least one focusable element");return e},x=function(){if(y.containerGroups=y.containers.map((function(e){var t=(0,o.ht)(e,s.tabbableOptions),n=(0,o.KW)(e,s.tabbableOptions),r=t.length>0?t[0]:void 0,i=t.length>0?t[t.length-1]:void 0,a=n.find((function(e){return(0,o.Wq)(e)})),l=n.slice().reverse().find((function(e){return(0,o.Wq)(e)})),c=!!t.find((function(e){return(0,o.pN)(e)>0}));return{container:e,tabbableNodes:t,focusableNodes:n,posTabIndexesFound:c,firstTabbableNode:r,lastTabbableNode:i,firstDomTabbableNode:a,lastDomTabbableNode:l,nextTabbableNode:function(e){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=t.indexOf(e);return i<0?r?n.slice(n.indexOf(e)+1).find((function(e){return(0,o.Wq)(e)})):n.slice(0,n.indexOf(e)).reverse().find((function(e){return(0,o.Wq)(e)})):t[i+(r?1:-1)]}}})),y.tabbableGroups=y.containerGroups.filter((function(e){return e.tabbableNodes.length>0})),y.tabbableGroups.length<=0&&!E("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(y.containerGroups.find((function(e){return e.posTabIndexesFound}))&&y.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},S=function e(t){var n=t.activeElement;if(n)return n.shadowRoot&&null!==n.shadowRoot.activeElement?e(n.shadowRoot):n},C=function e(t){!1!==t&&t!==S(document)&&(t&&t.focus?(t.focus({preventScroll:!!s.preventScroll}),y.mostRecentlyFocusedNode=t,function(e){return e.tagName&&"input"===e.tagName.toLowerCase()&&"function"===typeof e.select}(t)&&t.select()):e(_()))},k=function(e){var t=E("setReturnFocus",e);return t||!1!==t&&e},O=function(e){var t=e.target,n=e.event,r=e.isBackward,i=void 0!==r&&r;t=t||g(n),x();var a=null;if(y.tabbableGroups.length>0){var l=w(t,n),c=l>=0?y.containerGroups[l]:void 0;if(l<0)a=i?y.tabbableGroups[y.tabbableGroups.length-1].lastTabbableNode:y.tabbableGroups[0].firstTabbableNode;else if(i){var d=h(y.tabbableGroups,(function(e){var n=e.firstTabbableNode;return t===n}));if(d<0&&(c.container===t||(0,o.EB)(t,s.tabbableOptions)&&!(0,o.Wq)(t,s.tabbableOptions)&&!c.nextTabbableNode(t,!1))&&(d=l),d>=0){var f=0===d?y.tabbableGroups.length-1:d-1,p=y.tabbableGroups[f];a=(0,o.pN)(t)>=0?p.lastTabbableNode:p.lastDomTabbableNode}else u(n)||(a=c.nextTabbableNode(t,!1))}else{var m=h(y.tabbableGroups,(function(e){var n=e.lastTabbableNode;return t===n}));if(m<0&&(c.container===t||(0,o.EB)(t,s.tabbableOptions)&&!(0,o.Wq)(t,s.tabbableOptions)&&!c.nextTabbableNode(t))&&(m=l),m>=0){var v=m===y.tabbableGroups.length-1?0:m+1,b=y.tabbableGroups[v];a=(0,o.pN)(t)>=0?b.firstTabbableNode:b.firstDomTabbableNode}else u(n)||(a=c.nextTabbableNode(t))}}else a=E("fallbackFocus");return a},T=function(e){var t=g(e);w(t,e)>=0||(m(s.clickOutsideDeactivates,e)?n.deactivate({returnFocus:s.returnFocusOnDeactivate}):m(s.allowOutsideClick,e)||e.preventDefault())},N=function(e){var t=g(e),n=w(t,e)>=0;if(n||t instanceof Document)n&&(y.mostRecentlyFocusedNode=t);else{var r;e.stopImmediatePropagation();var i=!0;if(y.mostRecentlyFocusedNode)if((0,o.pN)(y.mostRecentlyFocusedNode)>0){var a=w(y.mostRecentlyFocusedNode),l=y.containerGroups[a].tabbableNodes;if(l.length>0){var c=l.findIndex((function(e){return e===y.mostRecentlyFocusedNode}));c>=0&&(s.isKeyForward(y.recentNavEvent)?c+1<l.length&&(r=l[c+1],i=!1):c-1>=0&&(r=l[c-1],i=!1))}}else y.containerGroups.some((function(e){return e.tabbableNodes.some((function(e){return(0,o.pN)(e)>0}))}))||(i=!1);else i=!1;i&&(r=O({target:y.mostRecentlyFocusedNode,isBackward:s.isKeyBackward(y.recentNavEvent)})),C(r||(y.mostRecentlyFocusedNode||_()))}y.recentNavEvent=void 0},I=function(e){if(("Escape"===(null===(t=e)||void 0===t?void 0:t.key)||"Esc"===(null===t||void 0===t?void 0:t.key)||27===(null===t||void 0===t?void 0:t.keyCode))&&!1!==m(s.escapeDeactivates,e))return e.preventDefault(),void n.deactivate();var t;(s.isKeyForward(e)||s.isKeyBackward(e))&&function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];y.recentNavEvent=e;var n=O({event:e,isBackward:t});n&&(u(e)&&e.preventDefault(),C(n))}(e,s.isKeyBackward(e))},P=function(e){var t=g(e);w(t,e)>=0||m(s.clickOutsideDeactivates,e)||m(s.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())},R=function(){if(y.active)return l(i,n),y.delayInitialFocusTimer=s.delayInitialFocus?p((function(){C(_())})):C(_()),r.addEventListener("focusin",N,!0),r.addEventListener("mousedown",T,{capture:!0,passive:!1}),r.addEventListener("touchstart",T,{capture:!0,passive:!1}),r.addEventListener("click",P,{capture:!0,passive:!1}),r.addEventListener("keydown",I,{capture:!0,passive:!1}),n},D=function(){if(y.active)return r.removeEventListener("focusin",N,!0),r.removeEventListener("mousedown",T,!0),r.removeEventListener("touchstart",T,!0),r.removeEventListener("click",P,!0),r.removeEventListener("keydown",I,!0),n},A="undefined"!==typeof window&&"MutationObserver"in window?new MutationObserver((function(e){e.some((function(e){return Array.from(e.removedNodes).some((function(e){return e===y.mostRecentlyFocusedNode}))}))&&C(_())})):void 0,j=function(){A&&(A.disconnect(),y.active&&!y.paused&&y.containers.map((function(e){A.observe(e,{subtree:!0,childList:!0})})))};return(n={get active(){return y.active},get paused(){return y.paused},activate:function(e){if(y.active)return this;var t=b(e,"onActivate"),n=b(e,"onPostActivate"),o=b(e,"checkCanFocusTrap");o||x(),y.active=!0,y.paused=!1,y.nodeFocusedBeforeActivation=r.activeElement,null===t||void 0===t||t();var i=function(){o&&x(),R(),j(),null===n||void 0===n||n()};return o?(o(y.containers.concat()).then(i,i),this):(i(),this)},deactivate:function(e){if(!y.active)return this;var t=a({onDeactivate:s.onDeactivate,onPostDeactivate:s.onPostDeactivate,checkCanReturnFocus:s.checkCanReturnFocus},e);clearTimeout(y.delayInitialFocusTimer),y.delayInitialFocusTimer=void 0,D(),y.active=!1,y.paused=!1,j(),c(i,n);var r=b(t,"onDeactivate"),o=b(t,"onPostDeactivate"),l=b(t,"checkCanReturnFocus"),u=b(t,"returnFocus","returnFocusOnDeactivate");null===r||void 0===r||r();var d=function(){p((function(){u&&C(k(y.nodeFocusedBeforeActivation)),null===o||void 0===o||o()}))};return u&&l?(l(k(y.nodeFocusedBeforeActivation)).then(d,d),this):(d(),this)},pause:function(e){if(y.paused||!y.active)return this;var t=b(e,"onPause"),n=b(e,"onPostPause");return y.paused=!0,null===t||void 0===t||t(),D(),j(),null===n||void 0===n||n(),this},unpause:function(e){if(!y.paused||!y.active)return this;var t=b(e,"onUnpause"),n=b(e,"onPostUnpause");return y.paused=!1,null===t||void 0===t||t(),x(),R(),j(),null===n||void 0===n||n(),this},updateContainerElements:function(e){var t=[].concat(e).filter(Boolean);return y.containers=t.map((function(e){return"string"===typeof e?r.querySelector(e):e})),y.active&&x(),j(),this}}).updateContainerElements(e),n},b=n(48027),w=n(89646);const E=r.createContext(void 0);function _(e){let{children:t,enabled:n=!0,disableAutoFocus:o,autoFocus:i=!0}=e;const a=r.useRef(null),s=r.useRef(!o&&i);r.useEffect((()=>{s.current=!o&&i}));const l=r.useRef(),c=r.useRef({}),u=r.useCallback((()=>{var e;null===(e=l.current)||void 0===e||e.updateContainerElements([a.current,...Object.values(c.current)])}),[]),d=r.useMemo((()=>({addNode(e,t){var n;c.current[e]===t||(null===(n=a.current)||void 0===n?void 0:n.contains(t))||(c.current[e]=t,u())},removeNode(e){c.current[e]&&(delete c.current[e],u())}})),[u]),f=r.useCallback((e=>{var t;n&&e?(a.current=e,l.current||(l.current=y([],{initialFocus:()=>s.current&&function(e){if(!(document.activeElement instanceof HTMLElement)||!e.contains(document.activeElement))return e.hasAttribute("tabIndex")||e.setAttribute("tabIndex","-1"),e;return document.activeElement}(e),fallbackFocus:()=>e,returnFocusOnDeactivate:!1,escapeDeactivates:!1,clickOutsideDeactivates:!1,allowOutsideClick:!0})),u(),l.current.activate()):(null===(t=l.current)||void 0===t||t.deactivate(),a.current=null)}),[n,u]),p=r.Children.only(t);if(!r.isValidElement(p))throw new Error("Children must contain only one valid element");const h=p.ref,m=(0,b.c)(f,h);return r.createElement(E.Provider,{value:d},r.cloneElement(p,{ref:m}))}function x(){const e=r.useContext(E),t=(0,w.u)();return r.useMemo((()=>{if(e)return n=>{n?e.addNode(t,n):e.removeNode(t)}}),[e,t])}},54973:(e,t,n)=>{"use strict";n.d(t,{e:()=>s});var r=n(31329),o=n(24205);const i=(0,o.iE)().lang,a=new r.mb({lang:i,fallbackLang:i});function s(e,t){return Object.entries(e).forEach((e=>{let[n,r]=e;return a.registerKeyset(n,t,r)})),a.keyset(t)}(0,o.Pe)((e=>{a.setLang(e.lang)}))},36951:(e,t,n)=>{"use strict";n.d(t,{A7:()=>o,Ge:()=>i,Ui:()=>a});var r=n(5247);const o="g-",i=((0,r.withNaming)({e:"__",m:"_"}),(0,r.withNaming)({n:o,e:"__",m:"_"}));function a(e){return e.split(/\s(.*)/)[1]}},99742:(e,t,n)=>{"use strict";n.d(t,{Dc:()=>l,xA:()=>s,yb:()=>c});var r=n(88776),o=n(36951),i=n(70292);let a=1;function s(){return`${o.A7}uniq-${a++}`}const l=(0,i.s)("svg"),c=(0,i.s)(r.J)},24205:(e,t,n)=>{"use strict";var r;n.d(t,{Pe:()=>s,iE:()=>l,jQ:()=>a}),function(e){e.Ru="ru",e.En="en"}(r||(r={}));let o=[];const i={lang:r.En},a=e=>{Object.assign(i,e),o.forEach((e=>{e(i)}))},s=e=>(o.push(e),()=>{o=o.filter((t=>t!==e))}),l=()=>i},93404:(e,t,n)=>{"use strict";n.d(t,{P:()=>i});var r=n(95097),o=n(36951);const i=new class{constructor(e){this.subscriptions=[],this.componentPrefix=e}subscribe(e){this.subscriptions.push(e)}unsubscribe(e){const t=this.subscriptions.indexOf(e);t>-1&&this.subscriptions.splice(t,1)}publish(e){var{componentId:t}=e,n=(0,r._T)(e,["componentId"]);this.subscriptions.forEach((e=>e(Object.assign(Object.assign({},n),{componentId:this.componentPrefix?`${this.componentPrefix}${t}`:t}))))}withEventPublisher(e,t){return n=>{this.publish(Object.assign(Object.assign({},n),{componentId:e,qa:t}))}}}(o.A7)},70292:(e,t,n)=>{"use strict";n.d(t,{s:()=>o});var r=n(68963);function o(e){return function(t){if(!r.isValidElement(t))return!1;const{type:n}=t;if(n===e)return!0;if("string"===typeof e||"string"===typeof n)return!1;const o=n.displayName;return Boolean(o&&o===e.displayName)}}},3262:(e,t,n)=>{"use strict";n.d(t,{s:()=>s});var r=n(68963),o=n(59926),i=n(93404);const a=new class{constructor(){this.stack=[],this.handleDocumentKeyDown=e=>{var t,n,r;if(e.code===o.V.ESCAPE){const r=this.getTopLayer();r.disableEscapeKeyDown||(null===(t=r.onEscapeKeyDown)||void 0===t||t.call(r,e),null===(n=r.onClose)||void 0===n||n.call(r,e,"escapeKeyDown"))}if("Enter"===e.code){const t=this.getTopLayer();null===(r=t.onEnterKeyDown)||void 0===r||r.call(t,e)}},this.handleDocumentClick=e=>{var t,n;if(this.isToastClick(e))return;let r,o=null;if(this.mouseDownLayerTarget){if(r=this.mouseDownLayerTarget.layer,o=this.mouseDownLayerTarget.target,this.mouseDownLayerTarget=void 0,!this.stack.includes(r))return}else r=this.getTopLayer();!r.disableOutsideClick&&this.isOutsideClick(r,e,o)&&(null===(t=r.onOutsideClick)||void 0===t||t.call(r,e),null===(n=r.onClose)||void 0===n||n.call(r,e,"outsideClick"))},this.handleDocumentMouseDown=e=>{const t=this.getTopLayer();t&&(this.mouseDownLayerTarget={layer:t,target:e.target})}}add(e){this.stack.push(e),1===this.stack.length&&this.addListeners(),this.notifyLayersChange()}remove(e){const t=this.stack.indexOf(e);this.stack.splice(t,1),0===this.stack.length&&this.removeListeners(),this.notifyLayersChange()}getLayersCount(){return this.stack.length}getLayers(){return this.stack.map((e=>{let{type:t}=e;return{type:t}}))}addListeners(){document.addEventListener("keydown",this.handleDocumentKeyDown),document.addEventListener("click",this.handleDocumentClick,!0),document.addEventListener("mousedown",this.handleDocumentMouseDown,!0)}removeListeners(){document.removeEventListener("keydown",this.handleDocumentKeyDown),document.removeEventListener("click",this.handleDocumentClick,!0),document.removeEventListener("mousedown",this.handleDocumentMouseDown,!0)}notifyLayersChange(){i.P.publish({componentId:"LayerManager",eventId:"layerschange",meta:{layersCount:this.getLayersCount(),layers:this.getLayers()}})}getTopLayer(){return this.stack[this.stack.length-1]}isOutsideClick(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;const r=e.contentRefs||[],{target:o}=t,i="function"===typeof t.composedPath?t.composedPath():[];if(r.length>0){return!r.some((e=>{var t,r,a,s;return(null===(r=null===(t=null===e||void 0===e?void 0:e.current)||void 0===t?void 0:t.contains)||void 0===r?void 0:r.call(t,o))||(null===(s=null===(a=null===e||void 0===e?void 0:e.current)||void 0===a?void 0:a.contains)||void 0===s?void 0:s.call(a,n))||i.includes(null===e||void 0===e?void 0:e.current)}))}return!1}isToastClick(e){return("function"===typeof e.composedPath?e.composedPath():[]).some((e=>{var t;return Boolean(null===(t=null===e||void 0===e?void 0:e.dataset)||void 0===t?void 0:t.toast)}))}};function s(e){let{open:t,disableEscapeKeyDown:n,disableOutsideClick:o,onEscapeKeyDown:i,onEnterKeyDown:s,onOutsideClick:l,onClose:c,contentRefs:u,enabled:d=!0,type:f}=e;const p=r.useRef({disableEscapeKeyDown:n,disableOutsideClick:o,onEscapeKeyDown:i,onEnterKeyDown:s,onOutsideClick:l,onClose:c,contentRefs:u,type:f});r.useEffect((()=>{Object.assign(p.current,{disableEscapeKeyDown:n,disableOutsideClick:o,onEscapeKeyDown:i,onEnterKeyDown:s,onOutsideClick:l,onClose:c,contentRefs:u,enabled:d})}),[n,o,i,s,l,c,u,d]),r.useEffect((()=>{if(t&&d){const e=p.current;return a.add(e),()=>{a.remove(e)}}}),[t,d])}},31445:(e,t,n)=>{"use strict";n.d(t,{Y:()=>o});var r=n(36951);function o(e){return{appear:(0,r.Ui)(e({appear:!0})),appearActive:(0,r.Ui)(e({appear:"active"})),appearDone:(0,r.Ui)(e({appear:"done"})),enter:(0,r.Ui)(e({enter:!0})),enterActive:(0,r.Ui)(e({enter:"active"})),enterDone:(0,r.Ui)(e({enter:"done"})),exit:(0,r.Ui)(e({exit:!0})),exitActive:(0,r.Ui)(e({exit:"active"})),exitDone:(0,r.Ui)(e({exit:"done"}))}}},12913:(e,t,n)=>{"use strict";n.d(t,{O:()=>o});const r=new Map;function o(e){!e||r.has(e)}},59926:(e,t,n)=>{"use strict";n.d(t,{V:()=>r});const r={BACKSPACE:"Backspace",ENTER:"Enter",TAB:"Tab",SPACEBAR:" ",SPACEBAR_OLD:"Spacebar",ESCAPE:"Escape",ARROW_UP:"ArrowUp",ARROW_DOWN:"ArrowDown",ARROW_LEFT:"ArrowLeft",ARROW_RIGHT:"ArrowRight"}},33180:(e,t,n)=>{"use strict";n.d(t,{O:()=>l});var r=n(68963),o=n(56407),i=n(48027),a=n(93404),s=n(92006);function l(e){let{name:t,value:n,id:l,defaultChecked:c,checked:u,indeterminate:d,onUpdate:f,onChange:p,controlRef:h,controlProps:m,onFocus:g,onBlur:v,disabled:y}=e;const b=r.useRef(null),[w,E]=(0,o.z)(u,null!==c&&void 0!==c&&c,f),_=!d&&u,x=d?"mixed":w,S=(0,s.q)({initialValue:w,onReset:E}),C=(0,i.c)(h,b,S);r.useLayoutEffect((()=>{b.current&&(b.current.indeterminate=Boolean(d))}),[d]);const k=r.useCallback((e=>{a.P.publish({componentId:"Checkbox",eventId:"click",domEvent:e,meta:{checked:e.target.checked}})}),[]);return{checked:w,inputProps:Object.assign(Object.assign({},m),{name:t,value:n,id:l,onFocus:g,onBlur:v,disabled:y,type:"checkbox",onChange:e=>{E(e.target.checked),p&&p(e)},onClickCapture:k,defaultChecked:c,checked:_,"aria-checked":x,ref:C})}}},92006:(e,t,n)=>{"use strict";n.d(t,{q:()=>o});var r=n(68963);function o(e){let{initialValue:t,onReset:n}=e;const[o,i]=r.useState(null),a=r.useRef(t);r.useEffect((()=>{if(!o)return;const e=()=>{n(a.current)};return o.addEventListener("reset",e),()=>{o.removeEventListener("reset",e)}}),[o,n]);return r.useCallback((e=>{var t;i(null!==(t=null===e||void 0===e?void 0:e.form)&&void 0!==t?t:null)}),[])}},95753:(e,t,n)=>{"use strict";n.d(t,{H:()=>i});var r=n(68963),o=n(35503);function i(e){let{enabled:t,restoreFocusRef:n,focusTrapped:i}=e;const a=r.useRef(null),s=r.useRef(null),l=r.useRef(null);return r.useEffect((()=>{if(!t)return;const e=e=>{const t=e.target;!i&&t instanceof HTMLElement&&(0,o.Wq)(t)&&(l.current=t)},n=e=>{const t=e.target;t instanceof HTMLElement&&(0,o.Wq)(t)?l.current=t:l.current=null};return window.addEventListener("focusin",e),window.addEventListener("mousedown",n),window.addEventListener("touchstart",n),()=>{window.removeEventListener("focusin",e),window.removeEventListener("mousedown",n),window.removeEventListener("touchstart",n)}}),[t,i]),r.useEffect((()=>{var e;a.current=t&&null!==(e=(null===n||void 0===n?void 0:n.current)||s.current)&&void 0!==e?e:null})),r.useEffect((()=>{if(t)return()=>{let e=a.current;const t=l.current;t&&document.contains(t)&&(0,o.Wq)(t)&&(e=t),e&&"function"===typeof e.focus&&document.contains(e)&&(0,o.EB)(e)&&(e!==document.activeElement&&setTimeout((()=>{null===e||void 0===e||e.focus()}),0),s.current=null,l.current=null)}}),[t]),{onFocus:e=>{var r;t&&null===s.current&&(s.current=e.relatedTarget,l.current=s.current,a.current=null!==(r=(null===n||void 0===n?void 0:n.current)||s.current)&&void 0!==r?r:null)}}}},79004:(e,t,n)=>{"use strict";n.d(t,{p:()=>i});var r=n(68963),o=n(59926);const i=(e,t)=>{let{openDelay:n=250,closeDelay:i,preventTriggerOnFocus:a=!1}=t;const[s,l,c]=function(e){const[t,n]=r.useState(e);return[t,r.useCallback((()=>n(!0)),[]),r.useCallback((()=>n(!1)),[]),r.useCallback((()=>n((e=>!e))),[])]}(!1),u=r.useRef(),d=r.useRef(!1);return r.useEffect((()=>{if(e)return e.addEventListener("mouseenter",t),e.addEventListener("mouseleave",r),e.addEventListener("keydown",p),a||(e.addEventListener("focus",s),e.addEventListener("blur",f)),()=>{e.removeEventListener("mouseenter",t),e.removeEventListener("mouseleave",r),e.removeEventListener("focus",s),e.removeEventListener("blur",f),e.removeEventListener("keydown",p)};function t(){clearTimeout(u.current),u.current=window.setTimeout(l,n)}function r(){clearTimeout(u.current),u.current=window.setTimeout(c,i)}function s(e){d.current||document.activeElement!==e.target||(d.current=!0,clearTimeout(u.current),l())}function f(e){d.current&&!e.currentTarget.contains(e.relatedTarget)&&(d.current=!1,clearTimeout(u.current),c())}function p(e){e.key===o.V.ESCAPE&&(clearTimeout(u.current),c())}}),[e,l,c,n,i,a]),s}},68512:(e,t,n)=>{"use strict";n.d(t,{S:()=>i,b:()=>a});var r=n(68963),o=n(59926);function i(e){return t=>{e&&[o.V.ENTER,o.V.SPACEBAR,o.V.SPACEBAR_OLD].includes(t.key)&&(t.preventDefault(),e(t))}}function a(e){return{onKeyDown:r.useMemo((()=>i(e)),[e])}}},74100:(e,t,n)=>{"use strict";n.d(t,{y:()=>a});var r=n(68963);let o,i=0;function a(e){let{enabled:t}=e;r.useLayoutEffect((()=>{if(t)return i++,1===i&&function(){const e=window.innerWidth-document.documentElement.clientWidth,t=window.innerHeight-document.documentElement.clientHeight,n=function(){const e=window.getComputedStyle(document.body);return{top:Number.parseFloat(e.paddingTop),right:Number.parseFloat(e.paddingRight),bottom:Number.parseFloat(e.paddingBottom),left:Number.parseFloat(e.paddingLeft)}}();o=document.body.style.cssText,document.body.style.overflow="hidden",e&&(document.body.style.paddingRight=`${n.right+e}px`);t&&(document.body.style.paddingBottom=`${n.bottom+t}px`)}(),()=>{i--,0===i&&(o?document.body.style.cssText=o:document.body.removeAttribute("style"))}}),[t])}},56407:(e,t,n)=>{"use strict";n.d(t,{z:()=>o});var r=n(68963);function o(e,t,n){const[o,i]=r.useState(null!==e&&void 0!==e?e:t),a=r.useRef(void 0!==e),s=void 0!==e;r.useEffect((()=>{const e=a.current;e!==s&&console.error(`[useControlledState] A component changed from ${e?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}.`),a.current=s}),[s]);let l=s?e:o;const c=r.useCallback((function(e){if(!Object.is(l,e)){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];null===n||void 0===n||n(e,...r)}s||(l=e,i(e))}),[s,n,l]);return[l,c]}},9704:(e,t,n)=>{"use strict";function r(e,t){"function"===typeof e?e(t):e&&(e.current=t)}n.d(t,{k:()=>r})},48027:(e,t,n)=>{"use strict";n.d(t,{c:()=>i});var r=n(68963),o=n(9704);function i(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.useMemo((()=>t.every((e=>null===e||void 0===e))?null:e=>{for(const n of t)(0,o.k)(n,e)}),t)}},63096:(e,t,n)=>{"use strict";n.d(t,{s:()=>o});var r=n(68963);const o=e=>{let{element:t,options:n,onIntersect:o}=e;r.useEffect((()=>{const e=new IntersectionObserver((e=>{let[t]=e;t.isIntersecting&&(null===o||void 0===o||o())}),n);return t&&e.observe(t),()=>null===t?void 0:e.unobserve(t)}),[t,n,o])}},89646:(e,t,n)=>{"use strict";n.d(t,{u:()=>a});var r=n(68963),o=n(36951),i=n(99742);const a="function"===typeof r.useId?function(){return`${o.A7}${r.useId()}`}:function(){const e=r.useRef();return void 0===e.current&&(e.current=(0,i.xA)()),e.current}},63660:(e,t,n)=>{"use strict";n.d(t,{m:()=>re});var r=n(63609),o=n(68963),i=n(63639),a=n.n(i),s=n(38886),l=n(36951);function c(e,t){return e.findIndex((e=>e.name===t))}function u(e,t){return-1!==c(e,t)}function d(e,t){return u(e,t)?e.filter((e=>e.name!==t)):e}const f=o.createContext(null);f.displayName="ToasterContext";const p=o.createContext([]);p.displayName="ToastsContext";const h=o.forwardRef((function(e,t){let{children:n}=e;const[r,i]=o.useState([]),a=o.useCallback((e=>{const{name:t}=e;i((n=>{let r=n;return u(n,t)&&(r=d(n,t)),[...r,Object.assign(Object.assign({},e),{addedAt:Date.now(),ref:o.createRef()})]}))}),[]),s=o.useCallback((e=>{i((t=>d(t,e)))}),[]),l=o.useCallback((()=>{i((()=>[]))}),[]),h=o.useCallback(((e,t)=>{i((n=>{if(!u(n,e))return n;const r=c(n,e);return[...n.slice(0,r),Object.assign(Object.assign({},n[r]),t),...n.slice(r+1)]}))}),[]),m=o.useRef(r);o.useEffect((()=>{m.current=r}),[r]);const g=o.useCallback((e=>!!m.current&&u(m.current,e)),[]),v=o.useMemo((()=>({add:a,remove:s,removeAll:l,update:h,has:g})),[a,s,l,h,g]);return o.useImperativeHandle(t,(()=>({add:a,remove:s,removeAll:l,update:h,has:g}))),o.createElement(f.Provider,{value:v},o.createElement(p.Provider,{value:r},n))}));h.displayName="ToasterProvider";var m=n(79805),g=n(63366),v=n(87462),y=n(97326),b=n(51721),w=n(24330);function E(e,t){var n=Object.create(null);return e&&o.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&(0,o.isValidElement)(e)?t(e):e}(e)})),n}function _(e,t,n){return null!=n[t]?n[t]:e.props[t]}function x(e,t,n){var r=E(e.children),i=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var s={};for(var l in t){if(o[l])for(r=0;r<o[l].length;r++){var c=o[l][r];s[o[l][r]]=n(c)}s[l]=n(l)}for(r=0;r<i.length;r++)s[i[r]]=n(i[r]);return s}(t,r);return Object.keys(i).forEach((function(a){var s=i[a];if((0,o.isValidElement)(s)){var l=a in t,c=a in r,u=t[a],d=(0,o.isValidElement)(u)&&!u.props.in;!c||l&&!d?c||!l||d?c&&l&&(0,o.isValidElement)(u)&&(i[a]=(0,o.cloneElement)(s,{onExited:n.bind(null,s),in:u.props.in,exit:_(s,"exit",e),enter:_(s,"enter",e)})):i[a]=(0,o.cloneElement)(s,{in:!1}):i[a]=(0,o.cloneElement)(s,{onExited:n.bind(null,s),in:!0,exit:_(s,"exit",e),enter:_(s,"enter",e)})}})),i}var S=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},C=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind((0,y.Z)(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}(0,b.Z)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,i=t.children,a=t.handleExited;return{children:t.firstRender?(n=e,r=a,E(n.children,(function(e){return(0,o.cloneElement)(e,{onExited:r.bind(null,e),in:!0,appear:_(e,"appear",n),enter:_(e,"enter",n),exit:_(e,"exit",n)})}))):x(e,i,a),firstRender:!1}},n.handleExited=function(e,t){var n=E(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=(0,v.Z)({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=(0,g.Z)(e,["component","childFactory"]),i=this.state.contextValue,a=S(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?o.createElement(w.Z.Provider,{value:i},a):o.createElement(w.Z.Provider,{value:i},o.createElement(t,r,a))},t}(o.Component);C.propTypes={},C.defaultProps={component:"div",childFactory:function(e){return e}};const k=C;var O=n(62685),T=n(31445),N=n(68010),I=n(96261),P=n(93316),R=n(3442),D=n(77280);function A(e){let{onClose:t,timeout:n}=e;const[r,i,a]=function(){const[e,t]=o.useState(!1);return[o.useCallback((()=>{t(!0)}),[]),o.useCallback((()=>{t(!1)}),[]),e]}();var s,l;return s=t,l=a?null:n,o.useEffect((()=>{if("number"!==typeof l)return;const e=setTimeout((()=>{s()}),l);return()=>{clearTimeout(e)}}),[s,l]),{onMouseOver:r,onMouseLeave:i}}var j=n(17176),M=n(88776),L=n(54973);const z=JSON.parse('{"label_close-button":"Close"}'),F=JSON.parse('{"label_close-button":"\u0417\u0430\u043a\u0440\u044b\u0442\u044c"}'),B=(0,L.e)({en:z,ru:F},"Toaster"),U=(0,l.Ge)("toast"),q=5e3,$={normal:null,info:N.Z,success:I.Z,warning:P.Z,danger:P.Z,utility:R.Z};const Z=o.forwardRef((function(e,t){const{name:n,content:r,actions:i,title:a,className:s,theme:l="normal",renderIcon:c,autoHiding:u=q,isClosable:d=!0,mobile:f=!1,removeCallback:p}=e,h=o.useCallback((()=>p(n)),[p,n]),m=A({onClose:h,timeout:"number"===typeof u?u:void 0}),g={mobile:f,theme:l},v=Boolean(a),y=Boolean(r),b=c?c(e):function(e){let{theme:t}=e;return t&&$[t]?o.createElement(M.J,{data:$[t],size:20,className:U("icon",{[t]:!0})}):null}({theme:l});return o.createElement("div",Object.assign({ref:t,className:U(g,s)},m,{"data-toast":!0}),b&&o.createElement("div",{className:U("icon-container")},b),o.createElement("div",{className:U("container")},v&&o.createElement("h3",{className:U("title")},a),d&&o.createElement(j.z,{size:"s",view:"flat",className:U("btn-close"),onClick:h,extraProps:{"aria-label":B("label_close-button")}},o.createElement(M.J,{data:D.Z})),y&&o.createElement("div",{className:U("content",{"without-title":!v})},r),function(e){let{actions:t,onClose:n}=e;return t&&t.length?o.createElement("div",{className:U("actions")},t.map(((e,t)=>{let{label:r,onClick:i,view:a="outlined",removeAfterClick:s=!0}=e;return o.createElement(j.z,{key:`${r}__${t}`,className:U("action"),onClick:()=>{i(),s&&n()},type:"button",size:"l",view:a,width:"auto"},r)}))):null}({actions:i,onClose:h})))})),H=(0,T.Y)((0,l.Ge)("toast-animation-desktop")),V=(0,T.Y)((0,l.Ge)("toast-animation-mobile"));function W(e){const{toasts:t,mobile:n,removeCallback:r}=e;return o.createElement(k,{component:null},t.map((e=>o.createElement(O.Z,{key:`${e.name}_${e.addedAt}`,nodeRef:e.ref,classNames:n?V:H,addEndListener:t=>{var n,r;return null===(r=null===(n=e.ref)||void 0===n?void 0:n.current)||void 0===r?void 0:r.addEventListener("animationend",t)},onEnter:()=>G(e),onExit:()=>G(e)},o.createElement(Z,Object.assign({},e,{mobile:n,removeCallback:r}))))))}function G(e){var t;(null===(t=e.ref)||void 0===t?void 0:t.current)&&e.ref.current.style.setProperty("--_--item-height",`${e.ref.current.offsetHeight}px`)}var Y=n(57107);const K=(0,l.Ge)("toaster");function Q(e){let{children:t,className:n,mobile:r}=e;const i=o.useRef("undefined"===typeof document?void 0:document.createElement("div"));return o.useEffect((()=>{const e=i.current;if(e)return document.body.appendChild(e),()=>{document.body.removeChild(e)}}),[]),o.useEffect((()=>{i.current&&(i.current.className=K({mobile:r},n))}),[n,r]),o.createElement(Y.h,{container:i.current},t)}function J(e){let{className:t,mobile:n,hasPortal:r=!0}=e;const i=(0,m.X)(),{remove:a}=function(){const e=o.useContext(f);if(null===e)throw new Error("Toaster: `useToaster` hook is used out of context");return o.useMemo((()=>e),[e])}(),s=o.useContext(p),l=o.createElement(W,{toasts:s,removeCallback:a,mobile:null!==n&&void 0!==n?n:i});return r?o.createElement(Q,{className:t||"",mobile:null!==n&&void 0!==n?n:i},l):l}Q.displayName="ToasterPortal",J.displayName="ToasterComponent";const X=Symbol("Toaster instance key"),ee=(0,l.Ge)("toaster");let te;class ne{static injectReactDOMClient(e){te=e}constructor(e){this.className="",this.mobile=!1,this.componentAPI=null,this.add=e=>{var t;null===(t=this.componentAPI)||void 0===t||t.add(e)},this.remove=e=>{var t;null===(t=this.componentAPI)||void 0===t||t.remove(e)},this.removeAll=()=>{var e;null===(e=this.componentAPI)||void 0===e||e.removeAll()},this.update=(e,t)=>{var n;null===(n=this.componentAPI)||void 0===n||n.update(e,t)},this.has=e=>{var t,n;return null!==(n=null===(t=this.componentAPI)||void 0===t?void 0:t.has(e))&&void 0!==n&&n};const t=a()(e,["className"],""),n=a()(e,["mobile"],!1);if(window[X]instanceof ne){const e=window[X];return e.className=t,e.mobile=n,e.setRootNodeClassName(),e}this.className=t,this.mobile=n,this.createRootNode(),this.createReactRoot(),this.render(),window[X]=this}destroy(){s.unmountComponentAtNode(this.rootNode),document.body.removeChild(this.rootNode)}createRootNode(){this.rootNode=document.createElement("div"),this.setRootNodeClassName(),document.body.appendChild(this.rootNode)}createReactRoot(){te&&(this.reactRoot=te.createRoot(this.rootNode))}render(){const e=o.createElement(h,{ref:e=>{this.componentAPI=e}},o.createElement(J,{hasPortal:!1,mobile:this.mobile}));this.reactRoot?this.reactRoot.render(e):s.render(e,this.rootNode,(()=>Promise.resolve()))}setRootNodeClassName(){this.rootNode.className=ee({mobile:this.mobile},this.className)}}ne.injectReactDOMClient(r);const re="object"===typeof window?new ne:{}},69039:(e,t,n)=>{"use strict";var r=n(42780),o=n(9371),i=o(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"===typeof n&&i(e,".prototype.")>-1?o(n):n}},9371:(e,t,n)=>{"use strict";var r=n(88050),o=n(42780),i=n(18083),a=n(84968),s=o("%Function.prototype.apply%"),l=o("%Function.prototype.call%"),c=o("%Reflect.apply%",!0)||r.call(l,s),u=n(85122),d=o("%Math.max%");e.exports=function(e){if("function"!==typeof e)throw new a("a function is required");var t=c(r,l,arguments);return i(t,1+d(0,e.length-(arguments.length-1)),!0)};var f=function(){return c(r,s,arguments)};u?u(e.exports,"apply",{value:f}):e.exports.apply=f},69886:(e,t,n)=>{"use strict";var r=n(21034),o={"text/plain":"Text","text/html":"Url",default:"Text"},i="Copy to clipboard: #{key}, Enter";e.exports=function(e,t){var n,a,s,l,c,u,d=!1;t||(t={}),n=t.debug||!1;try{if(s=r(),l=document.createRange(),c=document.getSelection(),(u=document.createElement("span")).textContent=e,u.ariaHidden="true",u.style.all="unset",u.style.position="fixed",u.style.top=0,u.style.clip="rect(0, 0, 0, 0)",u.style.whiteSpace="pre",u.style.webkitUserSelect="text",u.style.MozUserSelect="text",u.style.msUserSelect="text",u.style.userSelect="text",u.addEventListener("copy",(function(r){if(r.stopPropagation(),t.format)if(r.preventDefault(),"undefined"===typeof r.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var i=o[t.format]||o.default;window.clipboardData.setData(i,e)}else r.clipboardData.clearData(),r.clipboardData.setData(t.format,e);t.onCopy&&(r.preventDefault(),t.onCopy(r.clipboardData))})),document.body.appendChild(u),l.selectNodeContents(u),c.addRange(l),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");d=!0}catch(f){n&&console.error("unable to copy using execCommand: ",f),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),d=!0}catch(f){n&&console.error("unable to copy using clipboardData: ",f),n&&console.error("falling back to prompt"),a=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:i),window.prompt(a,e)}}finally{c&&("function"==typeof c.removeRange?c.removeRange(l):c.removeAllRanges()),u&&document.body.removeChild(u),s()}return d}},44937:(e,t,n)=>{"use strict";var r=n(29335),o={};var i=function(e){};function a(e,t,n,r,o,a,s,l){if(i(t),!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,o,a,s,l],d=0;(c=new Error(t.replace(/%s/g,(function(){return u[d++]})))).name="Invariant Violation"}throw c.framesToPop=1,c}}var s="mixins";e.exports=function(e,t,n){var i=[],l={mixins:"DEFINE_MANY",statics:"DEFINE_MANY",propTypes:"DEFINE_MANY",contextTypes:"DEFINE_MANY",childContextTypes:"DEFINE_MANY",getDefaultProps:"DEFINE_MANY_MERGED",getInitialState:"DEFINE_MANY_MERGED",getChildContext:"DEFINE_MANY_MERGED",render:"DEFINE_ONCE",componentWillMount:"DEFINE_MANY",componentDidMount:"DEFINE_MANY",componentWillReceiveProps:"DEFINE_MANY",shouldComponentUpdate:"DEFINE_ONCE",componentWillUpdate:"DEFINE_MANY",componentDidUpdate:"DEFINE_MANY",componentWillUnmount:"DEFINE_MANY",UNSAFE_componentWillMount:"DEFINE_MANY",UNSAFE_componentWillReceiveProps:"DEFINE_MANY",UNSAFE_componentWillUpdate:"DEFINE_MANY",updateComponent:"OVERRIDE_BASE"},c={getDerivedStateFromProps:"DEFINE_MANY_MERGED"},u={displayName:function(e,t){e.displayName=t},mixins:function(e,t){if(t)for(var n=0;n<t.length;n++)f(e,t[n])},childContextTypes:function(e,t){e.childContextTypes=r({},e.childContextTypes,t)},contextTypes:function(e,t){e.contextTypes=r({},e.contextTypes,t)},getDefaultProps:function(e,t){e.getDefaultProps?e.getDefaultProps=h(e.getDefaultProps,t):e.getDefaultProps=t},propTypes:function(e,t){e.propTypes=r({},e.propTypes,t)},statics:function(e,t){!function(e,t){if(!t)return;for(var n in t){var r=t[n];if(t.hasOwnProperty(n)){if(a(!(n in u),'ReactClass: You are attempting to define a reserved property, `%s`, that shouldn\'t be on the "statics" key. Define it as an instance property instead; it will still be accessible on the constructor.',n),n in e)return a("DEFINE_MANY_MERGED"===(c.hasOwnProperty(n)?c[n]:null),"ReactClass: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",n),void(e[n]=h(e[n],r));e[n]=r}}}(e,t)},autobind:function(){}};function d(e,t){var n=l.hasOwnProperty(t)?l[t]:null;b.hasOwnProperty(t)&&a("OVERRIDE_BASE"===n,"ReactClassInterface: You are attempting to override `%s` from your class specification. Ensure that your method names do not overlap with React methods.",t),e&&a("DEFINE_MANY"===n||"DEFINE_MANY_MERGED"===n,"ReactClassInterface: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",t)}function f(e,n){if(n){a("function"!==typeof n,"ReactClass: You're attempting to use a component class or function as a mixin. Instead, just use a regular object."),a(!t(n),"ReactClass: You're attempting to use a component as a mixin. Instead, just use a regular object.");var r=e.prototype,o=r.__reactAutoBindPairs;for(var i in n.hasOwnProperty(s)&&u.mixins(e,n.mixins),n)if(n.hasOwnProperty(i)&&i!==s){var c=n[i],f=r.hasOwnProperty(i);if(d(f,i),u.hasOwnProperty(i))u[i](e,c);else{var p=l.hasOwnProperty(i);if("function"===typeof c&&!p&&!f&&!1!==n.autobind)o.push(i,c),r[i]=c;else if(f){var g=l[i];a(p&&("DEFINE_MANY_MERGED"===g||"DEFINE_MANY"===g),"ReactClass: Unexpected spec policy %s for key %s when mixing in component specs.",g,i),"DEFINE_MANY_MERGED"===g?r[i]=h(r[i],c):"DEFINE_MANY"===g&&(r[i]=m(r[i],c))}else r[i]=c}}}else;}function p(e,t){for(var n in a(e&&t&&"object"===typeof e&&"object"===typeof t,"mergeIntoWithNoDuplicateKeys(): Cannot merge non-objects."),t)t.hasOwnProperty(n)&&(a(void 0===e[n],"mergeIntoWithNoDuplicateKeys(): Tried to merge two objects with the same key: `%s`. This conflict may be due to a mixin; in particular, this may be caused by two getInitialState() or getDefaultProps() methods returning objects with clashing keys.",n),e[n]=t[n]);return e}function h(e,t){return function(){var n=e.apply(this,arguments),r=t.apply(this,arguments);if(null==n)return r;if(null==r)return n;var o={};return p(o,n),p(o,r),o}}function m(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function g(e,t){return t.bind(e)}var v={componentDidMount:function(){this.__isMounted=!0}},y={componentWillUnmount:function(){this.__isMounted=!1}},b={replaceState:function(e,t){this.updater.enqueueReplaceState(this,e,t)},isMounted:function(){return!!this.__isMounted}},w=function(){};return r(w.prototype,e.prototype,b),function(e){var t=function(e,r,i){this.__reactAutoBindPairs.length&&function(e){for(var t=e.__reactAutoBindPairs,n=0;n<t.length;n+=2){var r=t[n],o=t[n+1];e[r]=g(e,o)}}(this),this.props=e,this.context=r,this.refs=o,this.updater=i||n,this.state=null;var s=this.getInitialState?this.getInitialState():null;a("object"===typeof s&&!Array.isArray(s),"%s.getInitialState(): must return an object or null",t.displayName||"ReactCompositeComponent"),this.state=s};for(var r in t.prototype=new w,t.prototype.constructor=t,t.prototype.__reactAutoBindPairs=[],i.forEach(f.bind(null,t)),f(t,v),f(t,e),f(t,y),t.getDefaultProps&&(t.defaultProps=t.getDefaultProps()),a(t.prototype.render,"createClass(...): Class specification must implement a `render` method."),l)t.prototype[r]||(t.prototype[r]=null);return t}}},77065:(e,t,n)=>{"use strict";var r=n(68963),o=n(44937);if("undefined"===typeof r)throw Error("create-react-class could not find the React object. If you are using script tags, make sure that React is being loaded before create-react-class.");var i=(new r.Component).updater;e.exports=o(r.Component,r.isValidElement,i)},75812:e=>{e.exports=Date.now||function(){return(new Date).getTime()}},22877:function(e){e.exports=function(){"use strict";var e=1e3,t=6e4,n=36e5,r="millisecond",o="second",i="minute",a="hour",s="day",l="week",c="month",u="quarter",d="year",f="date",p="Invalid Date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},v=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},y={s:v,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),o=n%60;return(t<=0?"+":"-")+v(r,2,"0")+":"+v(o,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),o=t.clone().add(r,c),i=n-o<0,a=t.clone().add(r+(i?-1:1),c);return+(-(r+(n-o)/(i?o-a:a-o))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:c,y:d,w:l,d:s,D:f,h:a,m:i,s:o,ms:r,Q:u}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},b="en",w={};w[b]=g;var E="$isDayjsObject",_=function(e){return e instanceof k||!(!e||!e[E])},x=function e(t,n,r){var o;if(!t)return b;if("string"==typeof t){var i=t.toLowerCase();w[i]&&(o=i),n&&(w[i]=n,o=i);var a=t.split("-");if(!o&&a.length>1)return e(a[0])}else{var s=t.name;w[s]=t,o=s}return!r&&o&&(b=o),o||!r&&b},S=function(e,t){if(_(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new k(n)},C=y;C.l=x,C.i=_,C.w=function(e,t){return S(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var k=function(){function g(e){this.$L=x(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[E]=!0}var v=g.prototype;return v.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(C.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(h);if(r){var o=r[2]-1||0,i=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)):new Date(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)}}return new Date(t)}(e),this.init()},v.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},v.$utils=function(){return C},v.isValid=function(){return!(this.$d.toString()===p)},v.isSame=function(e,t){var n=S(e);return this.startOf(t)<=n&&n<=this.endOf(t)},v.isAfter=function(e,t){return S(e)<this.startOf(t)},v.isBefore=function(e,t){return this.endOf(t)<S(e)},v.$g=function(e,t,n){return C.u(e)?this[t]:this.set(n,e)},v.unix=function(){return Math.floor(this.valueOf()/1e3)},v.valueOf=function(){return this.$d.getTime()},v.startOf=function(e,t){var n=this,r=!!C.u(t)||t,u=C.p(e),p=function(e,t){var o=C.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?o:o.endOf(s)},h=function(e,t){return C.w(n.toDate()[e].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},m=this.$W,g=this.$M,v=this.$D,y="set"+(this.$u?"UTC":"");switch(u){case d:return r?p(1,0):p(31,11);case c:return r?p(1,g):p(0,g+1);case l:var b=this.$locale().weekStart||0,w=(m<b?m+7:m)-b;return p(r?v-w:v+(6-w),g);case s:case f:return h(y+"Hours",0);case a:return h(y+"Minutes",1);case i:return h(y+"Seconds",2);case o:return h(y+"Milliseconds",3);default:return this.clone()}},v.endOf=function(e){return this.startOf(e,!1)},v.$set=function(e,t){var n,l=C.p(e),u="set"+(this.$u?"UTC":""),p=(n={},n[s]=u+"Date",n[f]=u+"Date",n[c]=u+"Month",n[d]=u+"FullYear",n[a]=u+"Hours",n[i]=u+"Minutes",n[o]=u+"Seconds",n[r]=u+"Milliseconds",n)[l],h=l===s?this.$D+(t-this.$W):t;if(l===c||l===d){var m=this.clone().set(f,1);m.$d[p](h),m.init(),this.$d=m.set(f,Math.min(this.$D,m.daysInMonth())).$d}else p&&this.$d[p](h);return this.init(),this},v.set=function(e,t){return this.clone().$set(e,t)},v.get=function(e){return this[C.p(e)]()},v.add=function(r,u){var f,p=this;r=Number(r);var h=C.p(u),m=function(e){var t=S(p);return C.w(t.date(t.date()+Math.round(e*r)),p)};if(h===c)return this.set(c,this.$M+r);if(h===d)return this.set(d,this.$y+r);if(h===s)return m(1);if(h===l)return m(7);var g=(f={},f[i]=t,f[a]=n,f[o]=e,f)[h]||1,v=this.$d.getTime()+r*g;return C.w(v,this)},v.subtract=function(e,t){return this.add(-1*e,t)},v.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=e||"YYYY-MM-DDTHH:mm:ssZ",o=C.z(this),i=this.$H,a=this.$m,s=this.$M,l=n.weekdays,c=n.months,u=n.meridiem,d=function(e,n,o,i){return e&&(e[n]||e(t,r))||o[n].slice(0,i)},f=function(e){return C.s(i%12||12,e,"0")},h=u||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(m,(function(e,r){return r||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return C.s(t.$y,4,"0");case"M":return s+1;case"MM":return C.s(s+1,2,"0");case"MMM":return d(n.monthsShort,s,c,3);case"MMMM":return d(c,s);case"D":return t.$D;case"DD":return C.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return d(n.weekdaysMin,t.$W,l,2);case"ddd":return d(n.weekdaysShort,t.$W,l,3);case"dddd":return l[t.$W];case"H":return String(i);case"HH":return C.s(i,2,"0");case"h":return f(1);case"hh":return f(2);case"a":return h(i,a,!0);case"A":return h(i,a,!1);case"m":return String(a);case"mm":return C.s(a,2,"0");case"s":return String(t.$s);case"ss":return C.s(t.$s,2,"0");case"SSS":return C.s(t.$ms,3,"0");case"Z":return o}return null}(e)||o.replace(":","")}))},v.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},v.diff=function(r,f,p){var h,m=this,g=C.p(f),v=S(r),y=(v.utcOffset()-this.utcOffset())*t,b=this-v,w=function(){return C.m(m,v)};switch(g){case d:h=w()/12;break;case c:h=w();break;case u:h=w()/3;break;case l:h=(b-y)/6048e5;break;case s:h=(b-y)/864e5;break;case a:h=b/n;break;case i:h=b/t;break;case o:h=b/e;break;default:h=b}return p?h:C.a(h)},v.daysInMonth=function(){return this.endOf(c).$D},v.$locale=function(){return w[this.$L]},v.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=x(e,t,!0);return r&&(n.$L=r),n},v.clone=function(){return C.w(this.$d,this)},v.toDate=function(){return new Date(this.valueOf())},v.toJSON=function(){return this.isValid()?this.toISOString():null},v.toISOString=function(){return this.$d.toISOString()},v.toString=function(){return this.$d.toUTCString()},g}(),O=k.prototype;return S.prototype=O,[["$ms",r],["$s",o],["$m",i],["$H",a],["$W",s],["$M",c],["$y",d],["$D",f]].forEach((function(e){O[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),S.extend=function(e,t){return e.$i||(e(t,k,S),e.$i=!0),S},S.locale=x,S.isDayjs=_,S.unix=function(e){return S(1e3*e)},S.en=w[b],S.Ls=w,S.p={},S}()},52703:function(e){e.exports=function(){"use strict";var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d\d/,r=/\d\d?/,o=/\d*[^-_:/,()\s\d]+/,i={},a=function(e){return(e=+e)+(e>68?1900:2e3)},s=function(e){return function(t){this[e]=+t}},l=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e)return 0;if("Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return 0===n?0:"+"===t[0]?-n:n}(e)}],c=function(e){var t=i[e];return t&&(t.indexOf?t:t.s.concat(t.f))},u=function(e,t){var n,r=i.meridiem;if(r){for(var o=1;o<=24;o+=1)if(e.indexOf(r(o,0,t))>-1){n=o>12;break}}else n=e===(t?"pm":"PM");return n},d={A:[o,function(e){this.afternoon=u(e,!1)}],a:[o,function(e){this.afternoon=u(e,!0)}],S:[/\d/,function(e){this.milliseconds=100*+e}],SS:[n,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[r,s("seconds")],ss:[r,s("seconds")],m:[r,s("minutes")],mm:[r,s("minutes")],H:[r,s("hours")],h:[r,s("hours")],HH:[r,s("hours")],hh:[r,s("hours")],D:[r,s("day")],DD:[n,s("day")],Do:[o,function(e){var t=i.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,"")===e&&(this.day=r)}],M:[r,s("month")],MM:[n,s("month")],MMM:[o,function(e){var t=c("months"),n=(c("monthsShort")||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(n<1)throw new Error;this.month=n%12||n}],MMMM:[o,function(e){var t=c("months").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t}],Y:[/[+-]?\d+/,s("year")],YY:[n,function(e){this.year=a(e)}],YYYY:[/\d{4}/,s("year")],Z:l,ZZ:l};function f(n){var r,o;r=n,o=i&&i.formats;for(var a=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,r){var i=r&&r.toUpperCase();return n||o[r]||e[r]||o[i].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))).match(t),s=a.length,l=0;l<s;l+=1){var c=a[l],u=d[c],f=u&&u[0],p=u&&u[1];a[l]=p?{regex:f,parser:p}:c.replace(/^\[|\]$/g,"")}return function(e){for(var t={},n=0,r=0;n<s;n+=1){var o=a[n];if("string"==typeof o)r+=o.length;else{var i=o.regex,l=o.parser,c=e.slice(r),u=i.exec(c)[0];l.call(t,u),e=e.replace(u,"")}}return function(e){var t=e.afternoon;if(void 0!==t){var n=e.hours;t?n<12&&(e.hours+=12):12===n&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,n){n.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(a=e.parseTwoDigitYear);var r=t.prototype,o=r.parse;r.parse=function(e){var t=e.date,r=e.utc,a=e.args;this.$u=r;var s=a[1];if("string"==typeof s){var l=!0===a[2],c=!0===a[3],u=l||c,d=a[2];c&&(d=a[2]),i=this.$locale(),!l&&d&&(i=n.Ls[d]),this.$d=function(e,t,n){try{if(["x","X"].indexOf(t)>-1)return new Date(("X"===t?1e3:1)*e);var r=f(t)(e),o=r.year,i=r.month,a=r.day,s=r.hours,l=r.minutes,c=r.seconds,u=r.milliseconds,d=r.zone,p=new Date,h=a||(o||i?1:p.getDate()),m=o||p.getFullYear(),g=0;o&&!i||(g=i>0?i-1:p.getMonth());var v=s||0,y=l||0,b=c||0,w=u||0;return d?new Date(Date.UTC(m,g,h,v,y,b,w+60*d.offset*1e3)):n?new Date(Date.UTC(m,g,h,v,y,b,w)):new Date(m,g,h,v,y,b,w)}catch(e){return new Date("")}}(t,s,r),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),u&&t!=this.format(s)&&(this.$d=new Date("")),i={}}else if(s instanceof Array)for(var p=s.length,h=1;h<=p;h+=1){a[1]=s[h-1];var m=n.apply(this,a);if(m.isValid()){this.$d=m.$d,this.$L=m.$L,this.init();break}h===p&&(this.$d=new Date(""))}else o.call(this,e)}}}()},1035:function(e){e.exports=function(){"use strict";return function(e,t,n){n.updateLocale=function(e,t){var r=n.Ls[e];if(r)return(t?Object.keys(t):[]).forEach((function(e){r[e]=t[e]})),r}}}()},54591:function(e){e.exports=function(){"use strict";var e="minute",t=/[+-]\d\d(?::?\d\d)?/g,n=/([+-]|\d\d)/g;return function(r,o,i){var a=o.prototype;i.utc=function(e){return new o({date:e,utc:!0,args:arguments})},a.utc=function(t){var n=i(this.toDate(),{locale:this.$L,utc:!0});return t?n.add(this.utcOffset(),e):n},a.local=function(){return i(this.toDate(),{locale:this.$L,utc:!1})};var s=a.parse;a.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),s.call(this,e)};var l=a.init;a.init=function(){if(this.$u){var e=this.$d;this.$y=e.getUTCFullYear(),this.$M=e.getUTCMonth(),this.$D=e.getUTCDate(),this.$W=e.getUTCDay(),this.$H=e.getUTCHours(),this.$m=e.getUTCMinutes(),this.$s=e.getUTCSeconds(),this.$ms=e.getUTCMilliseconds()}else l.call(this)};var c=a.utcOffset;a.utcOffset=function(r,o){var i=this.$utils().u;if(i(r))return this.$u?0:i(this.$offset)?c.call(this):this.$offset;if("string"==typeof r&&(r=function(e){void 0===e&&(e="");var r=e.match(t);if(!r)return null;var o=(""+r[0]).match(n)||["-",0,0],i=o[0],a=60*+o[1]+ +o[2];return 0===a?0:"+"===i?a:-a}(r),null===r))return this;var a=Math.abs(r)<=16?60*r:r,s=this;if(o)return s.$offset=a,s.$u=0===r,s;if(0!==r){var l=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(s=this.local().add(a+l,e)).$offset=a,s.$x.$localOffset=l}else s=this.utc();return s};var u=a.format;a.format=function(e){var t=e||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return u.call(this,t)},a.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*e},a.isUTC=function(){return!!this.$u},a.toISOString=function(){return this.toDate().toISOString()},a.toString=function(){return this.toDate().toUTCString()};var d=a.toDate;a.toDate=function(e){return"s"===e&&this.$offset?i(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():d.call(this)};var f=a.diff;a.diff=function(e,t,n){if(e&&this.$u===e.$u)return f.call(this,e,t,n);var r=this.local(),o=i(e).local();return f.call(r,o,t,n)}}}()},60305:(e,t,n)=>{var r=n(75812);e.exports=function(e,t,n){var o,i,a,s,l;function c(){var u=r()-s;u<t&&u>0?o=setTimeout(c,t-u):(o=null,n||(l=e.apply(a,i),o||(a=i=null)))}return null==t&&(t=100),function(){a=this,i=arguments,s=r();var u=n&&!o;return o||(o=setTimeout(c,t)),u&&(l=e.apply(a,i),a=i=null),l}}},10854:(e,t,n)=>{"use strict";var r=n(85122),o=n(47849),i=n(84968),a=n(81687);e.exports=function(e,t,n){if(!e||"object"!==typeof e&&"function"!==typeof e)throw new i("`obj` must be an object or a function`");if("string"!==typeof t&&"symbol"!==typeof t)throw new i("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!==typeof arguments[3]&&null!==arguments[3])throw new i("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!==typeof arguments[4]&&null!==arguments[4])throw new i("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!==typeof arguments[5]&&null!==arguments[5])throw new i("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!==typeof arguments[6])throw new i("`loose`, if provided, must be a boolean");var s=arguments.length>3?arguments[3]:null,l=arguments.length>4?arguments[4]:null,c=arguments.length>5?arguments[5]:null,u=arguments.length>6&&arguments[6],d=!!a&&a(e,t);if(r)r(e,t,{configurable:null===c&&d?d.configurable:!c,enumerable:null===s&&d?d.enumerable:!s,value:n,writable:null===l&&d?d.writable:!l});else{if(!u&&(s||l||c))throw new o("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[t]=n}}},85122:(e,t,n)=>{"use strict";var r=n(42780)("%Object.defineProperty%",!0)||!1;if(r)try{r({},"a",{value:1})}catch(o){r=!1}e.exports=r},16101:e=>{"use strict";e.exports=EvalError},41830:e=>{"use strict";e.exports=Error},69715:e=>{"use strict";e.exports=RangeError},64546:e=>{"use strict";e.exports=ReferenceError},47849:e=>{"use strict";e.exports=SyntaxError},84968:e=>{"use strict";e.exports=TypeError},68344:e=>{"use strict";e.exports=URIError},12406:e=>{"use strict";var t="Function.prototype.bind called on incompatible ",n=Object.prototype.toString,r=Math.max,o="[object Function]",i=function(e,t){for(var n=[],r=0;r<e.length;r+=1)n[r]=e[r];for(var o=0;o<t.length;o+=1)n[o+e.length]=t[o];return n},a=function(e,t){for(var n=[],r=t||0,o=0;r<e.length;r+=1,o+=1)n[o]=e[r];return n},s=function(e,t){for(var n="",r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n};e.exports=function(e){var l=this;if("function"!==typeof l||n.apply(l)!==o)throw new TypeError(t+l);for(var c,u=a(arguments,1),d=r(0,l.length-u.length),f=[],p=0;p<d;p++)f[p]="$"+p;if(c=Function("binder","return function ("+s(f,",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof c){var t=l.apply(this,i(u,arguments));return Object(t)===t?t:this}return l.apply(e,i(u,arguments))})),l.prototype){var h=function(){};h.prototype=l.prototype,c.prototype=new h,h.prototype=null}return c}},88050:(e,t,n)=>{"use strict";var r=n(12406);e.exports=Function.prototype.bind||r},42780:(e,t,n)=>{"use strict";var r,o=n(41830),i=n(16101),a=n(69715),s=n(64546),l=n(47849),c=n(84968),u=n(68344),d=Function,f=function(e){try{return d('"use strict"; return ('+e+").constructor;")()}catch(t){}},p=Object.getOwnPropertyDescriptor;if(p)try{p({},"")}catch(M){p=null}var h=function(){throw new c},m=p?function(){try{return h}catch(e){try{return p(arguments,"callee").get}catch(t){return h}}}():h,g=n(83895)(),v=n(29571)(),y=Object.getPrototypeOf||(v?function(e){return e.__proto__}:null),b={},w="undefined"!==typeof Uint8Array&&y?y(Uint8Array):r,E={__proto__:null,"%AggregateError%":"undefined"===typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"===typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":g&&y?y([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":b,"%AsyncGenerator%":b,"%AsyncGeneratorFunction%":b,"%AsyncIteratorPrototype%":b,"%Atomics%":"undefined"===typeof Atomics?r:Atomics,"%BigInt%":"undefined"===typeof BigInt?r:BigInt,"%BigInt64Array%":"undefined"===typeof BigInt64Array?r:BigInt64Array,"%BigUint64Array%":"undefined"===typeof BigUint64Array?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"===typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":o,"%eval%":eval,"%EvalError%":i,"%Float32Array%":"undefined"===typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"===typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"===typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":d,"%GeneratorFunction%":b,"%Int8Array%":"undefined"===typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"===typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"===typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":g&&y?y(y([][Symbol.iterator]())):r,"%JSON%":"object"===typeof JSON?JSON:r,"%Map%":"undefined"===typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!==typeof Map&&g&&y?y((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"===typeof Promise?r:Promise,"%Proxy%":"undefined"===typeof Proxy?r:Proxy,"%RangeError%":a,"%ReferenceError%":s,"%Reflect%":"undefined"===typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"===typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!==typeof Set&&g&&y?y((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"===typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":g&&y?y(""[Symbol.iterator]()):r,"%Symbol%":g?Symbol:r,"%SyntaxError%":l,"%ThrowTypeError%":m,"%TypedArray%":w,"%TypeError%":c,"%Uint8Array%":"undefined"===typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"===typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"===typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"===typeof Uint32Array?r:Uint32Array,"%URIError%":u,"%WeakMap%":"undefined"===typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"===typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"===typeof WeakSet?r:WeakSet};if(y)try{null.error}catch(M){var _=y(y(M));E["%Error.prototype%"]=_}var x=function e(t){var n;if("%AsyncFunction%"===t)n=f("async function () {}");else if("%GeneratorFunction%"===t)n=f("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=f("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&y&&(n=y(o.prototype))}return E[t]=n,n},S={__proto__:null,"%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"]},C=n(88050),k=n(17652),O=C.call(Function.call,Array.prototype.concat),T=C.call(Function.apply,Array.prototype.splice),N=C.call(Function.call,String.prototype.replace),I=C.call(Function.call,String.prototype.slice),P=C.call(Function.call,RegExp.prototype.exec),R=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,D=/\\(\\)?/g,A=function(e){var t=I(e,0,1),n=I(e,-1);if("%"===t&&"%"!==n)throw new l("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new l("invalid intrinsic syntax, expected opening `%`");var r=[];return N(e,R,(function(e,t,n,o){r[r.length]=n?N(o,D,"$1"):t||e})),r},j=function(e,t){var n,r=e;if(k(S,r)&&(r="%"+(n=S[r])[0]+"%"),k(E,r)){var o=E[r];if(o===b&&(o=x(r)),"undefined"===typeof o&&!t)throw new c("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:o}}throw new l("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!==typeof e||0===e.length)throw new c("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!==typeof t)throw new c('"allowMissing" argument must be a boolean');if(null===P(/^%?[^%]*%?$/,e))throw new l("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=A(e),r=n.length>0?n[0]:"",o=j("%"+r+"%",t),i=o.name,a=o.value,s=!1,u=o.alias;u&&(r=u[0],T(n,O([0,1],u)));for(var d=1,f=!0;d<n.length;d+=1){var h=n[d],m=I(h,0,1),g=I(h,-1);if(('"'===m||"'"===m||"`"===m||'"'===g||"'"===g||"`"===g)&&m!==g)throw new l("property names with quotes must have matching quotes");if("constructor"!==h&&f||(s=!0),k(E,i="%"+(r+="."+h)+"%"))a=E[i];else if(null!=a){if(!(h in a)){if(!t)throw new c("base intrinsic for "+e+" exists, but the property is not available.");return}if(p&&d+1>=n.length){var v=p(a,h);a=(f=!!v)&&"get"in v&&!("originalValue"in v.get)?v.get:a[h]}else f=k(a,h),a=a[h];f&&!s&&(E[i]=a)}}return a}},81687:(e,t,n)=>{"use strict";var r=n(42780)("%Object.getOwnPropertyDescriptor%",!0);if(r)try{r([],"length")}catch(o){r=null}e.exports=r},43597:(e,t,n)=>{"use strict";var r=n(85122),o=function(){return!!r};o.hasArrayLengthDefineBug=function(){if(!r)return null;try{return 1!==r([],"length",{value:1}).length}catch(e){return!0}},e.exports=o},29571:e=>{"use strict";var t={__proto__:null,foo:{}},n=Object;e.exports=function(){return{__proto__:t}.foo===t.foo&&!(t instanceof n)}},83895:(e,t,n)=>{"use strict";var r="undefined"!==typeof Symbol&&Symbol,o=n(75687);e.exports=function(){return"function"===typeof r&&("function"===typeof Symbol&&("symbol"===typeof r("foo")&&("symbol"===typeof Symbol("bar")&&o())))}},75687:e=>{"use strict";e.exports=function(){if("function"!==typeof Symbol||"function"!==typeof Object.getOwnPropertySymbols)return!1;if("symbol"===typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"===typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"===typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"===typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"===typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},17652:(e,t,n)=>{"use strict";var r=Function.prototype.call,o=Object.prototype.hasOwnProperty,i=n(88050);e.exports=i.call(r,o)},91668:(e,t,n)=>{"use strict";n.d(t,{lX:()=>x,q_:()=>N,ob:()=>m,PP:()=>P,Ep:()=>h,Hp:()=>g});var r=n(87462);function o(e){return"/"===e.charAt(0)}function i(e,t){for(var n=t,r=n+1,o=e.length;r<o;n+=1,r+=1)e[n]=e[r];e.pop()}const a=function(e,t){void 0===t&&(t="");var n,r=e&&e.split("/")||[],a=t&&t.split("/")||[],s=e&&o(e),l=t&&o(t),c=s||l;if(e&&o(e)?a=r:r.length&&(a.pop(),a=a.concat(r)),!a.length)return"/";if(a.length){var u=a[a.length-1];n="."===u||".."===u||""===u}else n=!1;for(var d=0,f=a.length;f>=0;f--){var p=a[f];"."===p?i(a,f):".."===p?(i(a,f),d++):d&&(i(a,f),d--)}if(!c)for(;d--;d)a.unshift("..");!c||""===a[0]||a[0]&&o(a[0])||a.unshift("");var h=a.join("/");return n&&"/"!==h.substr(-1)&&(h+="/"),h};function s(e){return e.valueOf?e.valueOf():Object.prototype.valueOf.call(e)}const l=function e(t,n){if(t===n)return!0;if(null==t||null==n)return!1;if(Array.isArray(t))return Array.isArray(n)&&t.length===n.length&&t.every((function(t,r){return e(t,n[r])}));if("object"===typeof t||"object"===typeof n){var r=s(t),o=s(n);return r!==t||o!==n?e(r,o):Object.keys(Object.assign({},t,n)).every((function(r){return e(t[r],n[r])}))}return!1};var c=n(35731);function u(e){return"/"===e.charAt(0)?e:"/"+e}function d(e){return"/"===e.charAt(0)?e.substr(1):e}function f(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}function p(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function h(e){var t=e.pathname,n=e.search,r=e.hash,o=t||"/";return n&&"?"!==n&&(o+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o}function m(e,t,n,o){var i;"string"===typeof e?(i=function(e){var t=e||"/",n="",r="",o=t.indexOf("#");-1!==o&&(r=t.substr(o),t=t.substr(0,o));var i=t.indexOf("?");return-1!==i&&(n=t.substr(i),t=t.substr(0,i)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e),i.state=t):(void 0===(i=(0,r.Z)({},e)).pathname&&(i.pathname=""),i.search?"?"!==i.search.charAt(0)&&(i.search="?"+i.search):i.search="",i.hash?"#"!==i.hash.charAt(0)&&(i.hash="#"+i.hash):i.hash="",void 0!==t&&void 0===i.state&&(i.state=t));try{i.pathname=decodeURI(i.pathname)}catch(s){throw s instanceof URIError?new URIError('Pathname "'+i.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):s}return n&&(i.key=n),o?i.pathname?"/"!==i.pathname.charAt(0)&&(i.pathname=a(i.pathname,o.pathname)):i.pathname=o.pathname:i.pathname||(i.pathname="/"),i}function g(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&l(e.state,t.state)}function v(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,o){if(null!=e){var i="function"===typeof e?e(t,n):e;"string"===typeof i?"function"===typeof r?r(i,o):o(!0):o(!1!==i)}else o(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.forEach((function(e){return e.apply(void 0,n)}))}}}var y=!("undefined"===typeof window||!window.document||!window.document.createElement);function b(e,t){t(window.confirm(e))}var w="popstate",E="hashchange";function _(){try{return window.history.state||{}}catch(e){return{}}}function x(e){void 0===e&&(e={}),y||(0,c.Z)(!1);var t=window.history,n=function(){var e=window.navigator.userAgent;return(-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history}(),o=!(-1===window.navigator.userAgent.indexOf("Trident")),i=e,a=i.forceRefresh,s=void 0!==a&&a,l=i.getUserConfirmation,d=void 0===l?b:l,g=i.keyLength,x=void 0===g?6:g,S=e.basename?p(u(e.basename)):"";function C(e){var t=e||{},n=t.key,r=t.state,o=window.location,i=o.pathname+o.search+o.hash;return S&&(i=f(i,S)),m(i,r,n)}function k(){return Math.random().toString(36).substr(2,x)}var O=v();function T(e){(0,r.Z)(B,e),B.length=t.length,O.notifyListeners(B.location,B.action)}function N(e){(function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")})(e)||R(C(e.state))}function I(){R(C(_()))}var P=!1;function R(e){if(P)P=!1,T();else{O.confirmTransitionTo(e,"POP",d,(function(t){t?T({action:"POP",location:e}):function(e){var t=B.location,n=A.indexOf(t.key);-1===n&&(n=0);var r=A.indexOf(e.key);-1===r&&(r=0);var o=n-r;o&&(P=!0,M(o))}(e)}))}}var D=C(_()),A=[D.key];function j(e){return S+h(e)}function M(e){t.go(e)}var L=0;function z(e){1===(L+=e)&&1===e?(window.addEventListener(w,N),o&&window.addEventListener(E,I)):0===L&&(window.removeEventListener(w,N),o&&window.removeEventListener(E,I))}var F=!1;var B={length:t.length,action:"POP",location:D,createHref:j,push:function(e,r){var o="PUSH",i=m(e,r,k(),B.location);O.confirmTransitionTo(i,o,d,(function(e){if(e){var r=j(i),a=i.key,l=i.state;if(n)if(t.pushState({key:a,state:l},null,r),s)window.location.href=r;else{var c=A.indexOf(B.location.key),u=A.slice(0,c+1);u.push(i.key),A=u,T({action:o,location:i})}else window.location.href=r}}))},replace:function(e,r){var o="REPLACE",i=m(e,r,k(),B.location);O.confirmTransitionTo(i,o,d,(function(e){if(e){var r=j(i),a=i.key,l=i.state;if(n)if(t.replaceState({key:a,state:l},null,r),s)window.location.replace(r);else{var c=A.indexOf(B.location.key);-1!==c&&(A[c]=i.key),T({action:o,location:i})}else window.location.replace(r)}}))},go:M,goBack:function(){M(-1)},goForward:function(){M(1)},block:function(e){void 0===e&&(e=!1);var t=O.setPrompt(e);return F||(z(1),F=!0),function(){return F&&(F=!1,z(-1)),t()}},listen:function(e){var t=O.appendListener(e);return z(1),function(){z(-1),t()}}};return B}var S="hashchange",C={hashbang:{encodePath:function(e){return"!"===e.charAt(0)?e:"!/"+d(e)},decodePath:function(e){return"!"===e.charAt(0)?e.substr(1):e}},noslash:{encodePath:d,decodePath:u},slash:{encodePath:u,decodePath:u}};function k(e){var t=e.indexOf("#");return-1===t?e:e.slice(0,t)}function O(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":e.substring(t+1)}function T(e){window.location.replace(k(window.location.href)+"#"+e)}function N(e){void 0===e&&(e={}),y||(0,c.Z)(!1);var t=window.history,n=(window.navigator.userAgent.indexOf("Firefox"),e),o=n.getUserConfirmation,i=void 0===o?b:o,a=n.hashType,s=void 0===a?"slash":a,l=e.basename?p(u(e.basename)):"",d=C[s],g=d.encodePath,w=d.decodePath;function E(){var e=w(O());return l&&(e=f(e,l)),m(e)}var _=v();function x(e){(0,r.Z)(B,e),B.length=t.length,_.notifyListeners(B.location,B.action)}var N=!1,I=null;function P(){var e,t,n=O(),r=g(n);if(n!==r)T(r);else{var o=E(),a=B.location;if(!N&&(t=o,(e=a).pathname===t.pathname&&e.search===t.search&&e.hash===t.hash))return;if(I===h(o))return;I=null,function(e){if(N)N=!1,x();else{var t="POP";_.confirmTransitionTo(e,t,i,(function(n){n?x({action:t,location:e}):function(e){var t=B.location,n=j.lastIndexOf(h(t));-1===n&&(n=0);var r=j.lastIndexOf(h(e));-1===r&&(r=0);var o=n-r;o&&(N=!0,M(o))}(e)}))}}(o)}}var R=O(),D=g(R);R!==D&&T(D);var A=E(),j=[h(A)];function M(e){t.go(e)}var L=0;function z(e){1===(L+=e)&&1===e?window.addEventListener(S,P):0===L&&window.removeEventListener(S,P)}var F=!1;var B={length:t.length,action:"POP",location:A,createHref:function(e){var t=document.querySelector("base"),n="";return t&&t.getAttribute("href")&&(n=k(window.location.href)),n+"#"+g(l+h(e))},push:function(e,t){var n="PUSH",r=m(e,void 0,void 0,B.location);_.confirmTransitionTo(r,n,i,(function(e){if(e){var t=h(r),o=g(l+t);if(O()!==o){I=t,function(e){window.location.hash=e}(o);var i=j.lastIndexOf(h(B.location)),a=j.slice(0,i+1);a.push(t),j=a,x({action:n,location:r})}else x()}}))},replace:function(e,t){var n="REPLACE",r=m(e,void 0,void 0,B.location);_.confirmTransitionTo(r,n,i,(function(e){if(e){var t=h(r),o=g(l+t);O()!==o&&(I=t,T(o));var i=j.indexOf(h(B.location));-1!==i&&(j[i]=t),x({action:n,location:r})}}))},go:M,goBack:function(){M(-1)},goForward:function(){M(1)},block:function(e){void 0===e&&(e=!1);var t=_.setPrompt(e);return F||(z(1),F=!0),function(){return F&&(F=!1,z(-1)),t()}},listen:function(e){var t=_.appendListener(e);return z(1),function(){z(-1),t()}}};return B}function I(e,t,n){return Math.min(Math.max(e,t),n)}function P(e){void 0===e&&(e={});var t=e,n=t.getUserConfirmation,o=t.initialEntries,i=void 0===o?["/"]:o,a=t.initialIndex,s=void 0===a?0:a,l=t.keyLength,c=void 0===l?6:l,u=v();function d(e){(0,r.Z)(w,e),w.length=w.entries.length,u.notifyListeners(w.location,w.action)}function f(){return Math.random().toString(36).substr(2,c)}var p=I(s,0,i.length-1),g=i.map((function(e){return m(e,void 0,"string"===typeof e?f():e.key||f())})),y=h;function b(e){var t=I(w.index+e,0,w.entries.length-1),r=w.entries[t];u.confirmTransitionTo(r,"POP",n,(function(e){e?d({action:"POP",location:r,index:t}):d()}))}var w={length:g.length,action:"POP",location:g[p],index:p,entries:g,createHref:y,push:function(e,t){var r="PUSH",o=m(e,t,f(),w.location);u.confirmTransitionTo(o,r,n,(function(e){if(e){var t=w.index+1,n=w.entries.slice(0);n.length>t?n.splice(t,n.length-t,o):n.push(o),d({action:r,location:o,index:t,entries:n})}}))},replace:function(e,t){var r="REPLACE",o=m(e,t,f(),w.location);u.confirmTransitionTo(o,r,n,(function(e){e&&(w.entries[w.index]=o,d({action:r,location:o}))}))},go:b,goBack:function(){b(-1)},goForward:function(){b(1)},canGo:function(e){var t=w.index+e;return t>=0&&t<w.entries.length},block:function(e){return void 0===e&&(e=!1),u.setPrompt(e)},listen:function(e){return u.appendListener(e)}};return w}},15170:(e,t,n)=>{"use strict";var r=n(70248),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?a:s[e.$$typeof]||o}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!==typeof n){if(h){var o=p(n);o&&o!==h&&e(t,o,r)}var a=u(n);d&&(a=a.concat(d(n)));for(var s=l(t),m=l(n),g=0;g<a.length;++g){var v=a[g];if(!i[v]&&(!r||!r[v])&&(!m||!m[v])&&(!s||!s[v])){var y=f(n,v);try{c(t,v,y)}catch(b){}}}}return t}},17943:(e,t)=>{"use strict";var n="function"===typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function E(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case d:case i:case s:case a:case p:return e;default:switch(e=e&&e.$$typeof){case c:case f:case g:case m:case l:return e;default:return t}}case o:return t}}}function _(e){return E(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=l,t.Element=r,t.ForwardRef=f,t.Fragment=i,t.Lazy=g,t.Memo=m,t.Portal=o,t.Profiler=s,t.StrictMode=a,t.Suspense=p,t.isAsyncMode=function(e){return _(e)||E(e)===u},t.isConcurrentMode=_,t.isContextConsumer=function(e){return E(e)===c},t.isContextProvider=function(e){return E(e)===l},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return E(e)===f},t.isFragment=function(e){return E(e)===i},t.isLazy=function(e){return E(e)===g},t.isMemo=function(e){return E(e)===m},t.isPortal=function(e){return E(e)===o},t.isProfiler=function(e){return E(e)===s},t.isStrictMode=function(e){return E(e)===a},t.isSuspense=function(e){return E(e)===p},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===i||e===d||e===s||e===a||e===p||e===h||"object"===typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===l||e.$$typeof===c||e.$$typeof===f||e.$$typeof===y||e.$$typeof===b||e.$$typeof===w||e.$$typeof===v)},t.typeOf=E},70248:(e,t,n)=>{"use strict";e.exports=n(17943)},32733:e=>{"use strict";e.exports=function(e,t,n,r,o,i,a,s){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,o,i,a,s],u=0;(l=new Error(t.replace(/%s/g,(function(){return c[u++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}}},36383:e=>{"use strict";const t=new Set(["ENOTFOUND","ENETUNREACH","UNABLE_TO_GET_ISSUER_CERT","UNABLE_TO_GET_CRL","UNABLE_TO_DECRYPT_CERT_SIGNATURE","UNABLE_TO_DECRYPT_CRL_SIGNATURE","UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY","CERT_SIGNATURE_FAILURE","CRL_SIGNATURE_FAILURE","CERT_NOT_YET_VALID","CERT_HAS_EXPIRED","CRL_NOT_YET_VALID","CRL_HAS_EXPIRED","ERROR_IN_CERT_NOT_BEFORE_FIELD","ERROR_IN_CERT_NOT_AFTER_FIELD","ERROR_IN_CRL_LAST_UPDATE_FIELD","ERROR_IN_CRL_NEXT_UPDATE_FIELD","OUT_OF_MEM","DEPTH_ZERO_SELF_SIGNED_CERT","SELF_SIGNED_CERT_IN_CHAIN","UNABLE_TO_GET_ISSUER_CERT_LOCALLY","UNABLE_TO_VERIFY_LEAF_SIGNATURE","CERT_CHAIN_TOO_LONG","CERT_REVOKED","INVALID_CA","PATH_LENGTH_EXCEEDED","INVALID_PURPOSE","CERT_UNTRUSTED","CERT_REJECTED","HOSTNAME_MISMATCH"]);e.exports=e=>!t.has(e&&e.code)},49099:e=>{e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},22849:(e,t,n)=>{var r=n(72892)(n(57849),"DataView");e.exports=r},90145:(e,t,n)=>{var r=n(29076),o=n(76009),i=n(86992),a=n(59120),s=n(25899);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=a,l.prototype.set=s,e.exports=l},18084:(e,t,n)=>{var r=n(29917),o=n(43490),i=n(64872),a=n(21744),s=n(88820);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=a,l.prototype.set=s,e.exports=l},44086:(e,t,n)=>{var r=n(72892)(n(57849),"Map");e.exports=r},47059:(e,t,n)=>{var r=n(27161),o=n(65317),i=n(93297),a=n(25771),s=n(633);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=a,l.prototype.set=s,e.exports=l},42115:(e,t,n)=>{var r=n(72892)(n(57849),"Promise");e.exports=r},70607:(e,t,n)=>{var r=n(72892)(n(57849),"Set");e.exports=r},75304:(e,t,n)=>{var r=n(47059),o=n(93648),i=n(56683);function a(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}a.prototype.add=a.prototype.push=o,a.prototype.has=i,e.exports=a},15004:(e,t,n)=>{var r=n(18084),o=n(41662),i=n(97368),a=n(87454),s=n(16596),l=n(32052);function c(e){var t=this.__data__=new r(e);this.size=t.size}c.prototype.clear=o,c.prototype.delete=i,c.prototype.get=a,c.prototype.has=s,c.prototype.set=l,e.exports=c},62279:(e,t,n)=>{var r=n(57849).Symbol;e.exports=r},91385:(e,t,n)=>{var r=n(57849).Uint8Array;e.exports=r},20177:(e,t,n)=>{var r=n(72892)(n(57849),"WeakMap");e.exports=r},12539:e=>{e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},35219:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}},82169:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}},73784:(e,t,n)=>{var r=n(34698);e.exports=function(e,t){return!!(null==e?0:e.length)&&r(e,t,0)>-1}},58713:e=>{e.exports=function(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}},34087:(e,t,n)=>{var r=n(94558),o=n(38492),i=n(46296),a=n(98267),s=n(64764),l=n(34057),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=i(e),u=!n&&o(e),d=!n&&!u&&a(e),f=!n&&!u&&!d&&l(e),p=n||u||d||f,h=p?r(e.length,String):[],m=h.length;for(var g in e)!t&&!c.call(e,g)||p&&("length"==g||d&&("offset"==g||"parent"==g)||f&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||s(g,m))||h.push(g);return h}},40341:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}},17174:e=>{e.exports=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}},7138:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},58961:e=>{e.exports=function(e){return e.split("")}},17509:(e,t,n)=>{var r=n(69519),o=n(83272);e.exports=function(e,t,n){(void 0!==n&&!o(e[t],n)||void 0===n&&!(t in e))&&r(e,t,n)}},49237:(e,t,n)=>{var r=n(69519),o=n(83272),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var a=e[t];i.call(e,t)&&o(a,n)&&(void 0!==n||t in e)||r(e,t,n)}},11786:(e,t,n)=>{var r=n(83272);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},74671:(e,t,n)=>{var r=n(81742),o=n(25484);e.exports=function(e,t){return e&&r(t,o(t),e)}},67950:(e,t,n)=>{var r=n(81742),o=n(71973);e.exports=function(e,t){return e&&r(t,o(t),e)}},69519:(e,t,n)=>{var r=n(5216);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},1952:(e,t,n)=>{var r=n(15004),o=n(35219),i=n(49237),a=n(74671),s=n(67950),l=n(78002),c=n(10073),u=n(62877),d=n(5963),f=n(20922),p=n(99970),h=n(5313),m=n(84279),g=n(96579),v=n(93750),y=n(46296),b=n(98267),w=n(92142),E=n(95188),_=n(77411),x=n(25484),S=n(71973),C=1,k=2,O=4,T="[object Arguments]",N="[object Function]",I="[object GeneratorFunction]",P="[object Object]",R={};R[T]=R["[object Array]"]=R["[object ArrayBuffer]"]=R["[object DataView]"]=R["[object Boolean]"]=R["[object Date]"]=R["[object Float32Array]"]=R["[object Float64Array]"]=R["[object Int8Array]"]=R["[object Int16Array]"]=R["[object Int32Array]"]=R["[object Map]"]=R["[object Number]"]=R[P]=R["[object RegExp]"]=R["[object Set]"]=R["[object String]"]=R["[object Symbol]"]=R["[object Uint8Array]"]=R["[object Uint8ClampedArray]"]=R["[object Uint16Array]"]=R["[object Uint32Array]"]=!0,R["[object Error]"]=R[N]=R["[object WeakMap]"]=!1,e.exports=function e(t,n,D,A,j,M){var L,z=n&C,F=n&k,B=n&O;if(D&&(L=j?D(t,A,j,M):D(t)),void 0!==L)return L;if(!E(t))return t;var U=y(t);if(U){if(L=m(t),!z)return c(t,L)}else{var q=h(t),$=q==N||q==I;if(b(t))return l(t,z);if(q==P||q==T||$&&!j){if(L=F||$?{}:v(t),!z)return F?d(t,s(L,t)):u(t,a(L,t))}else{if(!R[q])return j?t:{};L=g(t,q,z)}}M||(M=new r);var Z=M.get(t);if(Z)return Z;M.set(t,L),_(t)?t.forEach((function(r){L.add(e(r,n,D,r,t,M))})):w(t)&&t.forEach((function(r,o){L.set(o,e(r,n,D,o,t,M))}));var H=U?void 0:(B?F?p:f:F?S:x)(t);return o(H||t,(function(r,o){H&&(r=t[o=r]),i(L,o,e(r,n,D,o,t,M))})),L}},16925:(e,t,n)=>{var r=n(95188),o=Object.create,i=function(){function e(){}return function(t){if(!r(t))return{};if(o)return o(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=i},46067:(e,t,n)=>{var r=n(56713),o=n(79607)(r);e.exports=o},81601:e=>{e.exports=function(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}},97539:(e,t,n)=>{var r=n(15375)();e.exports=r},56713:(e,t,n)=>{var r=n(97539),o=n(25484);e.exports=function(e,t){return e&&r(e,t,o)}},8013:(e,t,n)=>{var r=n(31534),o=n(6996);e.exports=function(e,t){for(var n=0,i=(t=r(t,e)).length;null!=e&&n<i;)e=e[o(t[n++])];return n&&n==i?e:void 0}},49178:(e,t,n)=>{var r=n(17174),o=n(46296);e.exports=function(e,t,n){var i=t(e);return o(e)?i:r(i,n(e))}},59704:(e,t,n)=>{var r=n(62279),o=n(6419),i=n(66949),a="[object Null]",s="[object Undefined]",l=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?s:a:l&&l in Object(e)?o(e):i(e)}},61964:e=>{e.exports=function(e,t){return null!=e&&t in Object(e)}},34698:(e,t,n)=>{var r=n(81601),o=n(49690),i=n(44395);e.exports=function(e,t,n){return t===t?i(e,t,n):r(e,o,n)}},43562:(e,t,n)=>{var r=n(59704),o=n(22542),i="[object Arguments]";e.exports=function(e){return o(e)&&r(e)==i}},94193:(e,t,n)=>{var r=n(17345),o=n(22542);e.exports=function e(t,n,i,a,s){return t===n||(null==t||null==n||!o(t)&&!o(n)?t!==t&&n!==n:r(t,n,i,a,e,s))}},17345:(e,t,n)=>{var r=n(15004),o=n(89886),i=n(63811),a=n(80163),s=n(5313),l=n(46296),c=n(98267),u=n(34057),d=1,f="[object Arguments]",p="[object Array]",h="[object Object]",m=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,g,v,y){var b=l(e),w=l(t),E=b?p:s(e),_=w?p:s(t),x=(E=E==f?h:E)==h,S=(_=_==f?h:_)==h,C=E==_;if(C&&c(e)){if(!c(t))return!1;b=!0,x=!1}if(C&&!x)return y||(y=new r),b||u(e)?o(e,t,n,g,v,y):i(e,t,E,n,g,v,y);if(!(n&d)){var k=x&&m.call(e,"__wrapped__"),O=S&&m.call(t,"__wrapped__");if(k||O){var T=k?e.value():e,N=O?t.value():t;return y||(y=new r),v(T,N,n,g,y)}}return!!C&&(y||(y=new r),a(e,t,n,g,v,y))}},90247:(e,t,n)=>{var r=n(5313),o=n(22542),i="[object Map]";e.exports=function(e){return o(e)&&r(e)==i}},56358:(e,t,n)=>{var r=n(15004),o=n(94193),i=1,a=2;e.exports=function(e,t,n,s){var l=n.length,c=l,u=!s;if(null==e)return!c;for(e=Object(e);l--;){var d=n[l];if(u&&d[2]?d[1]!==e[d[0]]:!(d[0]in e))return!1}for(;++l<c;){var f=(d=n[l])[0],p=e[f],h=d[1];if(u&&d[2]){if(void 0===p&&!(f in e))return!1}else{var m=new r;if(s)var g=s(p,h,f,e,t,m);if(!(void 0===g?o(h,p,i|a,s,m):g))return!1}}return!0}},49690:e=>{e.exports=function(e){return e!==e}},70270:(e,t,n)=>{var r=n(81188),o=n(28502),i=n(95188),a=n(21616),s=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,u=l.toString,d=c.hasOwnProperty,f=RegExp("^"+u.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||o(e))&&(r(e)?f:s).test(a(e))}},81594:(e,t,n)=>{var r=n(5313),o=n(22542),i="[object Set]";e.exports=function(e){return o(e)&&r(e)==i}},77088:(e,t,n)=>{var r=n(59704),o=n(18564),i=n(22542),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&o(e.length)&&!!a[r(e)]}},67173:(e,t,n)=>{var r=n(61059),o=n(31451),i=n(5887),a=n(46296),s=n(90310);e.exports=function(e){return"function"==typeof e?e:null==e?i:"object"==typeof e?a(e)?o(e[0],e[1]):r(e):s(e)}},36539:(e,t,n)=>{var r=n(55241),o=n(8848),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=[];for(var n in Object(e))i.call(e,n)&&"constructor"!=n&&t.push(n);return t}},35487:(e,t,n)=>{var r=n(95188),o=n(55241),i=n(97122),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return i(e);var t=o(e),n=[];for(var s in e)("constructor"!=s||!t&&a.call(e,s))&&n.push(s);return n}},61059:(e,t,n)=>{var r=n(56358),o=n(58428),i=n(41452);e.exports=function(e){var t=o(e);return 1==t.length&&t[0][2]?i(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},31451:(e,t,n)=>{var r=n(94193),o=n(63639),i=n(32183),a=n(32014),s=n(62752),l=n(41452),c=n(6996),u=1,d=2;e.exports=function(e,t){return a(e)&&s(t)?l(c(e),t):function(n){var a=o(n,e);return void 0===a&&a===t?i(n,e):r(t,a,u|d)}}},28141:(e,t,n)=>{var r=n(15004),o=n(17509),i=n(97539),a=n(13149),s=n(95188),l=n(71973),c=n(49864);e.exports=function e(t,n,u,d,f){t!==n&&i(n,(function(i,l){if(f||(f=new r),s(i))a(t,n,l,u,e,d,f);else{var p=d?d(c(t,l),i,l+"",t,n,f):void 0;void 0===p&&(p=i),o(t,l,p)}}),l)}},13149:(e,t,n)=>{var r=n(17509),o=n(78002),i=n(39044),a=n(10073),s=n(93750),l=n(38492),c=n(46296),u=n(55109),d=n(98267),f=n(81188),p=n(95188),h=n(39010),m=n(34057),g=n(49864),v=n(78226);e.exports=function(e,t,n,y,b,w,E){var _=g(e,n),x=g(t,n),S=E.get(x);if(S)r(e,n,S);else{var C=w?w(_,x,n+"",e,t,E):void 0,k=void 0===C;if(k){var O=c(x),T=!O&&d(x),N=!O&&!T&&m(x);C=x,O||T||N?c(_)?C=_:u(_)?C=a(_):T?(k=!1,C=o(x,!0)):N?(k=!1,C=i(x,!0)):C=[]:h(x)||l(x)?(C=_,l(_)?C=v(_):p(_)&&!f(_)||(C=s(x))):k=!1}k&&(E.set(x,C),b(C,x,y,w,E),E.delete(x)),r(e,n,C)}}},16076:e=>{e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},9270:(e,t,n)=>{var r=n(8013);e.exports=function(e){return function(t){return r(t,e)}}},55199:e=>{var t=Math.ceil,n=Math.max;e.exports=function(e,r,o,i){for(var a=-1,s=n(t((r-e)/(o||1)),0),l=Array(s);s--;)l[i?s:++a]=e,e+=o;return l}},42872:(e,t,n)=>{var r=n(5887),o=n(60485),i=n(37232);e.exports=function(e,t){return i(o(e,t,r),e+"")}},93848:(e,t,n)=>{var r=n(49237),o=n(31534),i=n(64764),a=n(95188),s=n(6996);e.exports=function(e,t,n,l){if(!a(e))return e;for(var c=-1,u=(t=o(t,e)).length,d=u-1,f=e;null!=f&&++c<u;){var p=s(t[c]),h=n;if("__proto__"===p||"constructor"===p||"prototype"===p)return e;if(c!=d){var m=f[p];void 0===(h=l?l(m,p,f):void 0)&&(h=a(m)?m:i(t[c+1])?[]:{})}r(f,p,h),f=f[p]}return e}},24609:(e,t,n)=>{var r=n(71715),o=n(5216),i=n(5887),a=o?function(e,t){return o(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:i;e.exports=a},12287:e=>{e.exports=function(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r<o;)i[r]=e[r+t];return i}},94558:e=>{e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},60139:(e,t,n)=>{var r=n(62279),o=n(40341),i=n(46296),a=n(36197),s=1/0,l=r?r.prototype:void 0,c=l?l.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(i(t))return o(t,e)+"";if(a(t))return c?c.call(t):"";var n=t+"";return"0"==n&&1/t==-s?"-0":n}},10480:(e,t,n)=>{var r=n(86948),o=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(o,""):e}},31702:e=>{e.exports=function(e){return function(t){return e(t)}}},28241:(e,t,n)=>{var r=n(75304),o=n(73784),i=n(58713),a=n(58024),s=n(54289),l=n(35886),c=200;e.exports=function(e,t,n){var u=-1,d=o,f=e.length,p=!0,h=[],m=h;if(n)p=!1,d=i;else if(f>=c){var g=t?null:s(e);if(g)return l(g);p=!1,d=a,m=new r}else m=t?[]:h;e:for(;++u<f;){var v=e[u],y=t?t(v):v;if(v=n||0!==v?v:0,p&&y===y){for(var b=m.length;b--;)if(m[b]===y)continue e;t&&m.push(y),h.push(v)}else d(m,y,n)||(m!==h&&m.push(y),h.push(v))}return h}},58024:e=>{e.exports=function(e,t){return e.has(t)}},44499:(e,t,n)=>{var r=n(5887);e.exports=function(e){return"function"==typeof e?e:r}},31534:(e,t,n)=>{var r=n(46296),o=n(32014),i=n(18502),a=n(51001);e.exports=function(e,t){return r(e)?e:o(e,t)?[e]:i(a(e))}},94864:(e,t,n)=>{var r=n(12287);e.exports=function(e,t,n){var o=e.length;return n=void 0===n?o:n,!t&&n>=o?e:r(e,t,n)}},83226:(e,t,n)=>{var r=n(91385);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},78002:(e,t,n)=>{e=n.nmd(e);var r=n(57849),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o?r.Buffer:void 0,s=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=s?s(n):new e.constructor(n);return e.copy(r),r}},83544:(e,t,n)=>{var r=n(83226);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}},51970:e=>{var t=/\w*$/;e.exports=function(e){var n=new e.constructor(e.source,t.exec(e));return n.lastIndex=e.lastIndex,n}},16754:(e,t,n)=>{var r=n(62279),o=r?r.prototype:void 0,i=o?o.valueOf:void 0;e.exports=function(e){return i?Object(i.call(e)):{}}},39044:(e,t,n)=>{var r=n(83226);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},10073:e=>{e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}},81742:(e,t,n)=>{var r=n(49237),o=n(69519);e.exports=function(e,t,n,i){var a=!n;n||(n={});for(var s=-1,l=t.length;++s<l;){var c=t[s],u=i?i(n[c],e[c],c,n,e):void 0;void 0===u&&(u=e[c]),a?o(n,c,u):r(n,c,u)}return n}},62877:(e,t,n)=>{var r=n(81742),o=n(2760);e.exports=function(e,t){return r(e,o(e),t)}},5963:(e,t,n)=>{var r=n(81742),o=n(68825);e.exports=function(e,t){return r(e,o(e),t)}},81401:(e,t,n)=>{var r=n(57849)["__core-js_shared__"];e.exports=r},89490:(e,t,n)=>{var r=n(42872),o=n(10335);e.exports=function(e){return r((function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,s=i>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(i--,a):void 0,s&&o(n[0],n[1],s)&&(a=i<3?void 0:a,i=1),t=Object(t);++r<i;){var l=n[r];l&&e(t,l,r,a)}return t}))}},79607:(e,t,n)=>{var r=n(75345);e.exports=function(e,t){return function(n,o){if(null==n)return n;if(!r(n))return e(n,o);for(var i=n.length,a=t?i:-1,s=Object(n);(t?a--:++a<i)&&!1!==o(s[a],a,s););return n}}},15375:e=>{e.exports=function(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r(t),s=a.length;s--;){var l=a[e?s:++o];if(!1===n(i[l],l,i))break}return t}}},57918:(e,t,n)=>{var r=n(94864),o=n(98099),i=n(92606),a=n(51001);e.exports=function(e){return function(t){t=a(t);var n=o(t)?i(t):void 0,s=n?n[0]:t.charAt(0),l=n?r(n,1).join(""):t.slice(1);return s[e]()+l}}},77529:(e,t,n)=>{var r=n(55199),o=n(10335),i=n(85850);e.exports=function(e){return function(t,n,a){return a&&"number"!=typeof a&&o(t,n,a)&&(n=a=void 0),t=i(t),void 0===n?(n=t,t=0):n=i(n),a=void 0===a?t<n?1:-1:i(a),r(t,n,a,e)}}},411:(e,t,n)=>{var r=n(57849),o=n(94100),i=n(57630),a=n(51001),s=r.isFinite,l=Math.min;e.exports=function(e){var t=Math[e];return function(e,n){if(e=i(e),(n=null==n?0:l(o(n),292))&&s(e)){var r=(a(e)+"e").split("e"),c=t(r[0]+"e"+(+r[1]+n));return+((r=(a(c)+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}},54289:(e,t,n)=>{var r=n(70607),o=n(91200),i=n(35886),a=r&&1/i(new r([,-0]))[1]==1/0?function(e){return new r(e)}:o;e.exports=a},5216:(e,t,n)=>{var r=n(72892),o=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();e.exports=o},89886:(e,t,n)=>{var r=n(75304),o=n(7138),i=n(58024),a=1,s=2;e.exports=function(e,t,n,l,c,u){var d=n&a,f=e.length,p=t.length;if(f!=p&&!(d&&p>f))return!1;var h=u.get(e),m=u.get(t);if(h&&m)return h==t&&m==e;var g=-1,v=!0,y=n&s?new r:void 0;for(u.set(e,t),u.set(t,e);++g<f;){var b=e[g],w=t[g];if(l)var E=d?l(w,b,g,t,e,u):l(b,w,g,e,t,u);if(void 0!==E){if(E)continue;v=!1;break}if(y){if(!o(t,(function(e,t){if(!i(y,t)&&(b===e||c(b,e,n,l,u)))return y.push(t)}))){v=!1;break}}else if(b!==w&&!c(b,w,n,l,u)){v=!1;break}}return u.delete(e),u.delete(t),v}},63811:(e,t,n)=>{var r=n(62279),o=n(91385),i=n(83272),a=n(89886),s=n(69278),l=n(35886),c=1,u=2,d="[object Boolean]",f="[object Date]",p="[object Error]",h="[object Map]",m="[object Number]",g="[object RegExp]",v="[object Set]",y="[object String]",b="[object Symbol]",w="[object ArrayBuffer]",E="[object DataView]",_=r?r.prototype:void 0,x=_?_.valueOf:void 0;e.exports=function(e,t,n,r,_,S,C){switch(n){case E:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case w:return!(e.byteLength!=t.byteLength||!S(new o(e),new o(t)));case d:case f:case m:return i(+e,+t);case p:return e.name==t.name&&e.message==t.message;case g:case y:return e==t+"";case h:var k=s;case v:var O=r&c;if(k||(k=l),e.size!=t.size&&!O)return!1;var T=C.get(e);if(T)return T==t;r|=u,C.set(e,t);var N=a(k(e),k(t),r,_,S,C);return C.delete(e),N;case b:if(x)return x.call(e)==x.call(t)}return!1}},80163:(e,t,n)=>{var r=n(20922),o=1,i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,a,s,l){var c=n&o,u=r(e),d=u.length;if(d!=r(t).length&&!c)return!1;for(var f=d;f--;){var p=u[f];if(!(c?p in t:i.call(t,p)))return!1}var h=l.get(e),m=l.get(t);if(h&&m)return h==t&&m==e;var g=!0;l.set(e,t),l.set(t,e);for(var v=c;++f<d;){var y=e[p=u[f]],b=t[p];if(a)var w=c?a(b,y,p,t,e,l):a(y,b,p,e,t,l);if(!(void 0===w?y===b||s(y,b,n,a,l):w)){g=!1;break}v||(v="constructor"==p)}if(g&&!v){var E=e.constructor,_=t.constructor;E==_||!("constructor"in e)||!("constructor"in t)||"function"==typeof E&&E instanceof E&&"function"==typeof _&&_ instanceof _||(g=!1)}return l.delete(e),l.delete(t),g}},46099:(e,t,n)=>{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},20922:(e,t,n)=>{var r=n(49178),o=n(2760),i=n(25484);e.exports=function(e){return r(e,i,o)}},99970:(e,t,n)=>{var r=n(49178),o=n(68825),i=n(71973);e.exports=function(e){return r(e,i,o)}},89511:(e,t,n)=>{var r=n(50565);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},58428:(e,t,n)=>{var r=n(62752),o=n(25484);e.exports=function(e){for(var t=o(e),n=t.length;n--;){var i=t[n],a=e[i];t[n]=[i,a,r(a)]}return t}},72892:(e,t,n)=>{var r=n(70270),o=n(97453);e.exports=function(e,t){var n=o(e,t);return r(n)?n:void 0}},36842:(e,t,n)=>{var r=n(38007)(Object.getPrototypeOf,Object);e.exports=r},6419:(e,t,n)=>{var r=n(62279),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(l){}var o=a.call(e);return r&&(t?e[s]=n:delete e[s]),o}},2760:(e,t,n)=>{var r=n(82169),o=n(92128),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(e){return null==e?[]:(e=Object(e),r(a(e),(function(t){return i.call(e,t)})))}:o;e.exports=s},68825:(e,t,n)=>{var r=n(17174),o=n(36842),i=n(2760),a=n(92128),s=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)r(t,i(e)),e=o(e);return t}:a;e.exports=s},5313:(e,t,n)=>{var r=n(22849),o=n(44086),i=n(42115),a=n(70607),s=n(20177),l=n(59704),c=n(21616),u="[object Map]",d="[object Promise]",f="[object Set]",p="[object WeakMap]",h="[object DataView]",m=c(r),g=c(o),v=c(i),y=c(a),b=c(s),w=l;(r&&w(new r(new ArrayBuffer(1)))!=h||o&&w(new o)!=u||i&&w(i.resolve())!=d||a&&w(new a)!=f||s&&w(new s)!=p)&&(w=function(e){var t=l(e),n="[object Object]"==t?e.constructor:void 0,r=n?c(n):"";if(r)switch(r){case m:return h;case g:return u;case v:return d;case y:return f;case b:return p}return t}),e.exports=w},97453:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},5538:(e,t,n)=>{var r=n(31534),o=n(38492),i=n(46296),a=n(64764),s=n(18564),l=n(6996);e.exports=function(e,t,n){for(var c=-1,u=(t=r(t,e)).length,d=!1;++c<u;){var f=l(t[c]);if(!(d=null!=e&&n(e,f)))break;e=e[f]}return d||++c!=u?d:!!(u=null==e?0:e.length)&&s(u)&&a(f,u)&&(i(e)||o(e))}},98099:e=>{var t=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return t.test(e)}},29076:(e,t,n)=>{var r=n(18501);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},76009:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},86992:(e,t,n)=>{var r=n(18501),o="__lodash_hash_undefined__",i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return n===o?void 0:n}return i.call(t,e)?t[e]:void 0}},59120:(e,t,n)=>{var r=n(18501),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:o.call(t,e)}},25899:(e,t,n)=>{var r=n(18501),o="__lodash_hash_undefined__";e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?o:t,this}},84279:e=>{var t=Object.prototype.hasOwnProperty;e.exports=function(e){var n=e.length,r=new e.constructor(n);return n&&"string"==typeof e[0]&&t.call(e,"index")&&(r.index=e.index,r.input=e.input),r}},96579:(e,t,n)=>{var r=n(83226),o=n(83544),i=n(51970),a=n(16754),s=n(39044),l="[object Boolean]",c="[object Date]",u="[object Map]",d="[object Number]",f="[object RegExp]",p="[object Set]",h="[object String]",m="[object Symbol]",g="[object ArrayBuffer]",v="[object DataView]",y="[object Float32Array]",b="[object Float64Array]",w="[object Int8Array]",E="[object Int16Array]",_="[object Int32Array]",x="[object Uint8Array]",S="[object Uint8ClampedArray]",C="[object Uint16Array]",k="[object Uint32Array]";e.exports=function(e,t,n){var O=e.constructor;switch(t){case g:return r(e);case l:case c:return new O(+e);case v:return o(e,n);case y:case b:case w:case E:case _:case x:case S:case C:case k:return s(e,n);case u:return new O;case d:case h:return new O(e);case f:return i(e);case p:return new O;case m:return a(e)}}},93750:(e,t,n)=>{var r=n(16925),o=n(36842),i=n(55241);e.exports=function(e){return"function"!=typeof e.constructor||i(e)?{}:r(o(e))}},64764:e=>{var t=9007199254740991,n=/^(?:0|[1-9]\d*)$/;e.exports=function(e,r){var o=typeof e;return!!(r=null==r?t:r)&&("number"==o||"symbol"!=o&&n.test(e))&&e>-1&&e%1==0&&e<r}},10335:(e,t,n)=>{var r=n(83272),o=n(75345),i=n(64764),a=n(95188);e.exports=function(e,t,n){if(!a(n))return!1;var s=typeof t;return!!("number"==s?o(n)&&i(t,n.length):"string"==s&&t in n)&&r(n[t],e)}},32014:(e,t,n)=>{var r=n(46296),o=n(36197),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!o(e))||(a.test(e)||!i.test(e)||null!=t&&e in Object(t))}},50565:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},28502:(e,t,n)=>{var r=n(81401),o=function(){var e=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();e.exports=function(e){return!!o&&o in e}},55241:e=>{var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},62752:(e,t,n)=>{var r=n(95188);e.exports=function(e){return e===e&&!r(e)}},29917:e=>{e.exports=function(){this.__data__=[],this.size=0}},43490:(e,t,n)=>{var r=n(11786),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():o.call(t,n,1),--this.size,!0)}},64872:(e,t,n)=>{var r=n(11786);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},21744:(e,t,n)=>{var r=n(11786);e.exports=function(e){return r(this.__data__,e)>-1}},88820:(e,t,n)=>{var r=n(11786);e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},27161:(e,t,n)=>{var r=n(90145),o=n(18084),i=n(44086);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||o),string:new r}}},65317:(e,t,n)=>{var r=n(89511);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},93297:(e,t,n)=>{var r=n(89511);e.exports=function(e){return r(this,e).get(e)}},25771:(e,t,n)=>{var r=n(89511);e.exports=function(e){return r(this,e).has(e)}},633:(e,t,n)=>{var r=n(89511);e.exports=function(e,t){var n=r(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}},69278:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},41452:e=>{e.exports=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}},75103:(e,t,n)=>{var r=n(9161),o=500;e.exports=function(e){var t=r(e,(function(e){return n.size===o&&n.clear(),e})),n=t.cache;return t}},18501:(e,t,n)=>{var r=n(72892)(Object,"create");e.exports=r},8848:(e,t,n)=>{var r=n(38007)(Object.keys,Object);e.exports=r},97122:e=>{e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},24542:(e,t,n)=>{e=n.nmd(e);var r=n(46099),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o&&r.process,s=function(){try{var e=i&&i.require&&i.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(t){}}();e.exports=s},66949:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},38007:e=>{e.exports=function(e,t){return function(n){return e(t(n))}}},60485:(e,t,n)=>{var r=n(12539),o=Math.max;e.exports=function(e,t,n){return t=o(void 0===t?e.length-1:t,0),function(){for(var i=arguments,a=-1,s=o(i.length-t,0),l=Array(s);++a<s;)l[a]=i[t+a];a=-1;for(var c=Array(t+1);++a<t;)c[a]=i[a];return c[t]=n(l),r(e,this,c)}}},57849:(e,t,n)=>{var r=n(46099),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},49864:e=>{e.exports=function(e,t){if(("constructor"!==t||"function"!==typeof e[t])&&"__proto__"!=t)return e[t]}},93648:e=>{var t="__lodash_hash_undefined__";e.exports=function(e){return this.__data__.set(e,t),this}},56683:e=>{e.exports=function(e){return this.__data__.has(e)}},35886:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},37232:(e,t,n)=>{var r=n(24609),o=n(26552)(r);e.exports=o},26552:e=>{var t=800,n=16,r=Date.now;e.exports=function(e){var o=0,i=0;return function(){var a=r(),s=n-(a-i);if(i=a,s>0){if(++o>=t)return arguments[0]}else o=0;return e.apply(void 0,arguments)}}},41662:(e,t,n)=>{var r=n(18084);e.exports=function(){this.__data__=new r,this.size=0}},97368:e=>{e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},87454:e=>{e.exports=function(e){return this.__data__.get(e)}},16596:e=>{e.exports=function(e){return this.__data__.has(e)}},32052:(e,t,n)=>{var r=n(18084),o=n(44086),i=n(47059),a=200;e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var s=n.__data__;if(!o||s.length<a-1)return s.push([e,t]),this.size=++n.size,this;n=this.__data__=new i(s)}return n.set(e,t),this.size=n.size,this}},44395:e=>{e.exports=function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}},92606:(e,t,n)=>{var r=n(58961),o=n(98099),i=n(55412);e.exports=function(e){return o(e)?i(e):r(e)}},18502:(e,t,n)=>{var r=n(75103),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,a=r((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(o,(function(e,n,r,o){t.push(r?o.replace(i,"$1"):n||e)})),t}));e.exports=a},6996:(e,t,n)=>{var r=n(36197),o=1/0;e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-o?"-0":t}},21616:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(n){}try{return e+""}catch(n){}}return""}},86948:e=>{var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},55412:e=>{var t="\\ud800-\\udfff",n="["+t+"]",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",o="\\ud83c[\\udffb-\\udfff]",i="[^"+t+"]",a="(?:\\ud83c[\\udde6-\\uddff]){2}",s="[\\ud800-\\udbff][\\udc00-\\udfff]",l="(?:"+r+"|"+o+")"+"?",c="[\\ufe0e\\ufe0f]?",u=c+l+("(?:\\u200d(?:"+[i,a,s].join("|")+")"+c+l+")*"),d="(?:"+[i+r+"?",r,a,s,n].join("|")+")",f=RegExp(o+"(?="+o+")|"+d+u,"g");e.exports=function(e){return e.match(f)||[]}},6381:(e,t,n)=>{var r=n(51001),o=n(17445);e.exports=function(e){return o(r(e).toLowerCase())}},63585:(e,t,n)=>{var r=n(1952),o=1,i=4;e.exports=function(e){return r(e,o|i)}},71715:e=>{e.exports=function(e){return function(){return e}}},57002:(e,t,n)=>{var r=n(95188),o=n(44864),i=n(57630),a="Expected a function",s=Math.max,l=Math.min;e.exports=function(e,t,n){var c,u,d,f,p,h,m=0,g=!1,v=!1,y=!0;if("function"!=typeof e)throw new TypeError(a);function b(t){var n=c,r=u;return c=u=void 0,m=t,f=e.apply(r,n)}function w(e){var n=e-h;return void 0===h||n>=t||n<0||v&&e-m>=d}function E(){var e=o();if(w(e))return _(e);p=setTimeout(E,function(e){var n=t-(e-h);return v?l(n,d-(e-m)):n}(e))}function _(e){return p=void 0,y&&c?b(e):(c=u=void 0,f)}function x(){var e=o(),n=w(e);if(c=arguments,u=this,h=e,n){if(void 0===p)return function(e){return m=e,p=setTimeout(E,t),g?b(e):f}(h);if(v)return clearTimeout(p),p=setTimeout(E,t),b(h)}return void 0===p&&(p=setTimeout(E,t)),f}return t=i(t)||0,r(n)&&(g=!!n.leading,d=(v="maxWait"in n)?s(i(n.maxWait)||0,t):d,y="trailing"in n?!!n.trailing:y),x.cancel=function(){void 0!==p&&clearTimeout(p),m=0,c=h=u=p=void 0},x.flush=function(){return void 0===p?f:_(o())},x}},84142:(e,t,n)=>{e.exports=n(27663)},83272:e=>{e.exports=function(e,t){return e===t||e!==e&&t!==t}},27663:(e,t,n)=>{var r=n(35219),o=n(46067),i=n(44499),a=n(46296);e.exports=function(e,t){return(a(e)?r:o)(e,i(t))}},63639:(e,t,n)=>{var r=n(8013);e.exports=function(e,t,n){var o=null==e?void 0:r(e,t);return void 0===o?n:o}},32183:(e,t,n)=>{var r=n(61964),o=n(5538);e.exports=function(e,t){return null!=e&&o(e,t,r)}},5887:e=>{e.exports=function(e){return e}},38492:(e,t,n)=>{var r=n(43562),o=n(22542),i=Object.prototype,a=i.hasOwnProperty,s=i.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(e){return o(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},46296:e=>{var t=Array.isArray;e.exports=t},75345:(e,t,n)=>{var r=n(81188),o=n(18564);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},55109:(e,t,n)=>{var r=n(75345),o=n(22542);e.exports=function(e){return o(e)&&r(e)}},98267:(e,t,n)=>{e=n.nmd(e);var r=n(57849),o=n(53388),i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,s=a&&a.exports===i?r.Buffer:void 0,l=(s?s.isBuffer:void 0)||o;e.exports=l},85198:(e,t,n)=>{var r=n(36539),o=n(5313),i=n(38492),a=n(46296),s=n(75345),l=n(98267),c=n(55241),u=n(34057),d="[object Map]",f="[object Set]",p=Object.prototype.hasOwnProperty;e.exports=function(e){if(null==e)return!0;if(s(e)&&(a(e)||"string"==typeof e||"function"==typeof e.splice||l(e)||u(e)||i(e)))return!e.length;var t=o(e);if(t==d||t==f)return!e.size;if(c(e))return!r(e).length;for(var n in e)if(p.call(e,n))return!1;return!0}},85690:(e,t,n)=>{var r=n(94193);e.exports=function(e,t){return r(e,t)}},81188:(e,t,n)=>{var r=n(59704),o=n(95188),i="[object AsyncFunction]",a="[object Function]",s="[object GeneratorFunction]",l="[object Proxy]";e.exports=function(e){if(!o(e))return!1;var t=r(e);return t==a||t==s||t==i||t==l}},18564:e=>{var t=9007199254740991;e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=t}},92142:(e,t,n)=>{var r=n(90247),o=n(31702),i=n(24542),a=i&&i.isMap,s=a?o(a):r;e.exports=s},95188:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},22542:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},39010:(e,t,n)=>{var r=n(59704),o=n(36842),i=n(22542),a="[object Object]",s=Function.prototype,l=Object.prototype,c=s.toString,u=l.hasOwnProperty,d=c.call(Object);e.exports=function(e){if(!i(e)||r(e)!=a)return!1;var t=o(e);if(null===t)return!0;var n=u.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&c.call(n)==d}},77411:(e,t,n)=>{var r=n(81594),o=n(31702),i=n(24542),a=i&&i.isSet,s=a?o(a):r;e.exports=s},36197:(e,t,n)=>{var r=n(59704),o=n(22542),i="[object Symbol]";e.exports=function(e){return"symbol"==typeof e||o(e)&&r(e)==i}},34057:(e,t,n)=>{var r=n(77088),o=n(31702),i=n(24542),a=i&&i.isTypedArray,s=a?o(a):r;e.exports=s},25484:(e,t,n)=>{var r=n(34087),o=n(36539),i=n(75345);e.exports=function(e){return i(e)?r(e):o(e)}},71973:(e,t,n)=>{var r=n(34087),o=n(35487),i=n(75345);e.exports=function(e){return i(e)?r(e,!0):o(e)}},9161:(e,t,n)=>{var r=n(47059),o="Expected a function";function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError(o);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(i.Cache||r),n}i.Cache=r,e.exports=i},3186:(e,t,n)=>{var r=n(28141),o=n(89490)((function(e,t,n){r(e,t,n)}));e.exports=o},91200:e=>{e.exports=function(){}},44864:(e,t,n)=>{var r=n(57849);e.exports=function(){return r.Date.now()}},90310:(e,t,n)=>{var r=n(16076),o=n(9270),i=n(32014),a=n(6996);e.exports=function(e){return i(e)?r(a(e)):o(e)}},28925:(e,t,n)=>{var r=n(77529)();e.exports=r},54466:(e,t,n)=>{var r=n(411)("round");e.exports=r},9447:(e,t,n)=>{var r=n(93848);e.exports=function(e,t,n){return null==e?e:r(e,t,n)}},92128:e=>{e.exports=function(){return[]}},53388:e=>{e.exports=function(){return!1}},43832:(e,t,n)=>{var r=n(57002),o=n(95188),i="Expected a function";e.exports=function(e,t,n){var a=!0,s=!0;if("function"!=typeof e)throw new TypeError(i);return o(n)&&(a="leading"in n?!!n.leading:a,s="trailing"in n?!!n.trailing:s),r(e,t,{leading:a,maxWait:t,trailing:s})}},85850:(e,t,n)=>{var r=n(57630),o=1/0,i=17976931348623157e292;e.exports=function(e){return e?(e=r(e))===o||e===-o?(e<0?-1:1)*i:e===e?e:0:0===e?e:0}},94100:(e,t,n)=>{var r=n(85850);e.exports=function(e){var t=r(e),n=t%1;return t===t?n?t-n:t:0}},57630:(e,t,n)=>{var r=n(10480),o=n(95188),i=n(36197),a=NaN,s=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,c=/^0o[0-7]+$/i,u=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return a;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=l.test(e);return n||c.test(e)?u(e.slice(2),n?2:8):s.test(e)?a:+e}},78226:(e,t,n)=>{var r=n(81742),o=n(71973);e.exports=function(e){return r(e,o(e))}},51001:(e,t,n)=>{var r=n(60139);e.exports=function(e){return null==e?"":r(e)}},60619:(e,t,n)=>{var r=n(67173),o=n(28241);e.exports=function(e,t){return e&&e.length?o(e,r(t,2)):[]}},17445:(e,t,n)=>{var r=n(57918)("toUpperCase");e.exports=r},5083:e=>{"use strict";e.exports=function(e){for(var t=function(e){var t,n=1+(e.length+8>>6),r=new Array(16*n);for(t=0;t<16*n;t++)r[t]=0;for(t=0;t<e.length;t++)r[t>>2]|=e.charCodeAt(t)<<(8*e.length+t)%4*8;r[t>>2]|=128<<(8*e.length+t)%4*8;var o=8*e.length;return r[16*n-2]=255&o,r[16*n-2]|=(o>>>8&255)<<8,r[16*n-2]|=(o>>>16&255)<<16,r[16*n-2]|=(o>>>24&255)<<24,r}(e),n=1732584193,r=-271733879,o=-1732584194,s=271733878,f=0;f<t.length;f+=16){var p=n,h=r,m=o,g=s;n=l(n,r,o,s,t[f+0],7,-680876936),s=l(s,n,r,o,t[f+1],12,-389564586),o=l(o,s,n,r,t[f+2],17,606105819),r=l(r,o,s,n,t[f+3],22,-1044525330),n=l(n,r,o,s,t[f+4],7,-176418897),s=l(s,n,r,o,t[f+5],12,1200080426),o=l(o,s,n,r,t[f+6],17,-1473231341),r=l(r,o,s,n,t[f+7],22,-45705983),n=l(n,r,o,s,t[f+8],7,1770035416),s=l(s,n,r,o,t[f+9],12,-1958414417),o=l(o,s,n,r,t[f+10],17,-42063),r=l(r,o,s,n,t[f+11],22,-1990404162),n=l(n,r,o,s,t[f+12],7,1804603682),s=l(s,n,r,o,t[f+13],12,-40341101),o=l(o,s,n,r,t[f+14],17,-1502002290),n=c(n,r=l(r,o,s,n,t[f+15],22,1236535329),o,s,t[f+1],5,-165796510),s=c(s,n,r,o,t[f+6],9,-1069501632),o=c(o,s,n,r,t[f+11],14,643717713),r=c(r,o,s,n,t[f+0],20,-373897302),n=c(n,r,o,s,t[f+5],5,-701558691),s=c(s,n,r,o,t[f+10],9,38016083),o=c(o,s,n,r,t[f+15],14,-660478335),r=c(r,o,s,n,t[f+4],20,-405537848),n=c(n,r,o,s,t[f+9],5,568446438),s=c(s,n,r,o,t[f+14],9,-1019803690),o=c(o,s,n,r,t[f+3],14,-187363961),r=c(r,o,s,n,t[f+8],20,1163531501),n=c(n,r,o,s,t[f+13],5,-1444681467),s=c(s,n,r,o,t[f+2],9,-51403784),o=c(o,s,n,r,t[f+7],14,1735328473),n=u(n,r=c(r,o,s,n,t[f+12],20,-1926607734),o,s,t[f+5],4,-378558),s=u(s,n,r,o,t[f+8],11,-2022574463),o=u(o,s,n,r,t[f+11],16,1839030562),r=u(r,o,s,n,t[f+14],23,-35309556),n=u(n,r,o,s,t[f+1],4,-1530992060),s=u(s,n,r,o,t[f+4],11,1272893353),o=u(o,s,n,r,t[f+7],16,-155497632),r=u(r,o,s,n,t[f+10],23,-1094730640),n=u(n,r,o,s,t[f+13],4,681279174),s=u(s,n,r,o,t[f+0],11,-358537222),o=u(o,s,n,r,t[f+3],16,-722521979),r=u(r,o,s,n,t[f+6],23,76029189),n=u(n,r,o,s,t[f+9],4,-640364487),s=u(s,n,r,o,t[f+12],11,-421815835),o=u(o,s,n,r,t[f+15],16,530742520),n=d(n,r=u(r,o,s,n,t[f+2],23,-995338651),o,s,t[f+0],6,-198630844),s=d(s,n,r,o,t[f+7],10,1126891415),o=d(o,s,n,r,t[f+14],15,-1416354905),r=d(r,o,s,n,t[f+5],21,-57434055),n=d(n,r,o,s,t[f+12],6,1700485571),s=d(s,n,r,o,t[f+3],10,-1894986606),o=d(o,s,n,r,t[f+10],15,-1051523),r=d(r,o,s,n,t[f+1],21,-2054922799),n=d(n,r,o,s,t[f+8],6,1873313359),s=d(s,n,r,o,t[f+15],10,-30611744),o=d(o,s,n,r,t[f+6],15,-1560198380),r=d(r,o,s,n,t[f+13],21,1309151649),n=d(n,r,o,s,t[f+4],6,-145523070),s=d(s,n,r,o,t[f+11],10,-1120210379),o=d(o,s,n,r,t[f+2],15,718787259),r=d(r,o,s,n,t[f+9],21,-343485551),n=i(n,p),r=i(r,h),o=i(o,m),s=i(s,g)}return a(n)+a(r)+a(o)+a(s)};var t="0123456789abcdef";function n(e,t){return(e>>>1|t>>>1)<<1|(1&e|1&t)}function r(e,t){return(e>>>1^t>>>1)<<1|1&e^1&t}function o(e,t){return(e>>>1&t>>>1)<<1|1&e&t}function i(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function a(e){var n,r="";for(n=0;n<=3;n++)r+=t.charAt(e>>8*n+4&15)+t.charAt(e>>8*n&15);return r}function s(e,t,n,r,o,a){return i((s=i(i(t,e),i(r,a)))<<(l=o)|s>>>32-l,n);var s,l}function l(e,t,r,i,a,l,c){return s(n(o(t,r),o(~t,i)),e,t,a,l,c)}function c(e,t,r,i,a,l,c){return s(n(o(t,i),o(r,~i)),e,t,a,l,c)}function u(e,t,n,o,i,a,l){return s(r(r(t,n),o),e,t,i,a,l)}function d(e,t,o,i,a,l,c){return s(r(o,n(t,~i)),e,t,a,l,c)}},90083:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=Number.isNaN||function(e){return"number"===typeof e&&e!==e};function o(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(o=e[n],i=t[n],!(o===i||r(o)&&r(i)))return!1;var o,i;return!0}const i=function(e,t){var n;void 0===t&&(t=o);var r,i=[],a=!1;return function(){for(var o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];return a&&n===this&&t(o,i)||(r=e.apply(this,o),a=!0,n=this,i=o),r}}},40022:function(e,t,n){var r,o,i;o=[n(36453)],void 0===(i="function"===typeof(r=function(e){e.register("locale","bg",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"\u0445\u0438\u043b",million:"\u043c\u043b\u043d",billion:"\u043c\u043b\u0440\u0434",trillion:"\u0442\u0440\u043b\u043d"},ordinal:function(e){return""},currency:{symbol:"\u043b\u0432"}}),e.register("locale","chs",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"\u5343",million:"\u767e\u4e07",billion:"\u5341\u4ebf",trillion:"\u5146"},ordinal:function(e){return"."},currency:{symbol:"\xa5"}}),e.register("locale","cs",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"tis.",million:"mil.",billion:"b",trillion:"t"},ordinal:function(){return"."},currency:{symbol:"K\u010d"}}),e.register("locale","da-dk",{delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"k",million:"mio",billion:"mia",trillion:"b"},ordinal:function(e){return"."},currency:{symbol:"DKK"}}),e.register("locale","de-ch",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){return"."},currency:{symbol:"CHF"}}),e.register("locale","de",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){return"."},currency:{symbol:"\u20ac"}}),e.register("locale","en-au",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){var t=e%10;return 1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th"},currency:{symbol:"$"}}),e.register("locale","en-gb",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){var t=e%10;return 1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th"},currency:{symbol:"\xa3"}}),e.register("locale","en-za",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){var t=e%10;return 1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th"},currency:{symbol:"R"}}),e.register("locale","es-es",{delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"k",million:"mm",billion:"b",trillion:"t"},ordinal:function(e){var t=e%10;return 1===t||3===t?"er":2===t?"do":7===t||0===t?"mo":8===t?"vo":9===t?"no":"to"},currency:{symbol:"\u20ac"}}),e.register("locale","es",{delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"k",million:"mm",billion:"b",trillion:"t"},ordinal:function(e){var t=e%10;return 1===t||3===t?"er":2===t?"do":7===t||0===t?"mo":8===t?"vo":9===t?"no":"to"},currency:{symbol:"$"}}),e.register("locale","et",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:" tuh",million:" mln",billion:" mld",trillion:" trl"},ordinal:function(e){return"."},currency:{symbol:"\u20ac"}}),e.register("locale","fi",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"M",billion:"G",trillion:"T"},ordinal:function(e){return"."},currency:{symbol:"\u20ac"}}),e.register("locale","fr-ca",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"M",billion:"G",trillion:"T"},ordinal:function(e){return 1===e?"er":"e"},currency:{symbol:"$"}}),e.register("locale","fr-ch",{delimiters:{thousands:"'",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){return 1===e?"er":"e"},currency:{symbol:"CHF"}}),e.register("locale","fr",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){return 1===e?"er":"e"},currency:{symbol:"\u20ac"}}),e.register("locale","hu",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"E",million:"M",billion:"Mrd",trillion:"T"},ordinal:function(e){return"."},currency:{symbol:" Ft"}}),e.register("locale","it",{delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"mila",million:"mil",billion:"b",trillion:"t"},ordinal:function(e){return"\xba"},currency:{symbol:"\u20ac"}}),e.register("locale","ja",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"\u5343",million:"\u767e\u4e07",billion:"\u5341\u5104",trillion:"\u5146"},ordinal:function(e){return"."},currency:{symbol:"\xa5"}}),e.register("locale","lv",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:" t\u016bkst.",million:" milj.",billion:" mljrd.",trillion:" trilj."},ordinal:function(e){return"."},currency:{symbol:"\u20ac"}}),e.register("locale","nl-be",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:" mln",billion:" mld",trillion:" bln"},ordinal:function(e){var t=e%100;return 0!==e&&t<=1||8===t||t>=20?"ste":"de"},currency:{symbol:"\u20ac "}}),e.register("locale","nl-nl",{delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"k",million:"mln",billion:"mrd",trillion:"bln"},ordinal:function(e){var t=e%100;return 0!==e&&t<=1||8===t||t>=20?"ste":"de"},currency:{symbol:"\u20ac "}}),e.register("locale","no",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){return"."},currency:{symbol:"kr"}}),e.register("locale","pl",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"tys.",million:"mln",billion:"mld",trillion:"bln"},ordinal:function(e){return"."},currency:{symbol:"PLN"}}),e.register("locale","pt-br",{delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"mil",million:"milh\xf5es",billion:"b",trillion:"t"},ordinal:function(e){return"\xba"},currency:{symbol:"R$"}}),e.register("locale","pt-pt",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){return"\xba"},currency:{symbol:"\u20ac"}}),e.register("locale","ru-ua",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"\u0442\u044b\u0441.",million:"\u043c\u043b\u043d",billion:"b",trillion:"t"},ordinal:function(){return"."},currency:{symbol:"\u20b4"}}),e.register("locale","ru",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"\u0442\u044b\u0441.",million:"\u043c\u043b\u043d.",billion:"\u043c\u043b\u0440\u0434.",trillion:"\u0442\u0440\u043b\u043d."},ordinal:function(){return"."},currency:{symbol:"\u0440\u0443\u0431."}}),e.register("locale","sk",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"tis.",million:"mil.",billion:"b",trillion:"t"},ordinal:function(){return"."},currency:{symbol:"\u20ac"}}),e.register("locale","sl",{delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"k",million:"mio",billion:"mrd",trillion:"trilijon"},ordinal:function(){return"."},currency:{symbol:"\u20ac"}}),e.register("locale","th",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"\u0e1e\u0e31\u0e19",million:"\u0e25\u0e49\u0e32\u0e19",billion:"\u0e1e\u0e31\u0e19\u0e25\u0e49\u0e32\u0e19",trillion:"\u0e25\u0e49\u0e32\u0e19\u0e25\u0e49\u0e32\u0e19"},ordinal:function(e){return"."},currency:{symbol:"\u0e3f"}}),function(){var t={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'\xfcnc\xfc",4:"'\xfcnc\xfc",100:"'\xfcnc\xfc",6:"'nc\u0131",9:"'uncu",10:"'uncu",30:"'uncu",60:"'\u0131nc\u0131",90:"'\u0131nc\u0131"};e.register("locale","tr",{delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"bin",million:"milyon",billion:"milyar",trillion:"trilyon"},ordinal:function(e){if(0===e)return"'\u0131nc\u0131";var n=e%10,r=e%100-n,o=e>=100?100:null;return t[n]||t[r]||t[o]},currency:{symbol:"\u20ba"}})}(),e.register("locale","uk-ua",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"\u0442\u0438\u0441.",million:"\u043c\u043b\u043d",billion:"\u043c\u043b\u0440\u0434",trillion:"\u0431\u043b\u043d"},ordinal:function(){return""},currency:{symbol:"\u20b4"}}),e.register("locale","vi",{delimiters:{thousands:".",decimal:","},abbreviations:{thousand:" ngh\xecn",million:" tri\u1ec7u",billion:" t\u1ef7",trillion:" ngh\xecn t\u1ef7"},ordinal:function(){return"."},currency:{symbol:"\u20ab"}})})?r.apply(t,o):r)||(e.exports=i)},36453:function(e,t,n){var r,o;r=function(){var e,t,n="2.0.6",r={},o={},i={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},a={currentLocale:i.currentLocale,zeroFormat:i.zeroFormat,nullFormat:i.nullFormat,defaultFormat:i.defaultFormat,scalePercentBy100:i.scalePercentBy100};function s(e,t){this._input=e,this._value=t}return(e=function(n){var o,i,l,c;if(e.isNumeral(n))o=n.value();else if(0===n||"undefined"===typeof n)o=0;else if(null===n||t.isNaN(n))o=null;else if("string"===typeof n)if(a.zeroFormat&&n===a.zeroFormat)o=0;else if(a.nullFormat&&n===a.nullFormat||!n.replace(/[^0-9]+/g,"").length)o=null;else{for(i in r)if((c="function"===typeof r[i].regexps.unformat?r[i].regexps.unformat():r[i].regexps.unformat)&&n.match(c)){l=r[i].unformat;break}o=(l=l||e._.stringToNumber)(n)}else o=Number(n)||null;return new s(n,o)}).version=n,e.isNumeral=function(e){return e instanceof s},e._=t={numberToFormat:function(t,n,r){var i,a,s,l,c,u,d,f=o[e.options.currentLocale],p=!1,h=!1,m=0,g="",v=1e12,y=1e9,b=1e6,w=1e3,E="",_=!1;if(t=t||0,a=Math.abs(t),e._.includes(n,"(")?(p=!0,n=n.replace(/[\(|\)]/g,"")):(e._.includes(n,"+")||e._.includes(n,"-"))&&(c=e._.includes(n,"+")?n.indexOf("+"):t<0?n.indexOf("-"):-1,n=n.replace(/[\+|\-]/g,"")),e._.includes(n,"a")&&(i=!!(i=n.match(/a(k|m|b|t)?/))&&i[1],e._.includes(n," a")&&(g=" "),n=n.replace(new RegExp(g+"a[kmbt]?"),""),a>=v&&!i||"t"===i?(g+=f.abbreviations.trillion,t/=v):a<v&&a>=y&&!i||"b"===i?(g+=f.abbreviations.billion,t/=y):a<y&&a>=b&&!i||"m"===i?(g+=f.abbreviations.million,t/=b):(a<b&&a>=w&&!i||"k"===i)&&(g+=f.abbreviations.thousand,t/=w)),e._.includes(n,"[.]")&&(h=!0,n=n.replace("[.]",".")),s=t.toString().split(".")[0],l=n.split(".")[1],u=n.indexOf(","),m=(n.split(".")[0].split(",")[0].match(/0/g)||[]).length,l?(e._.includes(l,"[")?(l=(l=l.replace("]","")).split("["),E=e._.toFixed(t,l[0].length+l[1].length,r,l[1].length)):E=e._.toFixed(t,l.length,r),s=E.split(".")[0],E=e._.includes(E,".")?f.delimiters.decimal+E.split(".")[1]:"",h&&0===Number(E.slice(1))&&(E="")):s=e._.toFixed(t,0,r),g&&!i&&Number(s)>=1e3&&g!==f.abbreviations.trillion)switch(s=String(Number(s)/1e3),g){case f.abbreviations.thousand:g=f.abbreviations.million;break;case f.abbreviations.million:g=f.abbreviations.billion;break;case f.abbreviations.billion:g=f.abbreviations.trillion}if(e._.includes(s,"-")&&(s=s.slice(1),_=!0),s.length<m)for(var x=m-s.length;x>0;x--)s="0"+s;return u>-1&&(s=s.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+f.delimiters.thousands)),0===n.indexOf(".")&&(s=""),d=s+E+(g||""),p?d=(p&&_?"(":"")+d+(p&&_?")":""):c>=0?d=0===c?(_?"-":"+")+d:d+(_?"-":"+"):_&&(d="-"+d),d},stringToNumber:function(e){var t,n,r,i=o[a.currentLocale],s=e,l={thousand:3,million:6,billion:9,trillion:12};if(a.zeroFormat&&e===a.zeroFormat)n=0;else if(a.nullFormat&&e===a.nullFormat||!e.replace(/[^0-9]+/g,"").length)n=null;else{for(t in n=1,"."!==i.delimiters.decimal&&(e=e.replace(/\./g,"").replace(i.delimiters.decimal,".")),l)if(r=new RegExp("[^a-zA-Z]"+i.abbreviations[t]+"(?:\\)|(\\"+i.currency.symbol+")?(?:\\))?)?$"),s.match(r)){n*=Math.pow(10,l[t]);break}n*=(e.split("-").length+Math.min(e.split("(").length-1,e.split(")").length-1))%2?1:-1,e=e.replace(/[^0-9\.]+/g,""),n*=Number(e)}return n},isNaN:function(e){return"number"===typeof e&&isNaN(e)},includes:function(e,t){return-1!==e.indexOf(t)},insert:function(e,t,n){return e.slice(0,n)+t+e.slice(n)},reduce:function(e,t){if(null===this)throw new TypeError("Array.prototype.reduce called on null or undefined");if("function"!==typeof t)throw new TypeError(t+" is not a function");var n,r=Object(e),o=r.length>>>0,i=0;if(3===arguments.length)n=arguments[2];else{for(;i<o&&!(i in r);)i++;if(i>=o)throw new TypeError("Reduce of empty array with no initial value");n=r[i++]}for(;i<o;i++)i in r&&(n=t(n,r[i],i,r));return n},multiplier:function(e){var t=e.toString().split(".");return t.length<2?1:Math.pow(10,t[1].length)},correctionFactor:function(){return Array.prototype.slice.call(arguments).reduce((function(e,n){var r=t.multiplier(n);return e>r?e:r}),1)},toFixed:function(e,t,n,r){var o,i,a,s,l=e.toString().split("."),c=t-(r||0);return o=2===l.length?Math.min(Math.max(l[1].length,c),t):c,a=Math.pow(10,o),s=(n(e+"e+"+o)/a).toFixed(o),r>t-o&&(i=new RegExp("\\.?0{1,"+(r-(t-o))+"}$"),s=s.replace(i,"")),s}},e.options=a,e.formats=r,e.locales=o,e.locale=function(e){return e&&(a.currentLocale=e.toLowerCase()),a.currentLocale},e.localeData=function(e){if(!e)return o[a.currentLocale];if(e=e.toLowerCase(),!o[e])throw new Error("Unknown locale : "+e);return o[e]},e.reset=function(){for(var e in i)a[e]=i[e]},e.zeroFormat=function(e){a.zeroFormat="string"===typeof e?e:null},e.nullFormat=function(e){a.nullFormat="string"===typeof e?e:null},e.defaultFormat=function(e){a.defaultFormat="string"===typeof e?e:"0.0"},e.register=function(e,t,n){if(t=t.toLowerCase(),this[e+"s"][t])throw new TypeError(t+" "+e+" already registered.");return this[e+"s"][t]=n,n},e.validate=function(t,n){var r,o,i,a,s,l,c,u;if("string"!==typeof t&&(t+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",t)),(t=t.trim()).match(/^\d+$/))return!0;if(""===t)return!1;try{c=e.localeData(n)}catch(d){c=e.localeData(e.locale())}return i=c.currency.symbol,s=c.abbreviations,r=c.delimiters.decimal,o="."===c.delimiters.thousands?"\\.":c.delimiters.thousands,(null===(u=t.match(/^[^\d]+/))||(t=t.substr(1),u[0]===i))&&(null===(u=t.match(/[^\d]+$/))||(t=t.slice(0,-1),u[0]===s.thousand||u[0]===s.million||u[0]===s.billion||u[0]===s.trillion))&&(l=new RegExp(o+"{2}"),!t.match(/[^\d.,]/g)&&!((a=t.split(r)).length>2)&&(a.length<2?!!a[0].match(/^\d+.*\d$/)&&!a[0].match(l):1===a[0].length?!!a[0].match(/^\d+$/)&&!a[0].match(l)&&!!a[1].match(/^\d+$/):!!a[0].match(/^\d+.*\d$/)&&!a[0].match(l)&&!!a[1].match(/^\d+$/)))},e.fn=s.prototype={clone:function(){return e(this)},format:function(t,n){var o,i,s,l=this._value,c=t||a.defaultFormat;if(n=n||Math.round,0===l&&null!==a.zeroFormat)i=a.zeroFormat;else if(null===l&&null!==a.nullFormat)i=a.nullFormat;else{for(o in r)if(c.match(r[o].regexps.format)){s=r[o].format;break}i=(s=s||e._.numberToFormat)(l,c,n)}return i},value:function(){return this._value},input:function(){return this._input},set:function(e){return this._value=Number(e),this},add:function(e){var n=t.correctionFactor.call(null,this._value,e);function r(e,t,r,o){return e+Math.round(n*t)}return this._value=t.reduce([this._value,e],r,0)/n,this},subtract:function(e){var n=t.correctionFactor.call(null,this._value,e);function r(e,t,r,o){return e-Math.round(n*t)}return this._value=t.reduce([e],r,Math.round(this._value*n))/n,this},multiply:function(e){function n(e,n,r,o){var i=t.correctionFactor(e,n);return Math.round(e*i)*Math.round(n*i)/Math.round(i*i)}return this._value=t.reduce([this._value,e],n,1),this},divide:function(e){function n(e,n,r,o){var i=t.correctionFactor(e,n);return Math.round(e*i)/Math.round(n*i)}return this._value=t.reduce([this._value,e],n),this},difference:function(t){return Math.abs(e(this._value).subtract(t).value())}},e.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){var t=e%10;return 1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th"},currency:{symbol:"$"}}),e.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(t,n,r){var o,i=e._.includes(n," BPS")?" ":"";return t*=1e4,n=n.replace(/\s?BPS/,""),o=e._.numberToFormat(t,n,r),e._.includes(o,")")?((o=o.split("")).splice(-1,0,i+"BPS"),o=o.join("")):o=o+i+"BPS",o},unformat:function(t){return+(1e-4*e._.stringToNumber(t)).toFixed(15)}}),function(){var t={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]},n={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},r=t.suffixes.concat(n.suffixes.filter((function(e){return t.suffixes.indexOf(e)<0}))).join("|");r="("+r.replace("B","B(?!PS)")+")",e.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(r)},format:function(r,o,i){var a,s,l,c=e._.includes(o,"ib")?n:t,u=e._.includes(o," b")||e._.includes(o," ib")?" ":"";for(o=o.replace(/\s?i?b/,""),a=0;a<=c.suffixes.length;a++)if(s=Math.pow(c.base,a),l=Math.pow(c.base,a+1),null===r||0===r||r>=s&&r<l){u+=c.suffixes[a],s>0&&(r/=s);break}return e._.numberToFormat(r,o,i)+u},unformat:function(r){var o,i,a=e._.stringToNumber(r);if(a){for(o=t.suffixes.length-1;o>=0;o--){if(e._.includes(r,t.suffixes[o])){i=Math.pow(t.base,o);break}if(e._.includes(r,n.suffixes[o])){i=Math.pow(n.base,o);break}}a*=i||1}return a}})}(),e.register("format","currency",{regexps:{format:/(\$)/},format:function(t,n,r){var o,i,a=e.locales[e.options.currentLocale],s={before:n.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:n.match(/([\+|\-|\)|\s|\$]*)$/)[0]};for(n=n.replace(/\s?\$\s?/,""),o=e._.numberToFormat(t,n,r),t>=0?(s.before=s.before.replace(/[\-\(]/,""),s.after=s.after.replace(/[\-\)]/,"")):t<0&&!e._.includes(s.before,"-")&&!e._.includes(s.before,"(")&&(s.before="-"+s.before),i=0;i<s.before.length;i++)switch(s.before[i]){case"$":o=e._.insert(o,a.currency.symbol,i);break;case" ":o=e._.insert(o," ",i+a.currency.symbol.length-1)}for(i=s.after.length-1;i>=0;i--)switch(s.after[i]){case"$":o=i===s.after.length-1?o+a.currency.symbol:e._.insert(o,a.currency.symbol,-(s.after.length-(1+i)));break;case" ":o=i===s.after.length-1?o+" ":e._.insert(o," ",-(s.after.length-(1+i)+a.currency.symbol.length-1))}return o}}),e.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(t,n,r){var o=("number"!==typeof t||e._.isNaN(t)?"0e+0":t.toExponential()).split("e");return n=n.replace(/e[\+|\-]{1}0/,""),e._.numberToFormat(Number(o[0]),n,r)+"e"+o[1]},unformat:function(t){var n=e._.includes(t,"e+")?t.split("e+"):t.split("e-"),r=Number(n[0]),o=Number(n[1]);function i(t,n,r,o){var i=e._.correctionFactor(t,n);return t*i*(n*i)/(i*i)}return o=e._.includes(t,"e-")?o*=-1:o,e._.reduce([r,Math.pow(10,o)],i,1)}}),e.register("format","ordinal",{regexps:{format:/(o)/},format:function(t,n,r){var o=e.locales[e.options.currentLocale],i=e._.includes(n," o")?" ":"";return n=n.replace(/\s?o/,""),i+=o.ordinal(t),e._.numberToFormat(t,n,r)+i}}),e.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(t,n,r){var o,i=e._.includes(n," %")?" ":"";return e.options.scalePercentBy100&&(t*=100),n=n.replace(/\s?\%/,""),o=e._.numberToFormat(t,n,r),e._.includes(o,")")?((o=o.split("")).splice(-1,0,i+"%"),o=o.join("")):o=o+i+"%",o},unformat:function(t){var n=e._.stringToNumber(t);return e.options.scalePercentBy100?.01*n:n}}),e.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(e,t,n){var r=Math.floor(e/60/60),o=Math.floor((e-60*r*60)/60),i=Math.round(e-60*r*60-60*o);return r+":"+(o<10?"0"+o:o)+":"+(i<10?"0"+i:i)},unformat:function(e){var t=e.split(":"),n=0;return 3===t.length?(n+=60*Number(t[0])*60,n+=60*Number(t[1]),n+=Number(t[2])):2===t.length&&(n+=60*Number(t[0]),n+=Number(t[1])),Number(n)}}),e},void 0===(o="function"===typeof r?r.call(t,n,t,e):r)||(e.exports=o)},29335:e=>{"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(o){return!1}}()?Object.assign:function(e,o){for(var i,a,s=function(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),l=1;l<arguments.length;l++){for(var c in i=Object(arguments[l]))n.call(i,c)&&(s[c]=i[c]);if(t){a=t(i);for(var u=0;u<a.length;u++)r.call(i,a[u])&&(s[a[u]]=i[a[u]])}}return s}},68798:(e,t,n)=>{var r="function"===typeof Map&&Map.prototype,o=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=r&&o&&"function"===typeof o.get?o.get:null,a=r&&Map.prototype.forEach,s="function"===typeof Set&&Set.prototype,l=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,c=s&&l&&"function"===typeof l.get?l.get:null,u=s&&Set.prototype.forEach,d="function"===typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,f="function"===typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,p="function"===typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,h=Boolean.prototype.valueOf,m=Object.prototype.toString,g=Function.prototype.toString,v=String.prototype.match,y=String.prototype.slice,b=String.prototype.replace,w=String.prototype.toUpperCase,E=String.prototype.toLowerCase,_=RegExp.prototype.test,x=Array.prototype.concat,S=Array.prototype.join,C=Array.prototype.slice,k=Math.floor,O="function"===typeof BigInt?BigInt.prototype.valueOf:null,T=Object.getOwnPropertySymbols,N="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?Symbol.prototype.toString:null,I="function"===typeof Symbol&&"object"===typeof Symbol.iterator,P="function"===typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===I||"symbol")?Symbol.toStringTag:null,R=Object.prototype.propertyIsEnumerable,D=("function"===typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function A(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||_.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"===typeof e){var r=e<0?-k(-e):k(e);if(r!==e){var o=String(r),i=y.call(t,o.length+1);return b.call(o,n,"$&_")+"."+b.call(b.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return b.call(t,n,"$&_")}var j=n(24654),M=j.custom,L=q(M)?M:null;function z(e,t,n){var r="double"===(n.quoteStyle||t)?'"':"'";return r+e+r}function F(e){return b.call(String(e),/"/g,"&quot;")}function B(e){return"[object Array]"===H(e)&&(!P||!("object"===typeof e&&P in e))}function U(e){return"[object RegExp]"===H(e)&&(!P||!("object"===typeof e&&P in e))}function q(e){if(I)return e&&"object"===typeof e&&e instanceof Symbol;if("symbol"===typeof e)return!0;if(!e||"object"!==typeof e||!N)return!1;try{return N.call(e),!0}catch(t){}return!1}e.exports=function e(t,r,o,s){var l=r||{};if(Z(l,"quoteStyle")&&"single"!==l.quoteStyle&&"double"!==l.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Z(l,"maxStringLength")&&("number"===typeof l.maxStringLength?l.maxStringLength<0&&l.maxStringLength!==1/0:null!==l.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var m=!Z(l,"customInspect")||l.customInspect;if("boolean"!==typeof m&&"symbol"!==m)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Z(l,"indent")&&null!==l.indent&&"\t"!==l.indent&&!(parseInt(l.indent,10)===l.indent&&l.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Z(l,"numericSeparator")&&"boolean"!==typeof l.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var w=l.numericSeparator;if("undefined"===typeof t)return"undefined";if(null===t)return"null";if("boolean"===typeof t)return t?"true":"false";if("string"===typeof t)return W(t,l);if("number"===typeof t){if(0===t)return 1/0/t>0?"0":"-0";var _=String(t);return w?A(t,_):_}if("bigint"===typeof t){var k=String(t)+"n";return w?A(t,k):k}var T="undefined"===typeof l.depth?5:l.depth;if("undefined"===typeof o&&(o=0),o>=T&&T>0&&"object"===typeof t)return B(t)?"[Array]":"[Object]";var M=function(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"===typeof e.indent&&e.indent>0))return null;n=S.call(Array(e.indent+1)," ")}return{base:n,prev:S.call(Array(t+1),n)}}(l,o);if("undefined"===typeof s)s=[];else if(V(s,t)>=0)return"[Circular]";function $(t,n,r){if(n&&(s=C.call(s)).push(n),r){var i={depth:l.depth};return Z(l,"quoteStyle")&&(i.quoteStyle=l.quoteStyle),e(t,i,o+1,s)}return e(t,l,o+1,s)}if("function"===typeof t&&!U(t)){var G=function(e){if(e.name)return e.name;var t=v.call(g.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(t),ee=X(t,$);return"[Function"+(G?": "+G:" (anonymous)")+"]"+(ee.length>0?" { "+S.call(ee,", ")+" }":"")}if(q(t)){var te=I?b.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):N.call(t);return"object"!==typeof t||I?te:Y(te)}if(function(e){if(!e||"object"!==typeof e)return!1;if("undefined"!==typeof HTMLElement&&e instanceof HTMLElement)return!0;return"string"===typeof e.nodeName&&"function"===typeof e.getAttribute}(t)){for(var ne="<"+E.call(String(t.nodeName)),re=t.attributes||[],oe=0;oe<re.length;oe++)ne+=" "+re[oe].name+"="+z(F(re[oe].value),"double",l);return ne+=">",t.childNodes&&t.childNodes.length&&(ne+="..."),ne+="</"+E.call(String(t.nodeName))+">"}if(B(t)){if(0===t.length)return"[]";var ie=X(t,$);return M&&!function(e){for(var t=0;t<e.length;t++)if(V(e[t],"\n")>=0)return!1;return!0}(ie)?"["+J(ie,M)+"]":"[ "+S.call(ie,", ")+" ]"}if(function(e){return"[object Error]"===H(e)&&(!P||!("object"===typeof e&&P in e))}(t)){var ae=X(t,$);return"cause"in Error.prototype||!("cause"in t)||R.call(t,"cause")?0===ae.length?"["+String(t)+"]":"{ ["+String(t)+"] "+S.call(ae,", ")+" }":"{ ["+String(t)+"] "+S.call(x.call("[cause]: "+$(t.cause),ae),", ")+" }"}if("object"===typeof t&&m){if(L&&"function"===typeof t[L]&&j)return j(t,{depth:T-o});if("symbol"!==m&&"function"===typeof t.inspect)return t.inspect()}if(function(e){if(!i||!e||"object"!==typeof e)return!1;try{i.call(e);try{c.call(e)}catch(ne){return!0}return e instanceof Map}catch(t){}return!1}(t)){var se=[];return a&&a.call(t,(function(e,n){se.push($(n,t,!0)+" => "+$(e,t))})),Q("Map",i.call(t),se,M)}if(function(e){if(!c||!e||"object"!==typeof e)return!1;try{c.call(e);try{i.call(e)}catch(t){return!0}return e instanceof Set}catch(n){}return!1}(t)){var le=[];return u&&u.call(t,(function(e){le.push($(e,t))})),Q("Set",c.call(t),le,M)}if(function(e){if(!d||!e||"object"!==typeof e)return!1;try{d.call(e,d);try{f.call(e,f)}catch(ne){return!0}return e instanceof WeakMap}catch(t){}return!1}(t))return K("WeakMap");if(function(e){if(!f||!e||"object"!==typeof e)return!1;try{f.call(e,f);try{d.call(e,d)}catch(ne){return!0}return e instanceof WeakSet}catch(t){}return!1}(t))return K("WeakSet");if(function(e){if(!p||!e||"object"!==typeof e)return!1;try{return p.call(e),!0}catch(t){}return!1}(t))return K("WeakRef");if(function(e){return"[object Number]"===H(e)&&(!P||!("object"===typeof e&&P in e))}(t))return Y($(Number(t)));if(function(e){if(!e||"object"!==typeof e||!O)return!1;try{return O.call(e),!0}catch(t){}return!1}(t))return Y($(O.call(t)));if(function(e){return"[object Boolean]"===H(e)&&(!P||!("object"===typeof e&&P in e))}(t))return Y(h.call(t));if(function(e){return"[object String]"===H(e)&&(!P||!("object"===typeof e&&P in e))}(t))return Y($(String(t)));if("undefined"!==typeof window&&t===window)return"{ [object Window] }";if(t===n.g)return"{ [object globalThis] }";if(!function(e){return"[object Date]"===H(e)&&(!P||!("object"===typeof e&&P in e))}(t)&&!U(t)){var ce=X(t,$),ue=D?D(t)===Object.prototype:t instanceof Object||t.constructor===Object,de=t instanceof Object?"":"null prototype",fe=!ue&&P&&Object(t)===t&&P in t?y.call(H(t),8,-1):de?"Object":"",pe=(ue||"function"!==typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(fe||de?"["+S.call(x.call([],fe||[],de||[]),": ")+"] ":"");return 0===ce.length?pe+"{}":M?pe+"{"+J(ce,M)+"}":pe+"{ "+S.call(ce,", ")+" }"}return String(t)};var $=Object.prototype.hasOwnProperty||function(e){return e in this};function Z(e,t){return $.call(e,t)}function H(e){return m.call(e)}function V(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function W(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return W(y.call(e,0,t.maxStringLength),t)+r}return z(b.call(b.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,G),"single",t)}function G(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+w.call(t.toString(16))}function Y(e){return"Object("+e+")"}function K(e){return e+" { ? }"}function Q(e,t,n,r){return e+" ("+t+") {"+(r?J(n,r):S.call(n,", "))+"}"}function J(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+S.call(e,","+n)+"\n"+t.prev}function X(e,t){var n=B(e),r=[];if(n){r.length=e.length;for(var o=0;o<e.length;o++)r[o]=Z(e,o)?t(e[o],e):""}var i,a="function"===typeof T?T(e):[];if(I){i={};for(var s=0;s<a.length;s++)i["$"+a[s]]=a[s]}for(var l in e)Z(e,l)&&(n&&String(Number(l))===l&&l<e.length||I&&i["$"+l]instanceof Symbol||(_.call(/[^\w$]/,l)?r.push(t(l,e)+": "+t(e[l],e)):r.push(l+": "+t(e[l],e))));if("function"===typeof T)for(var c=0;c<a.length;c++)R.call(e,a[c])&&r.push("["+t(a[c])+"]: "+t(e[a[c]],e));return r}},7856:e=>{e.exports=u,e.exports.match=function(e,t){var n=[];return o(u(e,n,t),n)},e.exports.regexpToFunction=o,e.exports.parse=r,e.exports.compile=function(e,t){return i(r(e,t),t)},e.exports.tokensToFunction=i,e.exports.tokensToRegExp=c;var t="/",n=new RegExp(["(\\\\.)","(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?"].join("|"),"g");function r(e,r){for(var o,i=[],l=0,c=0,u="",d=r&&r.delimiter||t,f=r&&r.whitelist||void 0,p=!1;null!==(o=n.exec(e));){var h=o[0],m=o[1],g=o.index;if(u+=e.slice(c,g),c=g+h.length,m)u+=m[1],p=!0;else{var v="",y=o[2],b=o[3],w=o[4],E=o[5];if(!p&&u.length){var _=u.length-1,x=u[_];(!f||f.indexOf(x)>-1)&&(v=x,u=u.slice(0,_))}u&&(i.push(u),u="",p=!1);var S="+"===E||"*"===E,C="?"===E||"*"===E,k=b||w,O=v||d;i.push({name:y||l++,prefix:v,delimiter:O,optional:C,repeat:S,pattern:k?s(k):"[^"+a(O===d?O:O+d)+"]+?"})}}return(u||c<e.length)&&i.push(u+e.substr(c)),i}function o(e,t){return function(n,r){var o=e.exec(n);if(!o)return!1;for(var i=o[0],a=o.index,s={},l=r&&r.decode||decodeURIComponent,c=1;c<o.length;c++)if(void 0!==o[c]){var u=t[c-1];u.repeat?s[u.name]=o[c].split(u.delimiter).map((function(e){return l(e,u)})):s[u.name]=l(o[c],u)}return{path:i,index:a,params:s}}}function i(e,t){for(var n=new Array(e.length),r=0;r<e.length;r++)"object"===typeof e[r]&&(n[r]=new RegExp("^(?:"+e[r].pattern+")$",l(t)));return function(t,r){for(var o="",i=r&&r.encode||encodeURIComponent,a=!r||!1!==r.validate,s=0;s<e.length;s++){var l=e[s];if("string"!==typeof l){var c,u=t?t[l.name]:void 0;if(Array.isArray(u)){if(!l.repeat)throw new TypeError('Expected "'+l.name+'" to not repeat, but got array');if(0===u.length){if(l.optional)continue;throw new TypeError('Expected "'+l.name+'" to not be empty')}for(var d=0;d<u.length;d++){if(c=i(u[d],l),a&&!n[s].test(c))throw new TypeError('Expected all "'+l.name+'" to match "'+l.pattern+'"');o+=(0===d?l.prefix:l.delimiter)+c}}else if("string"!==typeof u&&"number"!==typeof u&&"boolean"!==typeof u){if(!l.optional)throw new TypeError('Expected "'+l.name+'" to be '+(l.repeat?"an array":"a string"))}else{if(c=i(String(u),l),a&&!n[s].test(c))throw new TypeError('Expected "'+l.name+'" to match "'+l.pattern+'", but got "'+c+'"');o+=l.prefix+c}}else o+=l}return o}}function a(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function s(e){return e.replace(/([=!:$/()])/g,"\\$1")}function l(e){return e&&e.sensitive?"":"i"}function c(e,n,r){for(var o=(r=r||{}).strict,i=!1!==r.start,s=!1!==r.end,c=r.delimiter||t,u=[].concat(r.endsWith||[]).map(a).concat("$").join("|"),d=i?"^":"",f=0;f<e.length;f++){var p=e[f];if("string"===typeof p)d+=a(p);else{var h=p.repeat?"(?:"+p.pattern+")(?:"+a(p.delimiter)+"(?:"+p.pattern+"))*":p.pattern;n&&n.push(p),p.optional?p.prefix?d+="(?:"+a(p.prefix)+"("+h+"))?":d+="("+h+")?":d+=a(p.prefix)+"("+h+")"}}if(s)o||(d+="(?:"+a(c)+")?"),d+="$"===u?"$":"(?="+u+")";else{var m=e[e.length-1],g="string"===typeof m?m[m.length-1]===c:void 0===m;o||(d+="(?:"+a(c)+"(?="+u+"))?"),g||(d+="(?="+a(c)+"|"+u+")")}return new RegExp(d,l(r))}function u(e,t,n){return e instanceof RegExp?function(e,t){if(!t)return e;var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,pattern:null});return e}(e,t):Array.isArray(e)?function(e,t,n){for(var r=[],o=0;o<e.length;o++)r.push(u(e[o],t,n).source);return new RegExp("(?:"+r.join("|")+")",l(n))}(e,t,n):function(e,t,n){return c(r(e,n),t,n)}(e,t,n)}},62139:(e,t,n)=>{"use strict";var r=n(16630);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var s=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 s.name="Invariant Violation",s}}function t(){return e}e.isRequired=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:i,resetWarningCache:o};return n.PropTypes=n,n}},50134:(e,t,n)=>{e.exports=n(62139)()},16630:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},21777:e=>{"use strict";var t=String.prototype.replace,n=/%20/g,r="RFC1738",o="RFC3986";e.exports={default:o,formatters:{RFC1738:function(e){return t.call(e,n,"+")},RFC3986:function(e){return String(e)}},RFC1738:r,RFC3986:o}},63041:(e,t,n)=>{"use strict";var r=n(84861),o=n(36840),i=n(21777);e.exports={formats:i,parse:o,stringify:r}},36840:(e,t,n)=>{"use strict";var r=n(92113),o=Object.prototype.hasOwnProperty,i=Array.isArray,a={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!0,decoder:r.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},s=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},l=function(e,t){return e&&"string"===typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},c=function(e,t,n,r){if(e){var i=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/g,s=n.depth>0&&/(\[[^[\]]*])/.exec(i),c=s?i.slice(0,s.index):i,u=[];if(c){if(!n.plainObjects&&o.call(Object.prototype,c)&&!n.allowPrototypes)return;u.push(c)}for(var d=0;n.depth>0&&null!==(s=a.exec(i))&&d<n.depth;){if(d+=1,!n.plainObjects&&o.call(Object.prototype,s[1].slice(1,-1))&&!n.allowPrototypes)return;u.push(s[1])}return s&&u.push("["+i.slice(s.index)+"]"),function(e,t,n,r){for(var o=r?t:l(t,n),i=e.length-1;i>=0;--i){var a,s=e[i];if("[]"===s&&n.parseArrays)a=n.allowEmptyArrays&&""===o?[]:[].concat(o);else{a=n.plainObjects?Object.create(null):{};var c="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,u=n.decodeDotInKeys?c.replace(/%2E/g,"."):c,d=parseInt(u,10);n.parseArrays||""!==u?!isNaN(d)&&s!==u&&String(d)===u&&d>=0&&n.parseArrays&&d<=n.arrayLimit?(a=[])[d]=o:"__proto__"!==u&&(a[u]=o):a={0:o}}o=a}return o}(u,t,n,r)}};e.exports=function(e,t){var n=function(e){if(!e)return a;if("undefined"!==typeof e.allowEmptyArrays&&"boolean"!==typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if("undefined"!==typeof e.decodeDotInKeys&&"boolean"!==typeof e.decodeDotInKeys)throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.decoder&&"undefined"!==typeof e.decoder&&"function"!==typeof e.decoder)throw new TypeError("Decoder has to be a function.");if("undefined"!==typeof e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t="undefined"===typeof e.charset?a.charset:e.charset,n="undefined"===typeof e.duplicates?a.duplicates:e.duplicates;if("combine"!==n&&"first"!==n&&"last"!==n)throw new TypeError("The duplicates option must be either combine, first, or last");return{allowDots:"undefined"===typeof e.allowDots?!0===e.decodeDotInKeys||a.allowDots:!!e.allowDots,allowEmptyArrays:"boolean"===typeof e.allowEmptyArrays?!!e.allowEmptyArrays:a.allowEmptyArrays,allowPrototypes:"boolean"===typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"===typeof e.allowSparse?e.allowSparse:a.allowSparse,arrayLimit:"number"===typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:"boolean"===typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"===typeof e.comma?e.comma:a.comma,decodeDotInKeys:"boolean"===typeof e.decodeDotInKeys?e.decodeDotInKeys:a.decodeDotInKeys,decoder:"function"===typeof e.decoder?e.decoder:a.decoder,delimiter:"string"===typeof e.delimiter||r.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:"number"===typeof e.depth||!1===e.depth?+e.depth:a.depth,duplicates:n,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"===typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"===typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"===typeof e.plainObjects?e.plainObjects:a.plainObjects,strictNullHandling:"boolean"===typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling}}(t);if(""===e||null===e||"undefined"===typeof e)return n.plainObjects?Object.create(null):{};for(var u="string"===typeof e?function(e,t){var n,c={__proto__:null},u=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,d=t.parameterLimit===1/0?void 0:t.parameterLimit,f=u.split(t.delimiter,d),p=-1,h=t.charset;if(t.charsetSentinel)for(n=0;n<f.length;++n)0===f[n].indexOf("utf8=")&&("utf8=%E2%9C%93"===f[n]?h="utf-8":"utf8=%26%2310003%3B"===f[n]&&(h="iso-8859-1"),p=n,n=f.length);for(n=0;n<f.length;++n)if(n!==p){var m,g,v=f[n],y=v.indexOf("]="),b=-1===y?v.indexOf("="):y+1;-1===b?(m=t.decoder(v,a.decoder,h,"key"),g=t.strictNullHandling?null:""):(m=t.decoder(v.slice(0,b),a.decoder,h,"key"),g=r.maybeMap(l(v.slice(b+1),t),(function(e){return t.decoder(e,a.decoder,h,"value")}))),g&&t.interpretNumericEntities&&"iso-8859-1"===h&&(g=s(g)),v.indexOf("[]=")>-1&&(g=i(g)?[g]:g);var w=o.call(c,m);w&&"combine"===t.duplicates?c[m]=r.combine(c[m],g):w&&"last"!==t.duplicates||(c[m]=g)}return c}(e,n):e,d=n.plainObjects?Object.create(null):{},f=Object.keys(u),p=0;p<f.length;++p){var h=f[p],m=c(h,u[h],n,"string"===typeof e);d=r.merge(d,m,n)}return!0===n.allowSparse?d:r.compact(d)}},84861:(e,t,n)=>{"use strict";var r=n(50810),o=n(92113),i=n(21777),a=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},l=Array.isArray,c=Array.prototype.push,u=function(e,t){c.apply(e,l(t)?t:[t])},d=Date.prototype.toISOString,f=i.default,p={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:o.encode,encodeValuesOnly:!1,format:f,formatter:i.formatters[f],indices:!1,serializeDate:function(e){return d.call(e)},skipNulls:!1,strictNullHandling:!1},h={},m=function e(t,n,i,a,s,c,d,f,m,g,v,y,b,w,E,_,x,S){for(var C,k=t,O=S,T=0,N=!1;void 0!==(O=O.get(h))&&!N;){var I=O.get(t);if(T+=1,"undefined"!==typeof I){if(I===T)throw new RangeError("Cyclic object value");N=!0}"undefined"===typeof O.get(h)&&(T=0)}if("function"===typeof g?k=g(n,k):k instanceof Date?k=b(k):"comma"===i&&l(k)&&(k=o.maybeMap(k,(function(e){return e instanceof Date?b(e):e}))),null===k){if(c)return m&&!_?m(n,p.encoder,x,"key",w):n;k=""}if("string"===typeof(C=k)||"number"===typeof C||"boolean"===typeof C||"symbol"===typeof C||"bigint"===typeof C||o.isBuffer(k))return m?[E(_?n:m(n,p.encoder,x,"key",w))+"="+E(m(k,p.encoder,x,"value",w))]:[E(n)+"="+E(String(k))];var P,R=[];if("undefined"===typeof k)return R;if("comma"===i&&l(k))_&&m&&(k=o.maybeMap(k,m)),P=[{value:k.length>0?k.join(",")||null:void 0}];else if(l(g))P=g;else{var D=Object.keys(k);P=v?D.sort(v):D}var A=f?n.replace(/\./g,"%2E"):n,j=a&&l(k)&&1===k.length?A+"[]":A;if(s&&l(k)&&0===k.length)return j+"[]";for(var M=0;M<P.length;++M){var L=P[M],z="object"===typeof L&&"undefined"!==typeof L.value?L.value:k[L];if(!d||null!==z){var F=y&&f?L.replace(/\./g,"%2E"):L,B=l(k)?"function"===typeof i?i(j,F):j:j+(y?"."+F:"["+F+"]");S.set(t,T);var U=r();U.set(h,S),u(R,e(z,B,i,a,s,c,d,f,"comma"===i&&_&&l(k)?null:m,g,v,y,b,w,E,_,x,U))}}return R};e.exports=function(e,t){var n,o=e,c=function(e){if(!e)return p;if("undefined"!==typeof e.allowEmptyArrays&&"boolean"!==typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if("undefined"!==typeof e.encodeDotInKeys&&"boolean"!==typeof e.encodeDotInKeys)throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.encoder&&"undefined"!==typeof e.encoder&&"function"!==typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||p.charset;if("undefined"!==typeof e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=i.default;if("undefined"!==typeof e.format){if(!a.call(i.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var r,o=i.formatters[n],c=p.filter;if(("function"===typeof e.filter||l(e.filter))&&(c=e.filter),r=e.arrayFormat in s?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":p.arrayFormat,"commaRoundTrip"in e&&"boolean"!==typeof e.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var u="undefined"===typeof e.allowDots?!0===e.encodeDotInKeys||p.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"===typeof e.addQueryPrefix?e.addQueryPrefix:p.addQueryPrefix,allowDots:u,allowEmptyArrays:"boolean"===typeof e.allowEmptyArrays?!!e.allowEmptyArrays:p.allowEmptyArrays,arrayFormat:r,charset:t,charsetSentinel:"boolean"===typeof e.charsetSentinel?e.charsetSentinel:p.charsetSentinel,commaRoundTrip:e.commaRoundTrip,delimiter:"undefined"===typeof e.delimiter?p.delimiter:e.delimiter,encode:"boolean"===typeof e.encode?e.encode:p.encode,encodeDotInKeys:"boolean"===typeof e.encodeDotInKeys?e.encodeDotInKeys:p.encodeDotInKeys,encoder:"function"===typeof e.encoder?e.encoder:p.encoder,encodeValuesOnly:"boolean"===typeof e.encodeValuesOnly?e.encodeValuesOnly:p.encodeValuesOnly,filter:c,format:n,formatter:o,serializeDate:"function"===typeof e.serializeDate?e.serializeDate:p.serializeDate,skipNulls:"boolean"===typeof e.skipNulls?e.skipNulls:p.skipNulls,sort:"function"===typeof e.sort?e.sort:null,strictNullHandling:"boolean"===typeof e.strictNullHandling?e.strictNullHandling:p.strictNullHandling}}(t);"function"===typeof c.filter?o=(0,c.filter)("",o):l(c.filter)&&(n=c.filter);var d=[];if("object"!==typeof o||null===o)return"";var f=s[c.arrayFormat],h="comma"===f&&c.commaRoundTrip;n||(n=Object.keys(o)),c.sort&&n.sort(c.sort);for(var g=r(),v=0;v<n.length;++v){var y=n[v];c.skipNulls&&null===o[y]||u(d,m(o[y],y,f,h,c.allowEmptyArrays,c.strictNullHandling,c.skipNulls,c.encodeDotInKeys,c.encode?c.encoder:null,c.filter,c.sort,c.allowDots,c.serializeDate,c.format,c.formatter,c.encodeValuesOnly,c.charset,g))}var b=d.join(c.delimiter),w=!0===c.addQueryPrefix?"?":"";return c.charsetSentinel&&("iso-8859-1"===c.charset?w+="utf8=%26%2310003%3B&":w+="utf8=%E2%9C%93&"),b.length>0?w+b:""}},92113:(e,t,n)=>{"use strict";var r=n(21777),o=Object.prototype.hasOwnProperty,i=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),s=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r<e.length;++r)"undefined"!==typeof e[r]&&(n[r]=e[r]);return n};e.exports={arrayToObject:s,assign:function(e,t){return Object.keys(t).reduce((function(e,n){return e[n]=t[n],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],r=0;r<t.length;++r)for(var o=t[r],a=o.obj[o.prop],s=Object.keys(a),l=0;l<s.length;++l){var c=s[l],u=a[c];"object"===typeof u&&null!==u&&-1===n.indexOf(u)&&(t.push({obj:a,prop:c}),n.push(u))}return function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(i(n)){for(var r=[],o=0;o<n.length;++o)"undefined"!==typeof n[o]&&r.push(n[o]);t.obj[t.prop]=r}}}(t),e},decode:function(e,t,n){var r=e.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(o){return r}},encode:function(e,t,n,o,i){if(0===e.length)return e;var s=e;if("symbol"===typeof e?s=Symbol.prototype.toString.call(e):"string"!==typeof e&&(s=String(e)),"iso-8859-1"===n)return escape(s).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var l="",c=0;c<s.length;++c){var u=s.charCodeAt(c);45===u||46===u||95===u||126===u||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||i===r.RFC1738&&(40===u||41===u)?l+=s.charAt(c):u<128?l+=a[u]:u<2048?l+=a[192|u>>6]+a[128|63&u]:u<55296||u>=57344?l+=a[224|u>>12]+a[128|u>>6&63]+a[128|63&u]:(c+=1,u=65536+((1023&u)<<10|1023&s.charCodeAt(c)),l+=a[240|u>>18]+a[128|u>>12&63]+a[128|u>>6&63]+a[128|63&u])}return l},isBuffer:function(e){return!(!e||"object"!==typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(i(e)){for(var n=[],r=0;r<e.length;r+=1)n.push(t(e[r]));return n}return t(e)},merge:function e(t,n,r){if(!n)return t;if("object"!==typeof n){if(i(t))t.push(n);else{if(!t||"object"!==typeof t)return[t,n];(r&&(r.plainObjects||r.allowPrototypes)||!o.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!==typeof t)return[t].concat(n);var a=t;return i(t)&&!i(n)&&(a=s(t,r)),i(t)&&i(n)?(n.forEach((function(n,i){if(o.call(t,i)){var a=t[i];a&&"object"===typeof a&&n&&"object"===typeof n?t[i]=e(a,n,r):t.push(n)}else t[i]=n})),t):Object.keys(n).reduce((function(t,i){var a=n[i];return o.call(t,i)?t[i]=e(t[i],a,r):t[i]=a,t}),a)}}},90966:(e,t,n)=>{"use strict";n.d(t,{Z5:()=>zo,_l:()=>_i,bK:()=>ki});var r=n(68963),o=n(51721),i=n(87462),a=n(38907),s=r.createContext(null);var l=function(e){e()},c=function(){return l};var u={notify:function(){},get:function(){return[]}};function d(e,t){var n,r=u;function o(){a.onStateChange&&a.onStateChange()}function i(){n||(n=t?t.addNestedSub(o):e.subscribe(o),r=function(){var e=c(),t=null,n=null;return{clear:function(){t=null,n=null},notify:function(){e((function(){for(var e=t;e;)e.callback(),e=e.next}))},get:function(){for(var e=[],n=t;n;)e.push(n),n=n.next;return e},subscribe:function(e){var r=!0,o=n={callback:e,next:null,prev:n};return o.prev?o.prev.next=o:t=o,function(){r&&null!==t&&(r=!1,o.next?o.next.prev=o.prev:n=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}())}var a={addNestedSub:function(e){return i(),r.subscribe(e)},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:o,isSubscribed:function(){return Boolean(n)},trySubscribe:i,tryUnsubscribe:function(){n&&(n(),n=void 0,r.clear(),r=u)},getListeners:function(){return r}};return a}var f="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement?r.useLayoutEffect:r.useEffect;const p=function(e){var t=e.store,n=e.context,o=e.children,i=(0,r.useMemo)((function(){var e=d(t);return{store:t,subscription:e}}),[t]),a=(0,r.useMemo)((function(){return t.getState()}),[t]);f((function(){var e=i.subscription;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),a!==t.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=null}}),[i,a]);var l=n||s;return r.createElement(l.Provider,{value:i},o)};var h=n(63366),m=n(15170),g=n.n(m),v=n(60380),y=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],b=["reactReduxForwardedRef"],w=[],E=[null,null];function _(e,t){var n=e[1];return[t.payload,n+1]}function x(e,t,n){f((function(){return e.apply(void 0,t)}),n)}function S(e,t,n,r,o,i,a){e.current=r,t.current=o,n.current=!1,i.current&&(i.current=null,a())}function C(e,t,n,r,o,i,a,s,l,c){if(e){var u=!1,d=null,f=function(){if(!u){var e,n,f=t.getState();try{e=r(f,o.current)}catch(p){n=p,d=p}n||(d=null),e===i.current?a.current||l():(i.current=e,s.current=e,a.current=!0,c({type:"STORE_UPDATED",payload:{error:n}}))}};n.onStateChange=f,n.trySubscribe(),f();return function(){if(u=!0,n.tryUnsubscribe(),n.onStateChange=null,d)throw d}}}var k=function(){return[null,0]};function O(e,t){void 0===t&&(t={});var n=t,o=n.getDisplayName,a=void 0===o?function(e){return"ConnectAdvanced("+e+")"}:o,l=n.methodName,c=void 0===l?"connectAdvanced":l,u=n.renderCountProp,f=void 0===u?void 0:u,p=n.shouldHandleStateChanges,m=void 0===p||p,O=n.storeKey,T=void 0===O?"store":O,N=(n.withRef,n.forwardRef),I=void 0!==N&&N,P=n.context,R=void 0===P?s:P,D=(0,h.Z)(n,y),A=R;return function(t){var n=t.displayName||t.name||"Component",o=a(n),s=(0,i.Z)({},D,{getDisplayName:a,methodName:c,renderCountProp:f,shouldHandleStateChanges:m,storeKey:T,displayName:o,wrappedComponentName:n,WrappedComponent:t}),l=D.pure;var u=l?r.useMemo:function(e){return e()};function p(n){var o=(0,r.useMemo)((function(){var e=n.reactReduxForwardedRef,t=(0,h.Z)(n,b);return[n.context,e,t]}),[n]),a=o[0],l=o[1],c=o[2],f=(0,r.useMemo)((function(){return a&&a.Consumer&&(0,v.isContextConsumer)(r.createElement(a.Consumer,null))?a:A}),[a,A]),p=(0,r.useContext)(f),g=Boolean(n.store)&&Boolean(n.store.getState)&&Boolean(n.store.dispatch);Boolean(p)&&Boolean(p.store);var y=g?n.store:p.store,O=(0,r.useMemo)((function(){return function(t){return e(t.dispatch,s)}(y)}),[y]),T=(0,r.useMemo)((function(){if(!m)return E;var e=d(y,g?null:p.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[y,g,p]),N=T[0],I=T[1],P=(0,r.useMemo)((function(){return g?p:(0,i.Z)({},p,{subscription:N})}),[g,p,N]),R=(0,r.useReducer)(_,w,k),D=R[0][0],j=R[1];if(D&&D.error)throw D.error;var M=(0,r.useRef)(),L=(0,r.useRef)(c),z=(0,r.useRef)(),F=(0,r.useRef)(!1),B=u((function(){return z.current&&c===L.current?z.current:O(y.getState(),c)}),[y,D,c]);x(S,[L,M,F,c,B,z,I]),x(C,[m,y,N,O,L,M,F,z,I,j],[y,N,O]);var U=(0,r.useMemo)((function(){return r.createElement(t,(0,i.Z)({},B,{ref:l}))}),[l,t,B]);return(0,r.useMemo)((function(){return m?r.createElement(f.Provider,{value:P},U):U}),[f,U,P])}var y=l?r.memo(p):p;if(y.WrappedComponent=t,y.displayName=p.displayName=o,I){var O=r.forwardRef((function(e,t){return r.createElement(y,(0,i.Z)({},e,{reactReduxForwardedRef:t}))}));return O.displayName=o,O.WrappedComponent=t,g()(O,t)}return g()(y,t)}}function T(e,t){return e===t?0!==e||0!==t||1/e===1/t:e!==e&&t!==t}function N(e,t){if(T(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=0;o<n.length;o++)if(!Object.prototype.hasOwnProperty.call(t,n[o])||!T(e[n[o]],t[n[o]]))return!1;return!0}function I(e){return function(t,n){var r=e(t,n);function o(){return r}return o.dependsOnOwnProps=!1,o}}function P(e){return null!==e.dependsOnOwnProps&&void 0!==e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function R(e,t){return function(t,n){n.displayName;var r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=P(e);var o=r(t,n);return"function"===typeof o&&(r.mapToProps=o,r.dependsOnOwnProps=P(o),o=r(t,n)),o},r}}const D=[function(e){return"function"===typeof e?R(e):void 0},function(e){return e?void 0:I((function(e){return{dispatch:e}}))},function(e){return e&&"object"===typeof e?I((function(t){return function(e,t){var n={},r=function(r){var o=e[r];"function"===typeof o&&(n[r]=function(){return t(o.apply(void 0,arguments))})};for(var o in e)r(o);return n}(e,t)})):void 0}];const A=[function(e){return"function"===typeof e?R(e):void 0},function(e){return e?void 0:I((function(){return{}}))}];function j(e,t,n){return(0,i.Z)({},n,e,t)}const M=[function(e){return"function"===typeof e?function(e){return function(t,n){n.displayName;var r,o=n.pure,i=n.areMergedPropsEqual,a=!1;return function(t,n,s){var l=e(t,n,s);return a?o&&i(l,r)||(r=l):(a=!0,r=l),r}}}(e):void 0},function(e){return e?void 0:function(){return j}}];var L=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function z(e,t,n,r){return function(o,i){return n(e(o,i),t(r,i),i)}}function F(e,t,n,r,o){var i,a,s,l,c,u=o.areStatesEqual,d=o.areOwnPropsEqual,f=o.areStatePropsEqual,p=!1;function h(o,p){var h=!d(p,a),m=!u(o,i,p,a);return i=o,a=p,h&&m?(s=e(i,a),t.dependsOnOwnProps&&(l=t(r,a)),c=n(s,l,a)):h?(e.dependsOnOwnProps&&(s=e(i,a)),t.dependsOnOwnProps&&(l=t(r,a)),c=n(s,l,a)):m?function(){var t=e(i,a),r=!f(t,s);return s=t,r&&(c=n(s,l,a)),c}():c}return function(o,u){return p?h(o,u):(s=e(i=o,a=u),l=t(r,a),c=n(s,l,a),p=!0,c)}}function B(e,t){var n=t.initMapStateToProps,r=t.initMapDispatchToProps,o=t.initMergeProps,i=(0,h.Z)(t,L),a=n(e,i),s=r(e,i),l=o(e,i);return(i.pure?F:z)(a,s,l,e,i)}var U=["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"];function q(e,t,n){for(var r=t.length-1;r>=0;r--){var o=t[r](e);if(o)return o}return function(t,r){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function $(e,t){return e===t}function Z(e){var t=void 0===e?{}:e,n=t.connectHOC,r=void 0===n?O:n,o=t.mapStateToPropsFactories,a=void 0===o?A:o,s=t.mapDispatchToPropsFactories,l=void 0===s?D:s,c=t.mergePropsFactories,u=void 0===c?M:c,d=t.selectorFactory,f=void 0===d?B:d;return function(e,t,n,o){void 0===o&&(o={});var s=o,c=s.pure,d=void 0===c||c,p=s.areStatesEqual,m=void 0===p?$:p,g=s.areOwnPropsEqual,v=void 0===g?N:g,y=s.areStatePropsEqual,b=void 0===y?N:y,w=s.areMergedPropsEqual,E=void 0===w?N:w,_=(0,h.Z)(s,U),x=q(e,a,"mapStateToProps"),S=q(t,l,"mapDispatchToProps"),C=q(n,u,"mergeProps");return r(f,(0,i.Z)({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:x,initMapDispatchToProps:S,initMergeProps:C,pure:d,areStatesEqual:m,areOwnPropsEqual:v,areStatePropsEqual:b,areMergedPropsEqual:E},_))}}const H=Z();var V,W=n(38886);function G(e,t){var n=(0,r.useState)((function(){return{inputs:t,result:e()}}))[0],o=(0,r.useRef)(!0),i=(0,r.useRef)(n),a=o.current||Boolean(t&&i.current.inputs&&function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,i.current.inputs))?i.current:{inputs:t,result:e()};return(0,r.useEffect)((function(){o.current=!1,i.current=a}),[a]),a.result}V=W.unstable_batchedUpdates,l=V;var Y=G,K=function(e,t){return G((function(){return e}),t)},Q=n(35731),J=function(e){var t=e.top,n=e.right,r=e.bottom,o=e.left;return{top:t,right:n,bottom:r,left:o,width:n-o,height:r-t,x:o,y:t,center:{x:(n+o)/2,y:(r+t)/2}}},X=function(e,t){return{top:e.top-t.top,left:e.left-t.left,bottom:e.bottom+t.bottom,right:e.right+t.right}},ee=function(e,t){return{top:e.top+t.top,left:e.left+t.left,bottom:e.bottom-t.bottom,right:e.right-t.right}},te={top:0,right:0,bottom:0,left:0},ne=function(e){var t=e.borderBox,n=e.margin,r=void 0===n?te:n,o=e.border,i=void 0===o?te:o,a=e.padding,s=void 0===a?te:a,l=J(X(t,r)),c=J(ee(t,i)),u=J(ee(c,s));return{marginBox:l,borderBox:J(t),paddingBox:c,contentBox:u,margin:r,border:i,padding:s}},re=function(e){var t=e.slice(0,-2);if("px"!==e.slice(-2))return 0;var n=Number(t);return isNaN(n)&&(0,Q.Z)(!1),n},oe=function(e,t){var n,r,o=e.borderBox,i=e.border,a=e.margin,s=e.padding,l=(r=t,{top:(n=o).top+r.y,left:n.left+r.x,bottom:n.bottom+r.y,right:n.right+r.x});return ne({borderBox:l,border:i,margin:a,padding:s})},ie=function(e,t){return void 0===t&&(t={x:window.pageXOffset,y:window.pageYOffset}),oe(e,t)},ae=function(e,t){var n={top:re(t.marginTop),right:re(t.marginRight),bottom:re(t.marginBottom),left:re(t.marginLeft)},r={top:re(t.paddingTop),right:re(t.paddingRight),bottom:re(t.paddingBottom),left:re(t.paddingLeft)},o={top:re(t.borderTopWidth),right:re(t.borderRightWidth),bottom:re(t.borderBottomWidth),left:re(t.borderLeftWidth)};return ne({borderBox:e,margin:n,padding:r,border:o})},se=function(e){var t=e.getBoundingClientRect(),n=window.getComputedStyle(e);return ae(t,n)},le=n(90083);const ce=function(e){var t=[],n=null,r=function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];t=o,n||(n=requestAnimationFrame((function(){n=null,e.apply(void 0,t)})))};return r.cancel=function(){n&&(cancelAnimationFrame(n),n=null)},r};var ue=!0,de=/[ \t]{2,}/g,fe=/^[ \t]*/gm,pe=function(e){return e.replace(de," ").replace(fe,"").trim()},he=function(e){return pe("\n %creact-beautiful-dnd\n\n %c"+pe(e)+"\n\n %c\ud83d\udc77\u200d This is a development only message. It will be removed in production builds.\n")},me=function(e){return[he(e),"color: #00C584; font-size: 1.2em; font-weight: bold;","line-height: 1.5","color: #723874;"]},ge="__react-beautiful-dnd-disable-dev-warnings";function ve(e,t){var n;ue||"undefined"!==typeof window&&window[ge]||(n=console)[e].apply(n,me(t))}ve.bind(null,"warn"),ve.bind(null,"error");function ye(){}function be(e,t,n){var r=t.map((function(t){var r=function(e,t){return(0,i.Z)({},e,{},t)}(n,t.options);return e.addEventListener(t.eventName,t.fn,r),function(){e.removeEventListener(t.eventName,t.fn,r)}}));return function(){r.forEach((function(e){e()}))}}var we=!0,Ee="Invariant failed";function _e(e){this.message=e}function xe(e,t){if(!e)throw new _e(we?Ee:Ee+": "+(t||""))}_e.prototype.toString=function(){return this.message};var Se=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).callbacks=null,t.unbind=ye,t.onWindowError=function(e){var n=t.getCallbacks();n.isDragging()&&n.tryAbort(),e.error instanceof _e&&e.preventDefault()},t.getCallbacks=function(){if(!t.callbacks)throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");return t.callbacks},t.setCallbacks=function(e){t.callbacks=e},t}(0,o.Z)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.unbind=be(window,[{eventName:"error",fn:this.onWindowError}])},n.componentDidCatch=function(e){if(!(e instanceof _e))throw e;this.setState({})},n.componentWillUnmount=function(){this.unbind()},n.render=function(){return this.props.children(this.setCallbacks)},t}(r.Component),Ce=function(e){return e+1},ke=function(e,t){var n=e.droppableId===t.droppableId,r=Ce(e.index),o=Ce(t.index);return n?"\n You have moved the item from position "+r+"\n to position "+o+"\n ":"\n You have moved the item from position "+r+"\n in list "+e.droppableId+"\n to list "+t.droppableId+"\n in position "+o+"\n "},Oe=function(e,t,n){return t.droppableId===n.droppableId?"\n The item "+e+"\n has been combined with "+n.draggableId:"\n The item "+e+"\n in list "+t.droppableId+"\n has been combined with "+n.draggableId+"\n in list "+n.droppableId+"\n "},Te=function(e){return"\n The item has returned to its starting position\n of "+Ce(e.index)+"\n"},Ne={dragHandleUsageInstructions:"\n Press space bar to start a drag.\n When dragging you can use the arrow keys to move the item around and escape to cancel.\n Some screen readers may require you to be in focus mode or to use your pass through key\n",onDragStart:function(e){return"\n You have lifted an item in position "+Ce(e.source.index)+"\n"},onDragUpdate:function(e){var t=e.destination;if(t)return ke(e.source,t);var n=e.combine;return n?Oe(e.draggableId,e.source,n):"You are over an area that cannot be dropped on"},onDragEnd:function(e){if("CANCEL"===e.reason)return"\n Movement cancelled.\n "+Te(e.source)+"\n ";var t=e.destination,n=e.combine;return t?"\n You have dropped the item.\n "+ke(e.source,t)+"\n ":n?"\n You have dropped the item.\n "+Oe(e.draggableId,e.source,n)+"\n ":"\n The item has been dropped while not over a drop area.\n "+Te(e.source)+"\n "}},Ie={x:0,y:0},Pe=function(e,t){return{x:e.x+t.x,y:e.y+t.y}},Re=function(e,t){return{x:e.x-t.x,y:e.y-t.y}},De=function(e,t){return e.x===t.x&&e.y===t.y},Ae=function(e){return{x:0!==e.x?-e.x:0,y:0!==e.y?-e.y:0}},je=function(e,t,n){var r;return void 0===n&&(n=0),(r={})[e]=t,r["x"===e?"y":"x"]=n,r},Me=function(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))},Le=function(e,t){return Math.min.apply(Math,t.map((function(t){return Me(e,t)})))},ze=function(e){return function(t){return{x:e(t.x),y:e(t.y)}}},Fe=function(e,t){return{top:e.top+t.y,left:e.left+t.x,bottom:e.bottom+t.y,right:e.right+t.x}},Be=function(e){return[{x:e.left,y:e.top},{x:e.right,y:e.top},{x:e.left,y:e.bottom},{x:e.right,y:e.bottom}]},Ue=function(e,t){return t&&t.shouldClipSubject?function(e,t){var n=J({top:Math.max(t.top,e.top),right:Math.min(t.right,e.right),bottom:Math.min(t.bottom,e.bottom),left:Math.max(t.left,e.left)});return n.width<=0||n.height<=0?null:n}(t.pageMarginBox,e):J(e)},qe=function(e){var t=e.page,n=e.withPlaceholder,r=e.axis,o=e.frame,a=function(e,t){return t?Fe(e,t.scroll.diff.displacement):e}(t.marginBox,o),s=function(e,t,n){var r;return n&&n.increasedBy?(0,i.Z)({},e,((r={})[t.end]=e[t.end]+n.increasedBy[t.line],r)):e}(a,r,n);return{page:t,withPlaceholder:n,active:Ue(s,o)}},$e=function(e,t){e.frame||xe(!1);var n=e.frame,r=Re(t,n.scroll.initial),o=Ae(r),a=(0,i.Z)({},n,{scroll:{initial:n.scroll.initial,current:t,diff:{value:r,displacement:o},max:n.scroll.max}}),s=qe({page:e.subject.page,withPlaceholder:e.subject.withPlaceholder,axis:e.axis,frame:a});return(0,i.Z)({},e,{frame:a,subject:s})};function Ze(e){return Object.values?Object.values(e):Object.keys(e).map((function(t){return e[t]}))}function He(e,t){if(e.findIndex)return e.findIndex(t);for(var n=0;n<e.length;n++)if(t(e[n]))return n;return-1}function Ve(e,t){if(e.find)return e.find(t);var n=He(e,t);return-1!==n?e[n]:void 0}function We(e){return Array.prototype.slice.call(e)}var Ge=(0,le.Z)((function(e){return e.reduce((function(e,t){return e[t.descriptor.id]=t,e}),{})})),Ye=(0,le.Z)((function(e){return e.reduce((function(e,t){return e[t.descriptor.id]=t,e}),{})})),Ke=(0,le.Z)((function(e){return Ze(e)})),Qe=(0,le.Z)((function(e){return Ze(e)})),Je=(0,le.Z)((function(e,t){var n=Qe(t).filter((function(t){return e===t.descriptor.droppableId})).sort((function(e,t){return e.descriptor.index-t.descriptor.index}));return n}));function Xe(e){return e.at&&"REORDER"===e.at.type?e.at.destination:null}function et(e){return e.at&&"COMBINE"===e.at.type?e.at.combine:null}var tt=(0,le.Z)((function(e,t){return t.filter((function(t){return t.descriptor.id!==e.descriptor.id}))})),nt=function(e,t){return e.descriptor.droppableId===t.descriptor.id},rt={point:Ie,value:0},ot={invisible:{},visible:{},all:[]},it={displaced:ot,displacedBy:rt,at:null},at=function(e,t){return function(n){return e<=n&&n<=t}},st=function(e){var t=at(e.top,e.bottom),n=at(e.left,e.right);return function(r){if(t(r.top)&&t(r.bottom)&&n(r.left)&&n(r.right))return!0;var o=t(r.top)||t(r.bottom),i=n(r.left)||n(r.right);if(o&&i)return!0;var a=r.top<e.top&&r.bottom>e.bottom,s=r.left<e.left&&r.right>e.right;return!(!a||!s)||(a&&i||s&&o)}},lt=function(e){var t=at(e.top,e.bottom),n=at(e.left,e.right);return function(e){return t(e.top)&&t(e.bottom)&&n(e.left)&&n(e.right)}},ct={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},ut={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},dt=function(e){var t=e.target,n=e.destination,r=e.viewport,o=e.withDroppableDisplacement,i=e.isVisibleThroughFrameFn,a=o?function(e,t){var n=t.frame?t.frame.scroll.diff.displacement:Ie;return Fe(e,n)}(t,n):t;return function(e,t,n){return!!t.subject.active&&n(t.subject.active)(e)}(a,n,i)&&function(e,t,n){return n(t)(e)}(a,r,i)},ft=function(e){return dt((0,i.Z)({},e,{isVisibleThroughFrameFn:st}))},pt=function(e){return dt((0,i.Z)({},e,{isVisibleThroughFrameFn:lt}))},ht=function(e,t,n){if("boolean"===typeof n)return n;if(!t)return!0;var r=t.invisible,o=t.visible;if(r[e])return!1;var i=o[e];return!i||i.shouldAnimate};function mt(e){var t=e.afterDragging,n=e.destination,r=e.displacedBy,o=e.viewport,i=e.forceShouldAnimate,a=e.last;return t.reduce((function(e,t){var s=function(e,t){var n=e.page.marginBox,r={top:t.point.y,right:0,bottom:0,left:t.point.x};return J(X(n,r))}(t,r),l=t.descriptor.id;if(e.all.push(l),!ft({target:s,destination:n,viewport:o,withDroppableDisplacement:!0}))return e.invisible[t.descriptor.id]=!0,e;var c={draggableId:l,shouldAnimate:ht(l,a,i)};return e.visible[l]=c,e}),{all:[],visible:{},invisible:{}})}function gt(e){var t=e.insideDestination,n=e.inHomeList,r=e.displacedBy,o=e.destination,i=function(e,t){if(!e.length)return 0;var n=e[e.length-1].descriptor.index;return t.inHomeList?n:n+1}(t,{inHomeList:n});return{displaced:ot,displacedBy:r,at:{type:"REORDER",destination:{droppableId:o.descriptor.id,index:i}}}}function vt(e){var t=e.draggable,n=e.insideDestination,r=e.destination,o=e.viewport,i=e.displacedBy,a=e.last,s=e.index,l=e.forceShouldAnimate,c=nt(t,r);if(null==s)return gt({insideDestination:n,inHomeList:c,displacedBy:i,destination:r});var u=Ve(n,(function(e){return e.descriptor.index===s}));if(!u)return gt({insideDestination:n,inHomeList:c,displacedBy:i,destination:r});var d=tt(t,n),f=n.indexOf(u);return{displaced:mt({afterDragging:d.slice(f),destination:r,displacedBy:i,last:a,viewport:o.frame,forceShouldAnimate:l}),displacedBy:i,at:{type:"REORDER",destination:{droppableId:r.descriptor.id,index:s}}}}function yt(e,t){return Boolean(t.effected[e])}var bt=function(e){var t=e.isMovingForward,n=e.isInHomeList,r=e.draggable,o=e.draggables,i=e.destination,a=e.insideDestination,s=e.previousImpact,l=e.viewport,c=e.afterCritical,u=s.at;if(u||xe(!1),"REORDER"===u.type){var d=function(e){var t=e.isMovingForward,n=e.isInHomeList,r=e.insideDestination,o=e.location;if(!r.length)return null;var i=o.index,a=t?i+1:i-1,s=r[0].descriptor.index,l=r[r.length-1].descriptor.index;return a<s||a>(n?l:l+1)?null:a}({isMovingForward:t,isInHomeList:n,location:u.destination,insideDestination:a});return null==d?null:vt({draggable:r,insideDestination:a,destination:i,viewport:l,last:s.displaced,displacedBy:s.displacedBy,index:d})}var f=function(e){var t=e.isMovingForward,n=e.destination,r=e.draggables,o=e.combine,i=e.afterCritical;if(!n.isCombineEnabled)return null;var a=o.draggableId,s=r[a].descriptor.index;return yt(a,i)?t?s:s-1:t?s+1:s}({isMovingForward:t,destination:i,displaced:s.displaced,draggables:o,combine:u.combine,afterCritical:c});return null==f?null:vt({draggable:r,insideDestination:a,destination:i,viewport:l,last:s.displaced,displacedBy:s.displacedBy,index:f})},wt=function(e){var t=e.afterCritical,n=e.impact,r=e.draggables,o=et(n);o||xe(!1);var i=o.draggableId,a=r[i].page.borderBox.center,s=function(e){var t=e.displaced,n=e.afterCritical,r=e.combineWith,o=e.displacedBy,i=Boolean(t.visible[r]||t.invisible[r]);return yt(r,n)?i?Ie:Ae(o.point):i?o.point:Ie}({displaced:n.displaced,afterCritical:t,combineWith:i,displacedBy:n.displacedBy});return Pe(a,s)},Et=function(e,t){return t.margin[e.start]+t.borderBox[e.size]/2},_t=function(e,t,n){return t[e.crossAxisStart]+n.margin[e.crossAxisStart]+n.borderBox[e.crossAxisSize]/2},xt=function(e){var t=e.axis,n=e.moveRelativeTo,r=e.isMoving;return je(t.line,n.marginBox[t.end]+Et(t,r),_t(t,n.marginBox,r))},St=function(e){var t=e.axis,n=e.moveRelativeTo,r=e.isMoving;return je(t.line,n.marginBox[t.start]-function(e,t){return t.margin[e.end]+t.borderBox[e.size]/2}(t,r),_t(t,n.marginBox,r))},Ct=function(e){var t=e.impact,n=e.draggable,r=e.draggables,o=e.droppable,i=e.afterCritical,a=Je(o.descriptor.id,r),s=n.page,l=o.axis;if(!a.length)return function(e){var t=e.axis,n=e.moveInto,r=e.isMoving;return je(t.line,n.contentBox[t.start]+Et(t,r),_t(t,n.contentBox,r))}({axis:l,moveInto:o.page,isMoving:s});var c=t.displaced,u=t.displacedBy,d=c.all[0];if(d){var f=r[d];if(yt(d,i))return St({axis:l,moveRelativeTo:f.page,isMoving:s});var p=oe(f.page,u.point);return St({axis:l,moveRelativeTo:p,isMoving:s})}var h=a[a.length-1];if(h.descriptor.id===n.descriptor.id)return s.borderBox.center;if(yt(h.descriptor.id,i)){var m=oe(h.page,Ae(i.displacedBy.point));return xt({axis:l,moveRelativeTo:m,isMoving:s})}return xt({axis:l,moveRelativeTo:h.page,isMoving:s})},kt=function(e,t){var n=e.frame;return n?Pe(t,n.scroll.diff.displacement):t},Ot=function(e){var t=function(e){var t=e.impact,n=e.draggable,r=e.droppable,o=e.draggables,i=e.afterCritical,a=n.page.borderBox.center,s=t.at;return r&&s?"REORDER"===s.type?Ct({impact:t,draggable:n,draggables:o,droppable:r,afterCritical:i}):wt({impact:t,draggables:o,afterCritical:i}):a}(e),n=e.droppable;return n?kt(n,t):t},Tt=function(e,t){var n=Re(t,e.scroll.initial),r=Ae(n);return{frame:J({top:t.y,bottom:t.y+e.frame.height,left:t.x,right:t.x+e.frame.width}),scroll:{initial:e.scroll.initial,max:e.scroll.max,current:t,diff:{value:n,displacement:r}}}};function Nt(e,t){return e.map((function(e){return t[e]}))}var It=function(e){var t=e.pageBorderBoxCenter,n=e.draggable,r=function(e,t){return Pe(e.scroll.diff.displacement,t)}(e.viewport,t),o=Re(r,n.page.borderBox.center);return Pe(n.client.borderBox.center,o)},Pt=function(e){var t=e.draggable,n=e.destination,r=e.newPageBorderBoxCenter,o=e.viewport,a=e.withDroppableDisplacement,s=e.onlyOnMainAxis,l=void 0!==s&&s,c=Re(r,t.page.borderBox.center),u={target:Fe(t.page.borderBox,c),destination:n,withDroppableDisplacement:a,viewport:o};return l?function(e){return dt((0,i.Z)({},e,{isVisibleThroughFrameFn:(t=e.destination.axis,function(e){var n=at(e.top,e.bottom),r=at(e.left,e.right);return function(e){return t===ct?n(e.top)&&n(e.bottom):r(e.left)&&r(e.right)}})}));var t}(u):pt(u)},Rt=function(e){var t=e.isMovingForward,n=e.draggable,r=e.destination,o=e.draggables,a=e.previousImpact,s=e.viewport,l=e.previousPageBorderBoxCenter,c=e.previousClientSelection,u=e.afterCritical;if(!r.isEnabled)return null;var d=Je(r.descriptor.id,o),f=nt(n,r),p=function(e){var t=e.isMovingForward,n=e.draggable,r=e.destination,o=e.insideDestination,a=e.previousImpact;if(!r.isCombineEnabled)return null;if(!Xe(a))return null;function s(e){var t={type:"COMBINE",combine:{draggableId:e,droppableId:r.descriptor.id}};return(0,i.Z)({},a,{at:t})}var l=a.displaced.all,c=l.length?l[0]:null;if(t)return c?s(c):null;var u=tt(n,o);if(!c)return u.length?s(u[u.length-1].descriptor.id):null;var d=He(u,(function(e){return e.descriptor.id===c}));-1===d&&xe(!1);var f=d-1;return f<0?null:s(u[f].descriptor.id)}({isMovingForward:t,draggable:n,destination:r,insideDestination:d,previousImpact:a})||bt({isMovingForward:t,isInHomeList:f,draggable:n,draggables:o,destination:r,insideDestination:d,previousImpact:a,viewport:s,afterCritical:u});if(!p)return null;var h=Ot({impact:p,draggable:n,droppable:r,draggables:o,afterCritical:u});if(Pt({draggable:n,destination:r,newPageBorderBoxCenter:h,viewport:s.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0}))return{clientSelection:It({pageBorderBoxCenter:h,draggable:n,viewport:s}),impact:p,scrollJumpRequest:null};var m=Re(h,l),g=function(e){var t=e.impact,n=e.viewport,r=e.destination,o=e.draggables,a=e.maxScrollChange,s=Tt(n,Pe(n.scroll.current,a)),l=r.frame?$e(r,Pe(r.frame.scroll.current,a)):r,c=t.displaced,u=mt({afterDragging:Nt(c.all,o),destination:r,displacedBy:t.displacedBy,viewport:s.frame,last:c,forceShouldAnimate:!1}),d=mt({afterDragging:Nt(c.all,o),destination:l,displacedBy:t.displacedBy,viewport:n.frame,last:c,forceShouldAnimate:!1}),f={},p={},h=[c,u,d];return c.all.forEach((function(e){var t=function(e,t){for(var n=0;n<t.length;n++){var r=t[n].visible[e];if(r)return r}return null}(e,h);t?p[e]=t:f[e]=!0})),(0,i.Z)({},t,{displaced:{all:c.all,invisible:f,visible:p}})}({impact:p,viewport:s,destination:r,draggables:o,maxScrollChange:m});return{clientSelection:c,impact:g,scrollJumpRequest:m}},Dt=function(e){var t=e.subject.active;return t||xe(!1),t},At=function(e,t){var n=e.page.borderBox.center;return yt(e.descriptor.id,t)?Re(n,t.displacedBy.point):n},jt=function(e,t){var n=e.page.borderBox;return yt(e.descriptor.id,t)?Fe(n,Ae(t.displacedBy.point)):n},Mt=(0,le.Z)((function(e,t){var n=t[e.line];return{value:n,point:je(e.line,n)}})),Lt=function(e,t){return(0,i.Z)({},e,{scroll:(0,i.Z)({},e.scroll,{max:t})})},zt=function(e,t,n){var r=e.frame;nt(t,e)&&xe(!1),e.subject.withPlaceholder&&xe(!1);var o=Mt(e.axis,t.displaceBy).point,a=function(e,t,n){var r=e.axis;if("virtual"===e.descriptor.mode)return je(r.line,t[r.line]);var o=e.subject.page.contentBox[r.size],i=Je(e.descriptor.id,n).reduce((function(e,t){return e+t.client.marginBox[r.size]}),0)+t[r.line]-o;return i<=0?null:je(r.line,i)}(e,o,n),s={placeholderSize:o,increasedBy:a,oldFrameMaxScroll:e.frame?e.frame.scroll.max:null};if(!r){var l=qe({page:e.subject.page,withPlaceholder:s,axis:e.axis,frame:e.frame});return(0,i.Z)({},e,{subject:l})}var c=a?Pe(r.scroll.max,a):r.scroll.max,u=Lt(r,c),d=qe({page:e.subject.page,withPlaceholder:s,axis:e.axis,frame:u});return(0,i.Z)({},e,{subject:d,frame:u})},Ft=function(e){var t=e.isMovingForward,n=e.previousPageBorderBoxCenter,r=e.draggable,o=e.isOver,i=e.draggables,a=e.droppables,s=e.viewport,l=e.afterCritical,c=function(e){var t=e.isMovingForward,n=e.pageBorderBoxCenter,r=e.source,o=e.droppables,i=e.viewport,a=r.subject.active;if(!a)return null;var s=r.axis,l=at(a[s.start],a[s.end]),c=Ke(o).filter((function(e){return e!==r})).filter((function(e){return e.isEnabled})).filter((function(e){return Boolean(e.subject.active)})).filter((function(e){return st(i.frame)(Dt(e))})).filter((function(e){var n=Dt(e);return t?a[s.crossAxisEnd]<n[s.crossAxisEnd]:n[s.crossAxisStart]<a[s.crossAxisStart]})).filter((function(e){var t=Dt(e),n=at(t[s.start],t[s.end]);return l(t[s.start])||l(t[s.end])||n(a[s.start])||n(a[s.end])})).sort((function(e,n){var r=Dt(e)[s.crossAxisStart],o=Dt(n)[s.crossAxisStart];return t?r-o:o-r})).filter((function(e,t,n){return Dt(e)[s.crossAxisStart]===Dt(n[0])[s.crossAxisStart]}));if(!c.length)return null;if(1===c.length)return c[0];var u=c.filter((function(e){return at(Dt(e)[s.start],Dt(e)[s.end])(n[s.line])}));return 1===u.length?u[0]:u.length>1?u.sort((function(e,t){return Dt(e)[s.start]-Dt(t)[s.start]}))[0]:c.sort((function(e,t){var r=Le(n,Be(Dt(e))),o=Le(n,Be(Dt(t)));return r!==o?r-o:Dt(e)[s.start]-Dt(t)[s.start]}))[0]}({isMovingForward:t,pageBorderBoxCenter:n,source:o,droppables:a,viewport:s});if(!c)return null;var u=Je(c.descriptor.id,i),d=function(e){var t=e.pageBorderBoxCenter,n=e.viewport,r=e.destination,o=e.insideDestination,i=e.afterCritical,a=o.filter((function(e){return pt({target:jt(e,i),destination:r,viewport:n.frame,withDroppableDisplacement:!0})})).sort((function(e,n){var o=Me(t,kt(r,At(e,i))),a=Me(t,kt(r,At(n,i)));return o<a?-1:a<o?1:e.descriptor.index-n.descriptor.index}));return a[0]||null}({pageBorderBoxCenter:n,viewport:s,destination:c,insideDestination:u,afterCritical:l}),f=function(e){var t=e.previousPageBorderBoxCenter,n=e.moveRelativeTo,r=e.insideDestination,o=e.draggable,i=e.draggables,a=e.destination,s=e.viewport,l=e.afterCritical;if(!n){if(r.length)return null;var c={displaced:ot,displacedBy:rt,at:{type:"REORDER",destination:{droppableId:a.descriptor.id,index:0}}},u=Ot({impact:c,draggable:o,droppable:a,draggables:i,afterCritical:l}),d=nt(o,a)?a:zt(a,o,i);return Pt({draggable:o,destination:d,newPageBorderBoxCenter:u,viewport:s.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0})?c:null}var f=Boolean(t[a.axis.line]<=n.page.borderBox.center[a.axis.line]),p=function(){var e=n.descriptor.index;return n.descriptor.id===o.descriptor.id||f?e:e+1}(),h=Mt(a.axis,o.displaceBy);return vt({draggable:o,insideDestination:r,destination:a,viewport:s,displacedBy:h,last:ot,index:p})}({previousPageBorderBoxCenter:n,destination:c,draggable:r,draggables:i,moveRelativeTo:d,insideDestination:u,viewport:s,afterCritical:l});if(!f)return null;var p=Ot({impact:f,draggable:r,droppable:c,draggables:i,afterCritical:l});return{clientSelection:It({pageBorderBoxCenter:p,draggable:r,viewport:s}),impact:f,scrollJumpRequest:null}},Bt=function(e){var t=e.at;return t?"REORDER"===t.type?t.destination.droppableId:t.combine.droppableId:null},Ut=function(e){var t=e.state,n=e.type,r=function(e,t){var n=Bt(e);return n?t[n]:null}(t.impact,t.dimensions.droppables),o=Boolean(r),i=t.dimensions.droppables[t.critical.droppable.id],a=r||i,s=a.axis.direction,l="vertical"===s&&("MOVE_UP"===n||"MOVE_DOWN"===n)||"horizontal"===s&&("MOVE_LEFT"===n||"MOVE_RIGHT"===n);if(l&&!o)return null;var c="MOVE_DOWN"===n||"MOVE_RIGHT"===n,u=t.dimensions.draggables[t.critical.draggable.id],d=t.current.page.borderBoxCenter,f=t.dimensions,p=f.draggables,h=f.droppables;return l?Rt({isMovingForward:c,previousPageBorderBoxCenter:d,draggable:u,destination:a,draggables:p,viewport:t.viewport,previousClientSelection:t.current.client.selection,previousImpact:t.impact,afterCritical:t.afterCritical}):Ft({isMovingForward:c,previousPageBorderBoxCenter:d,draggable:u,isOver:a,draggables:p,droppables:h,viewport:t.viewport,afterCritical:t.afterCritical})};function qt(e){return"DRAGGING"===e.phase||"COLLECTING"===e.phase}function $t(e){var t=at(e.top,e.bottom),n=at(e.left,e.right);return function(e){return t(e.y)&&n(e.x)}}function Zt(e){var t=e.pageBorderBox,n=e.draggable,r=e.droppables,o=Ke(r).filter((function(e){if(!e.isEnabled)return!1;var n,r,o=e.subject.active;if(!o)return!1;if(r=o,!((n=t).left<r.right&&n.right>r.left&&n.top<r.bottom&&n.bottom>r.top))return!1;if($t(o)(t.center))return!0;var i=e.axis,a=o.center[i.crossAxisLine],s=t[i.crossAxisStart],l=t[i.crossAxisEnd],c=at(o[i.crossAxisStart],o[i.crossAxisEnd]),u=c(s),d=c(l);return!u&&!d||(u?s<a:l>a)}));return o.length?1===o.length?o[0].descriptor.id:function(e){var t=e.pageBorderBox,n=e.draggable,r=e.candidates,o=n.page.borderBox.center,i=r.map((function(e){var n=e.axis,r=je(e.axis.line,t.center[n.line],e.page.borderBox.center[n.crossAxisLine]);return{id:e.descriptor.id,distance:Me(o,r)}})).sort((function(e,t){return t.distance-e.distance}));return i[0]?i[0].id:null}({pageBorderBox:t,draggable:n,candidates:o}):null}var Ht=function(e,t){return J(Fe(e,t))};function Vt(e){var t=e.displaced,n=e.id;return Boolean(t.visible[n]||t.invisible[n])}var Wt=function(e){var t=e.pageOffset,n=e.draggable,r=e.draggables,o=e.droppables,i=e.previousImpact,a=e.viewport,s=e.afterCritical,l=Ht(n.page.borderBox,t),c=Zt({pageBorderBox:l,draggable:n,droppables:o});if(!c)return it;var u=o[c],d=Je(u.descriptor.id,r),f=function(e,t){var n=e.frame;return n?Ht(t,n.scroll.diff.value):t}(u,l);return function(e){var t=e.draggable,n=e.pageBorderBoxWithDroppableScroll,r=e.previousImpact,o=e.destination,i=e.insideDestination,a=e.afterCritical;if(!o.isCombineEnabled)return null;var s=o.axis,l=Mt(o.axis,t.displaceBy),c=l.value,u=n[s.start],d=n[s.end],f=Ve(tt(t,i),(function(e){var t=e.descriptor.id,n=e.page.borderBox,o=n[s.size]/4,i=yt(t,a),l=Vt({displaced:r.displaced,id:t});return i?l?d>n[s.start]+o&&d<n[s.end]-o:u>n[s.start]-c+o&&u<n[s.end]-c-o:l?d>n[s.start]+c+o&&d<n[s.end]+c-o:u>n[s.start]+o&&u<n[s.end]-o}));return f?{displacedBy:l,displaced:r.displaced,at:{type:"COMBINE",combine:{draggableId:f.descriptor.id,droppableId:o.descriptor.id}}}:null}({pageBorderBoxWithDroppableScroll:f,draggable:n,previousImpact:i,destination:u,insideDestination:d,afterCritical:s})||function(e){var t=e.pageBorderBoxWithDroppableScroll,n=e.draggable,r=e.destination,o=e.insideDestination,i=e.last,a=e.viewport,s=e.afterCritical,l=r.axis,c=Mt(r.axis,n.displaceBy),u=c.value,d=t[l.start],f=t[l.end],p=function(e){var t=e.draggable,n=e.closest,r=e.inHomeList;return n?r&&n.descriptor.index>t.descriptor.index?n.descriptor.index-1:n.descriptor.index:null}({draggable:n,closest:Ve(tt(n,o),(function(e){var t=e.descriptor.id,n=e.page.borderBox.center[l.line],r=yt(t,s),o=Vt({displaced:i,id:t});return r?o?f<=n:d<n-u:o?f<=n+u:d<n})),inHomeList:nt(n,r)});return vt({draggable:n,insideDestination:o,destination:r,viewport:a,last:i,displacedBy:c,index:p})}({pageBorderBoxWithDroppableScroll:f,draggable:n,destination:u,insideDestination:d,last:i.displaced,viewport:a,afterCritical:s})},Gt=function(e,t){var n;return(0,i.Z)({},e,((n={})[t.descriptor.id]=t,n))},Yt=function(e){var t=e.previousImpact,n=e.impact,r=e.droppables,o=Bt(t),a=Bt(n);if(!o)return r;if(o===a)return r;var s=r[o];if(!s.subject.withPlaceholder)return r;var l=function(e){var t=e.subject.withPlaceholder;t||xe(!1);var n=e.frame;if(!n){var r=qe({page:e.subject.page,axis:e.axis,frame:null,withPlaceholder:null});return(0,i.Z)({},e,{subject:r})}var o=t.oldFrameMaxScroll;o||xe(!1);var a=Lt(n,o),s=qe({page:e.subject.page,axis:e.axis,frame:a,withPlaceholder:null});return(0,i.Z)({},e,{subject:s,frame:a})}(s);return Gt(r,l)},Kt=function(e){var t=e.state,n=e.clientSelection,r=e.dimensions,o=e.viewport,a=e.impact,s=e.scrollJumpRequest,l=o||t.viewport,c=r||t.dimensions,u=n||t.current.client.selection,d=Re(u,t.initial.client.selection),f={offset:d,selection:u,borderBoxCenter:Pe(t.initial.client.borderBoxCenter,d)},p={selection:Pe(f.selection,l.scroll.current),borderBoxCenter:Pe(f.borderBoxCenter,l.scroll.current),offset:Pe(f.offset,l.scroll.diff.value)},h={client:f,page:p};if("COLLECTING"===t.phase)return(0,i.Z)({phase:"COLLECTING"},t,{dimensions:c,viewport:l,current:h});var m=c.draggables[t.critical.draggable.id],g=a||Wt({pageOffset:p.offset,draggable:m,draggables:c.draggables,droppables:c.droppables,previousImpact:t.impact,viewport:l,afterCritical:t.afterCritical}),v=function(e){var t=e.draggable,n=e.draggables,r=e.droppables,o=e.previousImpact,i=e.impact,a=Yt({previousImpact:o,impact:i,droppables:r}),s=Bt(i);if(!s)return a;var l=r[s];if(nt(t,l))return a;if(l.subject.withPlaceholder)return a;var c=zt(l,t,n);return Gt(a,c)}({draggable:m,impact:g,previousImpact:t.impact,draggables:c.draggables,droppables:c.droppables});return(0,i.Z)({},t,{current:h,dimensions:{draggables:c.draggables,droppables:v},impact:g,viewport:l,scrollJumpRequest:s||null,forceShouldAnimate:!s&&null})};var Qt=function(e){var t=e.impact,n=e.viewport,r=e.draggables,o=e.destination,a=e.forceShouldAnimate,s=t.displaced,l=function(e,t){return e.map((function(e){return t[e]}))}(s.all,r),c=mt({afterDragging:l,destination:o,displacedBy:t.displacedBy,viewport:n.frame,forceShouldAnimate:a,last:s});return(0,i.Z)({},t,{displaced:c})},Jt=function(e){var t=e.impact,n=e.draggable,r=e.droppable,o=e.draggables,i=e.viewport,a=e.afterCritical,s=Ot({impact:t,draggable:n,draggables:o,droppable:r,afterCritical:a});return It({pageBorderBoxCenter:s,draggable:n,viewport:i})},Xt=function(e){var t=e.state,n=e.dimensions,r=e.viewport;"SNAP"!==t.movementMode&&xe(!1);var o=t.impact,i=r||t.viewport,a=n||t.dimensions,s=a.draggables,l=a.droppables,c=s[t.critical.draggable.id],u=Bt(o);u||xe(!1);var d=l[u],f=Qt({impact:o,viewport:i,destination:d,draggables:s}),p=Jt({impact:f,draggable:c,droppable:d,draggables:s,viewport:i,afterCritical:t.afterCritical});return Kt({impact:f,clientSelection:p,state:t,dimensions:a,viewport:i})},en=function(e){var t=e.draggable,n=e.home,r=e.draggables,o=e.viewport,i=Mt(n.axis,t.displaceBy),a=Je(n.descriptor.id,r),s=a.indexOf(t);-1===s&&xe(!1);var l,c=a.slice(s+1),u=c.reduce((function(e,t){return e[t.descriptor.id]=!0,e}),{}),d={inVirtualList:"virtual"===n.descriptor.mode,displacedBy:i,effected:u};return{impact:{displaced:mt({afterDragging:c,destination:n,displacedBy:i,last:null,viewport:o.frame,forceShouldAnimate:!1}),displacedBy:i,at:{type:"REORDER",destination:(l=t.descriptor,{index:l.index,droppableId:l.droppableId})}},afterCritical:d}},tn=function(e){0},nn=function(e){0},rn=function(e){var t=e.additions,n=e.updatedDroppables,r=e.viewport,o=r.scroll.diff.value;return t.map((function(e){var t=e.descriptor.droppableId,a=function(e){var t=e.frame;return t||xe(!1),t}(n[t]),s=a.scroll.diff.value,l=function(e){var t=e.draggable,n=e.offset,r=e.initialWindowScroll,o=oe(t.client,n),a=ie(o,r);return(0,i.Z)({},t,{placeholder:(0,i.Z)({},t.placeholder,{client:o}),client:o,page:a})}({draggable:e,offset:Pe(o,s),initialWindowScroll:r.scroll.initial});return l}))},on=function(e){return"SNAP"===e.movementMode},an=function(e,t,n){var r=function(e,t){return{draggables:e.draggables,droppables:Gt(e.droppables,t)}}(e.dimensions,t);return!on(e)||n?Kt({state:e,dimensions:r}):Xt({state:e,dimensions:r})};function sn(e){return e.isDragging&&"SNAP"===e.movementMode?(0,i.Z)({phase:"DRAGGING"},e,{scrollJumpRequest:null}):e}var ln={phase:"IDLE",completed:null,shouldFlush:!1},cn=function(e,t){if(void 0===e&&(e=ln),"FLUSH"===t.type)return(0,i.Z)({},ln,{shouldFlush:!0});if("INITIAL_PUBLISH"===t.type){"IDLE"!==e.phase&&xe(!1);var n=t.payload,r=n.critical,o=n.clientSelection,a=n.viewport,s=n.dimensions,l=n.movementMode,c=s.draggables[r.draggable.id],u=s.droppables[r.droppable.id],d={selection:o,borderBoxCenter:c.client.borderBox.center,offset:Ie},f={client:d,page:{selection:Pe(d.selection,a.scroll.initial),borderBoxCenter:Pe(d.selection,a.scroll.initial),offset:Pe(d.selection,a.scroll.diff.value)}},p=Ke(s.droppables).every((function(e){return!e.isFixedOnPage})),h=en({draggable:c,home:u,draggables:s.draggables,viewport:a}),m=h.impact;return{phase:"DRAGGING",isDragging:!0,critical:r,movementMode:l,dimensions:s,initial:f,current:f,isWindowScrollAllowed:p,impact:m,afterCritical:h.afterCritical,onLiftImpact:m,viewport:a,scrollJumpRequest:null,forceShouldAnimate:null}}if("COLLECTION_STARTING"===t.type)return"COLLECTING"===e.phase||"DROP_PENDING"===e.phase?e:("DRAGGING"!==e.phase&&xe(!1),(0,i.Z)({phase:"COLLECTING"},e,{phase:"COLLECTING"}));if("PUBLISH_WHILE_DRAGGING"===t.type)return"COLLECTING"!==e.phase&&"DROP_PENDING"!==e.phase&&xe(!1),function(e){var t=e.state,n=e.published;tn();var r=n.modified.map((function(e){var n=t.dimensions.droppables[e.droppableId];return $e(n,e.scroll)})),o=(0,i.Z)({},t.dimensions.droppables,{},Ge(r)),a=Ye(rn({additions:n.additions,updatedDroppables:o,viewport:t.viewport})),s=(0,i.Z)({},t.dimensions.draggables,{},a);n.removals.forEach((function(e){delete s[e]}));var l={droppables:o,draggables:s},c=Bt(t.impact),u=c?l.droppables[c]:null,d=l.draggables[t.critical.draggable.id],f=l.droppables[t.critical.droppable.id],p=en({draggable:d,home:f,draggables:s,viewport:t.viewport}),h=p.impact,m=p.afterCritical,g=u&&u.isCombineEnabled?t.impact:h,v=Wt({pageOffset:t.current.page.offset,draggable:l.draggables[t.critical.draggable.id],draggables:l.draggables,droppables:l.droppables,previousImpact:g,viewport:t.viewport,afterCritical:m});nn();var y=(0,i.Z)({phase:"DRAGGING"},t,{phase:"DRAGGING",impact:v,onLiftImpact:h,dimensions:l,afterCritical:m,forceShouldAnimate:!1});return"COLLECTING"===t.phase?y:(0,i.Z)({phase:"DROP_PENDING"},y,{phase:"DROP_PENDING",reason:t.reason,isWaiting:!1})}({state:e,published:t.payload});if("MOVE"===t.type){if("DROP_PENDING"===e.phase)return e;qt(e)||xe(!1);var g=t.payload.client;return De(g,e.current.client.selection)?e:Kt({state:e,clientSelection:g,impact:on(e)?e.impact:null})}if("UPDATE_DROPPABLE_SCROLL"===t.type){if("DROP_PENDING"===e.phase)return sn(e);if("COLLECTING"===e.phase)return sn(e);qt(e)||xe(!1);var v=t.payload,y=v.id,b=v.newScroll,w=e.dimensions.droppables[y];if(!w)return e;var E=$e(w,b);return an(e,E,!1)}if("UPDATE_DROPPABLE_IS_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;qt(e)||xe(!1);var _=t.payload,x=_.id,S=_.isEnabled,C=e.dimensions.droppables[x];C||xe(!1),C.isEnabled===S&&xe(!1);var k=(0,i.Z)({},C,{isEnabled:S});return an(e,k,!0)}if("UPDATE_DROPPABLE_IS_COMBINE_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;qt(e)||xe(!1);var O=t.payload,T=O.id,N=O.isCombineEnabled,I=e.dimensions.droppables[T];I||xe(!1),I.isCombineEnabled===N&&xe(!1);var P=(0,i.Z)({},I,{isCombineEnabled:N});return an(e,P,!0)}if("MOVE_BY_WINDOW_SCROLL"===t.type){if("DROP_PENDING"===e.phase||"DROP_ANIMATING"===e.phase)return e;qt(e)||xe(!1),e.isWindowScrollAllowed||xe(!1);var R=t.payload.newScroll;if(De(e.viewport.scroll.current,R))return sn(e);var D=Tt(e.viewport,R);return on(e)?Xt({state:e,viewport:D}):Kt({state:e,viewport:D})}if("UPDATE_VIEWPORT_MAX_SCROLL"===t.type){if(!qt(e))return e;var A=t.payload.maxScroll;if(De(A,e.viewport.scroll.max))return e;var j=(0,i.Z)({},e.viewport,{scroll:(0,i.Z)({},e.viewport.scroll,{max:A})});return(0,i.Z)({phase:"DRAGGING"},e,{viewport:j})}if("MOVE_UP"===t.type||"MOVE_DOWN"===t.type||"MOVE_LEFT"===t.type||"MOVE_RIGHT"===t.type){if("COLLECTING"===e.phase||"DROP_PENDING"===e.phase)return e;"DRAGGING"!==e.phase&&xe(!1);var M=Ut({state:e,type:t.type});return M?Kt({state:e,impact:M.impact,clientSelection:M.clientSelection,scrollJumpRequest:M.scrollJumpRequest}):e}if("DROP_PENDING"===t.type){var L=t.payload.reason;return"COLLECTING"!==e.phase&&xe(!1),(0,i.Z)({phase:"DROP_PENDING"},e,{phase:"DROP_PENDING",isWaiting:!0,reason:L})}if("DROP_ANIMATE"===t.type){var z=t.payload,F=z.completed,B=z.dropDuration,U=z.newHomeClientOffset;return"DRAGGING"!==e.phase&&"DROP_PENDING"!==e.phase&&xe(!1),{phase:"DROP_ANIMATING",completed:F,dropDuration:B,newHomeClientOffset:U,dimensions:e.dimensions}}return"DROP_COMPLETE"===t.type?{phase:"IDLE",completed:t.payload.completed,shouldFlush:!1}:e},un=function(e){return{type:"LIFT",payload:e}},dn=function(e){return{type:"PUBLISH_WHILE_DRAGGING",payload:e}},fn=function(){return{type:"COLLECTION_STARTING",payload:null}},pn=function(e){return{type:"UPDATE_DROPPABLE_SCROLL",payload:e}},hn=function(e){return{type:"UPDATE_DROPPABLE_IS_ENABLED",payload:e}},mn=function(e){return{type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:e}},gn=function(e){return{type:"MOVE",payload:e}},vn=function(){return{type:"MOVE_UP",payload:null}},yn=function(){return{type:"MOVE_DOWN",payload:null}},bn=function(){return{type:"MOVE_RIGHT",payload:null}},wn=function(){return{type:"MOVE_LEFT",payload:null}},En=function(){return{type:"FLUSH",payload:null}},_n=function(e){return{type:"DROP_COMPLETE",payload:e}},xn=function(e){return{type:"DROP",payload:e}},Sn=function(){return{type:"DROP_ANIMATION_FINISHED",payload:null}};var Cn={outOfTheWay:"cubic-bezier(0.2, 0, 0, 1)",drop:"cubic-bezier(.2,1,.1,1)"},kn={opacity:{drop:0,combining:.7},scale:{drop:.75}},On=.33,Tn=.55,Nn=.2+"s "+Cn.outOfTheWay,In={fluid:"opacity "+Nn,snap:"transform "+Nn+", opacity "+Nn,drop:function(e){var t=e+"s "+Cn.drop;return"transform "+t+", opacity "+t},outOfTheWay:"transform "+Nn,placeholder:"height "+Nn+", width "+Nn+", margin "+Nn},Pn=function(e){return De(e,Ie)?null:"translate("+e.x+"px, "+e.y+"px)"},Rn={moveTo:Pn,drop:function(e,t){var n=Pn(e);return n?t?n+" scale("+kn.scale.drop+")":n:null}},Dn=On,An=Tn,jn=An-Dn,Mn=function(e){var t=e.getState,n=e.dispatch;return function(e){return function(r){if("DROP"===r.type){var o=t(),a=r.payload.reason;if("COLLECTING"!==o.phase){if("IDLE"!==o.phase){"DROP_PENDING"===o.phase&&o.isWaiting&&xe(!1),"DRAGGING"!==o.phase&&"DROP_PENDING"!==o.phase&&xe(!1);var s=o.critical,l=o.dimensions,c=l.draggables[o.critical.draggable.id],u=function(e){var t=e.draggables,n=e.reason,r=e.lastImpact,o=e.home,a=e.viewport,s=e.onLiftImpact;return r.at&&"DROP"===n?"REORDER"===r.at.type?{impact:r,didDropInsideDroppable:!0}:{impact:(0,i.Z)({},r,{displaced:ot}),didDropInsideDroppable:!0}:{impact:Qt({draggables:t,impact:s,destination:o,viewport:a,forceShouldAnimate:!0}),didDropInsideDroppable:!1}}({reason:a,lastImpact:o.impact,afterCritical:o.afterCritical,onLiftImpact:o.onLiftImpact,home:o.dimensions.droppables[o.critical.droppable.id],viewport:o.viewport,draggables:o.dimensions.draggables}),d=u.impact,f=u.didDropInsideDroppable,p=f?Xe(d):null,h=f?et(d):null,m={index:s.draggable.index,droppableId:s.droppable.id},g={draggableId:c.descriptor.id,type:c.descriptor.type,source:m,reason:a,mode:o.movementMode,destination:p,combine:h},v=function(e){var t=e.impact,n=e.draggable,r=e.dimensions,o=e.viewport,i=e.afterCritical,a=r.draggables,s=r.droppables,l=Bt(t),c=l?s[l]:null,u=s[n.descriptor.droppableId],d=Jt({impact:t,draggable:n,draggables:a,afterCritical:i,droppable:c||u,viewport:o});return Re(d,n.client.borderBox.center)}({impact:d,draggable:c,dimensions:l,viewport:o.viewport,afterCritical:o.afterCritical}),y={critical:o.critical,afterCritical:o.afterCritical,result:g,impact:d};if(!De(o.current.client.offset,v)||Boolean(g.combine)){var b=function(e){var t=e.current,n=e.destination,r=e.reason,o=Me(t,n);if(o<=0)return Dn;if(o>=1500)return An;var i=Dn+jn*(o/1500);return Number(("CANCEL"===r?.6*i:i).toFixed(2))}({current:o.current.client.offset,destination:v,reason:a});n(function(e){return{type:"DROP_ANIMATE",payload:e}}({newHomeClientOffset:v,dropDuration:b,completed:y}))}else n(_n({completed:y}))}}else n(function(e){return{type:"DROP_PENDING",payload:e}}({reason:a}))}else e(r)}}},Ln=function(){return{x:window.pageXOffset,y:window.pageYOffset}};function zn(e){var t=e.onWindowScroll;var n=ce((function(){t(Ln())})),r=function(e){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(t){t.target!==window&&t.target!==window.document||e()}}}(n),o=ye;function i(){return o!==ye}return{start:function(){i()&&xe(!1),o=be(window,[r])},stop:function(){i()||xe(!1),n.cancel(),o(),o=ye},isActive:i}}var Fn=function(e){var t=zn({onWindowScroll:function(t){e.dispatch({type:"MOVE_BY_WINDOW_SCROLL",payload:{newScroll:t}})}});return function(e){return function(n){t.isActive()||"INITIAL_PUBLISH"!==n.type||t.start(),t.isActive()&&function(e){return"DROP_COMPLETE"===e.type||"DROP_ANIMATE"===e.type||"FLUSH"===e.type}(n)&&t.stop(),e(n)}}},Bn=function(){var e=[];return{add:function(t){var n=setTimeout((function(){return function(t){var n=He(e,(function(e){return e.timerId===t}));-1===n&&xe(!1),e.splice(n,1)[0].callback()}(n)})),r={timerId:n,callback:t};e.push(r)},flush:function(){if(e.length){var t=[].concat(e);e.length=0,t.forEach((function(e){clearTimeout(e.timerId),e.callback()}))}}}},Un=function(e,t){tn(),t(),nn()},qn=function(e,t){return{draggableId:e.draggable.id,type:e.droppable.type,source:{droppableId:e.droppable.id,index:e.draggable.index},mode:t}},$n=function(e,t,n,r){if(e){var o=function(e){var t=!1,n=!1,r=setTimeout((function(){n=!0})),o=function(o){t||n||(t=!0,e(o),clearTimeout(r))};return o.wasCalled=function(){return t},o}(n);e(t,{announce:o}),o.wasCalled()||n(r(t))}else n(r(t))},Zn=function(e,t){var n=function(e,t){var n=Bn(),r=null,o=function(n){r||xe(!1),r=null,Un(0,(function(){return $n(e().onDragEnd,n,t,Ne.onDragEnd)}))};return{beforeCapture:function(t,n){r&&xe(!1),Un(0,(function(){var r=e().onBeforeCapture;r&&r({draggableId:t,mode:n})}))},beforeStart:function(t,n){r&&xe(!1),Un(0,(function(){var r=e().onBeforeDragStart;r&&r(qn(t,n))}))},start:function(o,i){r&&xe(!1);var a=qn(o,i);r={mode:i,lastCritical:o,lastLocation:a.source,lastCombine:null},n.add((function(){Un(0,(function(){return $n(e().onDragStart,a,t,Ne.onDragStart)}))}))},update:function(o,a){var s=Xe(a),l=et(a);r||xe(!1);var c=!function(e,t){if(e===t)return!0;var n=e.draggable.id===t.draggable.id&&e.draggable.droppableId===t.draggable.droppableId&&e.draggable.type===t.draggable.type&&e.draggable.index===t.draggable.index,r=e.droppable.id===t.droppable.id&&e.droppable.type===t.droppable.type;return n&&r}(o,r.lastCritical);c&&(r.lastCritical=o);var u,d,f=(d=s,!(null==(u=r.lastLocation)&&null==d||null!=u&&null!=d&&u.droppableId===d.droppableId&&u.index===d.index));f&&(r.lastLocation=s);var p=!function(e,t){return null==e&&null==t||null!=e&&null!=t&&e.draggableId===t.draggableId&&e.droppableId===t.droppableId}(r.lastCombine,l);if(p&&(r.lastCombine=l),c||f||p){var h=(0,i.Z)({},qn(o,r.mode),{combine:l,destination:s});n.add((function(){Un(0,(function(){return $n(e().onDragUpdate,h,t,Ne.onDragUpdate)}))}))}},flush:function(){r||xe(!1),n.flush()},drop:o,abort:function(){if(r){var e=(0,i.Z)({},qn(r.lastCritical,r.mode),{combine:null,destination:null,reason:"CANCEL"});o(e)}}}}(e,t);return function(e){return function(t){return function(r){if("BEFORE_INITIAL_CAPTURE"!==r.type){if("INITIAL_PUBLISH"===r.type){var o=r.payload.critical;return n.beforeStart(o,r.payload.movementMode),t(r),void n.start(o,r.payload.movementMode)}if("DROP_COMPLETE"===r.type){var i=r.payload.completed.result;return n.flush(),t(r),void n.drop(i)}if(t(r),"FLUSH"!==r.type){var a=e.getState();"DRAGGING"===a.phase&&n.update(a.critical,a.impact)}else n.abort()}else n.beforeCapture(r.payload.draggableId,r.payload.movementMode)}}}},Hn=function(e){return function(t){return function(n){if("DROP_ANIMATION_FINISHED"===n.type){var r=e.getState();"DROP_ANIMATING"!==r.phase&&xe(!1),e.dispatch(_n({completed:r.completed}))}else t(n)}}},Vn=function(e){var t=null,n=null;return function(r){return function(o){if("FLUSH"!==o.type&&"DROP_COMPLETE"!==o.type&&"DROP_ANIMATION_FINISHED"!==o.type||(n&&(cancelAnimationFrame(n),n=null),t&&(t(),t=null)),r(o),"DROP_ANIMATE"===o.type){var i={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){"DROP_ANIMATING"===e.getState().phase&&e.dispatch({type:"DROP_ANIMATION_FINISHED",payload:null})}};n=requestAnimationFrame((function(){n=null,t=be(window,[i])}))}}}},Wn=function(e){return function(t){return function(n){if(t(n),"PUBLISH_WHILE_DRAGGING"===n.type){var r=e.getState();"DROP_PENDING"===r.phase&&(r.isWaiting||e.dispatch(xn({reason:r.reason})))}}}},Gn=a.qC,Yn=function(e){var t,n=e.dimensionMarshal,r=e.focusMarshal,o=e.styleMarshal,i=e.getResponders,s=e.announce,l=e.autoScroller;return(0,a.MT)(cn,Gn((0,a.md)((t=o,function(){return function(e){return function(n){"INITIAL_PUBLISH"===n.type&&t.dragging(),"DROP_ANIMATE"===n.type&&t.dropping(n.payload.completed.result.reason),"FLUSH"!==n.type&&"DROP_COMPLETE"!==n.type||t.resting(),e(n)}}}),function(e){return function(){return function(t){return function(n){"DROP_COMPLETE"!==n.type&&"FLUSH"!==n.type&&"DROP_ANIMATE"!==n.type||e.stopPublishing(),t(n)}}}}(n),function(e){return function(t){var n=t.getState,r=t.dispatch;return function(t){return function(o){if("LIFT"===o.type){var i=o.payload,a=i.id,s=i.clientSelection,l=i.movementMode,c=n();"DROP_ANIMATING"===c.phase&&r(_n({completed:c.completed})),"IDLE"!==n().phase&&xe(!1),r(En()),r({type:"BEFORE_INITIAL_CAPTURE",payload:{draggableId:a,movementMode:l}});var u={draggableId:a,scrollOptions:{shouldPublishImmediately:"SNAP"===l}},d=e.startPublishing(u),f=d.critical,p=d.dimensions,h=d.viewport;r({type:"INITIAL_PUBLISH",payload:{critical:f,dimensions:p,clientSelection:s,movementMode:l,viewport:h}})}else t(o)}}}}(n),Mn,Hn,Vn,Wn,function(e){return function(t){return function(n){return function(r){if(function(e){return"DROP_COMPLETE"===e.type||"DROP_ANIMATE"===e.type||"FLUSH"===e.type}(r))return e.stop(),void n(r);if("INITIAL_PUBLISH"===r.type){n(r);var o=t.getState();return"DRAGGING"!==o.phase&&xe(!1),void e.start(o)}n(r),e.scroll(t.getState())}}}}(l),Fn,function(e){var t=!1;return function(){return function(n){return function(r){if("INITIAL_PUBLISH"===r.type)return t=!0,e.tryRecordFocus(r.payload.critical.draggable.id),n(r),void e.tryRestoreFocusRecorded();if(n(r),t){if("FLUSH"===r.type)return t=!1,void e.tryRestoreFocusRecorded();if("DROP_COMPLETE"===r.type){t=!1;var o=r.payload.completed.result;o.combine&&e.tryShiftRecord(o.draggableId,o.combine.draggableId),e.tryRestoreFocusRecorded()}}}}}}(r),Zn(i,s))))},Kn=function(){return{additions:{},removals:{},modified:{}}};var Qn=function(e){var t=e.scrollHeight,n=e.scrollWidth,r=e.height,o=e.width,i=Re({x:n,y:t},{x:o,y:r});return{x:Math.max(0,i.x),y:Math.max(0,i.y)}},Jn=function(){var e=document.documentElement;return e||xe(!1),e},Xn=function(){var e=Jn();return Qn({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,width:e.clientWidth,height:e.clientHeight})},er=function(e){var t=e.critical,n=e.scrollOptions,r=e.registry;tn();var o=function(){var e=Ln(),t=Xn(),n=e.y,r=e.x,o=Jn(),i=o.clientWidth,a=o.clientHeight;return{frame:J({top:n,left:r,right:r+i,bottom:n+a}),scroll:{initial:e,current:e,max:t,diff:{value:Ie,displacement:Ie}}}}(),i=o.scroll.current,a=t.droppable,s=r.droppable.getAllByType(a.type).map((function(e){return e.callbacks.getDimensionAndWatchScroll(i,n)})),l=r.draggable.getAllByType(t.draggable.type).map((function(e){return e.getDimension(i)})),c={draggables:Ye(l),droppables:Ge(s)};return nn(),{dimensions:c,critical:t,viewport:o}};function tr(e,t,n){return n.descriptor.id!==t.id&&(n.descriptor.type===t.type&&"virtual"===e.droppable.getById(n.descriptor.droppableId).descriptor.mode)}var nr=function(e,t){var n=null,r=function(e){var t=e.registry,n=e.callbacks,r=Kn(),o=null,i=function(){o||(n.collectionStarting(),o=requestAnimationFrame((function(){o=null,tn();var e=r,i=e.additions,a=e.removals,s=e.modified,l=Object.keys(i).map((function(e){return t.draggable.getById(e).getDimension(Ie)})).sort((function(e,t){return e.descriptor.index-t.descriptor.index})),c=Object.keys(s).map((function(e){return{droppableId:e,scroll:t.droppable.getById(e).callbacks.getScrollWhileDragging()}})),u={additions:l,removals:Object.keys(a),modified:c};r=Kn(),nn(),n.publish(u)})))};return{add:function(e){var t=e.descriptor.id;r.additions[t]=e,r.modified[e.descriptor.droppableId]=!0,r.removals[t]&&delete r.removals[t],i()},remove:function(e){var t=e.descriptor;r.removals[t.id]=!0,r.modified[t.droppableId]=!0,r.additions[t.id]&&delete r.additions[t.id],i()},stop:function(){o&&(cancelAnimationFrame(o),o=null,r=Kn())}}}({callbacks:{publish:t.publishWhileDragging,collectionStarting:t.collectionStarting},registry:e}),o=function(t){n||xe(!1);var o=n.critical.draggable;"ADDITION"===t.type&&tr(e,o,t.value)&&r.add(t.value),"REMOVAL"===t.type&&tr(e,o,t.value)&&r.remove(t.value)},i={updateDroppableIsEnabled:function(r,o){e.droppable.exists(r)||xe(!1),n&&t.updateDroppableIsEnabled({id:r,isEnabled:o})},updateDroppableIsCombineEnabled:function(r,o){n&&(e.droppable.exists(r)||xe(!1),t.updateDroppableIsCombineEnabled({id:r,isCombineEnabled:o}))},scrollDroppable:function(t,r){n&&e.droppable.getById(t).callbacks.scroll(r)},updateDroppableScroll:function(r,o){n&&(e.droppable.exists(r)||xe(!1),t.updateDroppableScroll({id:r,newScroll:o}))},startPublishing:function(t){n&&xe(!1);var r=e.draggable.getById(t.draggableId),i=e.droppable.getById(r.descriptor.droppableId),a={draggable:r.descriptor,droppable:i.descriptor},s=e.subscribe(o);return n={critical:a,unsubscribe:s},er({critical:a,registry:e,scrollOptions:t.scrollOptions})},stopPublishing:function(){if(n){r.stop();var t=n.critical.droppable;e.droppable.getAllByType(t.type).forEach((function(e){return e.callbacks.dragStopped()})),n.unsubscribe(),n=null}}};return i},rr=function(e,t){return"IDLE"===e.phase||"DROP_ANIMATING"===e.phase&&(e.completed.result.draggableId!==t&&"DROP"===e.completed.result.reason)},or=function(e){window.scrollBy(e.x,e.y)},ir=(0,le.Z)((function(e){return Ke(e).filter((function(e){return!!e.isEnabled&&!!e.frame}))})),ar=function(e){var t=e.center,n=e.destination,r=e.droppables;if(n){var o=r[n];return o.frame?o:null}var i=function(e,t){var n=Ve(ir(t),(function(t){return t.frame||xe(!1),$t(t.frame.pageMarginBox)(e)}));return n}(t,r);return i},sr=.25,lr=.05,cr=28,ur=function(e){return Math.pow(e,2)},dr={stopDampeningAt:1200,accelerateAt:360},fr=function(e){var t=e.startOfRange,n=e.endOfRange,r=e.current,o=n-t;return 0===o?0:(r-t)/o},pr=dr.accelerateAt,hr=dr.stopDampeningAt,mr=function(e){var t=e.distanceToEdge,n=e.thresholds,r=e.dragStartTime,o=e.shouldUseTimeDampening,i=function(e,t){if(e>t.startScrollingFrom)return 0;if(e<=t.maxScrollValueAt)return cr;if(e===t.startScrollingFrom)return 1;var n=fr({startOfRange:t.maxScrollValueAt,endOfRange:t.startScrollingFrom,current:e}),r=cr*ur(1-n);return Math.ceil(r)}(t,n);return 0===i?0:o?Math.max(function(e,t){var n=t,r=hr,o=Date.now()-n;if(o>=hr)return e;if(o<pr)return 1;var i=fr({startOfRange:pr,endOfRange:r,current:o}),a=e*ur(i);return Math.ceil(a)}(i,r),1):i},gr=function(e){var t=e.container,n=e.distanceToEdges,r=e.dragStartTime,o=e.axis,i=e.shouldUseTimeDampening,a=function(e,t){return{startScrollingFrom:e[t.size]*sr,maxScrollValueAt:e[t.size]*lr}}(t,o);return n[o.end]<n[o.start]?mr({distanceToEdge:n[o.end],thresholds:a,dragStartTime:r,shouldUseTimeDampening:i}):-1*mr({distanceToEdge:n[o.start],thresholds:a,dragStartTime:r,shouldUseTimeDampening:i})},vr=ze((function(e){return 0===e?0:e})),yr=function(e){var t=e.dragStartTime,n=e.container,r=e.subject,o=e.center,i=e.shouldUseTimeDampening,a={top:o.y-n.top,right:n.right-o.x,bottom:n.bottom-o.y,left:o.x-n.left},s=gr({container:n,distanceToEdges:a,dragStartTime:t,axis:ct,shouldUseTimeDampening:i}),l=gr({container:n,distanceToEdges:a,dragStartTime:t,axis:ut,shouldUseTimeDampening:i}),c=vr({x:l,y:s});if(De(c,Ie))return null;var u=function(e){var t=e.container,n=e.subject,r=e.proposedScroll,o=n.height>t.height,i=n.width>t.width;return i||o?i&&o?null:{x:i?0:r.x,y:o?0:r.y}:r}({container:n,subject:r,proposedScroll:c});return u?De(u,Ie)?null:u:null},br=ze((function(e){return 0===e?0:e>0?1:-1})),wr=function(){var e=function(e,t){return e<0?e:e>t?e-t:0};return function(t){var n=t.current,r=t.max,o=t.change,i=Pe(n,o),a={x:e(i.x,r.x),y:e(i.y,r.y)};return De(a,Ie)?null:a}}(),Er=function(e){var t=e.max,n=e.current,r=e.change,o={x:Math.max(n.x,t.x),y:Math.max(n.y,t.y)},i=br(r),a=wr({max:o,current:n,change:i});return!a||(0!==i.x&&0===a.x||0!==i.y&&0===a.y)},_r=function(e,t){return Er({current:e.scroll.current,max:e.scroll.max,change:t})},xr=function(e,t){var n=e.frame;return!!n&&Er({current:n.scroll.current,max:n.scroll.max,change:t})},Sr=function(e){var t=e.state,n=e.dragStartTime,r=e.shouldUseTimeDampening,o=e.scrollWindow,i=e.scrollDroppable,a=t.current.page.borderBoxCenter,s=t.dimensions.draggables[t.critical.draggable.id].page.marginBox;if(t.isWindowScrollAllowed){var l=function(e){var t=e.viewport,n=e.subject,r=e.center,o=e.dragStartTime,i=e.shouldUseTimeDampening,a=yr({dragStartTime:o,container:t.frame,subject:n,center:r,shouldUseTimeDampening:i});return a&&_r(t,a)?a:null}({dragStartTime:n,viewport:t.viewport,subject:s,center:a,shouldUseTimeDampening:r});if(l)return void o(l)}var c=ar({center:a,destination:Bt(t.impact),droppables:t.dimensions.droppables});if(c){var u=function(e){var t=e.droppable,n=e.subject,r=e.center,o=e.dragStartTime,i=e.shouldUseTimeDampening,a=t.frame;if(!a)return null;var s=yr({dragStartTime:o,container:a.pageMarginBox,subject:n,center:r,shouldUseTimeDampening:i});return s&&xr(t,s)?s:null}({dragStartTime:n,droppable:c,subject:s,center:a,shouldUseTimeDampening:r});u&&i(c.descriptor.id,u)}},Cr=function(e){var t=e.move,n=e.scrollDroppable,r=e.scrollWindow,o=function(e,t){if(!xr(e,t))return t;var r=function(e,t){var n=e.frame;return n&&xr(e,t)?wr({current:n.scroll.current,max:n.scroll.max,change:t}):null}(e,t);if(!r)return n(e.descriptor.id,t),null;var o=Re(t,r);return n(e.descriptor.id,o),Re(t,o)},i=function(e,t,n){if(!e)return n;if(!_r(t,n))return n;var o=function(e,t){if(!_r(e,t))return null;var n=e.scroll.max,r=e.scroll.current;return wr({current:r,max:n,change:t})}(t,n);if(!o)return r(n),null;var i=Re(n,o);return r(i),Re(n,i)};return function(e){var n=e.scrollJumpRequest;if(n){var r=Bt(e.impact);r||xe(!1);var a=o(e.dimensions.droppables[r],n);if(a){var s=e.viewport,l=i(e.isWindowScrollAllowed,s,a);l&&function(e,n){var r=Pe(e.current.client.selection,n);t({client:r})}(e,l)}}}},kr=function(e){var t=e.scrollDroppable,n=e.scrollWindow,r=e.move,o=function(e){var t=e.scrollWindow,n=e.scrollDroppable,r=ce(t),o=ce(n),i=null,a=function(e){i||xe(!1);var t=i,n=t.shouldUseTimeDampening,a=t.dragStartTime;Sr({state:e,scrollWindow:r,scrollDroppable:o,dragStartTime:a,shouldUseTimeDampening:n})};return{start:function(e){tn(),i&&xe(!1);var t=Date.now(),n=!1,r=function(){n=!0};Sr({state:e,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:r,scrollDroppable:r}),i={dragStartTime:t,shouldUseTimeDampening:n},nn(),n&&a(e)},stop:function(){i&&(r.cancel(),o.cancel(),i=null)},scroll:a}}({scrollWindow:n,scrollDroppable:t}),i=Cr({move:r,scrollWindow:n,scrollDroppable:t});return{scroll:function(e){"DRAGGING"===e.phase&&("FLUID"!==e.movementMode?e.scrollJumpRequest&&i(e):o.scroll(e))},start:o.start,stop:o.stop}},Or="data-rbd",Tr=function(){var e=Or+"-drag-handle";return{base:e,draggableId:e+"-draggable-id",contextId:e+"-context-id"}}(),Nr=function(){var e=Or+"-draggable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),Ir=function(){var e=Or+"-droppable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),Pr={contextId:Or+"-scroll-container-context-id"},Rr=function(e,t){return e.map((function(e){var n=e.styles[t];return n?e.selector+" { "+n+" }":""})).join(" ")},Dr=function(e){var t,n=(t=e,function(e){return"["+e+'="'+t+'"]'}),r=function(){var e="\n cursor: -webkit-grab;\n cursor: grab;\n ";return{selector:n(Tr.contextId),styles:{always:"\n -webkit-touch-callout: none;\n -webkit-tap-highlight-color: rgba(0,0,0,0);\n touch-action: manipulation;\n ",resting:e,dragging:"pointer-events: none;",dropAnimating:e}}}(),o=[function(){var e="\n transition: "+In.outOfTheWay+";\n ";return{selector:n(Nr.contextId),styles:{dragging:e,dropAnimating:e,userCancel:e}}}(),r,{selector:n(Ir.contextId),styles:{always:"overflow-anchor: none;"}},{selector:"body",styles:{dragging:"\n cursor: grabbing;\n cursor: -webkit-grabbing;\n user-select: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n overflow-anchor: none;\n "}}];return{always:Rr(o,"always"),resting:Rr(o,"resting"),dragging:Rr(o,"dragging"),dropAnimating:Rr(o,"dropAnimating"),userCancel:Rr(o,"userCancel")}},Ar="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement?r.useLayoutEffect:r.useEffect,jr=function(){var e=document.querySelector("head");return e||xe(!1),e},Mr=function(e){var t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.type="text/css",t};var Lr=function(e){return e&&e.ownerDocument?e.ownerDocument.defaultView:window};function zr(e){return e instanceof Lr(e).HTMLElement}function Fr(e,t){var n="["+Tr.contextId+'="'+e+'"]',r=We(document.querySelectorAll(n));if(!r.length)return null;var o=Ve(r,(function(e){return e.getAttribute(Tr.draggableId)===t}));return o&&zr(o)?o:null}function Br(){var e={draggables:{},droppables:{}},t=[];function n(e){t.length&&t.forEach((function(t){return t(e)}))}function r(t){return e.draggables[t]||null}function o(t){return e.droppables[t]||null}return{draggable:{register:function(t){e.draggables[t.descriptor.id]=t,n({type:"ADDITION",value:t})},update:function(t,n){var r=e.draggables[n.descriptor.id];r&&r.uniqueId===t.uniqueId&&(delete e.draggables[n.descriptor.id],e.draggables[t.descriptor.id]=t)},unregister:function(t){var o=t.descriptor.id,i=r(o);i&&t.uniqueId===i.uniqueId&&(delete e.draggables[o],n({type:"REMOVAL",value:t}))},getById:function(e){var t=r(e);return t||xe(!1),t},findById:r,exists:function(e){return Boolean(r(e))},getAllByType:function(t){return Ze(e.draggables).filter((function(e){return e.descriptor.type===t}))}},droppable:{register:function(t){e.droppables[t.descriptor.id]=t},unregister:function(t){var n=o(t.descriptor.id);n&&t.uniqueId===n.uniqueId&&delete e.droppables[t.descriptor.id]},getById:function(e){var t=o(e);return t||xe(!1),t},findById:o,exists:function(e){return Boolean(o(e))},getAllByType:function(t){return Ze(e.droppables).filter((function(e){return e.descriptor.type===t}))}},subscribe:function(e){return t.push(e),function(){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}},clean:function(){e.draggables={},e.droppables={},t.length=0}}}var Ur=r.createContext(null),qr=function(){var e=document.body;return e||xe(!1),e},$r={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},Zr=function(e){return"rbd-announcement-"+e};var Hr=0,Vr={separator:"::"};function Wr(e,t){return void 0===t&&(t=Vr),Y((function(){return""+e+t.separator+Hr++}),[t.separator,e])}var Gr=r.createContext(null);function Yr(e){0}function Kr(e,t){Yr()}function Qr(e){var t=(0,r.useRef)(e);return(0,r.useEffect)((function(){t.current=e})),t}var Jr,Xr=27,eo=32,to=37,no=38,ro=39,oo=40,io=((Jr={})[13]=!0,Jr[9]=!0,Jr),ao=function(e){io[e.keyCode]&&e.preventDefault()},so=function(){var e="visibilitychange";return"undefined"===typeof document?e:Ve([e,"ms"+e,"webkit"+e,"moz"+e,"o"+e],(function(e){return"on"+e in document}))||e}(),lo=0,co=5;var uo,fo={type:"IDLE"};function po(e){var t=e.cancel,n=e.completed,r=e.getPhase,o=e.setPhase;return[{eventName:"mousemove",fn:function(e){var t=e.button,n=e.clientX,i=e.clientY;if(t===lo){var a={x:n,y:i},s=r();if("DRAGGING"===s.type)return e.preventDefault(),void s.actions.move(a);"PENDING"!==s.type&&xe(!1);var l=s.point;if(c=l,u=a,Math.abs(u.x-c.x)>=co||Math.abs(u.y-c.y)>=co){var c,u;e.preventDefault();var d=s.actions.fluidLift(a);o({type:"DRAGGING",actions:d})}}}},{eventName:"mouseup",fn:function(e){var o=r();"DRAGGING"===o.type?(e.preventDefault(),o.actions.drop({shouldBlockNextClick:!0}),n()):t()}},{eventName:"mousedown",fn:function(e){"DRAGGING"===r().type&&e.preventDefault(),t()}},{eventName:"keydown",fn:function(e){if("PENDING"!==r().type)return e.keyCode===Xr?(e.preventDefault(),void t()):void ao(e);t()}},{eventName:"resize",fn:t},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){"PENDING"===r().type&&t()}},{eventName:"webkitmouseforcedown",fn:function(e){var n=r();"IDLE"===n.type&&xe(!1),n.actions.shouldRespectForcePress()?t():e.preventDefault()}},{eventName:so,fn:t}]}function ho(){}var mo=((uo={})[34]=!0,uo[33]=!0,uo[36]=!0,uo[35]=!0,uo);function go(e,t){function n(){t(),e.cancel()}return[{eventName:"keydown",fn:function(r){return r.keyCode===Xr?(r.preventDefault(),void n()):r.keyCode===eo?(r.preventDefault(),t(),void e.drop()):r.keyCode===oo?(r.preventDefault(),void e.moveDown()):r.keyCode===no?(r.preventDefault(),void e.moveUp()):r.keyCode===ro?(r.preventDefault(),void e.moveRight()):r.keyCode===to?(r.preventDefault(),void e.moveLeft()):void(mo[r.keyCode]?r.preventDefault():ao(r))}},{eventName:"mousedown",fn:n},{eventName:"mouseup",fn:n},{eventName:"click",fn:n},{eventName:"touchstart",fn:n},{eventName:"resize",fn:n},{eventName:"wheel",fn:n,options:{passive:!0}},{eventName:so,fn:n}]}var vo={type:"IDLE"},yo=120,bo=.15;var wo={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function Eo(e,t){if(null==t)return!1;if(Boolean(wo[t.tagName.toLowerCase()]))return!0;var n=t.getAttribute("contenteditable");return"true"===n||""===n||t!==e&&Eo(e,t.parentElement)}function _o(e,t){var n=t.target;return!!zr(n)&&Eo(e,n)}var xo=function(e){return J(e.getBoundingClientRect()).center};var So=function(){var e="matches";return"undefined"===typeof document?e:Ve([e,"msMatchesSelector","webkitMatchesSelector"],(function(e){return e in Element.prototype}))||e}();function Co(e,t){return null==e?null:e[So](t)?e:Co(e.parentElement,t)}function ko(e,t){return e.closest?e.closest(t):Co(e,t)}function Oo(e,t){var n,r=t.target;if(!((n=r)instanceof Lr(n).Element))return null;var o=function(e){return"["+Tr.contextId+'="'+e+'"]'}(e),i=ko(r,o);return i&&zr(i)?i:null}function To(e){e.preventDefault()}function No(e){var t=e.expected,n=e.phase,r=e.isLockActive;e.shouldWarn;return!!r()&&t===n}function Io(e){var t=e.lockAPI,n=e.store,r=e.registry,o=e.draggableId;if(t.isClaimed())return!1;var i=r.draggable.findById(o);return!!i&&(!!i.options.isEnabled&&!!rr(n.getState(),o))}function Po(e){var t=e.lockAPI,n=e.contextId,r=e.store,o=e.registry,a=e.draggableId,s=e.forceSensorStop,l=e.sourceEvent;if(!Io({lockAPI:t,store:r,registry:o,draggableId:a}))return null;var c=o.draggable.getById(a),u=function(e,t){var n="["+Nr.contextId+'="'+e+'"]',r=Ve(We(document.querySelectorAll(n)),(function(e){return e.getAttribute(Nr.id)===t}));return r&&zr(r)?r:null}(n,c.descriptor.id);if(!u)return null;if(l&&!c.options.canDragInteractiveElements&&_o(u,l))return null;var d=t.claim(s||ye),f="PRE_DRAG";function p(){return c.options.shouldRespectForcePress}function h(){return t.isActive(d)}var m=function(e,t){No({expected:e,phase:f,isLockActive:h,shouldWarn:!0})&&r.dispatch(t())}.bind(null,"DRAGGING");function g(e){function n(){t.release(),f="COMPLETED"}function o(t,o){if(void 0===o&&(o={shouldBlockNextClick:!1}),e.cleanup(),o.shouldBlockNextClick){var i=be(window,[{eventName:"click",fn:To,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(i)}n(),r.dispatch(xn({reason:t}))}return"PRE_DRAG"!==f&&(n(),"PRE_DRAG"!==f&&xe(!1)),r.dispatch(un(e.liftActionArgs)),f="DRAGGING",(0,i.Z)({isActive:function(){return No({expected:"DRAGGING",phase:f,isLockActive:h,shouldWarn:!1})},shouldRespectForcePress:p,drop:function(e){return o("DROP",e)},cancel:function(e){return o("CANCEL",e)}},e.actions)}return{isActive:function(){return No({expected:"PRE_DRAG",phase:f,isLockActive:h,shouldWarn:!1})},shouldRespectForcePress:p,fluidLift:function(e){var t=ce((function(e){m((function(){return gn({client:e})}))})),n=g({liftActionArgs:{id:a,clientSelection:e,movementMode:"FLUID"},cleanup:function(){return t.cancel()},actions:{move:t}});return(0,i.Z)({},n,{move:t})},snapLift:function(){var e={moveUp:function(){return m(vn)},moveRight:function(){return m(bn)},moveDown:function(){return m(yn)},moveLeft:function(){return m(wn)}};return g({liftActionArgs:{id:a,clientSelection:xo(u),movementMode:"SNAP"},cleanup:ye,actions:e})},abort:function(){No({expected:"PRE_DRAG",phase:f,isLockActive:h,shouldWarn:!0})&&t.release()}}}var Ro=[function(e){var t=(0,r.useRef)(fo),n=(0,r.useRef)(ye),o=Y((function(){return{eventName:"mousedown",fn:function(t){if(!t.defaultPrevented&&t.button===lo&&!(t.ctrlKey||t.metaKey||t.shiftKey||t.altKey)){var r=e.findClosestDraggableId(t);if(r){var o=e.tryGetLock(r,s,{sourceEvent:t});if(o){t.preventDefault();var i={x:t.clientX,y:t.clientY};n.current(),u(o,i)}}}}}}),[e]),i=Y((function(){return{eventName:"webkitmouseforcewillbegin",fn:function(t){if(!t.defaultPrevented){var n=e.findClosestDraggableId(t);if(n){var r=e.findOptionsForDraggable(n);r&&(r.shouldRespectForcePress||e.canGetLock(n)&&t.preventDefault())}}}}}),[e]),a=K((function(){n.current=be(window,[i,o],{passive:!1,capture:!0})}),[i,o]),s=K((function(){"IDLE"!==t.current.type&&(t.current=fo,n.current(),a())}),[a]),l=K((function(){var e=t.current;s(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()}),[s]),c=K((function(){var e=po({cancel:l,completed:s,getPhase:function(){return t.current},setPhase:function(e){t.current=e}});n.current=be(window,e,{capture:!0,passive:!1})}),[l,s]),u=K((function(e,n){"IDLE"!==t.current.type&&xe(!1),t.current={type:"PENDING",point:n,actions:e},c()}),[c]);Ar((function(){return a(),function(){n.current()}}),[a])},function(e){var t=(0,r.useRef)(ho),n=Y((function(){return{eventName:"keydown",fn:function(n){if(!n.defaultPrevented&&n.keyCode===eo){var r=e.findClosestDraggableId(n);if(r){var i=e.tryGetLock(r,l,{sourceEvent:n});if(i){n.preventDefault();var a=!0,s=i.snapLift();t.current(),t.current=be(window,go(s,l),{capture:!0,passive:!1})}}}function l(){a||xe(!1),a=!1,t.current(),o()}}}}),[e]),o=K((function(){t.current=be(window,[n],{passive:!1,capture:!0})}),[n]);Ar((function(){return o(),function(){t.current()}}),[o])},function(e){var t=(0,r.useRef)(vo),n=(0,r.useRef)(ye),o=K((function(){return t.current}),[]),i=K((function(e){t.current=e}),[]),a=Y((function(){return{eventName:"touchstart",fn:function(t){if(!t.defaultPrevented){var r=e.findClosestDraggableId(t);if(r){var o=e.tryGetLock(r,l,{sourceEvent:t});if(o){var i=t.touches[0],a={x:i.clientX,y:i.clientY};n.current(),f(o,a)}}}}}}),[e]),s=K((function(){n.current=be(window,[a],{capture:!0,passive:!1})}),[a]),l=K((function(){var e=t.current;"IDLE"!==e.type&&("PENDING"===e.type&&clearTimeout(e.longPressTimerId),i(vo),n.current(),s())}),[s,i]),c=K((function(){var e=t.current;l(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()}),[l]),u=K((function(){var e={capture:!0,passive:!1},t={cancel:c,completed:l,getPhase:o},r=be(window,function(e){var t=e.cancel,n=e.completed,r=e.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(e){var n=r();if("DRAGGING"===n.type){n.hasMoved=!0;var o=e.touches[0],i={x:o.clientX,y:o.clientY};e.preventDefault(),n.actions.move(i)}else t()}},{eventName:"touchend",fn:function(e){var o=r();"DRAGGING"===o.type?(e.preventDefault(),o.actions.drop({shouldBlockNextClick:!0}),n()):t()}},{eventName:"touchcancel",fn:function(e){"DRAGGING"===r().type?(e.preventDefault(),t()):t()}},{eventName:"touchforcechange",fn:function(e){var n=r();"IDLE"===n.type&&xe(!1);var o=e.touches[0];if(o&&o.force>=bo){var i=n.actions.shouldRespectForcePress();if("PENDING"!==n.type)return i?n.hasMoved?void e.preventDefault():void t():void e.preventDefault();i&&t()}}},{eventName:so,fn:t}]}(t),e),i=be(window,function(e){var t=e.cancel,n=e.getPhase;return[{eventName:"orientationchange",fn:t},{eventName:"resize",fn:t},{eventName:"contextmenu",fn:function(e){e.preventDefault()}},{eventName:"keydown",fn:function(e){"DRAGGING"===n().type?(e.keyCode===Xr&&e.preventDefault(),t()):t()}},{eventName:so,fn:t}]}(t),e);n.current=function(){r(),i()}}),[c,o,l]),d=K((function(){var e=o();"PENDING"!==e.type&&xe(!1);var t=e.actions.fluidLift(e.point);i({type:"DRAGGING",actions:t,hasMoved:!1})}),[o,i]),f=K((function(e,t){"IDLE"!==o().type&&xe(!1);var n=setTimeout(d,yo);i({type:"PENDING",point:t,actions:e,longPressTimerId:n}),u()}),[u,o,i,d]);Ar((function(){return s(),function(){n.current();var e=o();"PENDING"===e.type&&(clearTimeout(e.longPressTimerId),i(vo))}}),[o,s,i]),Ar((function(){return be(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}])}),[])}];function Do(e){var t=e.contextId,n=e.store,o=e.registry,i=e.customSensors,a=e.enableDefaultSensors,s=[].concat(a?Ro:[],i||[]),l=(0,r.useState)((function(){return function(){var e=null;function t(){e||xe(!1),e=null}return{isClaimed:function(){return Boolean(e)},isActive:function(t){return t===e},claim:function(t){e&&xe(!1);var n={abandon:t};return e=n,n},release:t,tryAbandon:function(){e&&(e.abandon(),t())}}}()}))[0],c=K((function(e,t){e.isDragging&&!t.isDragging&&l.tryAbandon()}),[l]);Ar((function(){var e=n.getState();return n.subscribe((function(){var t=n.getState();c(e,t),e=t}))}),[l,n,c]),Ar((function(){return l.tryAbandon}),[l.tryAbandon]);var u=K((function(e){return Io({lockAPI:l,registry:o,store:n,draggableId:e})}),[l,o,n]),d=K((function(e,r,i){return Po({lockAPI:l,registry:o,contextId:t,store:n,draggableId:e,forceSensorStop:r,sourceEvent:i&&i.sourceEvent?i.sourceEvent:null})}),[t,l,o,n]),f=K((function(e){return function(e,t){var n=Oo(e,t);return n?n.getAttribute(Tr.draggableId):null}(t,e)}),[t]),p=K((function(e){var t=o.draggable.findById(e);return t?t.options:null}),[o.draggable]),h=K((function(){l.isClaimed()&&(l.tryAbandon(),"IDLE"!==n.getState().phase&&n.dispatch(En()))}),[l,n]),m=K(l.isClaimed,[l]),g=Y((function(){return{canGetLock:u,tryGetLock:d,findClosestDraggableId:f,findOptionsForDraggable:p,tryReleaseLock:h,isLockClaimed:m}}),[u,d,f,p,h,m]);Yr();for(var v=0;v<s.length;v++)s[v](g)}var Ao=function(e){return{onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragEnd:e.onDragEnd,onDragUpdate:e.onDragUpdate}};function jo(e){return e.current||xe(!1),e.current}function Mo(e){var t=e.contextId,n=e.setCallbacks,o=e.sensors,s=e.nonce,l=e.dragHandleUsageInstructions,c=(0,r.useRef)(null);Kr();var u=Qr(e),d=K((function(){return Ao(u.current)}),[u]),f=function(e){var t=Y((function(){return Zr(e)}),[e]),n=(0,r.useRef)(null);return(0,r.useEffect)((function(){var e=document.createElement("div");return n.current=e,e.id=t,e.setAttribute("aria-live","assertive"),e.setAttribute("aria-atomic","true"),(0,i.Z)(e.style,$r),qr().appendChild(e),function(){setTimeout((function(){var t=qr();t.contains(e)&&t.removeChild(e),e===n.current&&(n.current=null)}))}}),[t]),K((function(e){var t=n.current;t&&(t.textContent=e)}),[])}(t),h=function(e){var t=e.contextId,n=e.text,o=Wr("hidden-text",{separator:"-"}),i=Y((function(){return"rbd-hidden-text-"+(e={contextId:t,uniqueId:o}).contextId+"-"+e.uniqueId;var e}),[o,t]);return(0,r.useEffect)((function(){var e=document.createElement("div");return e.id=i,e.textContent=n,e.style.display="none",qr().appendChild(e),function(){var t=qr();t.contains(e)&&t.removeChild(e)}}),[i,n]),i}({contextId:t,text:l}),m=function(e,t){var n=Y((function(){return Dr(e)}),[e]),o=(0,r.useRef)(null),i=(0,r.useRef)(null),a=K((0,le.Z)((function(e){var t=i.current;t||xe(!1),t.textContent=e})),[]),s=K((function(e){var t=o.current;t||xe(!1),t.textContent=e}),[]);Ar((function(){(o.current||i.current)&&xe(!1);var r=Mr(t),l=Mr(t);return o.current=r,i.current=l,r.setAttribute(Or+"-always",e),l.setAttribute(Or+"-dynamic",e),jr().appendChild(r),jr().appendChild(l),s(n.always),a(n.resting),function(){var e=function(e){var t=e.current;t||xe(!1),jr().removeChild(t),e.current=null};e(o),e(i)}}),[t,s,a,n.always,n.resting,e]);var l=K((function(){return a(n.dragging)}),[a,n.dragging]),c=K((function(e){a("DROP"!==e?n.userCancel:n.dropAnimating)}),[a,n.dropAnimating,n.userCancel]),u=K((function(){i.current&&a(n.resting)}),[a,n.resting]);return Y((function(){return{dragging:l,dropping:c,resting:u}}),[l,c,u])}(t,s),g=K((function(e){jo(c).dispatch(e)}),[]),v=Y((function(){return(0,a.DE)({publishWhileDragging:dn,updateDroppableScroll:pn,updateDroppableIsEnabled:hn,updateDroppableIsCombineEnabled:mn,collectionStarting:fn},g)}),[g]),y=function(){var e=Y(Br,[]);return(0,r.useEffect)((function(){return function(){requestAnimationFrame(e.clean)}}),[e]),e}(),b=Y((function(){return nr(y,v)}),[y,v]),w=Y((function(){return kr((0,i.Z)({scrollWindow:or,scrollDroppable:b.scrollDroppable},(0,a.DE)({move:gn},g)))}),[b.scrollDroppable,g]),E=function(e){var t=(0,r.useRef)({}),n=(0,r.useRef)(null),o=(0,r.useRef)(null),i=(0,r.useRef)(!1),a=K((function(e,n){var r={id:e,focus:n};return t.current[e]=r,function(){var n=t.current;n[e]!==r&&delete n[e]}}),[]),s=K((function(t){var n=Fr(e,t);n&&n!==document.activeElement&&n.focus()}),[e]),l=K((function(e,t){n.current===e&&(n.current=t)}),[]),c=K((function(){o.current||i.current&&(o.current=requestAnimationFrame((function(){o.current=null;var e=n.current;e&&s(e)})))}),[s]),u=K((function(e){n.current=null;var t=document.activeElement;t&&t.getAttribute(Tr.draggableId)===e&&(n.current=e)}),[]);return Ar((function(){return i.current=!0,function(){i.current=!1;var e=o.current;e&&cancelAnimationFrame(e)}}),[]),Y((function(){return{register:a,tryRecordFocus:u,tryRestoreFocusRecorded:c,tryShiftRecord:l}}),[a,u,c,l])}(t),_=Y((function(){return Yn({announce:f,autoScroller:w,dimensionMarshal:b,focusMarshal:E,getResponders:d,styleMarshal:m})}),[f,w,b,E,d,m]);c.current=_;var x=K((function(){var e=jo(c);"IDLE"!==e.getState().phase&&e.dispatch(En())}),[]),S=K((function(){var e=jo(c).getState();return e.isDragging||"DROP_ANIMATING"===e.phase}),[]);n(Y((function(){return{isDragging:S,tryAbort:x}}),[S,x]));var C=K((function(e){return rr(jo(c).getState(),e)}),[]),k=K((function(){return qt(jo(c).getState())}),[]),O=Y((function(){return{marshal:b,focus:E,contextId:t,canLift:C,isMovementAllowed:k,dragHandleUsageInstructionsId:h,registry:y}}),[t,b,h,E,C,k,y]);return Do({contextId:t,store:_,registry:y,customSensors:o,enableDefaultSensors:!1!==e.enableDefaultSensors}),(0,r.useEffect)((function(){return x}),[x]),r.createElement(Gr.Provider,{value:O},r.createElement(p,{context:Ur,store:_},e.children))}var Lo=0;function zo(e){var t=Y((function(){return""+Lo++}),[]),n=e.dragHandleUsageInstructions||Ne.dragHandleUsageInstructions;return r.createElement(Se,null,(function(o){return r.createElement(Mo,{nonce:e.nonce,contextId:t,setCallbacks:o,dragHandleUsageInstructions:n,enableDefaultSensors:e.enableDefaultSensors,sensors:e.sensors,onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragUpdate:e.onDragUpdate,onDragEnd:e.onDragEnd},e.children)}))}var Fo=function(e){return function(t){return e===t}},Bo=Fo("scroll"),Uo=Fo("auto"),qo=(Fo("visible"),function(e,t){return t(e.overflowX)||t(e.overflowY)}),$o=function(e){var t=window.getComputedStyle(e),n={overflowX:t.overflowX,overflowY:t.overflowY};return qo(n,Bo)||qo(n,Uo)},Zo=function e(t){return null==t||t===document.body||t===document.documentElement?null:$o(t)?t:e(t.parentElement)},Ho=function(e){return{x:e.scrollLeft,y:e.scrollTop}},Vo=function e(t){return!!t&&("fixed"===window.getComputedStyle(t).position||e(t.parentElement))},Wo=function(e){return{closestScrollable:Zo(e),isFixedOnPage:Vo(e)}},Go=function(e){var t=e.ref,n=e.descriptor,r=e.env,o=e.windowScroll,i=e.direction,a=e.isDropDisabled,s=e.isCombineEnabled,l=e.shouldClipSubject,c=r.closestScrollable,u=function(e,t){var n=se(e);if(!t)return n;if(e!==t)return n;var r=n.paddingBox.top-t.scrollTop,o=n.paddingBox.left-t.scrollLeft,i=r+t.scrollHeight,a=o+t.scrollWidth,s=X({top:r,right:a,bottom:i,left:o},n.border);return ne({borderBox:s,margin:n.margin,border:n.border,padding:n.padding})}(t,c),d=ie(u,o),f=function(){if(!c)return null;var e=se(c),t={scrollHeight:c.scrollHeight,scrollWidth:c.scrollWidth};return{client:e,page:ie(e,o),scroll:Ho(c),scrollSize:t,shouldClipSubject:l}}(),p=function(e){var t=e.descriptor,n=e.isEnabled,r=e.isCombineEnabled,o=e.isFixedOnPage,i=e.direction,a=e.client,s=e.page,l=e.closest,c=function(){if(!l)return null;var e=l.scrollSize,t=l.client,n=Qn({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,height:t.paddingBox.height,width:t.paddingBox.width});return{pageMarginBox:l.page.marginBox,frameClient:t,scrollSize:e,shouldClipSubject:l.shouldClipSubject,scroll:{initial:l.scroll,current:l.scroll,max:n,diff:{value:Ie,displacement:Ie}}}}(),u="vertical"===i?ct:ut;return{descriptor:t,isCombineEnabled:r,isFixedOnPage:o,axis:u,isEnabled:n,client:a,page:s,frame:c,subject:qe({page:s,withPlaceholder:null,axis:u,frame:c})}}({descriptor:n,isEnabled:!a,isCombineEnabled:s,isFixedOnPage:r.isFixedOnPage,direction:i,client:u,page:d,closest:f});return p},Yo={passive:!1},Ko={passive:!0},Qo=function(e){return e.shouldPublishImmediately?Yo:Ko};function Jo(e){var t=(0,r.useContext)(e);return t||xe(!1),t}var Xo=function(e){return e&&e.env.closestScrollable||null};function ei(){}var ti={width:0,height:0,margin:{top:0,right:0,bottom:0,left:0}},ni=function(e){var t=e.isAnimatingOpenOnMount,n=e.placeholder,r=e.animate,o=function(e){var t=e.isAnimatingOpenOnMount,n=e.placeholder,r=e.animate;return t||"close"===r?ti:{height:n.client.borderBox.height,width:n.client.borderBox.width,margin:n.client.margin}}({isAnimatingOpenOnMount:t,placeholder:n,animate:r});return{display:n.display,boxSizing:"border-box",width:o.width,height:o.height,marginTop:o.margin.top,marginRight:o.margin.right,marginBottom:o.margin.bottom,marginLeft:o.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:"none"!==r?In.placeholder:null}};var ri=r.memo((function(e){var t=(0,r.useRef)(null),n=K((function(){t.current&&(clearTimeout(t.current),t.current=null)}),[]),o=e.animate,i=e.onTransitionEnd,a=e.onClose,s=e.contextId,l=(0,r.useState)("open"===e.animate),c=l[0],u=l[1];(0,r.useEffect)((function(){return c?"open"!==o?(n(),u(!1),ei):t.current?ei:(t.current=setTimeout((function(){t.current=null,u(!1)})),n):ei}),[o,c,n]);var d=K((function(e){"height"===e.propertyName&&(i(),"close"===o&&a())}),[o,a,i]),f=ni({isAnimatingOpenOnMount:c,animate:e.animate,placeholder:e.placeholder});return r.createElement(e.placeholder.tagName,{style:f,"data-rbd-placeholder-context-id":s,onTransitionEnd:d,ref:e.innerRef})})),oi=r.createContext(null);var ii=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).state={isVisible:Boolean(t.props.on),data:t.props.on,animate:t.props.shouldAnimate&&t.props.on?"open":"none"},t.onClose=function(){"close"===t.state.animate&&t.setState({isVisible:!1})},t}return(0,o.Z)(t,e),t.getDerivedStateFromProps=function(e,t){return e.shouldAnimate?e.on?{isVisible:!0,data:e.on,animate:"open"}:t.isVisible?{isVisible:!0,data:t.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:Boolean(e.on),data:e.on,animate:"none"}},t.prototype.render=function(){if(!this.state.isVisible)return null;var e={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(e)},t}(r.PureComponent),ai={dragging:5e3,dropAnimating:4500},si=function(e,t){return t?In.drop(t.duration):e?In.snap:In.fluid},li=function(e,t){return e?t?kn.opacity.drop:kn.opacity.combining:null},ci=function(e){return null!=e.forceShouldAnimate?e.forceShouldAnimate:"SNAP"===e.mode};function ui(e){return"DRAGGING"===e.type?function(e){var t=e.dimension.client,n=e.offset,r=e.combineWith,o=e.dropping,i=Boolean(r),a=ci(e),s=Boolean(o),l=s?Rn.drop(n,i):Rn.moveTo(n);return{position:"fixed",top:t.marginBox.top,left:t.marginBox.left,boxSizing:"border-box",width:t.borderBox.width,height:t.borderBox.height,transition:si(a,o),transform:l,opacity:li(i,s),zIndex:s?ai.dropAnimating:ai.dragging,pointerEvents:"none"}}(e):(t=e,{transform:Rn.moveTo(t.offset),transition:t.shouldAnimateDisplacement?null:"none"});var t}function di(e){var t=Wr("draggable"),n=e.descriptor,o=e.registry,i=e.getDraggableRef,a=e.canDragInteractiveElements,s=e.shouldRespectForcePress,l=e.isEnabled,c=Y((function(){return{canDragInteractiveElements:a,shouldRespectForcePress:s,isEnabled:l}}),[a,l,s]),u=K((function(e){var t=i();return t||xe(!1),function(e,t,n){void 0===n&&(n=Ie);var r=window.getComputedStyle(t),o=t.getBoundingClientRect(),i=ae(o,r),a=ie(i,n);return{descriptor:e,placeholder:{client:i,tagName:t.tagName.toLowerCase(),display:r.display},displaceBy:{x:i.marginBox.width,y:i.marginBox.height},client:i,page:a}}(n,t,e)}),[n,i]),d=Y((function(){return{uniqueId:t,descriptor:n,options:c,getDimension:u}}),[n,u,c,t]),f=(0,r.useRef)(d),p=(0,r.useRef)(!0);Ar((function(){return o.draggable.register(f.current),function(){return o.draggable.unregister(f.current)}}),[o.draggable]),Ar((function(){if(p.current)p.current=!1;else{var e=f.current;f.current=d,o.draggable.update(d,e)}}),[d,o.draggable])}function fi(e,t,n){Kr()}function pi(e){e.preventDefault()}var hi=function(e,t){return e===t},mi=function(e){var t=e.combine,n=e.destination;return n?n.droppableId:t?t.droppableId:null},gi=function(e){return e.combine?e.combine.draggableId:null},vi=function(e){return e.at&&"COMBINE"===e.at.type?e.at.combine.draggableId:null};function yi(e){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:e,combineWith:null}}var bi={mapped:{type:"SECONDARY",offset:Ie,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:yi(null)}};var wi=H((function(){var e=function(){var e=(0,le.Z)((function(e,t){return{x:e,y:t}})),t=(0,le.Z)((function(e,t,n,r,o){return{isDragging:!0,isClone:t,isDropAnimating:Boolean(o),dropAnimation:o,mode:e,draggingOver:n,combineWith:r,combineTargetFor:null}})),n=(0,le.Z)((function(e,n,r,o,i,a,s){return{mapped:{type:"DRAGGING",dropping:null,draggingOver:i,combineWith:a,mode:n,offset:e,dimension:r,forceShouldAnimate:s,snapshot:t(n,o,i,a,null)}}}));return function(r,o){if(r.isDragging){if(r.critical.draggable.id!==o.draggableId)return null;var i=r.current.client.offset,a=r.dimensions.draggables[o.draggableId],s=Bt(r.impact),l=vi(r.impact),c=r.forceShouldAnimate;return n(e(i.x,i.y),r.movementMode,a,o.isClone,s,l,c)}if("DROP_ANIMATING"===r.phase){var u=r.completed;if(u.result.draggableId!==o.draggableId)return null;var d=o.isClone,f=r.dimensions.draggables[o.draggableId],p=u.result,h=p.mode,m=mi(p),g=gi(p),v={duration:r.dropDuration,curve:Cn.drop,moveTo:r.newHomeClientOffset,opacity:g?kn.opacity.drop:null,scale:g?kn.scale.drop:null};return{mapped:{type:"DRAGGING",offset:r.newHomeClientOffset,dimension:f,dropping:v,draggingOver:m,combineWith:g,mode:h,forceShouldAnimate:null,snapshot:t(h,d,m,g,v)}}}return null}}(),t=function(){var e=(0,le.Z)((function(e,t){return{x:e,y:t}})),t=(0,le.Z)(yi),n=(0,le.Z)((function(e,n,r){return void 0===n&&(n=null),{mapped:{type:"SECONDARY",offset:e,combineTargetFor:n,shouldAnimateDisplacement:r,snapshot:t(n)}}})),r=function(e){return e?n(Ie,e,!0):null},o=function(t,o,i,a){var s=i.displaced.visible[t],l=Boolean(a.inVirtualList&&a.effected[t]),c=et(i),u=c&&c.draggableId===t?o:null;if(!s){if(!l)return r(u);if(i.displaced.invisible[t])return null;var d=Ae(a.displacedBy.point),f=e(d.x,d.y);return n(f,u,!0)}if(l)return r(u);var p=i.displacedBy.point,h=e(p.x,p.y);return n(h,u,s.shouldAnimate)};return function(e,t){if(e.isDragging)return e.critical.draggable.id===t.draggableId?null:o(t.draggableId,e.critical.draggable.id,e.impact,e.afterCritical);if("DROP_ANIMATING"===e.phase){var n=e.completed;return n.result.draggableId===t.draggableId?null:o(t.draggableId,n.result.draggableId,n.impact,n.afterCritical)}return null}}();return function(n,r){return e(n,r)||t(n,r)||bi}}),{dropAnimationFinished:Sn},null,{context:Ur,pure:!0,areStatePropsEqual:hi})((function(e){var t=(0,r.useRef)(null),n=K((function(e){t.current=e}),[]),o=K((function(){return t.current}),[]),i=Jo(Gr),a=i.contextId,s=i.dragHandleUsageInstructionsId,l=i.registry,c=Jo(oi),u=c.type,d=c.droppableId,f=Y((function(){return{id:e.draggableId,index:e.index,type:u,droppableId:d}}),[e.draggableId,e.index,u,d]),p=e.children,h=e.draggableId,m=e.isEnabled,g=e.shouldRespectForcePress,v=e.canDragInteractiveElements,y=e.isClone,b=e.mapped,w=e.dropAnimationFinished;fi(),Yr(),y||di(Y((function(){return{descriptor:f,registry:l,getDraggableRef:o,canDragInteractiveElements:v,shouldRespectForcePress:g,isEnabled:m}}),[f,l,o,v,g,m]));var E=Y((function(){return m?{tabIndex:0,role:"button","aria-describedby":s,"data-rbd-drag-handle-draggable-id":h,"data-rbd-drag-handle-context-id":a,draggable:!1,onDragStart:pi}:null}),[a,s,h,m]),_=K((function(e){"DRAGGING"===b.type&&b.dropping&&"transform"===e.propertyName&&w()}),[w,b]),x=Y((function(){var e=ui(b),t="DRAGGING"===b.type&&b.dropping?_:null;return{innerRef:n,draggableProps:{"data-rbd-draggable-context-id":a,"data-rbd-draggable-id":h,style:e,onTransitionEnd:t},dragHandleProps:E}}),[a,E,h,b,_,n]),S=Y((function(){return{draggableId:f.id,type:f.type,source:{index:f.index,droppableId:f.droppableId}}}),[f.droppableId,f.id,f.index,f.type]);return p(x,b.snapshot,S)}));function Ei(e){return Jo(oi).isUsingCloneFor!==e.draggableId||e.isClone?r.createElement(wi,e):null}function _i(e){var t="boolean"!==typeof e.isDragDisabled||!e.isDragDisabled,n=Boolean(e.disableInteractiveElementBlocking),o=Boolean(e.shouldRespectForcePress);return r.createElement(Ei,(0,i.Z)({},e,{isClone:!1,isEnabled:t,canDragInteractiveElements:n,shouldRespectForcePress:o}))}var xi=function(e,t){return e===t.droppable.type},Si=function(e,t){return t.draggables[e.draggable.id]};var Ci={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:function(){return document.body||xe(!1),document.body}},ki=H((function(){var e={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},t=(0,i.Z)({},e,{shouldAnimatePlaceholder:!1}),n=(0,le.Z)((function(e){return{draggableId:e.id,type:e.type,source:{index:e.index,droppableId:e.droppableId}}})),r=(0,le.Z)((function(r,o,i,a,s,l){var c=s.descriptor.id;if(s.descriptor.droppableId===r){var u=l?{render:l,dragging:n(s.descriptor)}:null,d={isDraggingOver:i,draggingOverWith:i?c:null,draggingFromThisWith:c,isUsingPlaceholder:!0};return{placeholder:s.placeholder,shouldAnimatePlaceholder:!1,snapshot:d,useClone:u}}if(!o)return t;if(!a)return e;var f={isDraggingOver:i,draggingOverWith:c,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:s.placeholder,shouldAnimatePlaceholder:!0,snapshot:f,useClone:null}}));return function(n,o){var i=o.droppableId,a=o.type,s=!o.isDropDisabled,l=o.renderClone;if(n.isDragging){var c=n.critical;if(!xi(a,c))return t;var u=Si(c,n.dimensions),d=Bt(n.impact)===i;return r(i,s,d,d,u,l)}if("DROP_ANIMATING"===n.phase){var f=n.completed;if(!xi(a,f.critical))return t;var p=Si(f.critical,n.dimensions);return r(i,s,mi(f.result)===i,Bt(f.impact)===i,p,l)}if("IDLE"===n.phase&&n.completed&&!n.shouldFlush){var h=n.completed;if(!xi(a,h.critical))return t;var m=Bt(h.impact)===i,g=Boolean(h.impact.at&&"COMBINE"===h.impact.at.type),v=h.critical.droppable.id===i;return m?g?e:t:v?e:t}return t}}),{updateViewportMaxScroll:function(e){return{type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:e}}},null,{context:Ur,pure:!0,areStatePropsEqual:hi})((function(e){var t=(0,r.useContext)(Gr);t||xe(!1);var n=t.contextId,o=t.isMovementAllowed,i=(0,r.useRef)(null),a=(0,r.useRef)(null),s=e.children,l=e.droppableId,c=e.type,u=e.mode,d=e.direction,f=e.ignoreContainerClipping,p=e.isDropDisabled,h=e.isCombineEnabled,m=e.snapshot,g=e.useClone,v=e.updateViewportMaxScroll,y=e.getContainerForClone,b=K((function(){return i.current}),[]),w=K((function(e){i.current=e}),[]),E=(K((function(){return a.current}),[]),K((function(e){a.current=e}),[]));Kr();var _=K((function(){o()&&v({maxScroll:Xn()})}),[o,v]);!function(e){var t=(0,r.useRef)(null),n=Jo(Gr),o=Wr("droppable"),i=n.registry,a=n.marshal,s=Qr(e),l=Y((function(){return{id:e.droppableId,type:e.type,mode:e.mode}}),[e.droppableId,e.mode,e.type]),c=(0,r.useRef)(l),u=Y((function(){return(0,le.Z)((function(e,n){t.current||xe(!1);var r={x:e,y:n};a.updateDroppableScroll(l.id,r)}))}),[l.id,a]),d=K((function(){var e=t.current;return e&&e.env.closestScrollable?Ho(e.env.closestScrollable):Ie}),[]),f=K((function(){var e=d();u(e.x,e.y)}),[d,u]),p=Y((function(){return ce(f)}),[f]),h=K((function(){var e=t.current,n=Xo(e);e&&n||xe(!1),e.scrollOptions.shouldPublishImmediately?f():p()}),[p,f]),m=K((function(e,r){t.current&&xe(!1);var o=s.current,i=o.getDroppableRef();i||xe(!1);var a=Wo(i),c={ref:i,descriptor:l,env:a,scrollOptions:r};t.current=c;var u=Go({ref:i,descriptor:l,env:a,windowScroll:e,direction:o.direction,isDropDisabled:o.isDropDisabled,isCombineEnabled:o.isCombineEnabled,shouldClipSubject:!o.ignoreContainerClipping}),d=a.closestScrollable;return d&&(d.setAttribute(Pr.contextId,n.contextId),d.addEventListener("scroll",h,Qo(c.scrollOptions))),u}),[n.contextId,l,h,s]),g=K((function(){var e=t.current,n=Xo(e);return e&&n||xe(!1),Ho(n)}),[]),v=K((function(){var e=t.current;e||xe(!1);var n=Xo(e);t.current=null,n&&(p.cancel(),n.removeAttribute(Pr.contextId),n.removeEventListener("scroll",h,Qo(e.scrollOptions)))}),[h,p]),y=K((function(e){var n=t.current;n||xe(!1);var r=Xo(n);r||xe(!1),r.scrollTop+=e.y,r.scrollLeft+=e.x}),[]),b=Y((function(){return{getDimensionAndWatchScroll:m,getScrollWhileDragging:g,dragStopped:v,scroll:y}}),[v,m,g,y]),w=Y((function(){return{uniqueId:o,descriptor:l,callbacks:b}}),[b,l,o]);Ar((function(){return c.current=w.descriptor,i.droppable.register(w),function(){t.current&&v(),i.droppable.unregister(w)}}),[b,l,v,w,a,i.droppable]),Ar((function(){t.current&&a.updateDroppableIsEnabled(c.current.id,!e.isDropDisabled)}),[e.isDropDisabled,a]),Ar((function(){t.current&&a.updateDroppableIsCombineEnabled(c.current.id,e.isCombineEnabled)}),[e.isCombineEnabled,a])}({droppableId:l,type:c,mode:u,direction:d,isDropDisabled:p,isCombineEnabled:h,ignoreContainerClipping:f,getDroppableRef:b});var x=r.createElement(ii,{on:e.placeholder,shouldAnimate:e.shouldAnimatePlaceholder},(function(e){var t=e.onClose,o=e.data,i=e.animate;return r.createElement(ri,{placeholder:o,onClose:t,innerRef:E,animate:i,contextId:n,onTransitionEnd:_})})),S=Y((function(){return{innerRef:w,placeholder:x,droppableProps:{"data-rbd-droppable-id":l,"data-rbd-droppable-context-id":n}}}),[n,l,x,w]),C=g?g.dragging.draggableId:null,k=Y((function(){return{droppableId:l,type:c,isUsingCloneFor:C}}),[l,C,c]);return r.createElement(oi.Provider,{value:k},s(S,m),function(){if(!g)return null;var e=g.dragging,t=g.render,n=r.createElement(Ei,{draggableId:e.draggableId,index:e.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},(function(n,r){return t(n,r,e)}));return W.createPortal(n,y())}())}));ki.defaultProps=Ci},63637:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.CopyToClipboard=void 0;var o=s(n(68963)),i=s(n(69886)),a=["text","onCopy","options","children"];function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){g(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function f(e,t){return f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},f(e,t)}function p(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=m(e);if(t){var i=m(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return function(e,t){if(t&&("object"===r(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return h(e)}(this,n)}}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var v=function(e){!function(e,t){if("function"!==typeof t&&null!==t)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&&f(e,t)}(l,e);var t,n,r,s=p(l);function l(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return g(h(e=s.call.apply(s,[this].concat(n))),"onClick",(function(t){var n=e.props,r=n.text,a=n.onCopy,s=n.children,l=n.options,c=o.default.Children.only(s),u=(0,i.default)(r,l);a&&a(r,u),c&&c.props&&"function"===typeof c.props.onClick&&c.props.onClick(t)})),e}return t=l,(n=[{key:"render",value:function(){var e=this.props,t=(e.text,e.onCopy,e.options,e.children),n=u(e,a),r=o.default.Children.only(t);return o.default.cloneElement(r,c(c({},n),{},{onClick:this.onClick}))}}])&&d(t.prototype,n),r&&d(t,r),Object.defineProperty(t,"prototype",{writable:!1}),l}(o.default.PureComponent);t.CopyToClipboard=v,g(v,"defaultProps",{onCopy:void 0,options:void 0})},15942:(e,t,n)=>{"use strict";var r=n(63637).CopyToClipboard;r.CopyToClipboard=r,e.exports=r},9314:(e,t,n)=>{"use strict";var r=n(68963),o=n(29558);function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=new Set,s={};function l(e,t){c(e,t),c(e+"Capture",t)}function c(e,t){for(s[e]=t,e=0;e<t.length;e++)a.add(t[e])}var u=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),d=Object.prototype.hasOwnProperty,f=/^[: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]*$/,p={},h={};function m(e,t,n,r,o,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var g={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){g[e]=new m(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];g[t]=new m(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){g[e]=new m(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){g[e]=new m(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){g[e]=new m(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){g[e]=new m(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){g[e]=new m(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){g[e]=new m(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){g[e]=new m(e,5,!1,e.toLowerCase(),null,!1,!1)}));var v=/[\-:]([a-z])/g;function y(e){return e[1].toUpperCase()}function b(e,t,n,r){var o=g.hasOwnProperty(t)?g[t]:null;(null!==o?0!==o.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null===t||"undefined"===typeof t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!d.call(h,e)||!d.call(p,e)&&(f.test(e)?h[e]=!0:(p[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"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(v,y);g[t]=new m(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(v,y);g[t]=new m(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(v,y);g[t]=new m(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!1,!1)})),g.xlinkHref=new m("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!0,!0)}));var w=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,E=Symbol.for("react.element"),_=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),k=Symbol.for("react.provider"),O=Symbol.for("react.context"),T=Symbol.for("react.forward_ref"),N=Symbol.for("react.suspense"),I=Symbol.for("react.suspense_list"),P=Symbol.for("react.memo"),R=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var D=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var A=Symbol.iterator;function j(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=A&&e[A]||e["@@iterator"])?e:null}var M,L=Object.assign;function z(e){if(void 0===M)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);M=t&&t[1]||""}return"\n"+M+e}var F=!1;function B(e,t){if(!e||F)return"";F=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&"string"===typeof c.stack){for(var o=c.stack.split("\n"),i=r.stack.split("\n"),a=o.length-1,s=i.length-1;1<=a&&0<=s&&o[a]!==i[s];)s--;for(;1<=a&&0<=s;a--,s--)if(o[a]!==i[s]){if(1!==a||1!==s)do{if(a--,0>--s||o[a]!==i[s]){var l="\n"+o[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=a&&0<=s);break}}}finally{F=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?z(e):""}function U(e){switch(e.tag){case 5:return z(e.type);case 16:return z("Lazy");case 13:return z("Suspense");case 19:return z("SuspenseList");case 0:case 2:case 15:return e=B(e.type,!1);case 11:return e=B(e.type.render,!1);case 1:return e=B(e.type,!0);default:return""}}function q(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case x:return"Fragment";case _:return"Portal";case C:return"Profiler";case S:return"StrictMode";case N:return"Suspense";case I:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case O:return(e.displayName||"Context")+".Consumer";case k:return(e._context.displayName||"Context")+".Provider";case T:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case P:return null!==(t=e.displayName||null)?t:q(e.type)||"Memo";case R:t=e._payload,e=e._init;try{return q(e(t))}catch(n){}}return null}function $(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=(e=t.render).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 q(t);case 8:return t===S?"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("function"===typeof t)return t.displayName||t.name||null;if("string"===typeof t)return t}return null}function Z(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function H(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function V(e){e._valueTracker||(e._valueTracker=function(e){var t=H(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function W(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=H(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function G(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Y(e,t){var n=t.checked;return L({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function K(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=Z(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Q(e,t){null!=(t=t.checked)&&b(e,"checked",t,!1)}function J(e,t){Q(e,t);var n=Z(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,Z(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function X(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&G(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Z(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(i(91));return L({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function oe(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(i(92));if(te(n)){if(1<n.length)throw Error(i(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:Z(n)}}function ie(e,t){var n=Z(t.value),r=Z(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ae(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function se(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function le(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?se(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ce,ue,de=(ue=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ce=ce||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ce.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ue(e,t)}))}:ue);function fe(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var pe={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},he=["Webkit","ms","Moz","O"];function me(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||pe.hasOwnProperty(e)&&pe[e]?(""+t).trim():t+"px"}function ge(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=me(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(pe).forEach((function(e){he.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),pe[t]=pe[e]}))}));var ve=L({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 ye(e,t){if(t){if(ve[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(i(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(i(60));if("object"!==typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(i(61))}if(null!=t.style&&"object"!==typeof t.style)throw Error(i(62))}}function be(e,t){if(-1===e.indexOf("-"))return"string"===typeof t.is;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 we=null;function Ee(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var _e=null,xe=null,Se=null;function Ce(e){if(e=wo(e)){if("function"!==typeof _e)throw Error(i(280));var t=e.stateNode;t&&(t=_o(t),_e(e.stateNode,e.type,t))}}function ke(e){xe?Se?Se.push(e):Se=[e]:xe=e}function Oe(){if(xe){var e=xe,t=Se;if(Se=xe=null,Ce(e),t)for(e=0;e<t.length;e++)Ce(t[e])}}function Te(e,t){return e(t)}function Ne(){}var Ie=!1;function Pe(e,t,n){if(Ie)return e(t,n);Ie=!0;try{return Te(e,t,n)}finally{Ie=!1,(null!==xe||null!==Se)&&(Ne(),Oe())}}function Re(e,t){var n=e.stateNode;if(null===n)return null;var r=_o(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!==typeof n)throw Error(i(231,t,typeof n));return n}var De=!1;if(u)try{var Ae={};Object.defineProperty(Ae,"passive",{get:function(){De=!0}}),window.addEventListener("test",Ae,Ae),window.removeEventListener("test",Ae,Ae)}catch(ue){De=!1}function je(e,t,n,r,o,i,a,s,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(u){this.onError(u)}}var Me=!1,Le=null,ze=!1,Fe=null,Be={onError:function(e){Me=!0,Le=e}};function Ue(e,t,n,r,o,i,a,s,l){Me=!1,Le=null,je.apply(Be,arguments)}function qe(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function $e(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function Ze(e){if(qe(e)!==e)throw Error(i(188))}function He(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=qe(e)))throw Error(i(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var a=o.alternate;if(null===a){if(null!==(r=o.return)){n=r;continue}break}if(o.child===a.child){for(a=o.child;a;){if(a===n)return Ze(o),e;if(a===r)return Ze(o),t;a=a.sibling}throw Error(i(188))}if(n.return!==r.return)n=o,r=a;else{for(var s=!1,l=o.child;l;){if(l===n){s=!0,n=o,r=a;break}if(l===r){s=!0,r=o,n=a;break}l=l.sibling}if(!s){for(l=a.child;l;){if(l===n){s=!0,n=a,r=o;break}if(l===r){s=!0,r=a,n=o;break}l=l.sibling}if(!s)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(3!==n.tag)throw Error(i(188));return n.stateNode.current===n?e:t}(e))?Ve(e):null}function Ve(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Ve(e);if(null!==t)return t;e=e.sibling}return null}var We=o.unstable_scheduleCallback,Ge=o.unstable_cancelCallback,Ye=o.unstable_shouldYield,Ke=o.unstable_requestPaint,Qe=o.unstable_now,Je=o.unstable_getCurrentPriorityLevel,Xe=o.unstable_ImmediatePriority,et=o.unstable_UserBlockingPriority,tt=o.unstable_NormalPriority,nt=o.unstable_LowPriority,rt=o.unstable_IdlePriority,ot=null,it=null;var at=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(st(e)/lt|0)|0},st=Math.log,lt=Math.LN2;var ct=64,ut=4194304;function dt(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 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ft(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=268435455&n;if(0!==a){var s=a&~o;0!==s?r=dt(s):0!==(i&=a)&&(r=dt(i))}else 0!==(a=n&~o)?r=dt(a):0!==i&&(r=dt(i));if(0===r)return 0;if(0!==t&&t!==r&&0===(t&o)&&((o=r&-r)>=(i=t&-t)||16===o&&0!==(4194240&i)))return t;if(0!==(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-at(t)),r|=e[n],t&=~o;return r}function pt(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 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 t+5e3;default:return-1}}function ht(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function mt(){var e=ct;return 0===(4194240&(ct<<=1))&&(ct=64),e}function gt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function vt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-at(t)]=n}function yt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-at(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var bt=0;function wt(e){return 1<(e&=-e)?4<e?0!==(268435455&e)?16:536870912:4:1}var Et,_t,xt,St,Ct,kt=!1,Ot=[],Tt=null,Nt=null,It=null,Pt=new Map,Rt=new Map,Dt=[],At="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function jt(e,t){switch(e){case"focusin":case"focusout":Tt=null;break;case"dragenter":case"dragleave":Nt=null;break;case"mouseover":case"mouseout":It=null;break;case"pointerover":case"pointerout":Pt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Rt.delete(t.pointerId)}}function Mt(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},null!==t&&(null!==(t=wo(t))&&_t(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function Lt(e){var t=bo(e.target);if(null!==t){var n=qe(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=$e(n)))return e.blockedOn=t,void Ct(e.priority,(function(){xt(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function zt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Yt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=wo(n))&&_t(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);we=r,n.target.dispatchEvent(r),we=null,t.shift()}return!0}function Ft(e,t,n){zt(e)&&n.delete(t)}function Bt(){kt=!1,null!==Tt&&zt(Tt)&&(Tt=null),null!==Nt&&zt(Nt)&&(Nt=null),null!==It&&zt(It)&&(It=null),Pt.forEach(Ft),Rt.forEach(Ft)}function Ut(e,t){e.blockedOn===t&&(e.blockedOn=null,kt||(kt=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,Bt)))}function qt(e){function t(t){return Ut(t,e)}if(0<Ot.length){Ut(Ot[0],e);for(var n=1;n<Ot.length;n++){var r=Ot[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Tt&&Ut(Tt,e),null!==Nt&&Ut(Nt,e),null!==It&&Ut(It,e),Pt.forEach(t),Rt.forEach(t),n=0;n<Dt.length;n++)(r=Dt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Dt.length&&null===(n=Dt[0]).blockedOn;)Lt(n),null===n.blockedOn&&Dt.shift()}var $t=w.ReactCurrentBatchConfig,Zt=!0;function Ht(e,t,n,r){var o=bt,i=$t.transition;$t.transition=null;try{bt=1,Wt(e,t,n,r)}finally{bt=o,$t.transition=i}}function Vt(e,t,n,r){var o=bt,i=$t.transition;$t.transition=null;try{bt=4,Wt(e,t,n,r)}finally{bt=o,$t.transition=i}}function Wt(e,t,n,r){if(Zt){var o=Yt(e,t,n,r);if(null===o)Zr(e,t,r,Gt,n),jt(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return Tt=Mt(Tt,e,t,n,r,o),!0;case"dragenter":return Nt=Mt(Nt,e,t,n,r,o),!0;case"mouseover":return It=Mt(It,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return Pt.set(i,Mt(Pt.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,Rt.set(i,Mt(Rt.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(jt(e,r),4&t&&-1<At.indexOf(e)){for(;null!==o;){var i=wo(o);if(null!==i&&Et(i),null===(i=Yt(e,t,n,r))&&Zr(e,t,r,Gt,n),i===o)break;o=i}null!==o&&r.stopPropagation()}else Zr(e,t,r,null,n)}}var Gt=null;function Yt(e,t,n,r){if(Gt=null,null!==(e=bo(e=Ee(r))))if(null===(t=qe(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=$e(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Gt=e,null}function Kt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Je()){case Xe:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Qt=null,Jt=null,Xt=null;function en(){if(Xt)return Xt;var e,t,n=Jt,r=n.length,o="value"in Qt?Qt.value:Qt.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return Xt=o.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function rn(){return!1}function on(e){function t(t,n,r,o,i){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(o):o[a]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return L(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var an,sn,ln,cn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},un=on(cn),dn=L({},cn,{view:0,detail:0}),fn=on(dn),pn=L({},dn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Cn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ln&&(ln&&"mousemove"===e.type?(an=e.screenX-ln.screenX,sn=e.screenY-ln.screenY):sn=an=0,ln=e),an)},movementY:function(e){return"movementY"in e?e.movementY:sn}}),hn=on(pn),mn=on(L({},pn,{dataTransfer:0})),gn=on(L({},dn,{relatedTarget:0})),vn=on(L({},cn,{animationName:0,elapsedTime:0,pseudoElement:0})),yn=L({},cn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),bn=on(yn),wn=on(L({},cn,{data:0})),En={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},_n={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},xn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Sn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=xn[e])&&!!t[e]}function Cn(){return Sn}var kn=L({},dn,{key:function(e){if(e.key){var t=En[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?_n[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Cn,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),On=on(kn),Tn=on(L({},pn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Nn=on(L({},dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Cn})),In=on(L({},cn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Pn=L({},pn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Rn=on(Pn),Dn=[9,13,27,32],An=u&&"CompositionEvent"in window,jn=null;u&&"documentMode"in document&&(jn=document.documentMode);var Mn=u&&"TextEvent"in window&&!jn,Ln=u&&(!An||jn&&8<jn&&11>=jn),zn=String.fromCharCode(32),Fn=!1;function Bn(e,t){switch(e){case"keyup":return-1!==Dn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Un(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var qn=!1;var $n={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Zn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!$n[e.type]:"textarea"===t}function Hn(e,t,n,r){ke(r),0<(t=Vr(t,"onChange")).length&&(n=new un("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Vn=null,Wn=null;function Gn(e){zr(e,0)}function Yn(e){if(W(Eo(e)))return e}function Kn(e,t){if("change"===e)return t}var Qn=!1;if(u){var Jn;if(u){var Xn="oninput"in document;if(!Xn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Xn="function"===typeof er.oninput}Jn=Xn}else Jn=!1;Qn=Jn&&(!document.documentMode||9<document.documentMode)}function tr(){Vn&&(Vn.detachEvent("onpropertychange",nr),Wn=Vn=null)}function nr(e){if("value"===e.propertyName&&Yn(Wn)){var t=[];Hn(t,Wn,e,Ee(e)),Pe(Gn,t)}}function rr(e,t,n){"focusin"===e?(tr(),Wn=n,(Vn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function or(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Yn(Wn)}function ir(e,t){if("click"===e)return Yn(t)}function ar(e,t){if("input"===e||"change"===e)return Yn(t)}var sr="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t};function lr(e,t){if(sr(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!d.call(t,o)||!sr(e[o],t[o]))return!1}return!0}function cr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ur(e,t){var n,r=cr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=cr(r)}}function dr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function fr(){for(var e=window,t=G();t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=G((e=t.contentWindow).document)}return t}function pr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function hr(e){var t=fr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&dr(n.ownerDocument.documentElement,n)){if(null!==r&&pr(n))if(t=r.start,void 0===(e=r.end)&&(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).getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=void 0===r.end?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=ur(n,i);var a=ur(n,r);o&&a&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),i>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;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"===typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var mr=u&&"documentMode"in document&&11>=document.documentMode,gr=null,vr=null,yr=null,br=!1;function wr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;br||null==gr||gr!==G(r)||("selectionStart"in(r=gr)&&pr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},yr&&lr(yr,r)||(yr=r,0<(r=Vr(vr,"onSelect")).length&&(t=new un("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=gr)))}function Er(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var _r={animationend:Er("Animation","AnimationEnd"),animationiteration:Er("Animation","AnimationIteration"),animationstart:Er("Animation","AnimationStart"),transitionend:Er("Transition","TransitionEnd")},xr={},Sr={};function Cr(e){if(xr[e])return xr[e];if(!_r[e])return e;var t,n=_r[e];for(t in n)if(n.hasOwnProperty(t)&&t in Sr)return xr[e]=n[t];return e}u&&(Sr=document.createElement("div").style,"AnimationEvent"in window||(delete _r.animationend.animation,delete _r.animationiteration.animation,delete _r.animationstart.animation),"TransitionEvent"in window||delete _r.transitionend.transition);var kr=Cr("animationend"),Or=Cr("animationiteration"),Tr=Cr("animationstart"),Nr=Cr("transitionend"),Ir=new Map,Pr="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Rr(e,t){Ir.set(e,t),l(t,[e])}for(var Dr=0;Dr<Pr.length;Dr++){var Ar=Pr[Dr];Rr(Ar.toLowerCase(),"on"+(Ar[0].toUpperCase()+Ar.slice(1)))}Rr(kr,"onAnimationEnd"),Rr(Or,"onAnimationIteration"),Rr(Tr,"onAnimationStart"),Rr("dblclick","onDoubleClick"),Rr("focusin","onFocus"),Rr("focusout","onBlur"),Rr(Nr,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var jr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Mr=new Set("cancel close invalid load scroll toggle".split(" ").concat(jr));function Lr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,a,s,l,c){if(Ue.apply(this,arguments),Me){if(!Me)throw Error(i(198));var u=Le;Me=!1,Le=null,ze||(ze=!0,Fe=u)}}(r,t,void 0,e),e.currentTarget=null}function zr(e,t){t=0!==(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,c=s.currentTarget;if(s=s.listener,l!==i&&o.isPropagationStopped())break e;Lr(o,s,c),i=l}else for(a=0;a<r.length;a++){if(l=(s=r[a]).instance,c=s.currentTarget,s=s.listener,l!==i&&o.isPropagationStopped())break e;Lr(o,s,c),i=l}}}if(ze)throw e=Fe,ze=!1,Fe=null,e}function Fr(e,t){var n=t[go];void 0===n&&(n=t[go]=new Set);var r=e+"__bubble";n.has(r)||($r(t,e,2,!1),n.add(r))}function Br(e,t,n){var r=0;t&&(r|=4),$r(n,e,r,t)}var Ur="_reactListening"+Math.random().toString(36).slice(2);function qr(e){if(!e[Ur]){e[Ur]=!0,a.forEach((function(t){"selectionchange"!==t&&(Mr.has(t)||Br(t,!1,e),Br(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Ur]||(t[Ur]=!0,Br("selectionchange",!1,t))}}function $r(e,t,n,r){switch(Kt(t)){case 1:var o=Ht;break;case 4:o=Vt;break;default:o=Wt}n=o.bind(null,t,n,e),o=void 0,!De||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Zr(e,t,n,r,o){var i=r;if(0===(1&t)&&0===(2&t)&&null!==r)e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var s=r.stateNode.containerInfo;if(s===o||8===s.nodeType&&s.parentNode===o)break;if(4===a)for(a=r.return;null!==a;){var l=a.tag;if((3===l||4===l)&&((l=a.stateNode.containerInfo)===o||8===l.nodeType&&l.parentNode===o))return;a=a.return}for(;null!==s;){if(null===(a=bo(s)))return;if(5===(l=a.tag)||6===l){r=i=a;continue e}s=s.parentNode}}r=r.return}Pe((function(){var r=i,o=Ee(n),a=[];e:{var s=Ir.get(e);if(void 0!==s){var l=un,c=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":l=On;break;case"focusin":c="focus",l=gn;break;case"focusout":c="blur",l=gn;break;case"beforeblur":case"afterblur":l=gn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=hn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=mn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Nn;break;case kr:case Or:case Tr:l=vn;break;case Nr:l=In;break;case"scroll":l=fn;break;case"wheel":l=Rn;break;case"copy":case"cut":case"paste":l=bn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=Tn}var u=0!==(4&t),d=!u&&"scroll"===e,f=u?null!==s?s+"Capture":null:s;u=[];for(var p,h=r;null!==h;){var m=(p=h).stateNode;if(5===p.tag&&null!==m&&(p=m,null!==f&&(null!=(m=Re(h,f))&&u.push(Hr(h,m,p)))),d)break;h=h.return}0<u.length&&(s=new l(s,c,null,n,o),a.push({event:s,listeners:u}))}}if(0===(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===we||!(c=n.relatedTarget||n.fromElement)||!bo(c)&&!c[mo])&&(l||s)&&(s=o.window===o?o:(s=o.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(c=(c=n.relatedTarget||n.toElement)?bo(c):null)&&(c!==(d=qe(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(l=null,c=r),l!==c)){if(u=hn,m="onMouseLeave",f="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(u=Tn,m="onPointerLeave",f="onPointerEnter",h="pointer"),d=null==l?s:Eo(l),p=null==c?s:Eo(c),(s=new u(m,h+"leave",l,n,o)).target=d,s.relatedTarget=p,m=null,bo(o)===r&&((u=new u(f,h+"enter",c,n,o)).target=p,u.relatedTarget=d,m=u),d=m,l&&c)e:{for(f=c,h=0,p=u=l;p;p=Wr(p))h++;for(p=0,m=f;m;m=Wr(m))p++;for(;0<h-p;)u=Wr(u),h--;for(;0<p-h;)f=Wr(f),p--;for(;h--;){if(u===f||null!==f&&u===f.alternate)break e;u=Wr(u),f=Wr(f)}u=null}else u=null;null!==l&&Gr(a,s,l,u,!1),null!==c&&null!==d&&Gr(a,d,c,u,!0)}if("select"===(l=(s=r?Eo(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var g=Kn;else if(Zn(s))if(Qn)g=ar;else{g=or;var v=rr}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(g=ir);switch(g&&(g=g(e,r))?Hn(a,g,n,o):(v&&v(e,s,r),"focusout"===e&&(v=s._wrapperState)&&v.controlled&&"number"===s.type&&ee(s,"number",s.value)),v=r?Eo(r):window,e){case"focusin":(Zn(v)||"true"===v.contentEditable)&&(gr=v,vr=r,yr=null);break;case"focusout":yr=vr=gr=null;break;case"mousedown":br=!0;break;case"contextmenu":case"mouseup":case"dragend":br=!1,wr(a,n,o);break;case"selectionchange":if(mr)break;case"keydown":case"keyup":wr(a,n,o)}var y;if(An)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else qn?Bn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Ln&&"ko"!==n.locale&&(qn||"onCompositionStart"!==b?"onCompositionEnd"===b&&qn&&(y=en()):(Jt="value"in(Qt=o)?Qt.value:Qt.textContent,qn=!0)),0<(v=Vr(r,b)).length&&(b=new wn(b,e,null,n,o),a.push({event:b,listeners:v}),y?b.data=y:null!==(y=Un(n))&&(b.data=y))),(y=Mn?function(e,t){switch(e){case"compositionend":return Un(t);case"keypress":return 32!==t.which?null:(Fn=!0,zn);case"textInput":return(e=t.data)===zn&&Fn?null:e;default:return null}}(e,n):function(e,t){if(qn)return"compositionend"===e||!An&&Bn(e,t)?(e=en(),Xt=Jt=Qt=null,qn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Ln&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Vr(r,"onBeforeInput")).length&&(o=new wn("onBeforeInput","beforeinput",null,n,o),a.push({event:o,listeners:r}),o.data=y))}zr(a,t)}))}function Hr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Vr(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,i=o.stateNode;5===o.tag&&null!==i&&(o=i,null!=(i=Re(e,n))&&r.unshift(Hr(e,i,o)),null!=(i=Re(e,t))&&r.push(Hr(e,i,o))),e=e.return}return r}function Wr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Gr(e,t,n,r,o){for(var i=t._reactName,a=[];null!==n&&n!==r;){var s=n,l=s.alternate,c=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==c&&(s=c,o?null!=(l=Re(n,i))&&a.unshift(Hr(n,l,s)):o||null!=(l=Re(n,i))&&a.push(Hr(n,l,s))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var Yr=/\r\n?/g,Kr=/\u0000|\uFFFD/g;function Qr(e){return("string"===typeof e?e:""+e).replace(Yr,"\n").replace(Kr,"")}function Jr(e,t,n){if(t=Qr(t),Qr(e)!==t&&n)throw Error(i(425))}function Xr(){}var eo=null,to=null;function no(e,t){return"textarea"===e||"noscript"===e||"string"===typeof t.children||"number"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ro="function"===typeof setTimeout?setTimeout:void 0,oo="function"===typeof clearTimeout?clearTimeout:void 0,io="function"===typeof Promise?Promise:void 0,ao="function"===typeof queueMicrotask?queueMicrotask:"undefined"!==typeof io?function(e){return io.resolve(null).then(e).catch(so)}:ro;function so(e){setTimeout((function(){throw e}))}function lo(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)){if(0===r)return e.removeChild(o),void qt(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);qt(t)}function co(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function uo(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var fo=Math.random().toString(36).slice(2),po="__reactFiber$"+fo,ho="__reactProps$"+fo,mo="__reactContainer$"+fo,go="__reactEvents$"+fo,vo="__reactListeners$"+fo,yo="__reactHandles$"+fo;function bo(e){var t=e[po];if(t)return t;for(var n=e.parentNode;n;){if(t=n[mo]||n[po]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=uo(e);null!==e;){if(n=e[po])return n;e=uo(e)}return t}n=(e=n).parentNode}return null}function wo(e){return!(e=e[po]||e[mo])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function Eo(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(i(33))}function _o(e){return e[ho]||null}var xo=[],So=-1;function Co(e){return{current:e}}function ko(e){0>So||(e.current=xo[So],xo[So]=null,So--)}function Oo(e,t){So++,xo[So]=e.current,e.current=t}var To={},No=Co(To),Io=Co(!1),Po=To;function Ro(e,t){var n=e.type.contextTypes;if(!n)return To;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Do(e){return null!==(e=e.childContextTypes)&&void 0!==e}function Ao(){ko(Io),ko(No)}function jo(e,t,n){if(No.current!==To)throw Error(i(168));Oo(No,t),Oo(Io,n)}function Mo(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!==typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in t))throw Error(i(108,$(e)||"Unknown",o));return L({},n,r)}function Lo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||To,Po=No.current,Oo(No,e),Oo(Io,Io.current),!0}function zo(e,t,n){var r=e.stateNode;if(!r)throw Error(i(169));n?(e=Mo(e,t,Po),r.__reactInternalMemoizedMergedChildContext=e,ko(Io),ko(No),Oo(No,e)):ko(Io),Oo(Io,n)}var Fo=null,Bo=!1,Uo=!1;function qo(e){null===Fo?Fo=[e]:Fo.push(e)}function $o(){if(!Uo&&null!==Fo){Uo=!0;var e=0,t=bt;try{var n=Fo;for(bt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Fo=null,Bo=!1}catch(o){throw null!==Fo&&(Fo=Fo.slice(e+1)),We(Xe,$o),o}finally{bt=t,Uo=!1}}return null}var Zo=[],Ho=0,Vo=null,Wo=0,Go=[],Yo=0,Ko=null,Qo=1,Jo="";function Xo(e,t){Zo[Ho++]=Wo,Zo[Ho++]=Vo,Vo=e,Wo=t}function ei(e,t,n){Go[Yo++]=Qo,Go[Yo++]=Jo,Go[Yo++]=Ko,Ko=e;var r=Qo;e=Jo;var o=32-at(r)-1;r&=~(1<<o),n+=1;var i=32-at(t)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,Qo=1<<32-at(t)+o|n<<o|r,Jo=i+e}else Qo=1<<i|n<<o|r,Jo=e}function ti(e){null!==e.return&&(Xo(e,1),ei(e,1,0))}function ni(e){for(;e===Vo;)Vo=Zo[--Ho],Zo[Ho]=null,Wo=Zo[--Ho],Zo[Ho]=null;for(;e===Ko;)Ko=Go[--Yo],Go[Yo]=null,Jo=Go[--Yo],Go[Yo]=null,Qo=Go[--Yo],Go[Yo]=null}var ri=null,oi=null,ii=!1,ai=null;function si(e,t){var n=Pc(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function li(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,ri=e,oi=co(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,ri=e,oi=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Ko?{id:Qo,overflow:Jo}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Pc(18,null,null,0)).stateNode=t,n.return=e,e.child=n,ri=e,oi=null,!0);default:return!1}}function ci(e){return 0!==(1&e.mode)&&0===(128&e.flags)}function ui(e){if(ii){var t=oi;if(t){var n=t;if(!li(e,t)){if(ci(e))throw Error(i(418));t=co(n.nextSibling);var r=ri;t&&li(e,t)?si(r,n):(e.flags=-4097&e.flags|2,ii=!1,ri=e)}}else{if(ci(e))throw Error(i(418));e.flags=-4097&e.flags|2,ii=!1,ri=e}}}function di(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ri=e}function fi(e){if(e!==ri)return!1;if(!ii)return di(e),ii=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!no(e.type,e.memoizedProps)),t&&(t=oi)){if(ci(e))throw pi(),Error(i(418));for(;t;)si(e,t),t=co(t.nextSibling)}if(di(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(i(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){oi=co(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}oi=null}}else oi=ri?co(e.stateNode.nextSibling):null;return!0}function pi(){for(var e=oi;e;)e=co(e.nextSibling)}function hi(){oi=ri=null,ii=!1}function mi(e){null===ai?ai=[e]:ai.push(e)}var gi=w.ReactCurrentBatchConfig;function vi(e,t,n){if(null!==(e=n.ref)&&"function"!==typeof e&&"object"!==typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(i(309));var r=n.stateNode}if(!r)throw Error(i(147,e));var o=r,a=""+e;return null!==t&&null!==t.ref&&"function"===typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=o.refs;null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!==typeof e)throw Error(i(284));if(!n._owner)throw Error(i(290,e))}return e}function yi(e,t){throw e=Object.prototype.toString.call(t),Error(i(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function bi(e){return(0,e._init)(e._payload)}function wi(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=Dc(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function s(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Lc(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function c(e,t,n,r){var i=n.type;return i===x?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===i||"object"===typeof i&&null!==i&&i.$$typeof===R&&bi(i)===t.type)?((r=o(t,n.props)).ref=vi(e,t,n),r.return=e,r):((r=Ac(n.type,n.key,n.props,null,e.mode,r)).ref=vi(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=zc(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function d(e,t,n,r,i){return null===t||7!==t.tag?((t=jc(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function f(e,t,n){if("string"===typeof t&&""!==t||"number"===typeof t)return(t=Lc(""+t,e.mode,n)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case E:return(n=Ac(t.type,t.key,t.props,null,e.mode,n)).ref=vi(e,null,t),n.return=e,n;case _:return(t=zc(t,e.mode,n)).return=e,t;case R:return f(e,(0,t._init)(t._payload),n)}if(te(t)||j(t))return(t=jc(t,e.mode,n,null)).return=e,t;yi(e,t)}return null}function p(e,t,n,r){var o=null!==t?t.key:null;if("string"===typeof n&&""!==n||"number"===typeof n)return null!==o?null:l(e,t,""+n,r);if("object"===typeof n&&null!==n){switch(n.$$typeof){case E:return n.key===o?c(e,t,n,r):null;case _:return n.key===o?u(e,t,n,r):null;case R:return p(e,t,(o=n._init)(n._payload),r)}if(te(n)||j(n))return null!==o?null:d(e,t,n,r,null);yi(e,n)}return null}function h(e,t,n,r,o){if("string"===typeof r&&""!==r||"number"===typeof r)return l(t,e=e.get(n)||null,""+r,o);if("object"===typeof r&&null!==r){switch(r.$$typeof){case E:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o);case _:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o);case R:return h(e,t,n,(0,r._init)(r._payload),o)}if(te(r)||j(r))return d(t,e=e.get(n)||null,r,o,null);yi(t,r)}return null}function m(o,i,s,l){for(var c=null,u=null,d=i,m=i=0,g=null;null!==d&&m<s.length;m++){d.index>m?(g=d,d=null):g=d.sibling;var v=p(o,d,s[m],l);if(null===v){null===d&&(d=g);break}e&&d&&null===v.alternate&&t(o,d),i=a(v,i,m),null===u?c=v:u.sibling=v,u=v,d=g}if(m===s.length)return n(o,d),ii&&Xo(o,m),c;if(null===d){for(;m<s.length;m++)null!==(d=f(o,s[m],l))&&(i=a(d,i,m),null===u?c=d:u.sibling=d,u=d);return ii&&Xo(o,m),c}for(d=r(o,d);m<s.length;m++)null!==(g=h(d,o,m,s[m],l))&&(e&&null!==g.alternate&&d.delete(null===g.key?m:g.key),i=a(g,i,m),null===u?c=g:u.sibling=g,u=g);return e&&d.forEach((function(e){return t(o,e)})),ii&&Xo(o,m),c}function g(o,s,l,c){var u=j(l);if("function"!==typeof u)throw Error(i(150));if(null==(l=u.call(l)))throw Error(i(151));for(var d=u=null,m=s,g=s=0,v=null,y=l.next();null!==m&&!y.done;g++,y=l.next()){m.index>g?(v=m,m=null):v=m.sibling;var b=p(o,m,y.value,c);if(null===b){null===m&&(m=v);break}e&&m&&null===b.alternate&&t(o,m),s=a(b,s,g),null===d?u=b:d.sibling=b,d=b,m=v}if(y.done)return n(o,m),ii&&Xo(o,g),u;if(null===m){for(;!y.done;g++,y=l.next())null!==(y=f(o,y.value,c))&&(s=a(y,s,g),null===d?u=y:d.sibling=y,d=y);return ii&&Xo(o,g),u}for(m=r(o,m);!y.done;g++,y=l.next())null!==(y=h(m,o,g,y.value,c))&&(e&&null!==y.alternate&&m.delete(null===y.key?g:y.key),s=a(y,s,g),null===d?u=y:d.sibling=y,d=y);return e&&m.forEach((function(e){return t(o,e)})),ii&&Xo(o,g),u}return function e(r,i,a,l){if("object"===typeof a&&null!==a&&a.type===x&&null===a.key&&(a=a.props.children),"object"===typeof a&&null!==a){switch(a.$$typeof){case E:e:{for(var c=a.key,u=i;null!==u;){if(u.key===c){if((c=a.type)===x){if(7===u.tag){n(r,u.sibling),(i=o(u,a.props.children)).return=r,r=i;break e}}else if(u.elementType===c||"object"===typeof c&&null!==c&&c.$$typeof===R&&bi(c)===u.type){n(r,u.sibling),(i=o(u,a.props)).ref=vi(r,u,a),i.return=r,r=i;break e}n(r,u);break}t(r,u),u=u.sibling}a.type===x?((i=jc(a.props.children,r.mode,l,a.key)).return=r,r=i):((l=Ac(a.type,a.key,a.props,null,r.mode,l)).ref=vi(r,i,a),l.return=r,r=l)}return s(r);case _:e:{for(u=a.key;null!==i;){if(i.key===u){if(4===i.tag&&i.stateNode.containerInfo===a.containerInfo&&i.stateNode.implementation===a.implementation){n(r,i.sibling),(i=o(i,a.children||[])).return=r,r=i;break e}n(r,i);break}t(r,i),i=i.sibling}(i=zc(a,r.mode,l)).return=r,r=i}return s(r);case R:return e(r,i,(u=a._init)(a._payload),l)}if(te(a))return m(r,i,a,l);if(j(a))return g(r,i,a,l);yi(r,a)}return"string"===typeof a&&""!==a||"number"===typeof a?(a=""+a,null!==i&&6===i.tag?(n(r,i.sibling),(i=o(i,a)).return=r,r=i):(n(r,i),(i=Lc(a,r.mode,l)).return=r,r=i),s(r)):n(r,i)}}var Ei=wi(!0),_i=wi(!1),xi=Co(null),Si=null,Ci=null,ki=null;function Oi(){ki=Ci=Si=null}function Ti(e){var t=xi.current;ko(xi),e._currentValue=t}function Ni(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Ii(e,t){Si=e,ki=Ci=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(bs=!0),e.firstContext=null)}function Pi(e){var t=e._currentValue;if(ki!==e)if(e={context:e,memoizedValue:t,next:null},null===Ci){if(null===Si)throw Error(i(308));Ci=e,Si.dependencies={lanes:0,firstContext:e}}else Ci=Ci.next=e;return t}var Ri=null;function Di(e){null===Ri?Ri=[e]:Ri.push(e)}function Ai(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,Di(t)):(n.next=o.next,o.next=n),t.interleaved=n,ji(e,r)}function ji(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Mi=!1;function Li(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function zi(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Fi(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Bi(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!==(2&Tl)){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,ji(e,n)}return null===(o=r.interleaved)?(t.next=t,Di(r)):(t.next=o.next,o.next=t),r.interleaved=t,ji(e,n)}function Ui(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!==(4194240&n))){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}function qi(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===i?o=i=a:i=i.next=a,n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function $i(e,t,n,r){var o=e.updateQueue;Mi=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,s=o.shared.pending;if(null!==s){o.shared.pending=null;var l=s,c=l.next;l.next=null,null===a?i=c:a.next=c,a=l;var u=e.alternate;null!==u&&((s=(u=u.updateQueue).lastBaseUpdate)!==a&&(null===s?u.firstBaseUpdate=c:s.next=c,u.lastBaseUpdate=l))}if(null!==i){var d=o.baseState;for(a=0,u=c=l=null,s=i;;){var f=s.lane,p=s.eventTime;if((r&f)===f){null!==u&&(u=u.next={eventTime:p,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var h=e,m=s;switch(f=t,p=n,m.tag){case 1:if("function"===typeof(h=m.payload)){d=h.call(p,d,f);break e}d=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null===(f="function"===typeof(h=m.payload)?h.call(p,d,f):h)||void 0===f)break e;d=L({},d,f);break e;case 2:Mi=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(f=o.effects)?o.effects=[s]:f.push(s))}else p={eventTime:p,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===u?(c=u=p,l=d):u=u.next=p,a|=f;if(null===(s=s.next)){if(null===(s=o.shared.pending))break;s=(f=s).next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}if(null===u&&(l=d),o.baseState=l,o.firstBaseUpdate=c,o.lastBaseUpdate=u,null!==(t=o.shared.interleaved)){o=t;do{a|=o.lane,o=o.next}while(o!==t)}else null===i&&(o.shared.lanes=0);Ml|=a,e.lanes=a,e.memoizedState=d}}function Zi(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=n,"function"!==typeof o)throw Error(i(191,o));o.call(r)}}}var Hi={},Vi=Co(Hi),Wi=Co(Hi),Gi=Co(Hi);function Yi(e){if(e===Hi)throw Error(i(174));return e}function Ki(e,t){switch(Oo(Gi,t),Oo(Wi,e),Oo(Vi,Hi),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:le(null,"");break;default:t=le(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}ko(Vi),Oo(Vi,t)}function Qi(){ko(Vi),ko(Wi),ko(Gi)}function Ji(e){Yi(Gi.current);var t=Yi(Vi.current),n=le(t,e.type);t!==n&&(Oo(Wi,e),Oo(Vi,n))}function Xi(e){Wi.current===e&&(ko(Vi),ko(Wi))}var ea=Co(0);function ta(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var na=[];function ra(){for(var e=0;e<na.length;e++)na[e]._workInProgressVersionPrimary=null;na.length=0}var oa=w.ReactCurrentDispatcher,ia=w.ReactCurrentBatchConfig,aa=0,sa=null,la=null,ca=null,ua=!1,da=!1,fa=0,pa=0;function ha(){throw Error(i(321))}function ma(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!sr(e[n],t[n]))return!1;return!0}function ga(e,t,n,r,o,a){if(aa=a,sa=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,oa.current=null===e||null===e.memoizedState?Xa:es,e=n(r,o),da){a=0;do{if(da=!1,fa=0,25<=a)throw Error(i(301));a+=1,ca=la=null,t.updateQueue=null,oa.current=ts,e=n(r,o)}while(da)}if(oa.current=Ja,t=null!==la&&null!==la.next,aa=0,ca=la=sa=null,ua=!1,t)throw Error(i(300));return e}function va(){var e=0!==fa;return fa=0,e}function ya(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ca?sa.memoizedState=ca=e:ca=ca.next=e,ca}function ba(){if(null===la){var e=sa.alternate;e=null!==e?e.memoizedState:null}else e=la.next;var t=null===ca?sa.memoizedState:ca.next;if(null!==t)ca=t,la=e;else{if(null===e)throw Error(i(310));e={memoizedState:(la=e).memoizedState,baseState:la.baseState,baseQueue:la.baseQueue,queue:la.queue,next:null},null===ca?sa.memoizedState=ca=e:ca=ca.next=e}return ca}function wa(e,t){return"function"===typeof t?t(e):t}function Ea(e){var t=ba(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=la,o=r.baseQueue,a=n.pending;if(null!==a){if(null!==o){var s=o.next;o.next=a.next,a.next=s}r.baseQueue=o=a,n.pending=null}if(null!==o){a=o.next,r=r.baseState;var l=s=null,c=null,u=a;do{var d=u.lane;if((aa&d)===d)null!==c&&(c=c.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var f={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};null===c?(l=c=f,s=r):c=c.next=f,sa.lanes|=d,Ml|=d}u=u.next}while(null!==u&&u!==a);null===c?s=r:c.next=l,sr(r,t.memoizedState)||(bs=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=c,n.lastRenderedState=r}if(null!==(e=n.interleaved)){o=e;do{a=o.lane,sa.lanes|=a,Ml|=a,o=o.next}while(o!==e)}else null===o&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function _a(e){var t=ba(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,a=t.memoizedState;if(null!==o){n.pending=null;var s=o=o.next;do{a=e(a,s.action),s=s.next}while(s!==o);sr(a,t.memoizedState)||(bs=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function xa(){}function Sa(e,t){var n=sa,r=ba(),o=t(),a=!sr(r.memoizedState,o);if(a&&(r.memoizedState=o,bs=!0),r=r.queue,Ma(Oa.bind(null,n,r,e),[e]),r.getSnapshot!==t||a||null!==ca&&1&ca.memoizedState.tag){if(n.flags|=2048,Pa(9,ka.bind(null,n,r,o,t),void 0,null),null===Nl)throw Error(i(349));0!==(30&aa)||Ca(n,t,o)}return o}function Ca(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=sa.updateQueue)?(t={lastEffect:null,stores:null},sa.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function ka(e,t,n,r){t.value=n,t.getSnapshot=r,Ta(t)&&Na(e)}function Oa(e,t,n){return n((function(){Ta(t)&&Na(e)}))}function Ta(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!sr(e,n)}catch(r){return!0}}function Na(e){var t=ji(e,1);null!==t&&nc(t,e,1,-1)}function Ia(e){var t=ya();return"function"===typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:wa,lastRenderedState:e},t.queue=e,e=e.dispatch=Ga.bind(null,sa,e),[t.memoizedState,e]}function Pa(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=sa.updateQueue)?(t={lastEffect:null,stores:null},sa.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Ra(){return ba().memoizedState}function Da(e,t,n,r){var o=ya();sa.flags|=e,o.memoizedState=Pa(1|t,n,void 0,void 0===r?null:r)}function Aa(e,t,n,r){var o=ba();r=void 0===r?null:r;var i=void 0;if(null!==la){var a=la.memoizedState;if(i=a.destroy,null!==r&&ma(r,a.deps))return void(o.memoizedState=Pa(t,n,i,r))}sa.flags|=e,o.memoizedState=Pa(1|t,n,i,r)}function ja(e,t){return Da(8390656,8,e,t)}function Ma(e,t){return Aa(2048,8,e,t)}function La(e,t){return Aa(4,2,e,t)}function za(e,t){return Aa(4,4,e,t)}function Fa(e,t){return"function"===typeof t?(e=e(),t(e),function(){t(null)}):null!==t&&void 0!==t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Ba(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Aa(4,4,Fa.bind(null,t,e),n)}function Ua(){}function qa(e,t){var n=ba();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ma(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function $a(e,t){var n=ba();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ma(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Za(e,t,n){return 0===(21&aa)?(e.baseState&&(e.baseState=!1,bs=!0),e.memoizedState=n):(sr(n,t)||(n=mt(),sa.lanes|=n,Ml|=n,e.baseState=!0),t)}function Ha(e,t){var n=bt;bt=0!==n&&4>n?n:4,e(!0);var r=ia.transition;ia.transition={};try{e(!1),t()}finally{bt=n,ia.transition=r}}function Va(){return ba().memoizedState}function Wa(e,t,n){var r=tc(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Ya(e))Ka(t,n);else if(null!==(n=Ai(e,t,n,r))){nc(n,e,r,ec()),Qa(n,t,r)}}function Ga(e,t,n){var r=tc(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ya(e))Ka(t,o);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=i(a,n);if(o.hasEagerState=!0,o.eagerState=s,sr(s,a)){var l=t.interleaved;return null===l?(o.next=o,Di(t)):(o.next=l.next,l.next=o),void(t.interleaved=o)}}catch(c){}null!==(n=Ai(e,t,o,r))&&(nc(n,e,r,o=ec()),Qa(n,t,r))}}function Ya(e){var t=e.alternate;return e===sa||null!==t&&t===sa}function Ka(e,t){da=ua=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Qa(e,t,n){if(0!==(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}var Ja={readContext:Pi,useCallback:ha,useContext:ha,useEffect:ha,useImperativeHandle:ha,useInsertionEffect:ha,useLayoutEffect:ha,useMemo:ha,useReducer:ha,useRef:ha,useState:ha,useDebugValue:ha,useDeferredValue:ha,useTransition:ha,useMutableSource:ha,useSyncExternalStore:ha,useId:ha,unstable_isNewReconciler:!1},Xa={readContext:Pi,useCallback:function(e,t){return ya().memoizedState=[e,void 0===t?null:t],e},useContext:Pi,useEffect:ja,useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Da(4194308,4,Fa.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Da(4194308,4,e,t)},useInsertionEffect:function(e,t){return Da(4,2,e,t)},useMemo:function(e,t){var n=ya();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ya();return t=void 0!==n?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=Wa.bind(null,sa,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},ya().memoizedState=e},useState:Ia,useDebugValue:Ua,useDeferredValue:function(e){return ya().memoizedState=e},useTransition:function(){var e=Ia(!1),t=e[0];return e=Ha.bind(null,e[1]),ya().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=sa,o=ya();if(ii){if(void 0===n)throw Error(i(407));n=n()}else{if(n=t(),null===Nl)throw Error(i(349));0!==(30&aa)||Ca(r,t,n)}o.memoizedState=n;var a={value:n,getSnapshot:t};return o.queue=a,ja(Oa.bind(null,r,a,e),[e]),r.flags|=2048,Pa(9,ka.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=ya(),t=Nl.identifierPrefix;if(ii){var n=Jo;t=":"+t+"R"+(n=(Qo&~(1<<32-at(Qo)-1)).toString(32)+n),0<(n=fa++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=pa++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},es={readContext:Pi,useCallback:qa,useContext:Pi,useEffect:Ma,useImperativeHandle:Ba,useInsertionEffect:La,useLayoutEffect:za,useMemo:$a,useReducer:Ea,useRef:Ra,useState:function(){return Ea(wa)},useDebugValue:Ua,useDeferredValue:function(e){return Za(ba(),la.memoizedState,e)},useTransition:function(){return[Ea(wa)[0],ba().memoizedState]},useMutableSource:xa,useSyncExternalStore:Sa,useId:Va,unstable_isNewReconciler:!1},ts={readContext:Pi,useCallback:qa,useContext:Pi,useEffect:Ma,useImperativeHandle:Ba,useInsertionEffect:La,useLayoutEffect:za,useMemo:$a,useReducer:_a,useRef:Ra,useState:function(){return _a(wa)},useDebugValue:Ua,useDeferredValue:function(e){var t=ba();return null===la?t.memoizedState=e:Za(t,la.memoizedState,e)},useTransition:function(){return[_a(wa)[0],ba().memoizedState]},useMutableSource:xa,useSyncExternalStore:Sa,useId:Va,unstable_isNewReconciler:!1};function ns(e,t){if(e&&e.defaultProps){for(var n in t=L({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function rs(e,t,n,r){n=null===(n=n(r,t=e.memoizedState))||void 0===n?t:L({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var os={isMounted:function(e){return!!(e=e._reactInternals)&&qe(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=ec(),o=tc(e),i=Fi(r,o);i.payload=t,void 0!==n&&null!==n&&(i.callback=n),null!==(t=Bi(e,i,o))&&(nc(t,e,o,r),Ui(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=ec(),o=tc(e),i=Fi(r,o);i.tag=1,i.payload=t,void 0!==n&&null!==n&&(i.callback=n),null!==(t=Bi(e,i,o))&&(nc(t,e,o,r),Ui(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ec(),r=tc(e),o=Fi(n,r);o.tag=2,void 0!==t&&null!==t&&(o.callback=t),null!==(t=Bi(e,o,r))&&(nc(t,e,r,n),Ui(t,e,r))}};function is(e,t,n,r,o,i,a){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!lr(n,r)||!lr(o,i))}function as(e,t,n){var r=!1,o=To,i=t.contextType;return"object"===typeof i&&null!==i?i=Pi(i):(o=Do(t)?Po:No.current,i=(r=null!==(r=t.contextTypes)&&void 0!==r)?Ro(e,o):To),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=os,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function ss(e,t,n,r){e=t.state,"function"===typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"===typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&os.enqueueReplaceState(t,t.state,null)}function ls(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},Li(e);var i=t.contextType;"object"===typeof i&&null!==i?o.context=Pi(i):(i=Do(t)?Po:No.current,o.context=Ro(e,i)),o.state=e.memoizedState,"function"===typeof(i=t.getDerivedStateFromProps)&&(rs(e,t,i,n),o.state=e.memoizedState),"function"===typeof t.getDerivedStateFromProps||"function"===typeof o.getSnapshotBeforeUpdate||"function"!==typeof o.UNSAFE_componentWillMount&&"function"!==typeof o.componentWillMount||(t=o.state,"function"===typeof o.componentWillMount&&o.componentWillMount(),"function"===typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&os.enqueueReplaceState(o,o.state,null),$i(e,n,o,r),o.state=e.memoizedState),"function"===typeof o.componentDidMount&&(e.flags|=4194308)}function cs(e,t){try{var n="",r=t;do{n+=U(r),r=r.return}while(r);var o=n}catch(i){o="\nError generating stack: "+i.message+"\n"+i.stack}return{value:e,source:t,stack:o,digest:null}}function us(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function ds(e,t){try{console.error(t.value)}catch(n){setTimeout((function(){throw n}))}}var fs="function"===typeof WeakMap?WeakMap:Map;function ps(e,t,n){(n=Fi(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Zl||(Zl=!0,Hl=r),ds(0,t)},n}function hs(e,t,n){(n=Fi(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"===typeof r){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){ds(0,t)}}var i=e.stateNode;return null!==i&&"function"===typeof i.componentDidCatch&&(n.callback=function(){ds(0,t),"function"!==typeof r&&(null===Vl?Vl=new Set([this]):Vl.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function ms(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new fs;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=Cc.bind(null,e,t,n),t.then(e,e))}function gs(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function vs(e,t,n,r,o){return 0===(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Fi(-1,1)).tag=2,Bi(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}var ys=w.ReactCurrentOwner,bs=!1;function ws(e,t,n,r){t.child=null===e?_i(t,null,n,r):Ei(t,e.child,n,r)}function Es(e,t,n,r,o){n=n.render;var i=t.ref;return Ii(t,o),r=ga(e,t,n,r,i,o),n=va(),null===e||bs?(ii&&n&&ti(t),t.flags|=1,ws(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Zs(e,t,o))}function _s(e,t,n,r,o){if(null===e){var i=n.type;return"function"!==typeof i||Rc(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Ac(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,xs(e,t,i,r,o))}if(i=e.child,0===(e.lanes&o)){var a=i.memoizedProps;if((n=null!==(n=n.compare)?n:lr)(a,r)&&e.ref===t.ref)return Zs(e,t,o)}return t.flags|=1,(e=Dc(i,r)).ref=t.ref,e.return=t,t.child=e}function xs(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(lr(i,r)&&e.ref===t.ref){if(bs=!1,t.pendingProps=r=i,0===(e.lanes&o))return t.lanes=e.lanes,Zs(e,t,o);0!==(131072&e.flags)&&(bs=!0)}}return ks(e,t,n,r,o)}function Ss(e,t,n){var r=t.pendingProps,o=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0===(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Oo(Dl,Rl),Rl|=n;else{if(0===(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Oo(Dl,Rl),Rl|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==i?i.baseLanes:n,Oo(Dl,Rl),Rl|=r}else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,Oo(Dl,Rl),Rl|=r;return ws(e,t,o,n),t.child}function Cs(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function ks(e,t,n,r,o){var i=Do(n)?Po:No.current;return i=Ro(t,i),Ii(t,o),n=ga(e,t,n,r,i,o),r=va(),null===e||bs?(ii&&r&&ti(t),t.flags|=1,ws(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Zs(e,t,o))}function Os(e,t,n,r,o){if(Do(n)){var i=!0;Lo(t)}else i=!1;if(Ii(t,o),null===t.stateNode)$s(e,t),as(t,n,r),ls(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,c=n.contextType;"object"===typeof c&&null!==c?c=Pi(c):c=Ro(t,c=Do(n)?Po:No.current);var u=n.getDerivedStateFromProps,d="function"===typeof u||"function"===typeof a.getSnapshotBeforeUpdate;d||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(s!==r||l!==c)&&ss(t,a,r,c),Mi=!1;var f=t.memoizedState;a.state=f,$i(t,r,a,o),l=t.memoizedState,s!==r||f!==l||Io.current||Mi?("function"===typeof u&&(rs(t,n,u,r),l=t.memoizedState),(s=Mi||is(t,n,s,r,f,l,c))?(d||"function"!==typeof a.UNSAFE_componentWillMount&&"function"!==typeof a.componentWillMount||("function"===typeof a.componentWillMount&&a.componentWillMount(),"function"===typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"===typeof a.componentDidMount&&(t.flags|=4194308)):("function"===typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=c,r=s):("function"===typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,zi(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:ns(t.type,s),a.props=c,d=t.pendingProps,f=a.context,"object"===typeof(l=n.contextType)&&null!==l?l=Pi(l):l=Ro(t,l=Do(n)?Po:No.current);var p=n.getDerivedStateFromProps;(u="function"===typeof p||"function"===typeof a.getSnapshotBeforeUpdate)||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(s!==d||f!==l)&&ss(t,a,r,l),Mi=!1,f=t.memoizedState,a.state=f,$i(t,r,a,o);var h=t.memoizedState;s!==d||f!==h||Io.current||Mi?("function"===typeof p&&(rs(t,n,p,r),h=t.memoizedState),(c=Mi||is(t,n,c,r,f,h,l)||!1)?(u||"function"!==typeof a.UNSAFE_componentWillUpdate&&"function"!==typeof a.componentWillUpdate||("function"===typeof a.componentWillUpdate&&a.componentWillUpdate(r,h,l),"function"===typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,h,l)),"function"===typeof a.componentDidUpdate&&(t.flags|=4),"function"===typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!==typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),a.props=r,a.state=h,a.context=l,r=c):("function"!==typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return Ts(e,t,n,r,i,o)}function Ts(e,t,n,r,o,i){Cs(e,t);var a=0!==(128&t.flags);if(!r&&!a)return o&&zo(t,n,!1),Zs(e,t,i);r=t.stateNode,ys.current=t;var s=a&&"function"!==typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=Ei(t,e.child,null,i),t.child=Ei(t,null,s,i)):ws(e,t,s,i),t.memoizedState=r.state,o&&zo(t,n,!0),t.child}function Ns(e){var t=e.stateNode;t.pendingContext?jo(0,t.pendingContext,t.pendingContext!==t.context):t.context&&jo(0,t.context,!1),Ki(e,t.containerInfo)}function Is(e,t,n,r,o){return hi(),mi(o),t.flags|=256,ws(e,t,n,r),t.child}var Ps,Rs,Ds,As,js={dehydrated:null,treeContext:null,retryLane:0};function Ms(e){return{baseLanes:e,cachePool:null,transitions:null}}function Ls(e,t,n){var r,o=t.pendingProps,a=ea.current,s=!1,l=0!==(128&t.flags);if((r=l)||(r=(null===e||null!==e.memoizedState)&&0!==(2&a)),r?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),Oo(ea,1&a),null===e)return ui(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0===(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(l=o.children,e=o.fallback,s?(o=t.mode,s=t.child,l={mode:"hidden",children:l},0===(1&o)&&null!==s?(s.childLanes=0,s.pendingProps=l):s=Mc(l,o,0,null),e=jc(e,o,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Ms(n),t.memoizedState=js,e):zs(t,l));if(null!==(a=e.memoizedState)&&null!==(r=a.dehydrated))return function(e,t,n,r,o,a,s){if(n)return 256&t.flags?(t.flags&=-257,Fs(e,t,s,r=us(Error(i(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=r.fallback,o=t.mode,r=Mc({mode:"visible",children:r.children},o,0,null),(a=jc(a,o,s,null)).flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,0!==(1&t.mode)&&Ei(t,e.child,null,s),t.child.memoizedState=Ms(s),t.memoizedState=js,a);if(0===(1&t.mode))return Fs(e,t,s,null);if("$!"===o.data){if(r=o.nextSibling&&o.nextSibling.dataset)var l=r.dgst;return r=l,Fs(e,t,s,r=us(a=Error(i(419)),r,void 0))}if(l=0!==(s&e.childLanes),bs||l){if(null!==(r=Nl)){switch(s&-s){case 4:o=2;break;case 16:o=8;break;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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=0!==(o&(r.suspendedLanes|s))?0:o)&&o!==a.retryLane&&(a.retryLane=o,ji(e,o),nc(r,e,o,-1))}return mc(),Fs(e,t,s,r=us(Error(i(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=Oc.bind(null,e),o._reactRetry=t,null):(e=a.treeContext,oi=co(o.nextSibling),ri=t,ii=!0,ai=null,null!==e&&(Go[Yo++]=Qo,Go[Yo++]=Jo,Go[Yo++]=Ko,Qo=e.id,Jo=e.overflow,Ko=t),t=zs(t,r.children),t.flags|=4096,t)}(e,t,l,o,r,a,n);if(s){s=o.fallback,l=t.mode,r=(a=e.child).sibling;var c={mode:"hidden",children:o.children};return 0===(1&l)&&t.child!==a?((o=t.child).childLanes=0,o.pendingProps=c,t.deletions=null):(o=Dc(a,c)).subtreeFlags=14680064&a.subtreeFlags,null!==r?s=Dc(r,s):(s=jc(s,l,n,null)).flags|=2,s.return=t,o.return=t,o.sibling=s,t.child=o,o=s,s=t.child,l=null===(l=e.child.memoizedState)?Ms(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=e.childLanes&~n,t.memoizedState=js,o}return e=(s=e.child).sibling,o=Dc(s,{mode:"visible",children:o.children}),0===(1&t.mode)&&(o.lanes=n),o.return=t,o.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=o,t.memoizedState=null,o}function zs(e,t){return(t=Mc({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Fs(e,t,n,r){return null!==r&&mi(r),Ei(t,e.child,null,n),(e=zs(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Bs(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Ni(e.return,t,n)}function Us(e,t,n,r,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function qs(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(ws(e,t,r.children,n),0!==(2&(r=ea.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!==(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Bs(e,n,t);else if(19===e.tag)Bs(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Oo(ea,r),0===(1&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===ta(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Us(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===ta(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Us(t,!0,n,null,i);break;case"together":Us(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function $s(e,t){0===(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Zs(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Ml|=t.lanes,0===(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(i(153));if(null!==t.child){for(n=Dc(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Dc(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Hs(e,t){if(!ii)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Vs(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=14680064&o.subtreeFlags,r|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Ws(e,t,n){var r=t.pendingProps;switch(ni(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Vs(t),null;case 1:case 17:return Do(t.type)&&Ao(),Vs(t),null;case 3:return r=t.stateNode,Qi(),ko(Io),ko(No),ra(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(fi(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0===(256&t.flags)||(t.flags|=1024,null!==ai&&(ac(ai),ai=null))),Rs(e,t),Vs(t),null;case 5:Xi(t);var o=Yi(Gi.current);if(n=t.type,null!==e&&null!=t.stateNode)Ds(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(i(166));return Vs(t),null}if(e=Yi(Vi.current),fi(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[po]=t,r[ho]=a,e=0!==(1&t.mode),n){case"dialog":Fr("cancel",r),Fr("close",r);break;case"iframe":case"object":case"embed":Fr("load",r);break;case"video":case"audio":for(o=0;o<jr.length;o++)Fr(jr[o],r);break;case"source":Fr("error",r);break;case"img":case"image":case"link":Fr("error",r),Fr("load",r);break;case"details":Fr("toggle",r);break;case"input":K(r,a),Fr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},Fr("invalid",r);break;case"textarea":oe(r,a),Fr("invalid",r)}for(var l in ye(n,a),o=null,a)if(a.hasOwnProperty(l)){var c=a[l];"children"===l?"string"===typeof c?r.textContent!==c&&(!0!==a.suppressHydrationWarning&&Jr(r.textContent,c,e),o=["children",c]):"number"===typeof c&&r.textContent!==""+c&&(!0!==a.suppressHydrationWarning&&Jr(r.textContent,c,e),o=["children",""+c]):s.hasOwnProperty(l)&&null!=c&&"onScroll"===l&&Fr("scroll",r)}switch(n){case"input":V(r),X(r,a,!0);break;case"textarea":V(r),ae(r);break;case"select":case"option":break;default:"function"===typeof a.onClick&&(r.onclick=Xr)}r=o,t.updateQueue=r,null!==r&&(t.flags|=4)}else{l=9===o.nodeType?o:o.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=se(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"===typeof r.is?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),"select"===n&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[po]=t,e[ho]=r,Ps(e,t,!1,!1),t.stateNode=e;e:{switch(l=be(n,r),n){case"dialog":Fr("cancel",e),Fr("close",e),o=r;break;case"iframe":case"object":case"embed":Fr("load",e),o=r;break;case"video":case"audio":for(o=0;o<jr.length;o++)Fr(jr[o],e);o=r;break;case"source":Fr("error",e),o=r;break;case"img":case"image":case"link":Fr("error",e),Fr("load",e),o=r;break;case"details":Fr("toggle",e),o=r;break;case"input":K(e,r),o=Y(e,r),Fr("invalid",e);break;case"option":default:o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=L({},r,{value:void 0}),Fr("invalid",e);break;case"textarea":oe(e,r),o=re(e,r),Fr("invalid",e)}for(a in ye(n,o),c=o)if(c.hasOwnProperty(a)){var u=c[a];"style"===a?ge(e,u):"dangerouslySetInnerHTML"===a?null!=(u=u?u.__html:void 0)&&de(e,u):"children"===a?"string"===typeof u?("textarea"!==n||""!==u)&&fe(e,u):"number"===typeof u&&fe(e,""+u):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(s.hasOwnProperty(a)?null!=u&&"onScroll"===a&&Fr("scroll",e):null!=u&&b(e,a,u,l))}switch(n){case"input":V(e),X(e,r,!1);break;case"textarea":V(e),ae(e);break;case"option":null!=r.value&&e.setAttribute("value",""+Z(r.value));break;case"select":e.multiple=!!r.multiple,null!=(a=r.value)?ne(e,!!r.multiple,a,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"===typeof o.onClick&&(e.onclick=Xr)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Vs(t),null;case 6:if(e&&null!=t.stateNode)As(e,t,e.memoizedProps,r);else{if("string"!==typeof r&&null===t.stateNode)throw Error(i(166));if(n=Yi(Gi.current),Yi(Vi.current),fi(t)){if(r=t.stateNode,n=t.memoizedProps,r[po]=t,(a=r.nodeValue!==n)&&null!==(e=ri))switch(e.tag){case 3:Jr(r.nodeValue,n,0!==(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Jr(r.nodeValue,n,0!==(1&e.mode))}a&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[po]=t,t.stateNode=r}return Vs(t),null;case 13:if(ko(ea),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(ii&&null!==oi&&0!==(1&t.mode)&&0===(128&t.flags))pi(),hi(),t.flags|=98560,a=!1;else if(a=fi(t),null!==r&&null!==r.dehydrated){if(null===e){if(!a)throw Error(i(318));if(!(a=null!==(a=t.memoizedState)?a.dehydrated:null))throw Error(i(317));a[po]=t}else hi(),0===(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Vs(t),a=!1}else null!==ai&&(ac(ai),ai=null),a=!0;if(!a)return 65536&t.flags?t:null}return 0!==(128&t.flags)?(t.lanes=n,t):((r=null!==r)!==(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,0!==(1&t.mode)&&(null===e||0!==(1&ea.current)?0===Al&&(Al=3):mc())),null!==t.updateQueue&&(t.flags|=4),Vs(t),null);case 4:return Qi(),Rs(e,t),null===e&&qr(t.stateNode.containerInfo),Vs(t),null;case 10:return Ti(t.type._context),Vs(t),null;case 19:if(ko(ea),null===(a=t.memoizedState))return Vs(t),null;if(r=0!==(128&t.flags),null===(l=a.rendering))if(r)Hs(a,!1);else{if(0!==Al||null!==e&&0!==(128&e.flags))for(e=t.child;null!==e;){if(null!==(l=ta(e))){for(t.flags|=128,Hs(a,!1),null!==(r=l.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(a=n).flags&=14680066,null===(l=a.alternate)?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=l.childLanes,a.lanes=l.lanes,a.child=l.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=l.memoizedProps,a.memoizedState=l.memoizedState,a.updateQueue=l.updateQueue,a.type=l.type,e=l.dependencies,a.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Oo(ea,1&ea.current|2),t.child}e=e.sibling}null!==a.tail&&Qe()>ql&&(t.flags|=128,r=!0,Hs(a,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=ta(l))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Hs(a,!0),null===a.tail&&"hidden"===a.tailMode&&!l.alternate&&!ii)return Vs(t),null}else 2*Qe()-a.renderingStartTime>ql&&1073741824!==n&&(t.flags|=128,r=!0,Hs(a,!1),t.lanes=4194304);a.isBackwards?(l.sibling=t.child,t.child=l):(null!==(n=a.last)?n.sibling=l:t.child=l,a.last=l)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Qe(),t.sibling=null,n=ea.current,Oo(ea,r?1&n|2:1&n),t):(Vs(t),null);case 22:case 23:return dc(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!==(1&t.mode)?0!==(1073741824&Rl)&&(Vs(t),6&t.subtreeFlags&&(t.flags|=8192)):Vs(t),null;case 24:case 25:return null}throw Error(i(156,t.tag))}function Gs(e,t){switch(ni(t),t.tag){case 1:return Do(t.type)&&Ao(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Qi(),ko(Io),ko(No),ra(),0!==(65536&(e=t.flags))&&0===(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Xi(t),null;case 13:if(ko(ea),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(i(340));hi()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return ko(ea),null;case 4:return Qi(),null;case 10:return Ti(t.type._context),null;case 22:case 23:return dc(),null;default:return null}}Ps=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Rs=function(){},Ds=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Yi(Vi.current);var i,a=null;switch(n){case"input":o=Y(e,o),r=Y(e,r),a=[];break;case"select":o=L({},o,{value:void 0}),r=L({},r,{value:void 0}),a=[];break;case"textarea":o=re(e,o),r=re(e,r),a=[];break;default:"function"!==typeof o.onClick&&"function"===typeof r.onClick&&(e.onclick=Xr)}for(u in ye(n,r),n=null,o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&null!=o[u])if("style"===u){var l=o[u];for(i in l)l.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(s.hasOwnProperty(u)?a||(a=[]):(a=a||[]).push(u,null));for(u in r){var c=r[u];if(l=null!=o?o[u]:void 0,r.hasOwnProperty(u)&&c!==l&&(null!=c||null!=l))if("style"===u)if(l){for(i in l)!l.hasOwnProperty(i)||c&&c.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in c)c.hasOwnProperty(i)&&l[i]!==c[i]&&(n||(n={}),n[i]=c[i])}else n||(a||(a=[]),a.push(u,n)),n=c;else"dangerouslySetInnerHTML"===u?(c=c?c.__html:void 0,l=l?l.__html:void 0,null!=c&&l!==c&&(a=a||[]).push(u,c)):"children"===u?"string"!==typeof c&&"number"!==typeof c||(a=a||[]).push(u,""+c):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(s.hasOwnProperty(u)?(null!=c&&"onScroll"===u&&Fr("scroll",e),a||l===c||(a=[])):(a=a||[]).push(u,c))}n&&(a=a||[]).push("style",n);var u=a;(t.updateQueue=u)&&(t.flags|=4)}},As=function(e,t,n,r){n!==r&&(t.flags|=4)};var Ys=!1,Ks=!1,Qs="function"===typeof WeakSet?WeakSet:Set,Js=null;function Xs(e,t){var n=e.ref;if(null!==n)if("function"===typeof n)try{n(null)}catch(r){Sc(e,t,r)}else n.current=null}function el(e,t,n){try{n()}catch(r){Sc(e,t,r)}}var tl=!1;function nl(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,void 0!==i&&el(t,n,i)}o=o.next}while(o!==r)}}function rl(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect: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 ol(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"===typeof t?t(e):t.current=e}}function il(e){var t=e.alternate;null!==t&&(e.alternate=null,il(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[po],delete t[ho],delete t[go],delete t[vo],delete t[yo])),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 al(e){return 5===e.tag||3===e.tag||4===e.tag}function sl(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||al(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function ll(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!==(n=n._reactRootContainer)&&void 0!==n||null!==t.onclick||(t.onclick=Xr));else if(4!==r&&null!==(e=e.child))for(ll(e,t,n),e=e.sibling;null!==e;)ll(e,t,n),e=e.sibling}function cl(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(cl(e,t,n),e=e.sibling;null!==e;)cl(e,t,n),e=e.sibling}var ul=null,dl=!1;function fl(e,t,n){for(n=n.child;null!==n;)pl(e,t,n),n=n.sibling}function pl(e,t,n){if(it&&"function"===typeof it.onCommitFiberUnmount)try{it.onCommitFiberUnmount(ot,n)}catch(s){}switch(n.tag){case 5:Ks||Xs(n,t);case 6:var r=ul,o=dl;ul=null,fl(e,t,n),dl=o,null!==(ul=r)&&(dl?(e=ul,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):ul.removeChild(n.stateNode));break;case 18:null!==ul&&(dl?(e=ul,n=n.stateNode,8===e.nodeType?lo(e.parentNode,n):1===e.nodeType&&lo(e,n),qt(e)):lo(ul,n.stateNode));break;case 4:r=ul,o=dl,ul=n.stateNode.containerInfo,dl=!0,fl(e,t,n),ul=r,dl=o;break;case 0:case 11:case 14:case 15:if(!Ks&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,void 0!==a&&(0!==(2&i)||0!==(4&i))&&el(n,t,a),o=o.next}while(o!==r)}fl(e,t,n);break;case 1:if(!Ks&&(Xs(n,t),"function"===typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Sc(n,t,s)}fl(e,t,n);break;case 21:fl(e,t,n);break;case 22:1&n.mode?(Ks=(r=Ks)||null!==n.memoizedState,fl(e,t,n),Ks=r):fl(e,t,n);break;default:fl(e,t,n)}}function hl(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Qs),t.forEach((function(t){var r=Tc.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function ml(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var o=n[r];try{var a=e,s=t,l=s;e:for(;null!==l;){switch(l.tag){case 5:ul=l.stateNode,dl=!1;break e;case 3:case 4:ul=l.stateNode.containerInfo,dl=!0;break e}l=l.return}if(null===ul)throw Error(i(160));pl(a,s,o),ul=null,dl=!1;var c=o.alternate;null!==c&&(c.return=null),o.return=null}catch(u){Sc(o,t,u)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)gl(t,e),t=t.sibling}function gl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ml(t,e),vl(e),4&r){try{nl(3,e,e.return),rl(3,e)}catch(g){Sc(e,e.return,g)}try{nl(5,e,e.return)}catch(g){Sc(e,e.return,g)}}break;case 1:ml(t,e),vl(e),512&r&&null!==n&&Xs(n,n.return);break;case 5:if(ml(t,e),vl(e),512&r&&null!==n&&Xs(n,n.return),32&e.flags){var o=e.stateNode;try{fe(o,"")}catch(g){Sc(e,e.return,g)}}if(4&r&&null!=(o=e.stateNode)){var a=e.memoizedProps,s=null!==n?n.memoizedProps:a,l=e.type,c=e.updateQueue;if(e.updateQueue=null,null!==c)try{"input"===l&&"radio"===a.type&&null!=a.name&&Q(o,a),be(l,s);var u=be(l,a);for(s=0;s<c.length;s+=2){var d=c[s],f=c[s+1];"style"===d?ge(o,f):"dangerouslySetInnerHTML"===d?de(o,f):"children"===d?fe(o,f):b(o,d,f,u)}switch(l){case"input":J(o,a);break;case"textarea":ie(o,a);break;case"select":var p=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!a.multiple;var h=a.value;null!=h?ne(o,!!a.multiple,h,!1):p!==!!a.multiple&&(null!=a.defaultValue?ne(o,!!a.multiple,a.defaultValue,!0):ne(o,!!a.multiple,a.multiple?[]:"",!1))}o[ho]=a}catch(g){Sc(e,e.return,g)}}break;case 6:if(ml(t,e),vl(e),4&r){if(null===e.stateNode)throw Error(i(162));o=e.stateNode,a=e.memoizedProps;try{o.nodeValue=a}catch(g){Sc(e,e.return,g)}}break;case 3:if(ml(t,e),vl(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{qt(t.containerInfo)}catch(g){Sc(e,e.return,g)}break;case 4:default:ml(t,e),vl(e);break;case 13:ml(t,e),vl(e),8192&(o=e.child).flags&&(a=null!==o.memoizedState,o.stateNode.isHidden=a,!a||null!==o.alternate&&null!==o.alternate.memoizedState||(Ul=Qe())),4&r&&hl(e);break;case 22:if(d=null!==n&&null!==n.memoizedState,1&e.mode?(Ks=(u=Ks)||d,ml(t,e),Ks=u):ml(t,e),vl(e),8192&r){if(u=null!==e.memoizedState,(e.stateNode.isHidden=u)&&!d&&0!==(1&e.mode))for(Js=e,d=e.child;null!==d;){for(f=Js=d;null!==Js;){switch(h=(p=Js).child,p.tag){case 0:case 11:case 14:case 15:nl(4,p,p.return);break;case 1:Xs(p,p.return);var m=p.stateNode;if("function"===typeof m.componentWillUnmount){r=p,n=p.return;try{t=r,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(g){Sc(r,n,g)}}break;case 5:Xs(p,p.return);break;case 22:if(null!==p.memoizedState){El(f);continue}}null!==h?(h.return=p,Js=h):El(f)}d=d.sibling}e:for(d=null,f=e;;){if(5===f.tag){if(null===d){d=f;try{o=f.stateNode,u?"function"===typeof(a=o.style).setProperty?a.setProperty("display","none","important"):a.display="none":(l=f.stateNode,s=void 0!==(c=f.memoizedProps.style)&&null!==c&&c.hasOwnProperty("display")?c.display:null,l.style.display=me("display",s))}catch(g){Sc(e,e.return,g)}}}else if(6===f.tag){if(null===d)try{f.stateNode.nodeValue=u?"":f.memoizedProps}catch(g){Sc(e,e.return,g)}}else if((22!==f.tag&&23!==f.tag||null===f.memoizedState||f===e)&&null!==f.child){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;null===f.sibling;){if(null===f.return||f.return===e)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:ml(t,e),vl(e),4&r&&hl(e);case 21:}}function vl(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(al(n)){var r=n;break e}n=n.return}throw Error(i(160))}switch(r.tag){case 5:var o=r.stateNode;32&r.flags&&(fe(o,""),r.flags&=-33),cl(e,sl(e),o);break;case 3:case 4:var a=r.stateNode.containerInfo;ll(e,sl(e),a);break;default:throw Error(i(161))}}catch(s){Sc(e,e.return,s)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function yl(e,t,n){Js=e,bl(e,t,n)}function bl(e,t,n){for(var r=0!==(1&e.mode);null!==Js;){var o=Js,i=o.child;if(22===o.tag&&r){var a=null!==o.memoizedState||Ys;if(!a){var s=o.alternate,l=null!==s&&null!==s.memoizedState||Ks;s=Ys;var c=Ks;if(Ys=a,(Ks=l)&&!c)for(Js=o;null!==Js;)l=(a=Js).child,22===a.tag&&null!==a.memoizedState?_l(o):null!==l?(l.return=a,Js=l):_l(o);for(;null!==i;)Js=i,bl(i,t,n),i=i.sibling;Js=o,Ys=s,Ks=c}wl(e)}else 0!==(8772&o.subtreeFlags)&&null!==i?(i.return=o,Js=i):wl(e)}}function wl(e){for(;null!==Js;){var t=Js;if(0!==(8772&t.flags)){var n=t.alternate;try{if(0!==(8772&t.flags))switch(t.tag){case 0:case 11:case 15:Ks||rl(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Ks)if(null===n)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:ns(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&Zi(t,a,r);break;case 3:var s=t.updateQueue;if(null!==s){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Zi(t,s,n)}break;case 5:var l=t.stateNode;if(null===n&&4&t.flags){n=l;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var u=t.alternate;if(null!==u){var d=u.memoizedState;if(null!==d){var f=d.dehydrated;null!==f&&qt(f)}}}break;default:throw Error(i(163))}Ks||512&t.flags&&ol(t)}catch(p){Sc(t,t.return,p)}}if(t===e){Js=null;break}if(null!==(n=t.sibling)){n.return=t.return,Js=n;break}Js=t.return}}function El(e){for(;null!==Js;){var t=Js;if(t===e){Js=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Js=n;break}Js=t.return}}function _l(e){for(;null!==Js;){var t=Js;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{rl(4,t)}catch(l){Sc(t,n,l)}break;case 1:var r=t.stateNode;if("function"===typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(l){Sc(t,o,l)}}var i=t.return;try{ol(t)}catch(l){Sc(t,i,l)}break;case 5:var a=t.return;try{ol(t)}catch(l){Sc(t,a,l)}}}catch(l){Sc(t,t.return,l)}if(t===e){Js=null;break}var s=t.sibling;if(null!==s){s.return=t.return,Js=s;break}Js=t.return}}var xl,Sl=Math.ceil,Cl=w.ReactCurrentDispatcher,kl=w.ReactCurrentOwner,Ol=w.ReactCurrentBatchConfig,Tl=0,Nl=null,Il=null,Pl=0,Rl=0,Dl=Co(0),Al=0,jl=null,Ml=0,Ll=0,zl=0,Fl=null,Bl=null,Ul=0,ql=1/0,$l=null,Zl=!1,Hl=null,Vl=null,Wl=!1,Gl=null,Yl=0,Kl=0,Ql=null,Jl=-1,Xl=0;function ec(){return 0!==(6&Tl)?Qe():-1!==Jl?Jl:Jl=Qe()}function tc(e){return 0===(1&e.mode)?1:0!==(2&Tl)&&0!==Pl?Pl&-Pl:null!==gi.transition?(0===Xl&&(Xl=mt()),Xl):0!==(e=bt)?e:e=void 0===(e=window.event)?16:Kt(e.type)}function nc(e,t,n,r){if(50<Kl)throw Kl=0,Ql=null,Error(i(185));vt(e,n,r),0!==(2&Tl)&&e===Nl||(e===Nl&&(0===(2&Tl)&&(Ll|=n),4===Al&&sc(e,Pl)),rc(e,r),1===n&&0===Tl&&0===(1&t.mode)&&(ql=Qe()+500,Bo&&$o()))}function rc(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-at(i),s=1<<a,l=o[a];-1===l?0!==(s&n)&&0===(s&r)||(o[a]=pt(s,t)):l<=t&&(e.expiredLanes|=s),i&=~s}}(e,t);var r=ft(e,e===Nl?Pl:0);if(0===r)null!==n&&Ge(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Ge(n),1===t)0===e.tag?function(e){Bo=!0,qo(e)}(lc.bind(null,e)):qo(lc.bind(null,e)),ao((function(){0===(6&Tl)&&$o()})),n=null;else{switch(wt(r)){case 1:n=Xe;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=Nc(n,oc.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function oc(e,t){if(Jl=-1,Xl=0,0!==(6&Tl))throw Error(i(327));var n=e.callbackNode;if(_c()&&e.callbackNode!==n)return null;var r=ft(e,e===Nl?Pl:0);if(0===r)return null;if(0!==(30&r)||0!==(r&e.expiredLanes)||t)t=gc(e,r);else{t=r;var o=Tl;Tl|=2;var a=hc();for(Nl===e&&Pl===t||($l=null,ql=Qe()+500,fc(e,t));;)try{yc();break}catch(l){pc(e,l)}Oi(),Cl.current=a,Tl=o,null!==Il?t=0:(Nl=null,Pl=0,t=Al)}if(0!==t){if(2===t&&(0!==(o=ht(e))&&(r=o,t=ic(e,o))),1===t)throw n=jl,fc(e,0),sc(e,r),rc(e,Qe()),n;if(6===t)sc(e,r);else{if(o=e.current.alternate,0===(30&r)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!sr(i(),o))return!1}catch(s){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(o)&&(2===(t=gc(e,r))&&(0!==(a=ht(e))&&(r=a,t=ic(e,a))),1===t))throw n=jl,fc(e,0),sc(e,r),rc(e,Qe()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(i(345));case 2:case 5:Ec(e,Bl,$l);break;case 3:if(sc(e,r),(130023424&r)===r&&10<(t=Ul+500-Qe())){if(0!==ft(e,0))break;if(((o=e.suspendedLanes)&r)!==r){ec(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=ro(Ec.bind(null,e,Bl,$l),t);break}Ec(e,Bl,$l);break;case 4:if(sc(e,r),(4194240&r)===r)break;for(t=e.eventTimes,o=-1;0<r;){var s=31-at(r);a=1<<s,(s=t[s])>o&&(o=s),r&=~a}if(r=o,10<(r=(120>(r=Qe()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Sl(r/1960))-r)){e.timeoutHandle=ro(Ec.bind(null,e,Bl,$l),r);break}Ec(e,Bl,$l);break;default:throw Error(i(329))}}}return rc(e,Qe()),e.callbackNode===n?oc.bind(null,e):null}function ic(e,t){var n=Fl;return e.current.memoizedState.isDehydrated&&(fc(e,t).flags|=256),2!==(e=gc(e,t))&&(t=Bl,Bl=n,null!==t&&ac(t)),e}function ac(e){null===Bl?Bl=e:Bl.push.apply(Bl,e)}function sc(e,t){for(t&=~zl,t&=~Ll,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-at(t),r=1<<n;e[n]=-1,t&=~r}}function lc(e){if(0!==(6&Tl))throw Error(i(327));_c();var t=ft(e,0);if(0===(1&t))return rc(e,Qe()),null;var n=gc(e,t);if(0!==e.tag&&2===n){var r=ht(e);0!==r&&(t=r,n=ic(e,r))}if(1===n)throw n=jl,fc(e,0),sc(e,t),rc(e,Qe()),n;if(6===n)throw Error(i(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Ec(e,Bl,$l),rc(e,Qe()),null}function cc(e,t){var n=Tl;Tl|=1;try{return e(t)}finally{0===(Tl=n)&&(ql=Qe()+500,Bo&&$o())}}function uc(e){null!==Gl&&0===Gl.tag&&0===(6&Tl)&&_c();var t=Tl;Tl|=1;var n=Ol.transition,r=bt;try{if(Ol.transition=null,bt=1,e)return e()}finally{bt=r,Ol.transition=n,0===(6&(Tl=t))&&$o()}}function dc(){Rl=Dl.current,ko(Dl)}function fc(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,oo(n)),null!==Il)for(n=Il.return;null!==n;){var r=n;switch(ni(r),r.tag){case 1:null!==(r=r.type.childContextTypes)&&void 0!==r&&Ao();break;case 3:Qi(),ko(Io),ko(No),ra();break;case 5:Xi(r);break;case 4:Qi();break;case 13:case 19:ko(ea);break;case 10:Ti(r.type._context);break;case 22:case 23:dc()}n=n.return}if(Nl=e,Il=e=Dc(e.current,null),Pl=Rl=t,Al=0,jl=null,zl=Ll=Ml=0,Bl=Fl=null,null!==Ri){for(t=0;t<Ri.length;t++)if(null!==(r=(n=Ri[t]).interleaved)){n.interleaved=null;var o=r.next,i=n.pending;if(null!==i){var a=i.next;i.next=o,r.next=a}n.pending=r}Ri=null}return e}function pc(e,t){for(;;){var n=Il;try{if(Oi(),oa.current=Ja,ua){for(var r=sa.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}ua=!1}if(aa=0,ca=la=sa=null,da=!1,fa=0,kl.current=null,null===n||null===n.return){Al=1,jl=t,Il=null;break}e:{var a=e,s=n.return,l=n,c=t;if(t=Pl,l.flags|=32768,null!==c&&"object"===typeof c&&"function"===typeof c.then){var u=c,d=l,f=d.tag;if(0===(1&d.mode)&&(0===f||11===f||15===f)){var p=d.alternate;p?(d.updateQueue=p.updateQueue,d.memoizedState=p.memoizedState,d.lanes=p.lanes):(d.updateQueue=null,d.memoizedState=null)}var h=gs(s);if(null!==h){h.flags&=-257,vs(h,s,l,0,t),1&h.mode&&ms(a,u,t),c=u;var m=(t=h).updateQueue;if(null===m){var g=new Set;g.add(c),t.updateQueue=g}else m.add(c);break e}if(0===(1&t)){ms(a,u,t),mc();break e}c=Error(i(426))}else if(ii&&1&l.mode){var v=gs(s);if(null!==v){0===(65536&v.flags)&&(v.flags|=256),vs(v,s,l,0,t),mi(cs(c,l));break e}}a=c=cs(c,l),4!==Al&&(Al=2),null===Fl?Fl=[a]:Fl.push(a),a=s;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,qi(a,ps(0,c,t));break e;case 1:l=c;var y=a.type,b=a.stateNode;if(0===(128&a.flags)&&("function"===typeof y.getDerivedStateFromError||null!==b&&"function"===typeof b.componentDidCatch&&(null===Vl||!Vl.has(b)))){a.flags|=65536,t&=-t,a.lanes|=t,qi(a,hs(a,l,t));break e}}a=a.return}while(null!==a)}wc(n)}catch(w){t=w,Il===n&&null!==n&&(Il=n=n.return);continue}break}}function hc(){var e=Cl.current;return Cl.current=Ja,null===e?Ja:e}function mc(){0!==Al&&3!==Al&&2!==Al||(Al=4),null===Nl||0===(268435455&Ml)&&0===(268435455&Ll)||sc(Nl,Pl)}function gc(e,t){var n=Tl;Tl|=2;var r=hc();for(Nl===e&&Pl===t||($l=null,fc(e,t));;)try{vc();break}catch(o){pc(e,o)}if(Oi(),Tl=n,Cl.current=r,null!==Il)throw Error(i(261));return Nl=null,Pl=0,Al}function vc(){for(;null!==Il;)bc(Il)}function yc(){for(;null!==Il&&!Ye();)bc(Il)}function bc(e){var t=xl(e.alternate,e,Rl);e.memoizedProps=e.pendingProps,null===t?wc(e):Il=t,kl.current=null}function wc(e){var t=e;do{var n=t.alternate;if(e=t.return,0===(32768&t.flags)){if(null!==(n=Ws(n,t,Rl)))return void(Il=n)}else{if(null!==(n=Gs(n,t)))return n.flags&=32767,void(Il=n);if(null===e)return Al=6,void(Il=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(Il=t);Il=t=e}while(null!==t);0===Al&&(Al=5)}function Ec(e,t,n){var r=bt,o=Ol.transition;try{Ol.transition=null,bt=1,function(e,t,n,r){do{_c()}while(null!==Gl);if(0!==(6&Tl))throw Error(i(327));n=e.finishedWork;var o=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(i(177));e.callbackNode=null,e.callbackPriority=0;var a=n.lanes|n.childLanes;if(function(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<n;){var o=31-at(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}(e,a),e===Nl&&(Il=Nl=null,Pl=0),0===(2064&n.subtreeFlags)&&0===(2064&n.flags)||Wl||(Wl=!0,Nc(tt,(function(){return _c(),null}))),a=0!==(15990&n.flags),0!==(15990&n.subtreeFlags)||a){a=Ol.transition,Ol.transition=null;var s=bt;bt=1;var l=Tl;Tl|=4,kl.current=null,function(e,t){if(eo=Zt,pr(e=fr())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var o=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch(E){n=null;break e}var s=0,l=-1,c=-1,u=0,d=0,f=e,p=null;t:for(;;){for(var h;f!==n||0!==o&&3!==f.nodeType||(l=s+o),f!==a||0!==r&&3!==f.nodeType||(c=s+r),3===f.nodeType&&(s+=f.nodeValue.length),null!==(h=f.firstChild);)p=f,f=h;for(;;){if(f===e)break t;if(p===n&&++u===o&&(l=s),p===a&&++d===r&&(c=s),null!==(h=f.nextSibling))break;p=(f=p).parentNode}f=h}n=-1===l||-1===c?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(to={focusedElem:e,selectionRange:n},Zt=!1,Js=t;null!==Js;)if(e=(t=Js).child,0!==(1028&t.subtreeFlags)&&null!==e)e.return=t,Js=e;else for(;null!==Js;){t=Js;try{var m=t.alternate;if(0!==(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var g=m.memoizedProps,v=m.memoizedState,y=t.stateNode,b=y.getSnapshotBeforeUpdate(t.elementType===t.type?g:ns(t.type,g),v);y.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var w=t.stateNode.containerInfo;1===w.nodeType?w.textContent="":9===w.nodeType&&w.documentElement&&w.removeChild(w.documentElement);break;default:throw Error(i(163))}}catch(E){Sc(t,t.return,E)}if(null!==(e=t.sibling)){e.return=t.return,Js=e;break}Js=t.return}m=tl,tl=!1}(e,n),gl(n,e),hr(to),Zt=!!eo,to=eo=null,e.current=n,yl(n,e,o),Ke(),Tl=l,bt=s,Ol.transition=a}else e.current=n;if(Wl&&(Wl=!1,Gl=e,Yl=o),a=e.pendingLanes,0===a&&(Vl=null),function(e){if(it&&"function"===typeof it.onCommitFiberRoot)try{it.onCommitFiberRoot(ot,e,void 0,128===(128&e.current.flags))}catch(t){}}(n.stateNode),rc(e,Qe()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(Zl)throw Zl=!1,e=Hl,Hl=null,e;0!==(1&Yl)&&0!==e.tag&&_c(),a=e.pendingLanes,0!==(1&a)?e===Ql?Kl++:(Kl=0,Ql=e):Kl=0,$o()}(e,t,n,r)}finally{Ol.transition=o,bt=r}return null}function _c(){if(null!==Gl){var e=wt(Yl),t=Ol.transition,n=bt;try{if(Ol.transition=null,bt=16>e?16:e,null===Gl)var r=!1;else{if(e=Gl,Gl=null,Yl=0,0!==(6&Tl))throw Error(i(331));var o=Tl;for(Tl|=4,Js=e.current;null!==Js;){var a=Js,s=a.child;if(0!==(16&Js.flags)){var l=a.deletions;if(null!==l){for(var c=0;c<l.length;c++){var u=l[c];for(Js=u;null!==Js;){var d=Js;switch(d.tag){case 0:case 11:case 15:nl(8,d,a)}var f=d.child;if(null!==f)f.return=d,Js=f;else for(;null!==Js;){var p=(d=Js).sibling,h=d.return;if(il(d),d===u){Js=null;break}if(null!==p){p.return=h,Js=p;break}Js=h}}}var m=a.alternate;if(null!==m){var g=m.child;if(null!==g){m.child=null;do{var v=g.sibling;g.sibling=null,g=v}while(null!==g)}}Js=a}}if(0!==(2064&a.subtreeFlags)&&null!==s)s.return=a,Js=s;else e:for(;null!==Js;){if(0!==(2048&(a=Js).flags))switch(a.tag){case 0:case 11:case 15:nl(9,a,a.return)}var y=a.sibling;if(null!==y){y.return=a.return,Js=y;break e}Js=a.return}}var b=e.current;for(Js=b;null!==Js;){var w=(s=Js).child;if(0!==(2064&s.subtreeFlags)&&null!==w)w.return=s,Js=w;else e:for(s=b;null!==Js;){if(0!==(2048&(l=Js).flags))try{switch(l.tag){case 0:case 11:case 15:rl(9,l)}}catch(_){Sc(l,l.return,_)}if(l===s){Js=null;break e}var E=l.sibling;if(null!==E){E.return=l.return,Js=E;break e}Js=l.return}}if(Tl=o,$o(),it&&"function"===typeof it.onPostCommitFiberRoot)try{it.onPostCommitFiberRoot(ot,e)}catch(_){}r=!0}return r}finally{bt=n,Ol.transition=t}}return!1}function xc(e,t,n){e=Bi(e,t=ps(0,t=cs(n,t),1),1),t=ec(),null!==e&&(vt(e,1,t),rc(e,t))}function Sc(e,t,n){if(3===e.tag)xc(e,e,n);else for(;null!==t;){if(3===t.tag){xc(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"===typeof t.type.getDerivedStateFromError||"function"===typeof r.componentDidCatch&&(null===Vl||!Vl.has(r))){t=Bi(t,e=hs(t,e=cs(n,e),1),1),e=ec(),null!==t&&(vt(t,1,e),rc(t,e));break}}t=t.return}}function Cc(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=ec(),e.pingedLanes|=e.suspendedLanes&n,Nl===e&&(Pl&n)===n&&(4===Al||3===Al&&(130023424&Pl)===Pl&&500>Qe()-Ul?fc(e,0):zl|=n),rc(e,t)}function kc(e,t){0===t&&(0===(1&e.mode)?t=1:(t=ut,0===(130023424&(ut<<=1))&&(ut=4194304)));var n=ec();null!==(e=ji(e,t))&&(vt(e,t,n),rc(e,n))}function Oc(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),kc(e,n)}function Tc(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;null!==o&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(i(314))}null!==r&&r.delete(t),kc(e,n)}function Nc(e,t){return We(e,t)}function Ic(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 Pc(e,t,n,r){return new Ic(e,t,n,r)}function Rc(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Dc(e,t){var n=e.alternate;return null===n?((n=Pc(e.tag,t,e.key,e.mode)).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=14680064&e.flags,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=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ac(e,t,n,r,o,a){var s=2;if(r=e,"function"===typeof e)Rc(e)&&(s=1);else if("string"===typeof e)s=5;else e:switch(e){case x:return jc(n.children,o,a,t);case S:s=8,o|=8;break;case C:return(e=Pc(12,n,t,2|o)).elementType=C,e.lanes=a,e;case N:return(e=Pc(13,n,t,o)).elementType=N,e.lanes=a,e;case I:return(e=Pc(19,n,t,o)).elementType=I,e.lanes=a,e;case D:return Mc(n,o,a,t);default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case k:s=10;break e;case O:s=9;break e;case T:s=11;break e;case P:s=14;break e;case R:s=16,r=null;break e}throw Error(i(130,null==e?e:typeof e,""))}return(t=Pc(s,n,t,o)).elementType=e,t.type=r,t.lanes=a,t}function jc(e,t,n,r){return(e=Pc(7,e,r,t)).lanes=n,e}function Mc(e,t,n,r){return(e=Pc(22,e,r,t)).elementType=D,e.lanes=n,e.stateNode={isHidden:!1},e}function Lc(e,t,n){return(e=Pc(6,e,null,t)).lanes=n,e}function zc(e,t,n){return(t=Pc(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Fc(e,t,n,r,o){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=gt(0),this.expirationTimes=gt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gt(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Bc(e,t,n,r,o,i,a,s,l){return e=new Fc(e,t,n,s,l),1===t?(t=1,!0===i&&(t|=8)):t=0,i=Pc(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Li(i),e}function Uc(e){if(!e)return To;e:{if(qe(e=e._reactInternals)!==e||1!==e.tag)throw Error(i(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Do(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(i(171))}if(1===e.tag){var n=e.type;if(Do(n))return Mo(e,n,t)}return t}function qc(e,t,n,r,o,i,a,s,l){return(e=Bc(n,r,!0,e,0,i,0,s,l)).context=Uc(null),n=e.current,(i=Fi(r=ec(),o=tc(n))).callback=void 0!==t&&null!==t?t:null,Bi(n,i,o),e.current.lanes=o,vt(e,o,r),rc(e,r),e}function $c(e,t,n,r){var o=t.current,i=ec(),a=tc(o);return n=Uc(n),null===t.context?t.context=n:t.pendingContext=n,(t=Fi(i,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Bi(o,t,a))&&(nc(e,o,a,i),Ui(e,o,a)),a}function Zc(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Hc(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Vc(e,t){Hc(e,t),(e=e.alternate)&&Hc(e,t)}xl=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Io.current)bs=!0;else{if(0===(e.lanes&n)&&0===(128&t.flags))return bs=!1,function(e,t,n){switch(t.tag){case 3:Ns(t),hi();break;case 5:Ji(t);break;case 1:Do(t.type)&&Lo(t);break;case 4:Ki(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Oo(xi,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Oo(ea,1&ea.current),t.flags|=128,null):0!==(n&t.child.childLanes)?Ls(e,t,n):(Oo(ea,1&ea.current),null!==(e=Zs(e,t,n))?e.sibling:null);Oo(ea,1&ea.current);break;case 19:if(r=0!==(n&t.childLanes),0!==(128&e.flags)){if(r)return qs(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),Oo(ea,ea.current),r)break;return null;case 22:case 23:return t.lanes=0,Ss(e,t,n)}return Zs(e,t,n)}(e,t,n);bs=0!==(131072&e.flags)}else bs=!1,ii&&0!==(1048576&t.flags)&&ei(t,Wo,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;$s(e,t),e=t.pendingProps;var o=Ro(t,No.current);Ii(t,n),o=ga(null,t,r,e,o,n);var a=va();return t.flags|=1,"object"===typeof o&&null!==o&&"function"===typeof o.render&&void 0===o.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Do(r)?(a=!0,Lo(t)):a=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,Li(t),o.updater=os,t.stateNode=o,o._reactInternals=t,ls(t,r,e,n),t=Ts(null,t,r,!0,a,n)):(t.tag=0,ii&&a&&ti(t),ws(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch($s(e,t),e=t.pendingProps,r=(o=r._init)(r._payload),t.type=r,o=t.tag=function(e){if("function"===typeof e)return Rc(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===T)return 11;if(e===P)return 14}return 2}(r),e=ns(r,e),o){case 0:t=ks(null,t,r,e,n);break e;case 1:t=Os(null,t,r,e,n);break e;case 11:t=Es(null,t,r,e,n);break e;case 14:t=_s(null,t,r,ns(r.type,e),n);break e}throw Error(i(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,ks(e,t,r,o=t.elementType===r?o:ns(r,o),n);case 1:return r=t.type,o=t.pendingProps,Os(e,t,r,o=t.elementType===r?o:ns(r,o),n);case 3:e:{if(Ns(t),null===e)throw Error(i(387));r=t.pendingProps,o=(a=t.memoizedState).element,zi(e,t),$i(t,r,null,n);var s=t.memoizedState;if(r=s.element,a.isDehydrated){if(a={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=Is(e,t,r,n,o=cs(Error(i(423)),t));break e}if(r!==o){t=Is(e,t,r,n,o=cs(Error(i(424)),t));break e}for(oi=co(t.stateNode.containerInfo.firstChild),ri=t,ii=!0,ai=null,n=_i(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(hi(),r===o){t=Zs(e,t,n);break e}ws(e,t,r,n)}t=t.child}return t;case 5:return Ji(t),null===e&&ui(t),r=t.type,o=t.pendingProps,a=null!==e?e.memoizedProps:null,s=o.children,no(r,o)?s=null:null!==a&&no(r,a)&&(t.flags|=32),Cs(e,t),ws(e,t,s,n),t.child;case 6:return null===e&&ui(t),null;case 13:return Ls(e,t,n);case 4:return Ki(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Ei(t,null,r,n):ws(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,Es(e,t,r,o=t.elementType===r?o:ns(r,o),n);case 7:return ws(e,t,t.pendingProps,n),t.child;case 8:case 12:return ws(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,a=t.memoizedProps,s=o.value,Oo(xi,r._currentValue),r._currentValue=s,null!==a)if(sr(a.value,s)){if(a.children===o.children&&!Io.current){t=Zs(e,t,n);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var l=a.dependencies;if(null!==l){s=a.child;for(var c=l.firstContext;null!==c;){if(c.context===r){if(1===a.tag){(c=Fi(-1,n&-n)).tag=2;var u=a.updateQueue;if(null!==u){var d=(u=u.shared).pending;null===d?c.next=c:(c.next=d.next,d.next=c),u.pending=c}}a.lanes|=n,null!==(c=a.alternate)&&(c.lanes|=n),Ni(a.return,n,t),l.lanes|=n;break}c=c.next}}else if(10===a.tag)s=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(s=a.return))throw Error(i(341));s.lanes|=n,null!==(l=s.alternate)&&(l.lanes|=n),Ni(s,n,t),s=a.sibling}else s=a.child;if(null!==s)s.return=a;else for(s=a;null!==s;){if(s===t){s=null;break}if(null!==(a=s.sibling)){a.return=s.return,s=a;break}s=s.return}a=s}ws(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Ii(t,n),r=r(o=Pi(o)),t.flags|=1,ws(e,t,r,n),t.child;case 14:return o=ns(r=t.type,t.pendingProps),_s(e,t,r,o=ns(r.type,o),n);case 15:return xs(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ns(r,o),$s(e,t),t.tag=1,Do(r)?(e=!0,Lo(t)):e=!1,Ii(t,n),as(t,r,o),ls(t,r,o,n),Ts(null,t,r,!0,e,n);case 19:return qs(e,t,n);case 22:return Ss(e,t,n)}throw Error(i(156,t.tag))};var Wc="function"===typeof reportError?reportError:function(e){console.error(e)};function Gc(e){this._internalRoot=e}function Yc(e){this._internalRoot=e}function Kc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Qc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Jc(){}function Xc(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i;if("function"===typeof o){var s=o;o=function(){var e=Zc(a);s.call(e)}}$c(t,a,e,o)}else a=function(e,t,n,r,o){if(o){if("function"===typeof r){var i=r;r=function(){var e=Zc(a);i.call(e)}}var a=qc(t,r,e,0,null,!1,0,"",Jc);return e._reactRootContainer=a,e[mo]=a.current,qr(8===e.nodeType?e.parentNode:e),uc(),a}for(;o=e.lastChild;)e.removeChild(o);if("function"===typeof r){var s=r;r=function(){var e=Zc(l);s.call(e)}}var l=Bc(e,0,!1,null,0,!1,0,"",Jc);return e._reactRootContainer=l,e[mo]=l.current,qr(8===e.nodeType?e.parentNode:e),uc((function(){$c(t,l,n,r)})),l}(n,t,e,o,r);return Zc(a)}Yc.prototype.render=Gc.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(i(409));$c(e,t,null,null)},Yc.prototype.unmount=Gc.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;uc((function(){$c(null,e,null,null)})),t[mo]=null}},Yc.prototype.unstable_scheduleHydration=function(e){if(e){var t=St();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Dt.length&&0!==t&&t<Dt[n].priority;n++);Dt.splice(n,0,e),0===n&&Lt(e)}},Et=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=dt(t.pendingLanes);0!==n&&(yt(t,1|n),rc(t,Qe()),0===(6&Tl)&&(ql=Qe()+500,$o()))}break;case 13:uc((function(){var t=ji(e,1);if(null!==t){var n=ec();nc(t,e,1,n)}})),Vc(e,1)}},_t=function(e){if(13===e.tag){var t=ji(e,134217728);if(null!==t)nc(t,e,134217728,ec());Vc(e,134217728)}},xt=function(e){if(13===e.tag){var t=tc(e),n=ji(e,t);if(null!==n)nc(n,e,t,ec());Vc(e,t)}},St=function(){return bt},Ct=function(e,t){var n=bt;try{return bt=e,t()}finally{bt=n}},_e=function(e,t,n){switch(t){case"input":if(J(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=_o(r);if(!o)throw Error(i(90));W(r),J(r,o)}}}break;case"textarea":ie(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},Te=cc,Ne=uc;var eu={usingClientEntryPoint:!1,Events:[wo,Eo,_o,ke,Oe,cc]},tu={findFiberByHostInstance:bo,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},nu={bundleType:tu.bundleType,version:tu.version,rendererPackageName:tu.rendererPackageName,rendererConfig:tu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:w.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=He(e))?null:e.stateNode},findFiberByHostInstance:tu.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var ru=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ru.isDisabled&&ru.supportsFiber)try{ot=ru.inject(nu),it=ru}catch(ue){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=eu,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Kc(t))throw Error(i(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:_,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!Kc(e))throw Error(i(299));var n=!1,r="",o=Wc;return null!==t&&void 0!==t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=Bc(e,1,!1,null,0,n,0,r,o),e[mo]=t.current,qr(8===e.nodeType?e.parentNode:e),new Gc(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"===typeof e.render)throw Error(i(188));throw e=Object.keys(e).join(","),Error(i(268,e))}return e=null===(e=He(t))?null:e.stateNode},t.flushSync=function(e){return uc(e)},t.hydrate=function(e,t,n){if(!Qc(t))throw Error(i(200));return Xc(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Kc(e))throw Error(i(405));var r=null!=n&&n.hydratedSources||null,o=!1,a="",s=Wc;if(null!==n&&void 0!==n&&(!0===n.unstable_strictMode&&(o=!0),void 0!==n.identifierPrefix&&(a=n.identifierPrefix),void 0!==n.onRecoverableError&&(s=n.onRecoverableError)),t=qc(t,null,e,1,null!=n?n:null,o,0,a,s),e[mo]=t.current,qr(e),r)for(e=0;e<r.length;e++)o=(o=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new Yc(t)},t.render=function(e,t,n){if(!Qc(t))throw Error(i(200));return Xc(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Qc(e))throw Error(i(40));return!!e._reactRootContainer&&(uc((function(){Xc(null,null,e,!1,(function(){e._reactRootContainer=null,e[mo]=null}))})),!0)},t.unstable_batchedUpdates=cc,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Qc(n))throw Error(i(200));if(null==e||void 0===e._reactInternals)throw Error(i(38));return Xc(e,t,n,!1,r)},t.version="18.3.1-next-f1338f8080-20240426"},63609:(e,t,n)=>{"use strict";var r=n(38886);t.createRoot=r.createRoot,t.hydrateRoot=r.hydrateRoot},38886:(e,t,n)=>{"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(9314)},77808:e=>{var t="undefined"!==typeof Element,n="function"===typeof Map,r="function"===typeof Set,o="function"===typeof ArrayBuffer&&!!ArrayBuffer.isView;function i(e,a){if(e===a)return!0;if(e&&a&&"object"==typeof e&&"object"==typeof a){if(e.constructor!==a.constructor)return!1;var s,l,c,u;if(Array.isArray(e)){if((s=e.length)!=a.length)return!1;for(l=s;0!==l--;)if(!i(e[l],a[l]))return!1;return!0}if(n&&e instanceof Map&&a instanceof Map){if(e.size!==a.size)return!1;for(u=e.entries();!(l=u.next()).done;)if(!a.has(l.value[0]))return!1;for(u=e.entries();!(l=u.next()).done;)if(!i(l.value[1],a.get(l.value[0])))return!1;return!0}if(r&&e instanceof Set&&a instanceof Set){if(e.size!==a.size)return!1;for(u=e.entries();!(l=u.next()).done;)if(!a.has(l.value[0]))return!1;return!0}if(o&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(a)){if((s=e.length)!=a.length)return!1;for(l=s;0!==l--;)if(e[l]!==a[l])return!1;return!0}if(e.constructor===RegExp)return e.source===a.source&&e.flags===a.flags;if(e.valueOf!==Object.prototype.valueOf&&"function"===typeof e.valueOf&&"function"===typeof a.valueOf)return e.valueOf()===a.valueOf();if(e.toString!==Object.prototype.toString&&"function"===typeof e.toString&&"function"===typeof a.toString)return e.toString()===a.toString();if((s=(c=Object.keys(e)).length)!==Object.keys(a).length)return!1;for(l=s;0!==l--;)if(!Object.prototype.hasOwnProperty.call(a,c[l]))return!1;if(t&&e instanceof Element)return!1;for(l=s;0!==l--;)if(("_owner"!==c[l]&&"__v"!==c[l]&&"__o"!==c[l]||!e.$$typeof)&&!i(e[c[l]],a[c[l]]))return!1;return!0}return e!==e&&a!==a}e.exports=function(e,t){try{return i(e,t)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}}},49352:(e,t,n)=>{"use strict";n.d(t,{B6:()=>G,ql:()=>te});var r=n(68963),o=n(77808),i=n.n(o),a=n(32733),s=n.n(a),l=n(69612),c=n.n(l),u=(e=>(e.BASE="base",e.BODY="body",e.HEAD="head",e.HTML="html",e.LINK="link",e.META="meta",e.NOSCRIPT="noscript",e.SCRIPT="script",e.STYLE="style",e.TITLE="title",e.FRAGMENT="Symbol(react.fragment)",e))(u||{}),d={rel:["amphtml","canonical","alternate"]},f={type:["application/ld+json"]},p={charset:"",name:["generator","robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]},h=Object.values(u),m={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},g=Object.entries(m).reduce(((e,t)=>{let[n,r]=t;return e[r]=n,e}),{}),v="data-rh",y="defaultTitle",b="defer",w="encodeSpecialCharacters",E="onChangeClientState",_="titleTemplate",x="prioritizeSeoTags",S=(e,t)=>{for(let n=e.length-1;n>=0;n-=1){const r=e[n];if(Object.prototype.hasOwnProperty.call(r,t))return r[t]}return null},C=e=>{let t=S(e,"title");const n=S(e,_);if(Array.isArray(t)&&(t=t.join("")),n&&t)return n.replace(/%s/g,(()=>t));const r=S(e,y);return t||r||void 0},k=e=>S(e,E)||(()=>{}),O=(e,t)=>t.filter((t=>"undefined"!==typeof t[e])).map((t=>t[e])).reduce(((e,t)=>({...e,...t})),{}),T=(e,t)=>t.filter((e=>"undefined"!==typeof e.base)).map((e=>e.base)).reverse().reduce(((t,n)=>{if(!t.length){const r=Object.keys(n);for(let o=0;o<r.length;o+=1){const i=r[o].toLowerCase();if(-1!==e.indexOf(i)&&n[i])return t.concat(n)}}return t}),[]),N=(e,t,n)=>{const r={};return n.filter((t=>{return!!Array.isArray(t[e])||("undefined"!==typeof t[e]&&(n=`Helmet: ${e} should be of type "Array". Instead found type "${typeof t[e]}"`,console&&"function"===typeof console.warn&&console.warn(n)),!1);var n})).map((t=>t[e])).reverse().reduce(((e,n)=>{const o={};n.filter((e=>{let n;const i=Object.keys(e);for(let r=0;r<i.length;r+=1){const o=i[r],a=o.toLowerCase();-1===t.indexOf(a)||"rel"===n&&"canonical"===e[n].toLowerCase()||"rel"===a&&"stylesheet"===e[a].toLowerCase()||(n=a),-1===t.indexOf(o)||"innerHTML"!==o&&"cssText"!==o&&"itemprop"!==o||(n=o)}if(!n||!e[n])return!1;const a=e[n].toLowerCase();return r[n]||(r[n]={}),o[n]||(o[n]={}),!r[n][a]&&(o[n][a]=!0,!0)})).reverse().forEach((t=>e.push(t)));const i=Object.keys(o);for(let t=0;t<i.length;t+=1){const e=i[t],n={...r[e],...o[e]};r[e]=n}return e}),[]).reverse()},I=(e,t)=>{if(Array.isArray(e)&&e.length)for(let n=0;n<e.length;n+=1){if(e[n][t])return!0}return!1},P=e=>Array.isArray(e)?e.join(""):e,R=(e,t)=>Array.isArray(e)?e.reduce(((e,n)=>(((e,t)=>{const n=Object.keys(e);for(let r=0;r<n.length;r+=1)if(t[n[r]]&&t[n[r]].includes(e[n[r]]))return!0;return!1})(n,t)?e.priority.push(n):e.default.push(n),e)),{priority:[],default:[]}):{default:e,priority:[]},D=(e,t)=>({...e,[t]:void 0}),A=["noscript","script","style"],j=function(e){return!1===(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])?String(e):String(e).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")},M=e=>Object.keys(e).reduce(((t,n)=>{const r="undefined"!==typeof e[n]?`${n}="${e[n]}"`:`${n}`;return t?`${t} ${r}`:r}),""),L=(e,t,n,r)=>{const o=M(n),i=P(t);return o?`<${e} ${v}="true" ${o}>${j(i,r)}</${e}>`:`<${e} ${v}="true">${j(i,r)}</${e}>`},z=function(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return t.reduce(((t,r)=>{const o=r,i=Object.keys(o).filter((e=>!("innerHTML"===e||"cssText"===e))).reduce(((e,t)=>{const r="undefined"===typeof o[t]?t:`${t}="${j(o[t],n)}"`;return e?`${e} ${r}`:r}),""),a=o.innerHTML||o.cssText||"",s=-1===A.indexOf(e);return`${t}<${e} ${v}="true" ${i}${s?"/>":`>${a}</${e}>`}`}),"")},F=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce(((t,n)=>(t[m[n]||n]=e[n],t)),t)},B=(e,t,n)=>{const o=F(n,{key:t,[v]:!0});return[r.createElement("title",o,t)]},U=(e,t)=>t.map(((t,n)=>{const o={key:n,[v]:!0};return Object.keys(t).forEach((e=>{const n=m[e]||e;if("innerHTML"===n||"cssText"===n){const e=t.innerHTML||t.cssText;o.dangerouslySetInnerHTML={__html:e}}else o[n]=t[e]})),r.createElement(e,o)})),q=function(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];switch(e){case"title":return{toComponent:()=>B(e,t.title,t.titleAttributes),toString:()=>L(e,t.title,t.titleAttributes,n)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>F(t),toString:()=>M(t)};default:return{toComponent:()=>U(e,t),toString:()=>z(e,t,n)}}},$=e=>{const{baseTag:t,bodyAttributes:n,encode:r=!0,htmlAttributes:o,noscriptTags:i,styleTags:a,title:s="",titleAttributes:l,prioritizeSeoTags:c}=e;let{linkTags:u,metaTags:h,scriptTags:m}=e,g={toComponent:()=>{},toString:()=>""};return c&&({priorityMethods:g,linkTags:u,metaTags:h,scriptTags:m}=(e=>{let{metaTags:t,linkTags:n,scriptTags:r,encode:o}=e;const i=R(t,p),a=R(n,d),s=R(r,f);return{priorityMethods:{toComponent:()=>[...U("meta",i.priority),...U("link",a.priority),...U("script",s.priority)],toString:()=>`${q("meta",i.priority,o)} ${q("link",a.priority,o)} ${q("script",s.priority,o)}`},metaTags:i.default,linkTags:a.default,scriptTags:s.default}})(e)),{priority:g,base:q("base",t,r),bodyAttributes:q("bodyAttributes",n,r),htmlAttributes:q("htmlAttributes",o,r),link:q("link",u,r),meta:q("meta",h,r),noscript:q("noscript",i,r),script:q("script",m,r),style:q("style",a,r),title:q("title",{title:s,titleAttributes:l},r)}},Z=[],H=!("undefined"===typeof window||!window.document||!window.document.createElement),V=class{instances=[];canUseDOM=H;context;value={setHelmet:e=>{this.context.helmet=e},helmetInstances:{get:()=>this.canUseDOM?Z:this.instances,add:e=>{(this.canUseDOM?Z:this.instances).push(e)},remove:e=>{const t=(this.canUseDOM?Z:this.instances).indexOf(e);(this.canUseDOM?Z:this.instances).splice(t,1)}}};constructor(e,t){this.context=e,this.canUseDOM=t||!1,t||(e.helmet=$({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},W=r.createContext({}),G=class e extends r.Component{static canUseDOM=H;helmetData;constructor(t){super(t),this.helmetData=new V(this.props.context||{},e.canUseDOM)}render(){return r.createElement(W.Provider,{value:this.helmetData.value},this.props.children)}},Y=(e,t)=>{const n=document.head||document.querySelector("head"),r=n.querySelectorAll(`${e}[${v}]`),o=[].slice.call(r),i=[];let a;return t&&t.length&&t.forEach((t=>{const n=document.createElement(e);for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e))if("innerHTML"===e)n.innerHTML=t.innerHTML;else if("cssText"===e)n.styleSheet?n.styleSheet.cssText=t.cssText:n.appendChild(document.createTextNode(t.cssText));else{const r=e,o="undefined"===typeof t[r]?"":t[r];n.setAttribute(e,o)}n.setAttribute(v,"true"),o.some(((e,t)=>(a=t,n.isEqualNode(e))))?o.splice(a,1):i.push(n)})),o.forEach((e=>e.parentNode?.removeChild(e))),i.forEach((e=>n.appendChild(e))),{oldTags:o,newTags:i}},K=(e,t)=>{const n=document.getElementsByTagName(e)[0];if(!n)return;const r=n.getAttribute(v),o=r?r.split(","):[],i=[...o],a=Object.keys(t);for(const s of a){const e=t[s]||"";n.getAttribute(s)!==e&&n.setAttribute(s,e),-1===o.indexOf(s)&&o.push(s);const r=i.indexOf(s);-1!==r&&i.splice(r,1)}for(let s=i.length-1;s>=0;s-=1)n.removeAttribute(i[s]);o.length===i.length?n.removeAttribute(v):n.getAttribute(v)!==a.join(",")&&n.setAttribute(v,a.join(","))},Q=(e,t)=>{const{baseTag:n,bodyAttributes:r,htmlAttributes:o,linkTags:i,metaTags:a,noscriptTags:s,onChangeClientState:l,scriptTags:c,styleTags:u,title:d,titleAttributes:f}=e;K("body",r),K("html",o),((e,t)=>{"undefined"!==typeof e&&document.title!==e&&(document.title=P(e)),K("title",t)})(d,f);const p={baseTag:Y("base",n),linkTags:Y("link",i),metaTags:Y("meta",a),noscriptTags:Y("noscript",s),scriptTags:Y("script",c),styleTags:Y("style",u)},h={},m={};Object.keys(p).forEach((e=>{const{newTags:t,oldTags:n}=p[e];t.length&&(h[e]=t),n.length&&(m[e]=p[e].oldTags)})),t&&t(),l(e,h,m)},J=null,X=e=>{J&&cancelAnimationFrame(J),e.defer?J=requestAnimationFrame((()=>{Q(e,(()=>{J=null}))})):(Q(e),J=null)},ee=class extends r.Component{rendered=!1;shouldComponentUpdate(e){return!c()(e,this.props)}componentDidUpdate(){this.emitChange()}componentWillUnmount(){const{helmetInstances:e}=this.props.context;e.remove(this),this.emitChange()}emitChange(){const{helmetInstances:e,setHelmet:t}=this.props.context;let n=null;const r=(o=e.get().map((e=>{const t={...e.props};return delete t.context,t})),{baseTag:T(["href"],o),bodyAttributes:O("bodyAttributes",o),defer:S(o,b),encode:S(o,w),htmlAttributes:O("htmlAttributes",o),linkTags:N("link",["rel","href"],o),metaTags:N("meta",["name","charset","http-equiv","property","itemprop"],o),noscriptTags:N("noscript",["innerHTML"],o),onChangeClientState:k(o),scriptTags:N("script",["src","innerHTML"],o),styleTags:N("style",["cssText"],o),title:C(o),titleAttributes:O("titleAttributes",o),prioritizeSeoTags:I(o,x)});var o;G.canUseDOM?X(r):$&&(n=$(r)),t(n)}init(){if(this.rendered)return;this.rendered=!0;const{helmetInstances:e}=this.props.context;e.add(this),this.emitChange()}render(){return this.init(),null}},te=class extends r.Component{static defaultProps={defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1};shouldComponentUpdate(e){return!i()(D(this.props,"helmetData"),D(e,"helmetData"))}mapNestedChildrenToProps(e,t){if(!t)return null;switch(e.type){case"script":case"noscript":return{innerHTML:t};case"style":return{cssText:t};default:throw new Error(`<${e.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`)}}flattenArrayTypeChildren(e,t,n,r){return{...t,[e.type]:[...t[e.type]||[],{...n,...this.mapNestedChildrenToProps(e,r)}]}}mapObjectTypeChildren(e,t,n,r){switch(e.type){case"title":return{...t,[e.type]:r,titleAttributes:{...n}};case"body":return{...t,bodyAttributes:{...n}};case"html":return{...t,htmlAttributes:{...n}};default:return{...t,[e.type]:{...n}}}}mapArrayTypeChildrenToProps(e,t){let n={...t};return Object.keys(e).forEach((t=>{n={...n,[t]:e[t]}})),n}warnOnInvalidChildren(e,t){return s()(h.some((t=>e.type===t)),"function"===typeof e.type?"You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.":`Only elements types ${h.join(", ")} are allowed. Helmet does not support rendering <${e.type}> elements. Refer to our API for more information.`),s()(!t||"string"===typeof t||Array.isArray(t)&&!t.some((e=>"string"!==typeof e)),`Helmet expects a string as a child of <${e.type}>. Did you forget to wrap your children in braces? ( <${e.type}>{\`\`}</${e.type}> ) Refer to our API for more information.`),!0}mapChildrenToProps(e,t){let n={};return r.Children.forEach(e,(e=>{if(!e||!e.props)return;const{children:r,...o}=e.props,i=Object.keys(o).reduce(((e,t)=>(e[g[t]||t]=o[t],e)),{});let{type:a}=e;switch("symbol"===typeof a?a=a.toString():this.warnOnInvalidChildren(e,r),a){case"Symbol(react.fragment)":t=this.mapChildrenToProps(r,t);break;case"link":case"meta":case"noscript":case"script":case"style":n=this.flattenArrayTypeChildren(e,n,i,r);break;default:t=this.mapObjectTypeChildren(e,t,i,r)}})),this.mapArrayTypeChildrenToProps(n,t)}render(){const{children:e,...t}=this.props;let n={...t},{helmetData:o}=t;if(e&&(n=this.mapChildrenToProps(e,n)),o&&!(o instanceof V)){o=new V(o.context,!0),delete n.helmetData}return o?r.createElement(ee,{...n,context:o.value}):r.createElement(W.Consumer,null,(e=>r.createElement(ee,{...n,context:e})))}}},9872:(e,t)=>{"use strict";var n=60103,r=60106,o=60107,i=60108,a=60114,s=60109,l=60110,c=60112,u=60113,d=60120,f=60115,p=60116,h=60121,m=60122,g=60117,v=60129,y=60131;if("function"===typeof Symbol&&Symbol.for){var b=Symbol.for;n=b("react.element"),r=b("react.portal"),o=b("react.fragment"),i=b("react.strict_mode"),a=b("react.profiler"),s=b("react.provider"),l=b("react.context"),c=b("react.forward_ref"),u=b("react.suspense"),d=b("react.suspense_list"),f=b("react.memo"),p=b("react.lazy"),h=b("react.block"),m=b("react.server.block"),g=b("react.fundamental"),v=b("react.debug_trace_mode"),y=b("react.legacy_hidden")}function w(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case o:case a:case i:case u:case d:return e;default:switch(e=e&&e.$$typeof){case l:case c:case p:case f:case s:return e;default:return t}}case r:return t}}}t.isContextConsumer=function(e){return w(e)===l}},60380:(e,t,n)=>{"use strict";e.exports=n(9872)},83326:(e,t,n)=>{var r=n(68963),o=n(77065),i=n(50134),a=n(60305),s=r.createElement,l=n(80254),c=n(62937),u=n(81702),d=n(96243),f=n(53767),p=n(68814);e.exports=o({propTypes:{data:i.any.isRequired,search:i.oneOfType([i.func,i.bool]),searchOptions:i.shape({debounceTime:i.number}),onClick:i.func,validateQuery:i.func,isExpanded:i.func,filterOptions:i.shape({cacheResults:i.bool,ignoreCase:i.bool}),query:i.string,verboseShowOriginal:i.bool},getDefaultProps:function(){return{data:null,search:c,searchOptions:{debounceTime:0},className:"",id:"json-"+Date.now(),onClick:p,filterOptions:{cacheResults:!0,ignoreCase:!1},validateQuery:function(e){return e.length>=2},isExpanded:function(e,t){return!1},verboseShowOriginal:!1}},getInitialState:function(){return{query:this.props.query||""}},render:function(){var e=this.props,t=this.state,n=""!==t.query&&e.validateQuery(t.query),r=n?t.filterer(t.query):e.data,o=n&&d(r);return s("div",{className:"json-inspector "+e.className},this.renderToolbar(),o?s("div",{className:"json-inspector__not-found"},"Nothing found"):s(l,{data:r,onClick:e.onClick,id:e.id,getOriginal:this.getOriginal,query:n?new RegExp(t.query,e.filterOptions.ignoreCase?"i":""):null,label:"root",root:!0,isExpanded:e.isExpanded,interactiveLabel:e.interactiveLabel,verboseShowOriginal:e.verboseShowOriginal}))},renderToolbar:function(){var e=this.props.search;if(e)return s("div",{className:"json-inspector__toolbar"},s(e,{onChange:a(this.search,this.props.searchOptions.debounceTime),data:this.props.data,query:this.state.query}))},search:function(e){this.setState({query:e})},componentWillMount:function(){this.createFilterer(this.props.data,this.props.filterOptions)},componentWillReceiveProps:function(e){this.createFilterer(e.data,e.filterOptions),"string"===typeof e.query&&e.query!==this.state.query&&this.setState({query:e.query})},shouldComponentUpdate:function(e,t){return e.query!==this.props.query||t.query!==this.state.query||e.data!==this.props.data||e.onClick!==this.props.onClick},createFilterer:function(e,t){this.setState({filterer:u(e,t)})},getOriginal:function(e){return f(this.props.data,e)}})},81702:(e,t,n)=>{var r=n(65263),o=Object.keys,i=n(20800),a=n(96243);function s(e,t,n){return o(e).reduce((function(o,c){var u,d=e[c];return i(d)?(l(t,c,n)||l(t,d,n))&&(o[c]=d):l(t,c,n)?o[c]=d:(u=s(d,t,n),a(u)||r(o,function(e,t){var n={};return n[e]=t,n}(c,u))),o}),{})}function l(e,t,n){if(t){var r=String(t),o=e;return n.ignoreCase&&(r=r.toLowerCase(),o=o.toLowerCase()),-1!==r.indexOf(o)}}e.exports=function(e,t){t||(t={cacheResults:!0});var n={};return function(r){if(!t.cacheResults)return s(e,r,t);var o;if(!n[r])for(var i=r.length-1;i>0;i-=1)if(o=r.substr(0,i),n[o]){n[r]=s(n[o],r,t);break}return n[r]||(n[r]=s(e,r,t)),n[r]}}},81139:(e,t,n)=>{var r=n(68963),o=n(77065),i=r.createElement;e.exports=o({getDefaultProps:function(){return{string:"",highlight:""}},shouldComponentUpdate:function(e){return e.highlight!==this.props.highlight},render:function(){var e=this.props,t=e.string.search(e.highlight);if(!e.highlight||-1===t)return i("span",null,e.string);var n=e.highlight.source.length,r=e.string.substr(t,n);return i("span",null,e.string.split(e.highlight).map((function(e,t){return i("span",{key:t},t>0?i("span",{className:"json-inspector__hl"},r):null,e)})))}})},96243:e=>{e.exports=function(e){return 0===Object.keys(e).length}},20800:(e,t,n)=>{var r=n(39032);e.exports=function(e){var t=r(e);return"Object"!==t&&"Array"!==t}},80254:(e,t,n)=>{var r=n(68963),o=n(77065),i=n(5083),a=n(88034),s=n(39032),l=n(20800),c=n(81139),u=r.createElement,d=o({getInitialState:function(){return{expanded:this._isInitiallyExpanded(this.props)}},getDefaultProps:function(){return{root:!1,prefix:""}},render:function(){var e="id_"+a(),t=this.props,n={path:this.keypath(),key:t.label.toString(),value:t.data},r=this._onClick.bind(this,n);return u("div",{className:this.getClassName(),id:"leaf-"+this._rootPath()},u("input",{className:"json-inspector__radio",type:"radio",name:t.id,id:e,tabIndex:-1}),u("label",{className:"json-inspector__line",htmlFor:e,onClick:r},u("div",{className:"json-inspector__flatpath"},n.path),u("span",{className:"json-inspector__key"},this.format(n.key),":",this.renderInteractiveLabel(n.key,!0)),this.renderTitle(),this.renderShowOriginalButton()),this.renderChildren())},renderTitle:function(){var e=this.data(),t=s(e);switch(t){case"Array":return u("span",{className:"json-inspector__value json-inspector__value_helper"},"[] "+f(e.length));case"Object":return u("span",{className:"json-inspector__value json-inspector__value_helper"},"{} "+f(Object.keys(e).length));default:return u("span",{className:"json-inspector__value json-inspector__value_"+t.toLowerCase()},this.format(String(e)),this.renderInteractiveLabel(e,!1))}},renderChildren:function(){var e=this.props,t=this._rootPath(),n=this.data();return this.state.expanded&&!l(n)?Object.keys(n).map((function(r){var o=n[r],i=!this.state.original||!!e.verboseShowOriginal&&e.query;return u(d,{data:o,label:r,prefix:t,onClick:e.onClick,id:e.id,query:e.query,getOriginal:i?e.getOriginal:null,key:p(r,o),isExpanded:e.isExpanded,interactiveLabel:e.interactiveLabel,verboseShowOriginal:e.verboseShowOriginal})}),this):null},renderShowOriginalButton:function(){var e=this.props;return l(e.data)||this.state.original||!e.getOriginal||!e.query||h(this.keypath(),e.query)?null:u("span",{className:"json-inspector__show-original",onClick:this._onShowOriginalClick})},renderInteractiveLabel:function(e,t){return"function"===typeof this.props.interactiveLabel?u(this.props.interactiveLabel,{value:String(e),originalValue:e,isKey:t,keypath:this.keypath()}):null},componentWillReceiveProps:function(e){e.query&&this.setState({expanded:!h(e.label,e.query)}),this.props.query&&!e.query&&this.setState({expanded:this._isInitiallyExpanded(e)})},_rootPath:function(){return this.props.prefix+"."+this.props.label},keypath:function(){return this._rootPath().substr(".root.".length)},data:function(){return this.state.original||this.props.data},format:function(e){return u(c,{string:e,highlight:this.props.query})},getClassName:function(){var e="json-inspector__leaf";return this.props.root&&(e+=" json-inspector__leaf_root"),this.state.expanded&&(e+=" json-inspector__leaf_expanded"),l(this.props.data)||(e+=" json-inspector__leaf_composite"),e},toggle:function(){this.setState({expanded:!this.state.expanded})},_onClick:function(e,t){this.toggle(),this.props.onClick(e),t.stopPropagation()},_onShowOriginalClick:function(e){this.setState({original:this.props.getOriginal(this.keypath())}),e.stopPropagation()},_isInitiallyExpanded:function(e){var t=this.keypath();return!!e.root||(e.query?!h(t,e.query)&&"function"===typeof e.getOriginal:e.isExpanded(t,e.data))}});function f(e){return e+(1===e?" item":" items")}function p(e,t){return l(t)?e+":"+i(String(t)):e+"["+s(t)+"]"}function h(e,t){return-1!==e.indexOf(t)}e.exports=d},53767:(e,t,n)=>{var r=n(39032),o=".";function i(e){return parseInt(e,10)}e.exports=function e(t,n){var a=n.split(o),s=a.shift();if(!s)return t;var l=r(t);return"Array"===l&&t[i(s)]?e(t[i(s)],a.join(o)):"Object"===l&&t[s]?e(t[s],a.join(o)):void 0}},68814:e=>{e.exports=function(){}},62937:(e,t,n)=>{var r=n(68963),o=n(77065),i=r.createElement,a=n(68814);e.exports=o({getDefaultProps:function(){return{onChange:a}},render:function(){return i("input",{className:"json-inspector__search",type:"search",placeholder:"Search",onChange:this.onChange})},onChange:function(e){this.props.onChange(e.target.value)}})},39032:e=>{e.exports=function(e){return Object.prototype.toString.call(e).slice(8,-1)}},88034:e=>{var t=Math.ceil(10*Math.random());e.exports=function(){return++t}},65263:e=>{"use strict";e.exports=Object.assign||function(e,t){for(var n,r,o=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),i=1;i<arguments.length;i++){n=arguments[i],r=Object.keys(Object(n));for(var a=0;a<r.length;a++)o[r[a]]=n[r[a]]}return o}},83570:function(e,t,n){var r,o,i;"undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self&&self,o=[n(50134),n(68963)],r=function(t,n){"use strict";var r,o;function i(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}function a(e){if(e&&e.__esModule)return e;if(null===e||"object"!==l(e)&&"function"!==typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=r?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}function s(e){return e&&e.__esModule?e:{default:e}}function l(e){return l="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(e,t,n){return t&&u(e.prototype,t),n&&u(e,n),e}function f(e,t){if("function"!==typeof t&&null!==t)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}}),t&&p(e,t)}function p(e,t){return p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},p(e,t)}function h(e){var t=v();return function(){var n,r=y(e);if(t){var o=y(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m(this,n)}}function m(e,t){return!t||"object"!==l(t)&&"function"!==typeof t?g(e):t}function g(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function v(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},y(e)}function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function w(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b(Object(n),!0).forEach((function(t){E(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function E(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t=s(t),n=a(n);var _={x:"clientWidth",y:"clientHeight"},x={x:"clientTop",y:"clientLeft"},S={x:"innerWidth",y:"innerHeight"},C={x:"offsetWidth",y:"offsetHeight"},k={x:"offsetLeft",y:"offsetTop"},O={x:"overflowX",y:"overflowY"},T={x:"scrollWidth",y:"scrollHeight"},N={x:"scrollLeft",y:"scrollTop"},I={x:"width",y:"height"},P=function(){},R=!!function(){if("undefined"===typeof window)return!1;var e=!1;try{document.createElement("div").addEventListener("test",P,{get passive(){return e=!0,!1}})}catch(t){}return e}()&&{passive:!0},D="ReactList failed to reach a stable state.",A=40,j=function(e,t){for(var n in t)if(e[n]!==t[n])return!1;return!0},M=function(e){for(var t=e.props.axis,n=e.getEl(),r=O[t];n=n.parentElement;)switch(window.getComputedStyle(n)[r]){case"auto":case"scroll":case"overlay":return n}return window},L=function(e){var t=e.props.axis,n=e.scrollParent;return n===window?window[S[t]]:n[_[t]]},z=function(e,t){var n=e.length,r=e.minSize,o=e.type,i=t.from,a=t.size,s=t.itemsPerRow,l=(a=Math.max(a,r))%s;return l&&(a+=s-l),a>n&&(a=n),(l=(i="simple"!==o&&i?Math.max(Math.min(i,n-a),0):0)%s)&&(i-=l,a+=l),i===t.from&&a==t.size?t:w(w({},t),{},{from:i,size:a})};e.exports=(o=r=function(e){f(r,e);var t=h(r);function r(e){var n;return c(this,r),(n=t.call(this,e)).state=z(e,{itemsPerRow:1,from:e.initialIndex,size:0}),n.cache={},n.cachedScrollPosition=null,n.prevPrevState={},n.unstable=!1,n.updateCounter=0,n}return d(r,null,[{key:"getDerivedStateFromProps",value:function(e,t){var n=z(e,t);return n===t?null:n}}]),d(r,[{key:"componentDidMount",value:function(){this.updateFrameAndClearCache=this.updateFrameAndClearCache.bind(this),window.addEventListener("resize",this.updateFrameAndClearCache),this.updateFrame(this.scrollTo.bind(this,this.props.initialIndex))}},{key:"componentDidUpdate",value:function(e){var t=this;if(this.props.axis!==e.axis&&this.clearSizeCache(),!this.unstable){if(++this.updateCounter>A)return this.unstable=!0,console.error(D);this.updateCounterTimeoutId||(this.updateCounterTimeoutId=setTimeout((function(){t.updateCounter=0,delete t.updateCounterTimeoutId}),0)),this.updateFrame()}}},{key:"maybeSetState",value:function(e,t){if(j(this.state,e))return t();this.setState(e,t)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.updateFrameAndClearCache),this.scrollParent.removeEventListener("scroll",this.updateFrameAndClearCache,R),this.scrollParent.removeEventListener("mousewheel",P,R)}},{key:"getOffset",value:function(e){var t=this.props.axis,n=e[x[t]]||0,r=k[t];do{n+=e[r]||0}while(e=e.offsetParent);return n}},{key:"getEl",value:function(){return this.el||this.items}},{key:"getScrollPosition",value:function(){if("number"===typeof this.cachedScrollPosition)return this.cachedScrollPosition;var e=this.scrollParent,t=this.props.axis,n=N[t],r=e===window?document.body[n]||document.documentElement[n]:e[n],o=this.getScrollSize()-this.props.scrollParentViewportSizeGetter(this),i=Math.max(0,Math.min(r,o)),a=this.getEl();return this.cachedScrollPosition=this.getOffset(e)+i-this.getOffset(a),this.cachedScrollPosition}},{key:"setScroll",value:function(e){var t=this.scrollParent,n=this.props.axis;if(e+=this.getOffset(this.getEl()),t===window)return window.scrollTo(0,e);e-=this.getOffset(this.scrollParent),t[N[n]]=e}},{key:"getScrollSize",value:function(){var e=this.scrollParent,t=document,n=t.body,r=t.documentElement,o=T[this.props.axis];return e===window?Math.max(n[o],r[o]):e[o]}},{key:"hasDeterminateSize",value:function(){var e=this.props,t=e.itemSizeGetter;return"uniform"===e.type||t}},{key:"getStartAndEnd",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props.threshold,t=this.getScrollPosition(),n=Math.max(0,t-e),r=t+this.props.scrollParentViewportSizeGetter(this)+e;return this.hasDeterminateSize()&&(r=Math.min(r,this.getSpaceBefore(this.props.length))),{start:n,end:r}}},{key:"getItemSizeAndItemsPerRow",value:function(){var e=this.props,t=e.axis,n=e.useStaticSize,r=this.state,o=r.itemSize,i=r.itemsPerRow;if(n&&o&&i)return{itemSize:o,itemsPerRow:i};var a=this.items.children;if(!a.length)return{};var s=a[0],l=s[C[t]],c=Math.abs(l-o);if((isNaN(c)||c>=1)&&(o=l),!o)return{};for(var u=k[t],d=s[u],f=a[i=1];f&&f[u]===d;f=a[i])++i;return{itemSize:o,itemsPerRow:i}}},{key:"clearSizeCache",value:function(){this.cachedScrollPosition=null}},{key:"updateFrameAndClearCache",value:function(e){return this.clearSizeCache(),this.updateFrame(e)}},{key:"updateFrame",value:function(e){switch(this.updateScrollParent(),"function"!=typeof e&&(e=P),this.props.type){case"simple":return this.updateSimpleFrame(e);case"variable":return this.updateVariableFrame(e);case"uniform":return this.updateUniformFrame(e)}}},{key:"updateScrollParent",value:function(){var e=this.scrollParent;this.scrollParent=this.props.scrollParentGetter(this),e!==this.scrollParent&&(e&&(e.removeEventListener("scroll",this.updateFrameAndClearCache),e.removeEventListener("mousewheel",P)),this.clearSizeCache(),this.scrollParent.addEventListener("scroll",this.updateFrameAndClearCache,R),this.scrollParent.addEventListener("mousewheel",P,R))}},{key:"updateSimpleFrame",value:function(e){var t=this.getStartAndEnd().end,n=this.items.children,r=0;if(n.length){var o=this.props.axis,i=n[0],a=n[n.length-1];r=this.getOffset(a)+a[C[o]]-this.getOffset(i)}if(r>t)return e();var s=this.props,l=s.pageSize,c=s.length,u=Math.min(this.state.size+l,c);this.maybeSetState({size:u},e)}},{key:"updateVariableFrame",value:function(e){this.props.itemSizeGetter||this.cacheSizes();for(var t=this.getStartAndEnd(),n=t.start,r=t.end,o=this.props,i=o.length,a=o.pageSize,s=0,l=0,c=0,u=i-1;l<u;){var d=this.getSizeOfItem(l);if(null==d||s+d>n)break;s+=d,++l}for(var f=i-l;c<f&&s<r;){var p=this.getSizeOfItem(l+c);if(null==p){c=Math.min(c+a,f);break}s+=p,++c}this.maybeSetState(z(this.props,{from:l,itemsPerRow:1,size:c}),e)}},{key:"updateUniformFrame",value:function(e){var t=this.getItemSizeAndItemsPerRow(),n=t.itemSize,r=t.itemsPerRow;if(!n||!r)return e();var o=this.getStartAndEnd(),i=o.start,a=o.end,s=z(this.props,{from:Math.floor(i/n)*r,size:(Math.ceil((a-i)/n)+1)*r,itemsPerRow:r}),l=s.from,c=s.size;return this.maybeSetState({itemsPerRow:r,from:l,itemSize:n,size:c},e)}},{key:"getSpaceBefore",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null!=t[e])return t[e];var n=this.state,r=n.itemSize,o=n.itemsPerRow;if(r)return t[e]=Math.floor(e/o)*r;for(var i=e;i>0&&null==t[--i];);for(var a=t[i]||0,s=i;s<e;++s){t[s]=a;var l=this.getSizeOfItem(s);if(null==l)break;a+=l}return t[e]=a}},{key:"cacheSizes",value:function(){for(var e=this.cache,t=this.state.from,n=this.items.children,r=C[this.props.axis],o=0,i=n.length;o<i;++o)e[t+o]=n[o][r]}},{key:"getSizeOfItem",value:function(e){var t=this.cache,n=this.items,r=this.props,o=r.axis,i=r.itemSizeGetter,a=r.itemSizeEstimator,s=r.type,l=this.state,c=l.from,u=l.itemSize,d=l.size;if(u)return u;if(i)return i(e);if(e in t)return t[e];if("simple"===s&&e>=c&&e<c+d&&n){var f=n.children[e-c];if(f)return f[C[o]]}return a?a(e,t):void 0}},{key:"scrollTo",value:function(e){null!=e&&this.setScroll(this.getSpaceBefore(e))}},{key:"scrollAround",value:function(e){var t=this.getScrollPosition(),n=this.getSpaceBefore(e),r=n-this.props.scrollParentViewportSizeGetter(this)+this.getSizeOfItem(e),o=Math.min(r,n),i=Math.max(r,n);return t<=o?this.setScroll(o):t>i?this.setScroll(i):void 0}},{key:"getVisibleRange",value:function(){for(var e,t,n=this.state,r=n.from,o=n.size,i=this.getStartAndEnd(0),a=i.start,s=i.end,l={},c=r;c<r+o;++c){var u=this.getSpaceBefore(c,l),d=u+this.getSizeOfItem(c);null==e&&d>a&&(e=c),null!=e&&u<s&&(t=c)}return[e,t]}},{key:"renderItems",value:function(){for(var e=this,t=this.props,n=t.itemRenderer,r=t.itemsRenderer,o=this.state,i=o.from,a=o.size,s=[],l=0;l<a;++l)s.push(n(i+l,l));return r(s,(function(t){return e.items=t}))}},{key:"render",value:function(){var e=this,t=this.props,r=t.axis,o=t.length,i=t.type,a=t.useTranslate3d,s=this.state,l=s.from,c=s.itemsPerRow,u=this.renderItems();if("simple"===i)return u;var d={position:"relative"},f={},p=Math.ceil(o/c)*c,h=this.getSpaceBefore(p,f);h&&(d[I[r]]=h,"x"===r&&(d.overflowX="hidden"));var m=this.getSpaceBefore(l,f),g="x"===r?m:0,v="y"===r?m:0,y=a?"translate3d(".concat(g,"px, ").concat(v,"px, 0)"):"translate(".concat(g,"px, ").concat(v,"px)"),b={msTransform:y,WebkitTransform:y,transform:y};return n.default.createElement("div",{style:d,ref:function(t){return e.el=t}},n.default.createElement("div",{style:b},u))}}]),r}(n.Component),E(r,"displayName","ReactList"),E(r,"propTypes",{axis:t.default.oneOf(["x","y"]),initialIndex:t.default.number,itemRenderer:t.default.func,itemSizeEstimator:t.default.func,itemSizeGetter:t.default.func,itemsRenderer:t.default.func,length:t.default.number,minSize:t.default.number,pageSize:t.default.number,scrollParentGetter:t.default.func,scrollParentViewportSizeGetter:t.default.func,threshold:t.default.number,type:t.default.oneOf(["simple","variable","uniform"]),useStaticSize:t.default.bool,useTranslate3d:t.default.bool}),E(r,"defaultProps",{axis:"y",itemRenderer:function(e,t){return n.default.createElement("div",{key:t},e)},itemsRenderer:function(e,t){return n.default.createElement("div",{ref:t},e)},length:0,minSize:1,pageSize:10,scrollParentGetter:M,scrollParentViewportSizeGetter:L,threshold:100,type:"simple",useStaticSize:!1,useTranslate3d:!1}),o)},void 0===(i="function"===typeof r?r.apply(t,o):r)||(e.exports=i)},83203:(e,t,n)=>{"use strict";n.d(t,{rU:()=>m});var r=n(86974),o=n(51721),i=n(68963),a=n(91668),s=n(87462),l=n(63366),c=n(35731);i.Component;i.Component;var u=function(e,t){return"function"===typeof e?e(t):e},d=function(e,t){return"string"===typeof e?(0,a.ob)(e,null,null,t):e},f=function(e){return e},p=i.forwardRef;"undefined"===typeof p&&(p=f);var h=p((function(e,t){var n=e.innerRef,r=e.navigate,o=e.onClick,a=(0,l.Z)(e,["innerRef","navigate","onClick"]),c=a.target,u=(0,s.Z)({},a,{onClick:function(e){try{o&&o(e)}catch(t){throw e.preventDefault(),t}e.defaultPrevented||0!==e.button||c&&"_self"!==c||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)||(e.preventDefault(),r())}});return u.ref=f!==p&&t||n,i.createElement("a",u)}));var m=p((function(e,t){var n=e.component,o=void 0===n?h:n,m=e.replace,g=e.to,v=e.innerRef,y=(0,l.Z)(e,["component","replace","to","innerRef"]);return i.createElement(r.s6.Consumer,null,(function(e){e||(0,c.Z)(!1);var n=e.history,r=d(u(g,e.location),e.location),l=r?n.createHref(r):"",h=(0,s.Z)({},y,{href:l,navigate:function(){var t=u(g,e.location),r=(0,a.Ep)(e.location)===(0,a.Ep)(d(t));(m||r?n.replace:n.push)(t)}});return f!==p?h.ref=t||v:h.innerRef=v,i.createElement(o,h)}))})),g=function(e){return e},v=i.forwardRef;"undefined"===typeof v&&(v=g);v((function(e,t){var n=e["aria-current"],o=void 0===n?"page":n,a=e.activeClassName,f=void 0===a?"active":a,p=e.activeStyle,h=e.className,y=e.exact,b=e.isActive,w=e.location,E=e.sensitive,_=e.strict,x=e.style,S=e.to,C=e.innerRef,k=(0,l.Z)(e,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return i.createElement(r.s6.Consumer,null,(function(e){e||(0,c.Z)(!1);var n=w||e.location,a=d(u(S,n),n),l=a.pathname,O=l&&l.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),T=O?(0,r.LX)(n.pathname,{path:O,exact:y,sensitive:E,strict:_}):null,N=!!(b?b(T,n):T),I="function"===typeof h?h(N):h,P="function"===typeof x?x(N):x;N&&(I=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((function(e){return e})).join(" ")}(I,f),P=(0,s.Z)({},P,p));var R=(0,s.Z)({"aria-current":N&&o||null,className:I,style:P,to:a},k);return g!==v?R.ref=t||C:R.innerRef=C,i.createElement(m,R)}))}))},86974:(e,t,n)=>{"use strict";n.d(t,{$B:()=>U,AW:()=>I,F0:()=>b,LX:()=>N,TH:()=>F,UO:()=>B,k6:()=>z,l_:()=>C,rs:()=>M,s6:()=>y});var r=n(51721),o=n(68963),i=n(50134),a=n.n(i),s=n(91668),l=n(35731),c=n(87462),u=n(85528),d=n.n(u),f=(n(99898),n(63366)),p=(n(15170),1073741823),h="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:{};var m=o.createContext||function(e,t){var n,i,s="__create-react-context-"+function(){var e="__global_unique_id__";return h[e]=(h[e]||0)+1}()+"__",l=function(e){function n(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).emitter=function(e){var t=[];return{on:function(e){t.push(e)},off:function(e){t=t.filter((function(t){return t!==e}))},get:function(){return e},set:function(n,r){e=n,t.forEach((function(t){return t(e,r)}))}}}(t.props.value),t}(0,r.Z)(n,e);var o=n.prototype;return o.getChildContext=function(){var e;return(e={})[s]=this.emitter,e},o.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var n,r=this.props.value,o=e.value;((i=r)===(a=o)?0!==i||1/i===1/a:i!==i&&a!==a)?n=0:(n="function"===typeof t?t(r,o):p,0!==(n|=0)&&this.emitter.set(e.value,n))}var i,a},o.render=function(){return this.props.children},n}(o.Component);l.childContextTypes=((n={})[s]=a().object.isRequired,n);var c=function(t){function n(){for(var e,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(e=t.call.apply(t,[this].concat(r))||this).observedBits=void 0,e.state={value:e.getValue()},e.onUpdate=function(t,n){0!==((0|e.observedBits)&n)&&e.setState({value:e.getValue()})},e}(0,r.Z)(n,t);var o=n.prototype;return o.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=void 0===t||null===t?p:t},o.componentDidMount=function(){this.context[s]&&this.context[s].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=void 0===e||null===e?p:e},o.componentWillUnmount=function(){this.context[s]&&this.context[s].off(this.onUpdate)},o.getValue=function(){return this.context[s]?this.context[s].get():e},o.render=function(){return(e=this.props.children,Array.isArray(e)?e[0]:e)(this.state.value);var e},n}(o.Component);return c.contextTypes=((i={})[s]=a().object,i),{Provider:l,Consumer:c}},g=function(e){var t=m();return t.displayName=e,t},v=g("Router-History"),y=g("Router"),b=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={location:t.history.location},n._isMounted=!1,n._pendingLocation=null,t.staticContext||(n.unlisten=t.history.listen((function(e){n._pendingLocation=e}))),n}(0,r.Z)(t,e),t.computeRootMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}};var n=t.prototype;return n.componentDidMount=function(){var e=this;this._isMounted=!0,this.unlisten&&this.unlisten(),this.props.staticContext||(this.unlisten=this.props.history.listen((function(t){e._isMounted&&e.setState({location:t})}))),this._pendingLocation&&this.setState({location:this._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&(this.unlisten(),this._isMounted=!1,this._pendingLocation=null)},n.render=function(){return o.createElement(y.Provider,{value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},o.createElement(v.Provider,{children:this.props.children||null,value:this.props.history}))},t}(o.Component);o.Component;var w=function(e){function t(){return e.apply(this,arguments)||this}(0,r.Z)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.props.onMount&&this.props.onMount.call(this,this)},n.componentDidUpdate=function(e){this.props.onUpdate&&this.props.onUpdate.call(this,this,e)},n.componentWillUnmount=function(){this.props.onUnmount&&this.props.onUnmount.call(this,this)},n.render=function(){return null},t}(o.Component);var E={},_=1e4,x=0;function S(e,t){return void 0===e&&(e="/"),void 0===t&&(t={}),"/"===e?e:function(e){if(E[e])return E[e];var t=d().compile(e);return x<_&&(E[e]=t,x++),t}(e)(t,{pretty:!0})}function C(e){var t=e.computedMatch,n=e.to,r=e.push,i=void 0!==r&&r;return o.createElement(y.Consumer,null,(function(e){e||(0,l.Z)(!1);var r=e.history,a=e.staticContext,u=i?r.push:r.replace,d=(0,s.ob)(t?"string"===typeof n?S(n,t.params):(0,c.Z)({},n,{pathname:S(n.pathname,t.params)}):n);return a?(u(d),null):o.createElement(w,{onMount:function(){u(d)},onUpdate:function(e,t){var n=(0,s.ob)(t.to);(0,s.Hp)(n,(0,c.Z)({},d,{key:n.key}))||u(d)},to:n})}))}var k={},O=1e4,T=0;function N(e,t){void 0===t&&(t={}),("string"===typeof t||Array.isArray(t))&&(t={path:t});var n=t,r=n.path,o=n.exact,i=void 0!==o&&o,a=n.strict,s=void 0!==a&&a,l=n.sensitive,c=void 0!==l&&l;return[].concat(r).reduce((function(t,n){if(!n&&""!==n)return null;if(t)return t;var r=function(e,t){var n=""+t.end+t.strict+t.sensitive,r=k[n]||(k[n]={});if(r[e])return r[e];var o=[],i={regexp:d()(e,o,t),keys:o};return T<O&&(r[e]=i,T++),i}(n,{end:i,strict:s,sensitive:c}),o=r.regexp,a=r.keys,l=o.exec(e);if(!l)return null;var u=l[0],f=l.slice(1),p=e===u;return i&&!p?null:{path:n,url:"/"===n&&""===u?"/":u,isExact:p,params:a.reduce((function(e,t,n){return e[t.name]=f[n],e}),{})}}),null)}var I=function(e){function t(){return e.apply(this,arguments)||this}return(0,r.Z)(t,e),t.prototype.render=function(){var e=this;return o.createElement(y.Consumer,null,(function(t){t||(0,l.Z)(!1);var n=e.props.location||t.location,r=e.props.computedMatch?e.props.computedMatch:e.props.path?N(n.pathname,e.props):t.match,i=(0,c.Z)({},t,{location:n,match:r}),a=e.props,s=a.children,u=a.component,d=a.render;return Array.isArray(s)&&function(e){return 0===o.Children.count(e)}(s)&&(s=null),o.createElement(y.Provider,{value:i},i.match?s?"function"===typeof s?s(i):s:u?o.createElement(u,i):d?d(i):null:"function"===typeof s?s(i):null)}))},t}(o.Component);function P(e){return"/"===e.charAt(0)?e:"/"+e}function R(e,t){if(!e)return t;var n=P(e);return 0!==t.pathname.indexOf(n)?t:(0,c.Z)({},t,{pathname:t.pathname.substr(n.length)})}function D(e){return"string"===typeof e?e:(0,s.Ep)(e)}function A(e){return function(){(0,l.Z)(!1)}}function j(){}o.Component;var M=function(e){function t(){return e.apply(this,arguments)||this}return(0,r.Z)(t,e),t.prototype.render=function(){var e=this;return o.createElement(y.Consumer,null,(function(t){t||(0,l.Z)(!1);var n,r,i=e.props.location||t.location;return o.Children.forEach(e.props.children,(function(e){if(null==r&&o.isValidElement(e)){n=e;var a=e.props.path||e.props.from;r=a?N(i.pathname,(0,c.Z)({},e.props,{path:a})):t.match}})),r?o.cloneElement(n,{location:i,computedMatch:r}):null}))},t}(o.Component);var L=o.useContext;function z(){return L(v)}function F(){return L(y).location}function B(){var e=L(y).match;return e?e.params:{}}function U(e){var t=F(),n=L(y).match;return e?N(t.pathname,e):n}},85528:(e,t,n)=>{var r=n(49099);e.exports=p,e.exports.parse=i,e.exports.compile=function(e,t){return s(i(e,t),t)},e.exports.tokensToFunction=s,e.exports.tokensToRegExp=f;var o=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function i(e,t){for(var n,r=[],i=0,a=0,s="",u=t&&t.delimiter||"/";null!=(n=o.exec(e));){var d=n[0],f=n[1],p=n.index;if(s+=e.slice(a,p),a=p+d.length,f)s+=f[1];else{var h=e[a],m=n[2],g=n[3],v=n[4],y=n[5],b=n[6],w=n[7];s&&(r.push(s),s="");var E=null!=m&&null!=h&&h!==m,_="+"===b||"*"===b,x="?"===b||"*"===b,S=n[2]||u,C=v||y;r.push({name:g||i++,prefix:m||"",delimiter:S,optional:x,repeat:_,partial:E,asterisk:!!w,pattern:C?c(C):w?".*":"[^"+l(S)+"]+?"})}}return a<e.length&&(s+=e.substr(a)),s&&r.push(s),r}function a(e){return encodeURI(e).replace(/[\/?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function s(e,t){for(var n=new Array(e.length),o=0;o<e.length;o++)"object"===typeof e[o]&&(n[o]=new RegExp("^(?:"+e[o].pattern+")$",d(t)));return function(t,o){for(var i="",s=t||{},l=(o||{}).pretty?a:encodeURIComponent,c=0;c<e.length;c++){var u=e[c];if("string"!==typeof u){var d,f=s[u.name];if(null==f){if(u.optional){u.partial&&(i+=u.prefix);continue}throw new TypeError('Expected "'+u.name+'" to be defined')}if(r(f)){if(!u.repeat)throw new TypeError('Expected "'+u.name+'" to not repeat, but received `'+JSON.stringify(f)+"`");if(0===f.length){if(u.optional)continue;throw new TypeError('Expected "'+u.name+'" to not be empty')}for(var p=0;p<f.length;p++){if(d=l(f[p]),!n[c].test(d))throw new TypeError('Expected all "'+u.name+'" to match "'+u.pattern+'", but received `'+JSON.stringify(d)+"`");i+=(0===p?u.prefix:u.delimiter)+d}}else{if(d=u.asterisk?encodeURI(f).replace(/[?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})):l(f),!n[c].test(d))throw new TypeError('Expected "'+u.name+'" to match "'+u.pattern+'", but received "'+d+'"');i+=u.prefix+d}}else i+=u}return i}}function l(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function c(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function u(e,t){return e.keys=t,e}function d(e){return e&&e.sensitive?"":"i"}function f(e,t,n){r(t)||(n=t||n,t=[]);for(var o=(n=n||{}).strict,i=!1!==n.end,a="",s=0;s<e.length;s++){var c=e[s];if("string"===typeof c)a+=l(c);else{var f=l(c.prefix),p="(?:"+c.pattern+")";t.push(c),c.repeat&&(p+="(?:"+f+p+")*"),a+=p=c.optional?c.partial?f+"("+p+")?":"(?:"+f+"("+p+"))?":f+"("+p+")"}}var h=l(n.delimiter||"/"),m=a.slice(-h.length)===h;return o||(a=(m?a.slice(0,-h.length):a)+"(?:"+h+"(?=$))?"),a+=i?"$":o&&m?"":"(?="+h+"|$)",u(new RegExp("^"+a,d(n)),t)}function p(e,t,n){return r(t)||(n=t||n,t=[]),n=n||{},e instanceof RegExp?function(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return u(e,t)}(e,t):r(e)?function(e,t,n){for(var r=[],o=0;o<e.length;o++)r.push(p(e[o],t,n).source);return u(new RegExp("(?:"+r.join("|")+")",d(n)),t)}(e,t,n):function(e,t,n){return f(i(e,n),t,n)}(e,t,n)}},20261:(e,t)=>{"use strict";var n="function"===typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function E(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case d:case i:case s:case a:case p:return e;default:switch(e=e&&e.$$typeof){case c:case f:case g:case m:case l:return e;default:return t}}case o:return t}}}function _(e){return E(e)===d}},99898:(e,t,n)=>{"use strict";n(20261)},62685:(e,t,n)=>{"use strict";n.d(t,{Z:()=>_});var r=n(87462),o=n(63366),i=n(51721);function a(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var s=n(68963),l=n(38886);const c=!1;var u=n(24330),d=function(e){return e.scrollTop},f="unmounted",p="exited",h="entering",m="entered",g="exiting",v=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=p,r.appearStatus=h):o=m:o=t.unmountOnExit||t.mountOnEnter?f:p,r.state={status:o},r.nextCallback=null,r}(0,i.Z)(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===f?{status:p}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==h&&n!==m&&(t=h):n!==h&&n!==m||(t=g)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!==typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===h){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:l.findDOMNode(this);n&&d(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===p&&this.setState({status:f})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[l.findDOMNode(this),r],i=o[0],a=o[1],s=this.getTimeouts(),u=r?s.appear:s.enter;!e&&!n||c?this.safeSetState({status:m},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:h},(function(){t.props.onEntering(i,a),t.onTransitionEnd(u,(function(){t.safeSetState({status:m},(function(){t.props.onEntered(i,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:l.findDOMNode(this);t&&!c?(this.props.onExit(r),this.safeSetState({status:g},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:p},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:p},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:l.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===f)return null;var t=this.props,n=t.children,r=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,(0,o.Z)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return s.createElement(u.Z.Provider,{value:null},"function"===typeof n?n(e,r):s.cloneElement(s.Children.only(n),r))},t}(s.Component);function y(){}v.contextType=u.Z,v.propTypes={},v.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:y,onEntering:y,onEntered:y,onExit:y,onExiting:y,onExited:y},v.UNMOUNTED=f,v.EXITED=p,v.ENTERING=h,v.ENTERED=m,v.EXITING=g;const b=v;var w=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.remove(r):"string"===typeof n.className?n.className=a(n.className,r):n.setAttribute("class",a(n.className&&n.className.baseVal||"",r)));var n,r}))},E=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1];t.removeClasses(o,"exit"),t.addClass(o,i?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1]?"appear":"enter";t.addClass(o,i,"active"),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1]?"appear":"enter";t.removeClasses(o,i),t.addClass(o,i,"done"),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"appear"),t.removeClasses(n,"enter"),t.addClass(n,"exit","base"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.resolveArguments(e)[0];t.addClass(n,"exit","active"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"exit"),t.addClass(n,"exit","done"),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,n){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,n]},t.getClassNames=function(e){var n=t.props.classNames,r="string"===typeof n,o=r?""+(r&&n?n+"-":"")+e:n[e];return{baseClassName:o,activeClassName:r?o+"-active":n[e+"Active"],doneClassName:r?o+"-done":n[e+"Done"]}},t}(0,i.Z)(t,e);var n=t.prototype;return n.addClass=function(e,t,n){var r=this.getClassNames(t)[n+"ClassName"],o=this.getClassNames("enter").doneClassName;"appear"===t&&"done"===n&&o&&(r+=" "+o),"active"===n&&e&&d(e),r&&(this.appliedClasses[t][n]=r,function(e,t){e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.add(r):function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}(n,r)||("string"===typeof n.className?n.className=n.className+" "+r:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+r)));var n,r}))}(e,r))},n.removeClasses=function(e,t){var n=this.appliedClasses[t],r=n.base,o=n.active,i=n.done;this.appliedClasses[t]={},r&&w(e,r),o&&w(e,o),i&&w(e,i)},n.render=function(){var e=this.props,t=(e.classNames,(0,o.Z)(e,["classNames"]));return s.createElement(b,(0,r.Z)({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(s.Component);E.defaultProps={classNames:""},E.propTypes={};const _=E},24330:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=n(68963).createContext(null)},74518:(e,t,n)=>{"use strict";var r=n(68963),o=Symbol.for("react.element"),i=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,i={},c=null,u=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)a.call(t,r)&&!l.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:o,type:e,key:c,ref:u,props:i,_owner:s.current}}t.jsx=c,t.jsxs=c},61920:(e,t)=>{"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.iterator;var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,g={};function v(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||h}function y(){}function b(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)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")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=v.prototype;var w=b.prototype=new y;w.constructor=b,m(w,v.prototype),w.isPureReactComponent=!0;var E=Array.isArray,_=Object.prototype.hasOwnProperty,x={current:null},S={key:!0,ref:!0,__self:!0,__source:!0};function C(e,t,r){var o,i={},a=null,s=null;if(null!=t)for(o in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)_.call(t,o)&&!S.hasOwnProperty(o)&&(i[o]=t[o]);var l=arguments.length-2;if(1===l)i.children=r;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];i.children=c}if(e&&e.defaultProps)for(o in l=e.defaultProps)void 0===i[o]&&(i[o]=l[o]);return{$$typeof:n,type:e,key:a,ref:s,props:i,_owner:x.current}}function k(e){return"object"===typeof e&&null!==e&&e.$$typeof===n}var O=/\/+/g;function T(e,t){return"object"===typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function N(e,t,o,i,a){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l=!1;if(null===e)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case n:case r:l=!0}}if(l)return a=a(l=e),e=""===i?"."+T(l,0):i,E(a)?(o="",null!=e&&(o=e.replace(O,"$&/")+"/"),N(a,t,o,"",(function(e){return e}))):null!=a&&(k(a)&&(a=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,o+(!a.key||l&&l.key===a.key?"":(""+a.key).replace(O,"$&/")+"/")+e)),t.push(a)),1;if(l=0,i=""===i?".":i+":",E(e))for(var c=0;c<e.length;c++){var u=i+T(s=e[c],c);l+=N(s,t,o,u,a)}else if(u=function(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=p&&e[p]||e["@@iterator"])?e:null}(e),"function"===typeof u)for(e=u.call(e),c=0;!(s=e.next()).done;)l+=N(s=s.value,t,o,u=i+T(s,c++),a);else if("object"===s)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function I(e,t,n){if(null==e)return e;var r=[],o=0;return N(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function P(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var R={current:null},D={transition:null},A={ReactCurrentDispatcher:R,ReactCurrentBatchConfig:D,ReactCurrentOwner:x};function j(){throw Error("act(...) is not supported in production builds of React.")}t.Children={map:I,forEach:function(e,t,n){I(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return I(e,(function(){t++})),t},toArray:function(e){return I(e,(function(e){return e}))||[]},only:function(e){if(!k(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=v,t.Fragment=o,t.Profiler=a,t.PureComponent=b,t.StrictMode=i,t.Suspense=u,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=A,t.act=j,t.cloneElement=function(e,t,r){if(null===e||void 0===e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o=m({},e.props),i=e.key,a=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,s=x.current),void 0!==t.key&&(i=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in t)_.call(t,c)&&!S.hasOwnProperty(c)&&(o[c]=void 0===t[c]&&void 0!==l?l[c]:t[c])}var c=arguments.length-2;if(1===c)o.children=r;else if(1<c){l=Array(c);for(var u=0;u<c;u++)l[u]=arguments[u+2];o.children=l}return{$$typeof:n,type:e.type,key:i,ref:a,props:o,_owner:s}},t.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:s,_context:e},e.Consumer=e},t.createElement=C,t.createFactory=function(e){var t=C.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:c,render:e}},t.isValidElement=k,t.lazy=function(e){return{$$typeof:f,_payload:{_status:-1,_result:e},_init:P}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=D.transition;D.transition={};try{e()}finally{D.transition=t}},t.unstable_act=j,t.useCallback=function(e,t){return R.current.useCallback(e,t)},t.useContext=function(e){return R.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return R.current.useDeferredValue(e)},t.useEffect=function(e,t){return R.current.useEffect(e,t)},t.useId=function(){return R.current.useId()},t.useImperativeHandle=function(e,t,n){return R.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return R.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return R.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return R.current.useMemo(e,t)},t.useReducer=function(e,t,n){return R.current.useReducer(e,t,n)},t.useRef=function(e){return R.current.useRef(e)},t.useState=function(e){return R.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return R.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return R.current.useTransition()},t.version="18.3.1"},68963:(e,t,n)=>{"use strict";e.exports=n(61920)},75859:(e,t,n)=>{"use strict";e.exports=n(74518)},94909:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.LOCATION_POP="REDUX-LOCATION-POP-ACTION",t.LOCATION_PUSH="REDUX-LOCATION-PUSH-ACTION",t.OBJECT_KEY_DELIMITER="-"},45715:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.createReduxLocationActions=function(e,t,n,l){var c=arguments.length>4&&void 0!==arguments[4]?arguments[4]:s.stateToParams;e[i.RLSCONFIG]&&e[i.RLSCONFIG][i.OVERWRITE_ACCESSORS]&&Object.keys(e[i.RLSCONFIG][i.OVERWRITE_ACCESSORS]).forEach((function(t){(0,i.overrideAccessors)(t,e[i.RLSCONFIG][i.OVERWRITE_ACCESSORS][t])}));var u={};return{locationMiddleware:function(t){return function(r){return function(o){var a=t.getState(),s=r(o),l=t.getState(),d=n.location,f=d.pathname!==u.pathname;if(l!==a||f){u=d;var p=c(e,l,d),h=p.shouldPush,m=p.location;(0,i.isEqual)(m,d)||(h&&!f?n.push(m):n.replace(m))}return s}}},reducersWithLocation:function(n,i){var s=function(n,i){var s=i.type,l=i.payload;if(s!==o.LOCATION_POP||!l)return n;var c=r({},l,{query:(0,a.parseQuery)(e,l)});return t(n,c)}(l(n,i),i);return s!==n?s:n}}};var o=n(94909),i=n(58102),a=n(43903),s=n(78103)},58102:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.paramDecoder=t.OVERWRITE_ACCESSORS=t.RLSCONFIG=void 0,t.setParamEncoder=function(e){c=e},t.setParamDecoder=function(e){t.paramDecoder=u=e},t.overrideAccessors=function(e,t){l[e]=t},t.get=function(){return l.get.apply(l,arguments)},t.set=function(){return l.set.apply(l,arguments)},t.isEqual=function(){return l.isEqual.apply(l,arguments)},t.getMatchingDeclaredPath=d,t.createObjectFromConfig=function(e,t){if(!e)return;var n=d(e,t);return e.global?Object.assign({},e.global,e[n]||{}):e[n]},t.getPath=function(){var e=window.location.href,t=e.indexOf("#")+1;if(t&&0===e.substring(t).indexOf("/"))return e.substring(t);return window.location.pathname+window.location.search+window.location.hash},t.createParamsString=function(e){var t=Object.keys(e).reduce((function(t,n){var r=n.toString(),o=e[n];if(function(e){return"undefined"===typeof e||null===e}(o)||Array.isArray(o)&&!o.length)return t;var i=e[n].toString();return[].concat(s(t),[c(r)+"="+c(i)])}),[]);return t.length?"?"+t.join("&"):""},t.parseParams=function(e,t){return e&&e.split("&").reduce((function(e,n){"?"===n[0]&&(n=n.substr(1));var r=t?t(n):n.split("=");return e[u(r[0])]=u(r[1])||"",e}),{})||{}};var r=a(n(63639)),o=a(n(85690)),i=a(n(9447));function a(e){return e&&e.__esModule?e:{default:e}}function s(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}t.RLSCONFIG="RLSCONFIG",t.OVERWRITE_ACCESSORS="overwrite-accessors";var l={get:r.default,set:i.default,isEqual:o.default},c=encodeURIComponent,u=t.paramDecoder=decodeURIComponent;function d(e,t){var n=t.pathname.split("/");return Object.keys(e).filter((function(e){var t=[].concat(s(n)),r=e.split("/"),o=[].concat(s(r)),i=0;return r.forEach((function(e,n){"*"===e&&(t.splice(n-i,1),o.splice(n-i,1),i++)})),t.join("/")===o.join("/")}))[0]}},91087:(e,t,n)=>{"use strict";var r=n(45715);Object.defineProperty(t,"zl",{enumerable:!0,get:function(){return r.createReduxLocationActions}});var o=n(28931);Object.defineProperty(t,"C1",{enumerable:!0,get:function(){return o.listenForHistoryChange}});var i=n(58102)},28931:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.listenForHistoryChange=function(e,t){var n=function(e){return{type:r.LOCATION_POP,payload:e}};t.listen((function(){t&&t.action&&"POP"===t.action&&e.dispatch(n(t.location))})),t.listen((function(){t&&t.action&&"PUSH"===t.action&&e.dispatch(function(e){return{type:r.LOCATION_PUSH,payload:e}}(t.location))})),e.dispatch(n(t.location))};var r=n(94909)},43903:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseQuery=function(e,t){var n=(0,r.createObjectFromConfig)(e,t),i=e[r.RLSCONFIG]&&e[r.RLSCONFIG].queryParser,a=(0,r.parseParams)(t.search,i);if(!n)return t.search;return Object.keys(n).reduce((function(e,t){var i=n[t],s=i.stateKey,l=i.options,c=void 0===l?{}:l,u=i.initialState,d=i.type,f=a[t],p=void 0;return"undefined"===typeof f||null===f?((0,r.set)(e,s,u),e):(p=c.parse?c.parse(f):d?o.typeHandles[d].parse(f,c):f,(0,r.set)(e,s,p),e)}),{})};var r=n(58102),o=n(88639)},78103:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.stateToParams=function(e,t,n){var s=(0,i.createObjectFromConfig)(e,n),l=e[i.RLSCONFIG]&&e[i.RLSCONFIG].queryParser,c=(0,i.parseParams)(n.search,l);if(!s)return{location:o({},n)};var u=!1,d=Object.keys(s).reduce((function(e,n){var o=s[n],l=o.stateKey,d=o.options,f=void 0===d?{}:d,p=o.initialState,h=o.type,m=(0,i.get)(t,l),g=void 0;if("date"===h?g=m.toISOString().substring(0,10)===(p&&p.toISOString().substring(0,10)):(m&&"object"===("undefined"===typeof m?"undefined":r(m))&&!Object.keys(m).length&&(m=void 0),g="object"===("undefined"===typeof m?"undefined":r(m))?(0,i.isEqual)(p,m):m===p),("undefined"===typeof m&&!f.serialize||g)&&!f.setAsEmptyItem)return e;if(f.serialize){var v=f.serialize(m);if("undefined"===typeof v)return e;m=v}else h&&(m=a.typeHandles[h].serialize(m,f));return e[n]=m,m!==c[n]&&f.shouldPush&&(u=!0),e}),{});return{location:o({},n,{search:(0,i.createParamsString)(d)}),shouldPush:u}};var i=n(58102),a=n(88639)},88639:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.typeHandles=void 0;var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(l){o=!0,i=l}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=n(94909),i=n(58102);function a(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}t.typeHandles={number:{serialize:function(e,t){return e.toString()},parse:function(e,t){return parseFloat(e)}},date:{serialize:function(e,t){return e.toISOString().substring(0,10)},parse:function(e,t){return new Date(e)}},array:{serialize:function(e,t){return(t.keepOrder?[].concat(a(e)):[].concat(a(e)).sort()).join(t.delimiter||o.OBJECT_KEY_DELIMITER)},parse:function(e,t){return(0,i.paramDecoder)(e).split(t.delimiter||o.OBJECT_KEY_DELIMITER)}},bool:{serialize:function(e,t){return e.toString()},parse:function(e,t){return"true"===e}},object:{serialize:function(e,t){return t.isFlags?Object.keys(e).filter((function(t,n){return e[t]})).join(o.OBJECT_KEY_DELIMITER):Object.keys(e).sort().map((function(t,n){return""+t+o.OBJECT_KEY_DELIMITER+e[t]}))},parse:function(e,t){return t.isFlags?e.split(t.delimiter||o.OBJECT_KEY_DELIMITER).reduce((function(e,t){return""===t||(e[t]=!0),e}),{}):(0,i.paramDecoder)(e).split(",").reduce((function(e,t){var n=t.split(o.OBJECT_KEY_DELIMITER),i=r(n,2),a=i[0],s=i[1];return e[a]=s,e}),{})}}}},34812:(e,t)=>{"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,o=e[r];if(!(0<i(o,t)))break e;e[r]=t,e[n]=o,n=r}}function r(e){return 0===e.length?null:e[0]}function o(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length,a=o>>>1;r<a;){var s=2*(r+1)-1,l=e[s],c=s+1,u=e[c];if(0>i(l,n))c<o&&0>i(u,l)?(e[r]=u,e[c]=n,r=c):(e[r]=l,e[s]=n,r=s);else{if(!(c<o&&0>i(u,n)))break e;e[r]=u,e[c]=n,r=c}}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"===typeof performance&&"function"===typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var s=Date,l=s.now();t.unstable_now=function(){return s.now()-l}}var c=[],u=[],d=1,f=null,p=3,h=!1,m=!1,g=!1,v="function"===typeof setTimeout?setTimeout:null,y="function"===typeof clearTimeout?clearTimeout:null,b="undefined"!==typeof setImmediate?setImmediate:null;function w(e){for(var t=r(u);null!==t;){if(null===t.callback)o(u);else{if(!(t.startTime<=e))break;o(u),t.sortIndex=t.expirationTime,n(c,t)}t=r(u)}}function E(e){if(g=!1,w(e),!m)if(null!==r(c))m=!0,D(_);else{var t=r(u);null!==t&&A(E,t.startTime-e)}}function _(e,n){m=!1,g&&(g=!1,y(k),k=-1),h=!0;var i=p;try{for(w(n),f=r(c);null!==f&&(!(f.expirationTime>n)||e&&!N());){var a=f.callback;if("function"===typeof a){f.callback=null,p=f.priorityLevel;var s=a(f.expirationTime<=n);n=t.unstable_now(),"function"===typeof s?f.callback=s:f===r(c)&&o(c),w(n)}else o(c);f=r(c)}if(null!==f)var l=!0;else{var d=r(u);null!==d&&A(E,d.startTime-n),l=!1}return l}finally{f=null,p=i,h=!1}}"undefined"!==typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var x,S=!1,C=null,k=-1,O=5,T=-1;function N(){return!(t.unstable_now()-T<O)}function I(){if(null!==C){var e=t.unstable_now();T=e;var n=!0;try{n=C(!0,e)}finally{n?x():(S=!1,C=null)}}else S=!1}if("function"===typeof b)x=function(){b(I)};else if("undefined"!==typeof MessageChannel){var P=new MessageChannel,R=P.port2;P.port1.onmessage=I,x=function(){R.postMessage(null)}}else x=function(){v(I,0)};function D(e){C=e,S||(S=!0,x())}function A(e,n){k=v((function(){e(t.unstable_now())}),n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){m||h||(m=!0,D(_))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):O=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return p},t.unstable_getFirstCallbackNode=function(){return r(c)},t.unstable_next=function(e){switch(p){case 1:case 2:case 3:var t=3;break;default:t=p}var n=p;p=t;try{return e()}finally{p=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=p;p=e;try{return t()}finally{p=n}},t.unstable_scheduleCallback=function(e,o,i){var a=t.unstable_now();switch("object"===typeof i&&null!==i?i="number"===typeof(i=i.delay)&&0<i?a+i:a:i=a,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return e={id:d++,callback:o,priorityLevel:e,startTime:i,expirationTime:s=i+s,sortIndex:-1},i>a?(e.sortIndex=i,n(u,e),null===r(c)&&e===r(u)&&(g?(y(k),k=-1):g=!0,A(E,i-a))):(e.sortIndex=s,n(c,e),m||h||(m=!0,D(_))),e},t.unstable_shouldYield=N,t.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}},29558:(e,t,n)=>{"use strict";e.exports=n(34812)},18083:(e,t,n)=>{"use strict";var r=n(42780),o=n(10854),i=n(43597)(),a=n(81687),s=n(84968),l=r("%Math.floor%");e.exports=function(e,t){if("function"!==typeof e)throw new s("`fn` is not a function");if("number"!==typeof t||t<0||t>4294967295||l(t)!==t)throw new s("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],r=!0,c=!0;if("length"in e&&a){var u=a(e,"length");u&&!u.configurable&&(r=!1),u&&!u.writable&&(c=!1)}return(r||c||!n)&&(i?o(e,"length",t,!0,!0):o(e,"length",t)),e}},69612:e=>{e.exports=function(e,t,n,r){var o=n?n.call(r,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!==typeof e||!e||"object"!==typeof t||!t)return!1;var i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),l=0;l<i.length;l++){var c=i[l];if(!s(c))return!1;var u=e[c],d=t[c];if(!1===(o=n?n.call(r,u,d,c):void 0)||void 0===o&&u!==d)return!1}return!0}},50810:(e,t,n)=>{"use strict";var r=n(42780),o=n(69039),i=n(68798),a=n(84968),s=r("%WeakMap%",!0),l=r("%Map%",!0),c=o("WeakMap.prototype.get",!0),u=o("WeakMap.prototype.set",!0),d=o("WeakMap.prototype.has",!0),f=o("Map.prototype.get",!0),p=o("Map.prototype.set",!0),h=o("Map.prototype.has",!0),m=function(e,t){for(var n,r=e;null!==(n=r.next);r=n)if(n.key===t)return r.next=n.next,n.next=e.next,e.next=n,n};e.exports=function(){var e,t,n,r={assert:function(e){if(!r.has(e))throw new a("Side channel does not contain "+i(e))},get:function(r){if(s&&r&&("object"===typeof r||"function"===typeof r)){if(e)return c(e,r)}else if(l){if(t)return f(t,r)}else if(n)return function(e,t){var n=m(e,t);return n&&n.value}(n,r)},has:function(r){if(s&&r&&("object"===typeof r||"function"===typeof r)){if(e)return d(e,r)}else if(l){if(t)return h(t,r)}else if(n)return function(e,t){return!!m(e,t)}(n,r);return!1},set:function(r,o){s&&r&&("object"===typeof r||"function"===typeof r)?(e||(e=new s),u(e,r,o)):l?(t||(t=new l),p(t,r,o)):(n||(n={key:{},next:null}),function(e,t,n){var r=m(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}}(n,r,o))}};return r}},35503:(e,t,n)=>{"use strict";n.d(t,{EB:()=>k,KW:()=>x,Wq:()=>S,ht:()=>_,pN:()=>f});var r=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],o=r.join(","),i="undefined"===typeof Element,a=i?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,s=!i&&Element.prototype.getRootNode?function(e){var t;return null===e||void 0===e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}:function(e){return null===e||void 0===e?void 0:e.ownerDocument},l=function e(t,n){var r;void 0===n&&(n=!0);var o=null===t||void 0===t||null===(r=t.getAttribute)||void 0===r?void 0:r.call(t,"inert");return""===o||"true"===o||n&&t&&e(t.parentNode)},c=function(e,t,n){if(l(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(o));return t&&a.call(e,o)&&r.unshift(e),r=r.filter(n)},u=function e(t,n,r){for(var i=[],s=Array.from(t);s.length;){var c=s.shift();if(!l(c,!1))if("SLOT"===c.tagName){var u=c.assignedElements(),d=e(u.length?u:c.children,!0,r);r.flatten?i.push.apply(i,d):i.push({scopeParent:c,candidates:d})}else{a.call(c,o)&&r.filter(c)&&(n||!t.includes(c))&&i.push(c);var f=c.shadowRoot||"function"===typeof r.getShadowRoot&&r.getShadowRoot(c),p=!l(f,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(c));if(f&&p){var h=e(!0===f?c.children:f.children,!0,r);r.flatten?i.push.apply(i,h):i.push({scopeParent:c,candidates:h})}else s.unshift.apply(s,c.children)}}return i},d=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},f=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||function(e){var t,n=null===e||void 0===e||null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"contenteditable");return""===n||"true"===n}(e))&&!d(e)?0:e.tabIndex},p=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},h=function(e){return"INPUT"===e.tagName},m=function(e){return function(e){return h(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||s(e),r=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!==typeof window&&"undefined"!==typeof window.CSS&&"function"===typeof window.CSS.escape)t=r(window.CSS.escape(e.name));else try{t=r(e.name)}catch(i){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",i.message),!1}var o=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]}(t,e.form);return!o||o===e}(e)},g=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return 0===n&&0===r},v=function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var o=a.call(e,"details>summary:first-of-type")?e.parentElement:e;if(a.call(o,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return g(e)}else{if("function"===typeof r){for(var i=e;e;){var l=e.parentElement,c=s(e);if(l&&!l.shadowRoot&&!0===r(l))return g(e);e=e.assignedSlot?e.assignedSlot:l||c===e.ownerDocument?l:c.host}e=i}if(function(e){var t,n,r,o,i=e&&s(e),a=null===(t=i)||void 0===t?void 0:t.host,l=!1;if(i&&i!==e)for(l=!!(null!==(n=a)&&void 0!==n&&null!==(r=n.ownerDocument)&&void 0!==r&&r.contains(a)||null!==e&&void 0!==e&&null!==(o=e.ownerDocument)&&void 0!==o&&o.contains(e));!l&&a;){var c,u,d;l=!(null===(u=a=null===(c=i=s(a))||void 0===c?void 0:c.host)||void 0===u||null===(d=u.ownerDocument)||void 0===d||!d.contains(a))}return l}(e))return!e.getClientRects().length;if("legacy-full"!==n)return!0}return!1},y=function(e,t){return!(t.disabled||l(t)||function(e){return h(e)&&"hidden"===e.type}(t)||v(t,e)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some((function(e){return"SUMMARY"===e.tagName}))}(t)||function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n<t.children.length;n++){var r=t.children.item(n);if("LEGEND"===r.tagName)return!!a.call(t,"fieldset[disabled] *")||!r.contains(e)}return!0}t=t.parentElement}return!1}(t))},b=function(e,t){return!(m(t)||f(t)<0||!y(e,t))},w=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},E=function e(t){var n=[],r=[];return t.forEach((function(t,o){var i=!!t.scopeParent,a=i?t.scopeParent:t,s=function(e,t){var n=f(e);return n<0&&t&&!d(e)?0:n}(a,i),l=i?e(t.candidates):a;0===s?i?n.push.apply(n,l):n.push(a):r.push({documentOrder:o,tabIndex:s,item:t,isScope:i,content:l})})),r.sort(p).reduce((function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e}),[]).concat(n)},_=function(e,t){var n;return n=(t=t||{}).getShadowRoot?u([e],t.includeContainer,{filter:b.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:w}):c(e,t.includeContainer,b.bind(null,t)),E(n)},x=function(e,t){return(t=t||{}).getShadowRoot?u([e],t.includeContainer,{filter:y.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):c(e,t.includeContainer,y.bind(null,t))},S=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==a.call(e,o)&&b(t,e)},C=r.concat("iframe").join(","),k=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==a.call(e,C)&&y(t,e)}},35731:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=!0,o="Invariant failed";function i(e,t){if(!e){if(r)throw new Error(o);var n="function"===typeof t?t():t;throw new Error(n?o+": "+n:o)}}},21034:e=>{e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach((function(t){e.addRange(t)})),t&&t.focus()}}},98994:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return e;if(0===e.length&&(!t||t&&""!==e))return null;const n=e instanceof Array?e[0]:e;return null==n||t||""!==n?n:null}function o(e){const t=r(e,!0);return null==t?t:String(t)}n.d(t,{QueryParamProvider:()=>S,StringParam:()=>i,useQueryParam:()=>P,useQueryParams:()=>N});const i={encode:function(e){return null==e?e:String(e)},decode:o};'{}[],":'.split("").map((e=>[e,encodeURIComponent(e)]));function a(e,t){const n={},r=Object.keys(t);for(const o of r){const r=t[o];e[o]?n[o]=e[o].encode(t[o]):n[o]=null==r?r:String(r)}return n}var s=n(68963);const l=new class{constructor(){this.paramsMap=new Map,this.registeredParams=new Map}set(e,t,n,r){this.paramsMap.set(e,{stringified:t,decoded:n,decode:r})}has(e,t,n){if(!this.paramsMap.has(e))return!1;const r=this.paramsMap.get(e);return!!r&&(r.stringified===t&&(null==n||r.decode===n))}get(e){var t;if(this.paramsMap.has(e))return null==(t=this.paramsMap.get(e))?void 0:t.decoded}registerParams(e){for(const t of e){const e=this.registeredParams.get(t)||0;this.registeredParams.set(t,e+1)}}unregisterParams(e){for(const t of e){const e=(this.registeredParams.get(t)||0)-1;e<=0?(this.registeredParams.delete(t),this.paramsMap.has(t)&&this.paramsMap.delete(t)):this.registeredParams.set(t,e)}}clear(){this.paramsMap.clear(),this.registeredParams.clear()}};function c(e,t,n,r){var o;if(!n||!t.length)return e;let i={...e},a=!1;for(const s of t)Object.prototype.hasOwnProperty.call(i,s)||(i[s]=null!=(o=n[s])?o:r,a=!0);return a?i:e}const u=Object.prototype.hasOwnProperty;function d(e,t){return e===t?0!==e||0!==t||1/e===1/t:e!==e&&t!==t}function f(e,t,n){var r,o;if(d(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;const i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(let s=0;s<i.length;s++){const a=null!=(o=null==(r=null==n?void 0:n[i[s]])?void 0:r.equals)?o:d;if(!u.call(t,i[s])||!a(e[i[s]],t[i[s]]))return!1}return!0}function p(e,t,n){const r={},o=Object.keys(t);for(const i of o){const o=t[i],a=e[i];let s;if(n.has(i,a,o.decode))s=n.get(i);else{if(s=o.decode(a),o.equals&&n.has(i,a)){const e=n.get(i);o.equals(s,e)&&(s=e)}void 0!==s&&n.set(i,a,s,o.decode)}void 0===s&&void 0!==o.default&&(s=o.default),r[i]=s}return r}function h(){let e;return function(t,n,r){const o=p(t,n,r);return null!=e&&f(e,o)?e:(e=o,o)}}let m,g,v,y={};const b=(e,t,n)=>{if(m===t&&v===e&&g===n)return y;m=t,v=e;const r=e(null!=t?t:"");g=n;const o=function(e){if(e)return Object.fromEntries(e.split("\n").map((e=>e.split("\0"))))}(n);for(let[i,a]of Object.entries(r)){(null==o?void 0:o[i])&&(delete r[i],i=o[i],r[i]=a);const e=y[i];f(a,e)&&(r[i]=e)}return y=r,r};function w(e,t){null==t&&(t={});const n={...e,...t};return t.params&&e.params&&(n.params={...e.params,...t.params}),n}const E={adapter:{},options:{searchStringToObject:function(e){const t=new URLSearchParams(e),n={};for(let[r,o]of t)Object.prototype.hasOwnProperty.call(n,r)?Array.isArray(n[r])?n[r].push(o):n[r]=[n[r],o]:n[r]=o;return n},objectToSearchString:function(e){const t=new URLSearchParams,n=Object.entries(e);for(const[r,o]of n)if(void 0!==o&&null!==o)if(Array.isArray(o))for(const e of o)t.append(r,null!=e?e:"");else t.append(r,o);return t.toString()},updateType:"pushIn",includeKnownParams:void 0,includeAllParams:!1,removeDefaultsFromUrl:!1,enableBatching:!1,skipUpdateWhenNoChange:!0}},_=s.createContext(E);function x(e){let{children:t,adapter:n,options:r}=e;const{adapter:o,options:i}=s.useContext(_),a=s.useMemo((()=>({adapter:null!=n?n:o,options:w(i,r)})),[n,r,o,i]);return s.createElement(_.Provider,{value:a},t)}function S(e){let{children:t,adapter:n,options:r}=e;const o=n;return o?s.createElement(o,null,(e=>s.createElement(x,{adapter:e,options:r},t))):s.createElement(x,{options:r},t)}function C(e){let{changes:t,updateType:n,currentSearchString:r,paramConfigMap:o,options:i}=e;const{searchStringToObject:s,objectToSearchString:u}=i;let d;null==n&&(n=i.updateType);const f=b(s,r),h=c(o,Object.keys(t),i.params);let m,g;if("function"===typeof t){m=t(p(f,h,l))}else m=t;return d=a(h,m),i.removeDefaultsFromUrl&&function(e,t){var n;for(const r in e)void 0!==(null==(n=t[r])?void 0:n.default)&&void 0!==e[r]&&t[r].encode(t[r].default)===e[r]&&(e[r]=void 0)}(d,h),d=function(e,t){var n;let r={};for(const o in e)null!=(null==(n=t[o])?void 0:n.urlName)?r[t[o].urlName]=e[o]:r[o]=e[o];return r}(d,h),g=u("push"===n||"replace"===n?d:{...f,...d}),(null==g?void 0:g.length)&&"?"!==g[0]&&(g=`?${g}`),null!=g?g:""}const k=e=>e(),O=e=>setTimeout((()=>e()),0),T=[];function N(e,t){const{adapter:n,options:r}=function(){const e=s.useContext(_);if(void 0===e||e===E)throw new Error("useQueryParams must be used within a QueryParamProvider");return e}(),[o]=(0,s.useState)(h),{paramConfigMap:a,options:u}=function(e,t){let n,r;void 0===e?(n={},r=t):Array.isArray(e)?(n=Object.fromEntries(e.map((e=>[e,"inherit"]))),r=t):(n=e,r=t);return{paramConfigMap:n,options:r}}(e,t),d=(0,s.useMemo)((()=>w(r,u)),[r,u]);let f=function(e,t){var n,r,o;const a={};let s=!1;const l=Object.keys(e);let c=l;if(t.includeKnownParams||!1!==t.includeKnownParams&&0===l.length){const e=Object.keys(null!=(n=t.params)?n:{});c.push(...e)}for(const u of c){const n=e[u];null==n||"object"!==typeof n?(s=!0,a[u]=null!=(o=null==(r=t.params)?void 0:r[u])?o:i):a[u]=n}return s?a:e}(a,d);const p=b(d.searchStringToObject,n.location.search,function(e){let t;for(const n in e)if(e[n].urlName){const r=`${e[n].urlName}\0${n}`;t?t.push(r):t=[r]}return t?t.join("\n"):void 0}(f));d.includeAllParams&&(f=c(f,Object.keys(p),d.params,i));const m=o(p,f,l),g=Object.keys(f).join("\0");(0,s.useEffect)((()=>{const e=g.split("\0");return l.registerParams(e),()=>{l.unregisterParams(e)}}),[g]);const v={adapter:n,paramConfigMap:f,options:d},y=(0,s.useRef)(v);null==y.current&&(y.current=v),(0,s.useEffect)((()=>{y.current.adapter=n,y.current.paramConfigMap=f,y.current.options=d}),[n,f,d]);const[x]=(0,s.useState)((()=>(e,t)=>{const{adapter:n,paramConfigMap:r,options:o}=y.current;null==t&&(t=o.updateType),function(e){let{immediate:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};T.push(e);let n=t?k:O;1===T.length&&n((()=>{const t=T.slice();T.length=0;const n=t[0].currentSearchString;let r;for(let e=0;e<t.length;++e)r=C(0===e?t[e]:{...t[e],currentSearchString:r});e.options.skipUpdateWhenNoChange&&r===n||function(e){let{searchString:t,adapter:n,navigate:r,updateType:o}=e;const i={...n.location,search:t};r&&("string"===typeof o&&o.startsWith("replace")?n.replace(i):n.push(i))}({searchString:null!=r?r:"",adapter:t[t.length-1].adapter,navigate:!0,updateType:t[t.length-1].updateType})}))}({changes:e,updateType:t,currentSearchString:n.location.search,paramConfigMap:r,options:o,adapter:n},{immediate:!o.enableBatching})}));return[m,x]}var I=N;const P=(e,t,n)=>{const r=(0,s.useMemo)((()=>({[e]:null!=t?t:"inherit"})),[e,t]),[o,i]=I(r,n);return[o[e],(0,s.useCallback)(((t,n)=>i("function"===typeof t?n=>{const r=t(n[e]);return{[e]:r}}:{[e]:t},n)),[e,i])]}},28127:(e,t,n)=>{"use strict";var r=n(68963);var o="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},i=r.useSyncExternalStore,a=r.useRef,s=r.useEffect,l=r.useMemo,c=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,u){var d=a(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=l((function(){function e(e){if(!s){if(s=!0,i=e,e=r(e),void 0!==u&&f.hasValue){var t=f.value;if(u(t,e))return a=t}return a=e}if(t=a,o(i,e))return t;var n=r(e);return void 0!==u&&u(t,n)?t:(i=e,a=n)}var i,a,s=!1,l=void 0===n?null:n;return[function(){return e(t())},null===l?void 0:function(){return e(l())}]}),[t,n,r,u]);var p=i(e,d[0],d[1]);return s((function(){f.hasValue=!0,f.value=p}),[p]),c(p),p}},29074:(e,t,n)=>{"use strict";e.exports=n(28127)},24654:()=>{},97326:(e,t,n)=>{"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{Z:()=>r})},87462:(e,t,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{Z:()=>r})},51721:(e,t,n)=>{"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t)}n.d(t,{Z:()=>o})},63366:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}n.d(t,{Z:()=>r})},17095:(e,t,n)=>{"use strict";n.d(t,{CN:()=>I,Tk:()=>M,hF:()=>Y,oZ:()=>s});var r=n(38907),o=n(1399),i=n(89900),a=n(36313),s=(e=>(e.uninitialized="uninitialized",e.pending="pending",e.fulfilled="fulfilled",e.rejected="rejected",e))(s||{});var l=e=>[].concat(...e);var c=r.PO;function u(e,t){if(e===t||!(c(e)&&c(t)||Array.isArray(e)&&Array.isArray(t)))return t;const n=Object.keys(t),r=Object.keys(e);let o=n.length===r.length;const i=Array.isArray(t)?[]:{};for(const a of n)i[a]=u(e[a],t[a]),o&&(o=e[a]===i[a]);return o?e:i}var d=class{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;this.value=e,this.meta=t}};var f=(0,o.PH)("__rtkq/focused"),p=(0,o.PH)("__rtkq/unfocused"),h=(0,o.PH)("__rtkq/online"),m=(0,o.PH)("__rtkq/offline");function g(e){return"query"===e.type}function v(e,t,n,r,o,i){return"function"===typeof e?e(t,n,r,o).map(y).map(i):Array.isArray(e)?e.map(y).map(i):[]}function y(e){return"string"===typeof e?{type:e}:e}function b(e){return null!=e}function w(e){let t=0;for(const n in e)t++;return t}var E=Symbol("forceQueryFn"),_=e=>"function"===typeof e[E];function x(e){return e}function S(e,t,n,r){return v(n[e.meta.arg.endpointName][t],(0,o.KD)(e)?e.payload:void 0,(0,o.h_)(e)?e.payload:void 0,e.meta.arg.originalArgs,"baseQueryMeta"in e.meta?e.meta.baseQueryMeta:void 0,r)}function C(e,t,n){const r=e[t];r&&n(r)}function k(e){return("arg"in e?e.arg.fixedCacheKey:e.fixedCacheKey)??e.requestId}function O(e,t,n){const r=e[k(t)];r&&n(r)}var T={};function N(e){let{reducerPath:t,queryThunk:n,mutationThunk:a,context:{endpointDefinitions:s,apiUid:l,extractRehydrationInfo:c,hasRehydrationInfo:d},assertTagType:g,config:v}=e;const y=(0,o.PH)(`${t}/resetApiState`),b=(0,o.oM)({name:`${t}/queries`,initialState:T,reducers:{removeQueryResult:{reducer(e,t){let{payload:{queryCacheKey:n}}=t;delete e[n]},prepare:(0,o.cw)()},queryResultPatched:{reducer(e,t){let{payload:{queryCacheKey:n,patches:r}}=t;C(e,n,(e=>{e.data=(0,i.QE)(e.data,r.concat())}))},prepare:(0,o.cw)()}},extraReducers(e){e.addCase(n.pending,((e,t)=>{let{meta:n,meta:{arg:r}}=t;const o=_(r);e[r.queryCacheKey]??={status:"uninitialized",endpointName:r.endpointName},C(e,r.queryCacheKey,(e=>{e.status="pending",e.requestId=o&&e.requestId?e.requestId:n.requestId,void 0!==r.originalArgs&&(e.originalArgs=r.originalArgs),e.startedTimeStamp=n.startedTimeStamp}))})).addCase(n.fulfilled,((e,t)=>{let{meta:n,payload:r}=t;C(e,n.arg.queryCacheKey,(e=>{if(e.requestId!==n.requestId&&!_(n.arg))return;const{merge:t}=s[n.arg.endpointName];if(e.status="fulfilled",t)if(void 0!==e.data){const{fulfilledTimeStamp:o,arg:a,baseQueryMeta:s,requestId:l}=n;let c=(0,i.Uy)(e.data,(e=>t(e,r,{arg:a.originalArgs,baseQueryMeta:s,fulfilledTimeStamp:o,requestId:l})));e.data=c}else e.data=r;else e.data=s[n.arg.endpointName].structuralSharing??1?u((0,i.mv)(e.data)?(0,i.Js)(e.data):e.data,r):r;delete e.error,e.fulfilledTimeStamp=n.fulfilledTimeStamp}))})).addCase(n.rejected,((e,t)=>{let{meta:{condition:n,arg:r,requestId:o},error:i,payload:a}=t;C(e,r.queryCacheKey,(e=>{if(n);else{if(e.requestId!==o)return;e.status="rejected",e.error=a??i}}))})).addMatcher(d,((e,t)=>{const{queries:n}=c(t);for(const[r,o]of Object.entries(n))"fulfilled"!==o?.status&&"rejected"!==o?.status||(e[r]=o)}))}}),w=(0,o.oM)({name:`${t}/mutations`,initialState:T,reducers:{removeMutationResult:{reducer(e,t){let{payload:n}=t;const r=k(n);r in e&&delete e[r]},prepare:(0,o.cw)()}},extraReducers(e){e.addCase(a.pending,((e,t)=>{let{meta:n,meta:{requestId:r,arg:o,startedTimeStamp:i}}=t;o.track&&(e[k(n)]={requestId:r,status:"pending",endpointName:o.endpointName,startedTimeStamp:i})})).addCase(a.fulfilled,((e,t)=>{let{payload:n,meta:r}=t;r.arg.track&&O(e,r,(e=>{e.requestId===r.requestId&&(e.status="fulfilled",e.data=n,e.fulfilledTimeStamp=r.fulfilledTimeStamp)}))})).addCase(a.rejected,((e,t)=>{let{payload:n,error:r,meta:o}=t;o.arg.track&&O(e,o,(e=>{e.requestId===o.requestId&&(e.status="rejected",e.error=n??r)}))})).addMatcher(d,((e,t)=>{const{mutations:n}=c(t);for(const[r,o]of Object.entries(n))"fulfilled"!==o?.status&&"rejected"!==o?.status||r===o?.requestId||(e[r]=o)}))}}),E=(0,o.oM)({name:`${t}/invalidation`,initialState:T,reducers:{updateProvidedBy:{reducer(e,t){const{queryCacheKey:n,providedTags:r}=t.payload;for(const o of Object.values(e))for(const e of Object.values(o)){const t=e.indexOf(n);-1!==t&&e.splice(t,1)}for(const{type:o,id:i}of r){const t=(e[o]??={})[i||"__internal_without_id"]??=[];t.includes(n)||t.push(n)}},prepare:(0,o.cw)()}},extraReducers(e){e.addCase(b.actions.removeQueryResult,((e,t)=>{let{payload:{queryCacheKey:n}}=t;for(const r of Object.values(e))for(const e of Object.values(r)){const t=e.indexOf(n);-1!==t&&e.splice(t,1)}})).addMatcher(d,((e,t)=>{const{provided:n}=c(t);for(const[r,o]of Object.entries(n))for(const[t,n]of Object.entries(o)){const o=(e[r]??={})[t||"__internal_without_id"]??=[];for(const e of n){o.includes(e)||o.push(e)}}})).addMatcher((0,o.Q)((0,o.KD)(n),(0,o.h_)(n)),((e,t)=>{const n=S(t,"providesTags",s,g),{queryCacheKey:r}=t.meta.arg;E.caseReducers.updateProvidedBy(e,E.actions.updateProvidedBy({queryCacheKey:r,providedTags:n}))}))}}),x=(0,o.oM)({name:`${t}/subscriptions`,initialState:T,reducers:{updateSubscriptionOptions(e,t){},unsubscribeQueryResult(e,t){},internal_getRTKQSubscriptions(){}}}),N=(0,o.oM)({name:`${t}/internalSubscriptions`,initialState:T,reducers:{subscriptionsUpdated:{reducer:(e,t)=>(0,i.QE)(e,t.payload),prepare:(0,o.cw)()}}}),I=(0,o.oM)({name:`${t}/config`,initialState:{online:"undefined"===typeof navigator||void 0===navigator.onLine||navigator.onLine,focused:"undefined"===typeof document||"hidden"!==document.visibilityState,middlewareRegistered:!1,...v},reducers:{middlewareRegistered(e,t){let{payload:n}=t;e.middlewareRegistered="conflict"!==e.middlewareRegistered&&l===n||"conflict"}},extraReducers:e=>{e.addCase(h,(e=>{e.online=!0})).addCase(m,(e=>{e.online=!1})).addCase(f,(e=>{e.focused=!0})).addCase(p,(e=>{e.focused=!1})).addMatcher(d,(e=>({...e})))}}),P=(0,r.UY)({queries:b.reducer,mutations:w.reducer,provided:E.reducer,subscriptions:N.reducer,config:I.reducer});return{reducer:(e,t)=>P(y.match(t)?void 0:e,t),actions:{...I.actions,...b.actions,...x.actions,...N.actions,...w.actions,...E.actions,resetApiState:y}}}var I=Symbol.for("RTKQ/skipToken"),P={status:"uninitialized"},R=(0,i.Uy)(P,(()=>{})),D=(0,i.Uy)(P,(()=>{}));var A=WeakMap?new WeakMap:void 0,j=e=>{let{endpointName:t,queryArgs:n}=e,o="";const i=A?.get(n);if("string"===typeof i)o=i;else{const e=JSON.stringify(n,((e,t)=>(0,r.PO)(t)?Object.keys(t).sort().reduce(((e,n)=>(e[n]=t[n],e)),{}):t));(0,r.PO)(n)&&A?.set(n,e),o=e}return`${t}(${o})`};function M(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){const n=(0,a.kO)((t=>e.extractRehydrationInfo?.(t,{reducerPath:e.reducerPath??"api"}))),r={reducerPath:"api",keepUnusedDataFor:60,refetchOnMountOrArgChange:!1,refetchOnFocus:!1,refetchOnReconnect:!1,invalidationBehavior:"delayed",...e,extractRehydrationInfo:n,serializeQueryArgs(t){let n=j;if("serializeQueryArgs"in t.endpointDefinition){const e=t.endpointDefinition.serializeQueryArgs;n=t=>{const n=e(t);return"string"===typeof n?n:j({...t,queryArgs:n})}}else e.serializeQueryArgs&&(n=e.serializeQueryArgs);return n(t)},tagTypes:[...e.tagTypes||[]]},i={endpointDefinitions:{},batch(e){e()},apiUid:(0,o.x0)(),extractRehydrationInfo:n,hasRehydrationInfo:(0,a.kO)((e=>null!=n(e)))},s={injectEndpoints:function(e){const t=e.endpoints({query:e=>({...e,type:"query"}),mutation:e=>({...e,type:"mutation"})});for(const[n,r]of Object.entries(t))if(!0!==e.overrideExisting&&n in i.endpointDefinitions){if("throw"===e.overrideExisting)throw new Error((0,o.rJ)(39))}else{i.endpointDefinitions[n]=r;for(const e of l)e.injectEndpoint(n,r)}return s},enhanceEndpoints(e){let{addTagTypes:t,endpoints:n}=e;if(t)for(const o of t)r.tagTypes.includes(o)||r.tagTypes.push(o);if(n)for(const[r,o]of Object.entries(n))"function"===typeof o?o(i.endpointDefinitions[r]):Object.assign(i.endpointDefinitions[r]||{},o);return s}},l=t.map((e=>e.init(s,r,i)));return s.injectEndpoints({endpoints:e.endpoints})}}var L=2147482.647,z=e=>{let{reducerPath:t,api:n,queryThunk:r,context:i,internalState:a}=e;const{removeQueryResult:s,unsubscribeQueryResult:l}=n.internalActions,c=(0,o.Q)(l.match,r.fulfilled,r.rejected);function u(e){const t=a.currentSubscriptions[e];return!!t&&!function(e){for(let t in e)return!1;return!0}(t)}const d={};function f(e,t,n,r){const o=i.endpointDefinitions[t],a=o?.keepUnusedDataFor??r.keepUnusedDataFor;if(a===1/0)return;const l=Math.max(0,Math.min(a,L));if(!u(e)){const t=d[e];t&&clearTimeout(t),d[e]=setTimeout((()=>{u(e)||n.dispatch(s({queryCacheKey:e})),delete d[e]}),1e3*l)}}return(e,r,o)=>{if(c(e)){const n=r.getState()[t],{queryCacheKey:o}=l.match(e)?e.payload:e.meta.arg;f(o,n.queries[o]?.endpointName,r,n.config)}if(n.util.resetApiState.match(e))for(const[t,n]of Object.entries(d))n&&clearTimeout(n),delete d[t];if(i.hasRehydrationInfo(e)){const n=r.getState()[t],{queries:o}=i.extractRehydrationInfo(e);for(const[e,t]of Object.entries(o))f(e,t?.endpointName,r,n.config)}}},F=e=>{let{reducerPath:t,context:n,context:{endpointDefinitions:r},mutationThunk:i,queryThunk:a,api:s,assertTagType:l,refetchQuery:c,internalState:u}=e;const{removeQueryResult:d}=s.internalActions,f=(0,o.Q)((0,o.KD)(i),(0,o.h_)(i)),p=(0,o.Q)((0,o.KD)(i,a),(0,o.Iv)(i,a));let h=[];function m(e,r){const o=r.getState(),i=o[t];if(h.push(...e),"delayed"===i.config.invalidationBehavior&&function(e){for(const t in e.queries)if("pending"===e.queries[t]?.status)return!0;for(const t in e.mutations)if("pending"===e.mutations[t]?.status)return!0;return!1}(i))return;const a=h;if(h=[],0===a.length)return;const l=s.util.selectInvalidatedBy(o,a);n.batch((()=>{const e=Array.from(l.values());for(const{queryCacheKey:t}of e){const e=i.queries[t],n=u.currentSubscriptions[t]??{};e&&(0===w(n)?r.dispatch(d({queryCacheKey:t})):"uninitialized"!==e.status&&r.dispatch(c(e,t)))}}))}return(e,t)=>{f(e)?m(S(e,"invalidatesTags",r,l),t):p(e)?m([],t):s.util.invalidateTags.match(e)&&m(v(e.payload,void 0,void 0,void 0,void 0,l),t)}},B=e=>{let{reducerPath:t,queryThunk:n,api:r,refetchQuery:o,internalState:i}=e;const a={};function s(e,n){let{queryCacheKey:r}=e;const l=n.getState()[t],c=l.queries[r],d=i.currentSubscriptions[r];if(!c||"uninitialized"===c.status)return;const{lowestPollingInterval:f,skipPollingIfUnfocused:p}=u(d);if(!Number.isFinite(f))return;const h=a[r];h?.timeout&&(clearTimeout(h.timeout),h.timeout=void 0);const m=Date.now()+f;a[r]={nextPollTimestamp:m,pollingInterval:f,timeout:setTimeout((()=>{!l.config.focused&&p||n.dispatch(o(c,r)),s({queryCacheKey:r},n)}),f)}}function l(e,n){let{queryCacheKey:r}=e;const o=n.getState()[t].queries[r],l=i.currentSubscriptions[r];if(!o||"uninitialized"===o.status)return;const{lowestPollingInterval:d}=u(l);if(!Number.isFinite(d))return void c(r);const f=a[r],p=Date.now()+d;(!f||p<f.nextPollTimestamp)&&s({queryCacheKey:r},n)}function c(e){const t=a[e];t?.timeout&&clearTimeout(t.timeout),delete a[e]}function u(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=!1,n=Number.POSITIVE_INFINITY;for(let r in e)e[r].pollingInterval&&(n=Math.min(e[r].pollingInterval,n),t=e[r].skipPollingIfUnfocused||t);return{lowestPollingInterval:n,skipPollingIfUnfocused:t}}return(e,t)=>{(r.internalActions.updateSubscriptionOptions.match(e)||r.internalActions.unsubscribeQueryResult.match(e))&&l(e.payload,t),(n.pending.match(e)||n.rejected.match(e)&&e.meta.condition)&&l(e.meta.arg,t),(n.fulfilled.match(e)||n.rejected.match(e)&&!e.meta.condition)&&s(e.meta.arg,t),r.util.resetApiState.match(e)&&function(){for(const e of Object.keys(a))c(e)}()}},U=e=>{let{reducerPath:t,context:n,api:r,refetchQuery:o,internalState:i}=e;const{removeQueryResult:a}=r.internalActions;function s(e,r){const s=e.getState()[t],l=s.queries,c=i.currentSubscriptions;n.batch((()=>{for(const t of Object.keys(c)){const n=l[t],i=c[t];if(!i||!n)continue;(Object.values(i).some((e=>!0===e[r]))||Object.values(i).every((e=>void 0===e[r]))&&s.config[r])&&(0===w(i)?e.dispatch(a({queryCacheKey:t})):"uninitialized"!==n.status&&e.dispatch(o(n,t)))}}))}return(e,t)=>{f.match(e)&&s(t,"refetchOnFocus"),h.match(e)&&s(t,"refetchOnReconnect")}},q=new Error("Promise never resolved before cacheEntryRemoved."),$=e=>{let{api:t,reducerPath:n,context:r,queryThunk:i,mutationThunk:a,internalState:s}=e;const l=(0,o.Gx)(i),c=(0,o.Gx)(a),u=(0,o.KD)(i,a),d={};function f(e,n,o,i,a){const s=r.endpointDefinitions[e],l=s?.onCacheEntryAdded;if(!l)return;let c={};const u=new Promise((e=>{c.cacheEntryRemoved=e})),f=Promise.race([new Promise((e=>{c.valueResolved=e})),u.then((()=>{throw q}))]);f.catch((()=>{})),d[o]=c;const p=t.endpoints[e].select("query"===s.type?n:o),h=i.dispatch(((e,t,n)=>n)),m={...i,getCacheEntry:()=>p(i.getState()),requestId:a,extra:h,updateCachedData:"query"===s.type?r=>i.dispatch(t.util.updateQueryData(e,n,r)):void 0,cacheDataLoaded:f,cacheEntryRemoved:u},g=l(n,m);Promise.resolve(g).catch((e=>{if(e!==q)throw e}))}return(e,r,o)=>{const s=function(e){if(l(e))return e.meta.arg.queryCacheKey;if(c(e))return e.meta.arg.fixedCacheKey??e.meta.requestId;return t.internalActions.removeQueryResult.match(e)?e.payload.queryCacheKey:t.internalActions.removeMutationResult.match(e)?k(e.payload):""}(e);if(i.pending.match(e)){const t=o[n].queries[s],i=r.getState()[n].queries[s];!t&&i&&f(e.meta.arg.endpointName,e.meta.arg.originalArgs,s,r,e.meta.requestId)}else if(a.pending.match(e)){r.getState()[n].mutations[s]&&f(e.meta.arg.endpointName,e.meta.arg.originalArgs,s,r,e.meta.requestId)}else if(u(e)){const t=d[s];t?.valueResolved&&(t.valueResolved({data:e.payload,meta:e.meta.baseQueryMeta}),delete t.valueResolved)}else if(t.internalActions.removeQueryResult.match(e)||t.internalActions.removeMutationResult.match(e)){const e=d[s];e&&(delete d[s],e.cacheEntryRemoved())}else if(t.util.resetApiState.match(e))for(const[t,n]of Object.entries(d))delete d[t],n.cacheEntryRemoved()}},Z=e=>{let{api:t,context:n,queryThunk:r,mutationThunk:i}=e;const a=(0,o.zR)(r,i),s=(0,o.Iv)(r,i),l=(0,o.KD)(r,i),c={};return(e,r)=>{if(a(e)){const{requestId:o,arg:{endpointName:i,originalArgs:a}}=e.meta,s=n.endpointDefinitions[i],l=s?.onQueryStarted;if(l){const e={},n=new Promise(((t,n)=>{e.resolve=t,e.reject=n}));n.catch((()=>{})),c[o]=e;const u=t.endpoints[i].select("query"===s.type?a:o),d=r.dispatch(((e,t,n)=>n)),f={...r,getCacheEntry:()=>u(r.getState()),requestId:o,extra:d,updateCachedData:"query"===s.type?e=>r.dispatch(t.util.updateQueryData(i,a,e)):void 0,queryFulfilled:n};l(a,f)}}else if(l(e)){const{requestId:t,baseQueryMeta:n}=e.meta;c[t]?.resolve({data:e.payload,meta:n}),delete c[t]}else if(s(e)){const{requestId:t,rejectedWithValue:n,baseQueryMeta:r}=e.meta;c[t]?.reject({error:e.payload??e.error,isUnhandledError:!n,meta:r}),delete c[t]}}},H=e=>{let{api:t,context:{apiUid:n},reducerPath:r}=e;return(e,r)=>{t.util.resetApiState.match(e)&&r.dispatch(t.internalActions.middlewareRegistered(n))}},V=e=>{let{api:t,queryThunk:n,internalState:r}=e;const o=`${t.reducerPath}/subscriptions`;let a=null,s=null;const{updateSubscriptionOptions:l,unsubscribeQueryResult:c}=t.internalActions,u=()=>r.currentSubscriptions,d={getSubscriptions:u,getSubscriptionCount:e=>w(u()[e]??{}),isRequestSubscribed:(e,t)=>{const n=u();return!!n?.[e]?.[t]}};return(e,u)=>{if(a||(a=JSON.parse(JSON.stringify(r.currentSubscriptions))),t.util.resetApiState.match(e))return a=r.currentSubscriptions={},s=null,[!0,!1];if(t.internalActions.internal_getRTKQSubscriptions.match(e))return[!1,d];const f=((e,r)=>{if(l.match(r)){const{queryCacheKey:t,requestId:n,options:o}=r.payload;return e?.[t]?.[n]&&(e[t][n]=o),!0}if(c.match(r)){const{queryCacheKey:t,requestId:n}=r.payload;return e[t]&&delete e[t][n],!0}if(t.internalActions.removeQueryResult.match(r))return delete e[r.payload.queryCacheKey],!0;if(n.pending.match(r)){const{meta:{arg:t,requestId:n}}=r,o=e[t.queryCacheKey]??={};return o[`${n}_running`]={},t.subscribe&&(o[n]=t.subscriptionOptions??o[n]??{}),!0}let o=!1;if(n.fulfilled.match(r)||n.rejected.match(r)){const t=e[r.meta.arg.queryCacheKey]||{},n=`${r.meta.requestId}_running`;o||=!!t[n],delete t[n]}if(n.rejected.match(r)){const{meta:{condition:t,arg:n,requestId:i}}=r;if(t&&n.subscribe){const t=e[n.queryCacheKey]??={};t[i]=n.subscriptionOptions??t[i]??{},o=!0}}return o})(r.currentSubscriptions,e);let p=!0;if(f){s||(s=setTimeout((()=>{const e=JSON.parse(JSON.stringify(r.currentSubscriptions)),[,n]=(0,i.aS)(a,(()=>e));u.next(t.internalActions.subscriptionsUpdated(n)),a=e,s=null}),500));const l="string"==typeof e.type&&!!e.type.startsWith(o),c=n.rejected.match(e)&&e.meta.condition&&!!e.meta.arg.subscribe;p=!l&&!c}return[p,!1]}};function W(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Object.assign(e,...n)}var G=Symbol(),Y=function(){let{createSelector:e=a.P1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{name:G,init(t,n,a){let{baseQuery:s,tagTypes:c,reducerPath:u,serializeQueryArgs:S,keepUnusedDataFor:C,refetchOnMountOrArgChange:O,refetchOnFocus:T,refetchOnReconnect:P,invalidationBehavior:A}=n;(0,i.vI)();const j=e=>e;Object.assign(t,{reducerPath:u,endpoints:{},internalActions:{onOnline:h,onOffline:m,onFocus:f,onFocusLost:p},util:{}});const{queryThunk:M,mutationThunk:L,patchQueryData:q,updateQueryData:Y,upsertQueryData:K,prefetch:Q,buildMatchThunkActions:J}=function(e){let{reducerPath:t,baseQuery:n,context:{endpointDefinitions:r},serializeQueryArgs:a,api:s,assertTagType:l}=e;const c=async(e,t)=>{let{signal:i,abort:a,rejectWithValue:s,fulfillWithValue:l,dispatch:c,getState:f,extra:p}=t;const h=r[e.endpointName];try{let t,r=x;const s={signal:i,abort:a,dispatch:c,getState:f,extra:p,endpoint:e.endpointName,type:e.type,forced:"query"===e.type?u(e,f()):void 0},m="query"===e.type?e[E]:void 0;if(m?t=m():h.query?(t=await n(h.query(e.originalArgs),s,h.extraOptions),h.transformResponse&&(r=h.transformResponse)):t=await h.queryFn(e.originalArgs,s,h.extraOptions,(e=>n(e,s,h.extraOptions))),t.error)throw new d(t.error,t.meta);return l(await r(t.data,t.meta,e.originalArgs),{fulfilledTimeStamp:Date.now(),baseQueryMeta:t.meta,[o.s4]:!0})}catch(m){let t=m;if(t instanceof d){let n=x;h.query&&h.transformErrorResponse&&(n=h.transformErrorResponse);try{return s(await n(t.value,t.meta,e.originalArgs),{baseQueryMeta:t.meta,[o.s4]:!0})}catch(g){t=g}}throw console.error(t),t}};function u(e,n){const r=n[t]?.queries?.[e.queryCacheKey],o=n[t]?.config.refetchOnMountOrArgChange,i=r?.fulfilledTimeStamp,a=e.forceRefetch??(e.subscribe&&o);return!!a&&(!0===a||(Number(new Date)-Number(i))/1e3>=a)}const f=(0,o.hg)(`${t}/executeQuery`,c,{getPendingMeta:()=>({startedTimeStamp:Date.now(),[o.s4]:!0}),condition(e,n){let{getState:o}=n;const i=o(),a=i[t]?.queries?.[e.queryCacheKey],s=a?.fulfilledTimeStamp,l=e.originalArgs,c=a?.originalArgs,d=r[e.endpointName];return!!_(e)||"pending"!==a?.status&&(!!u(e,i)||!(!g(d)||!d?.forceRefetch?.({currentArg:l,previousArg:c,endpointState:a,state:i}))||!s)},dispatchConditionRejection:!0}),p=(0,o.hg)(`${t}/executeMutation`,c,{getPendingMeta:()=>({startedTimeStamp:Date.now(),[o.s4]:!0})});function h(e){return t=>t?.meta?.arg?.endpointName===e}return{queryThunk:f,mutationThunk:p,prefetch:(e,t,n)=>(r,o)=>{const i=(e=>"force"in e)(n)&&n.force,a=(e=>"ifOlderThan"in e)(n)&&n.ifOlderThan,l=function(){const n={forceRefetch:!(arguments.length>0&&void 0!==arguments[0])||arguments[0],isPrefetch:!0};return s.endpoints[e].initiate(t,n)},c=s.endpoints[e].select(t)(o());if(i)r(l());else if(a){const e=c?.fulfilledTimeStamp;if(!e)return void r(l());(Number(new Date)-Number(new Date(e)))/1e3>=a&&r(l())}else r(l(!1))},updateQueryData:function(e,t,n){let r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];return(o,a)=>{const l=s.endpoints[e].select(t)(a());let c,u={patches:[],inversePatches:[],undo:()=>o(s.util.patchQueryData(e,t,u.inversePatches,r))};if("uninitialized"===l.status)return u;if("data"in l)if((0,i.o$)(l.data)){const[e,t,r]=(0,i.aS)(l.data,n);u.patches.push(...t),u.inversePatches.push(...r),c=e}else c=n(l.data),u.patches.push({op:"replace",path:[],value:c}),u.inversePatches.push({op:"replace",path:[],value:l.data});return 0===u.patches.length||o(s.util.patchQueryData(e,t,u.patches,r)),u}},upsertQueryData:(e,t,n)=>r=>r(s.endpoints[e].initiate(t,{subscribe:!1,forceRefetch:!0,[E]:()=>({data:n})})),patchQueryData:(e,t,n,o)=>(i,c)=>{const u=r[e],d=a({queryArgs:t,endpointDefinition:u,endpointName:e});if(i(s.internalActions.queryResultPatched({queryCacheKey:d,patches:n})),!o)return;const f=s.endpoints[e].select(t)(c()),p=v(u.providesTags,f.data,void 0,t,{},l);i(s.internalActions.updateProvidedBy({queryCacheKey:d,providedTags:p}))},buildMatchThunkActions:function(e,t){return{matchPending:(0,o.A6)((0,o.zR)(e),h(t)),matchFulfilled:(0,o.A6)((0,o.KD)(e),h(t)),matchRejected:(0,o.A6)((0,o.Iv)(e),h(t))}}}}({baseQuery:s,reducerPath:u,context:a,api:t,serializeQueryArgs:S,assertTagType:j}),{reducer:X,actions:ee}=N({context:a,queryThunk:M,mutationThunk:L,reducerPath:u,assertTagType:j,config:{refetchOnFocus:T,refetchOnReconnect:P,refetchOnMountOrArgChange:O,keepUnusedDataFor:C,reducerPath:u,invalidationBehavior:A}});W(t.util,{patchQueryData:q,updateQueryData:Y,upsertQueryData:K,prefetch:Q,resetApiState:ee.resetApiState}),W(t.internalActions,ee);const{middleware:te,actions:ne}=function(e){const{reducerPath:t,queryThunk:n,api:i,context:a}=e,{apiUid:s}=a,l={invalidateTags:(0,o.PH)(`${t}/invalidateTags`)},c=e=>e.type.startsWith(`${t}/`),u=[H,z,F,B,$,Z];return{middleware:n=>{let o=!1;const l={...e,internalState:{currentSubscriptions:{}},refetchQuery:d,isThisApiSliceAction:c},f=u.map((e=>e(l))),p=V(l),h=U(l);return e=>l=>{if(!(0,r.LG)(l))return e(l);o||(o=!0,n.dispatch(i.internalActions.middlewareRegistered(s)));const u={...n,next:e},d=n.getState(),[m,g]=p(l,u,d);let v;if(v=m?e(l):g,n.getState()[t]&&(h(l,u,d),c(l)||a.hasRehydrationInfo(l)))for(let e of f)e(l,u,d);return v}},actions:l};function d(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n({type:"query",endpointName:e.endpointName,originalArgs:e.originalArgs,subscribe:!1,forceRefetch:!0,queryCacheKey:t,...r})}}({reducerPath:u,context:a,queryThunk:M,mutationThunk:L,api:t,assertTagType:j});W(t.util,ne),W(t,{reducer:X,middleware:te});const{buildQuerySelector:re,buildMutationSelector:oe,selectInvalidatedBy:ie,selectCachedArgsForQuery:ae}=function(e){let{serializeQueryArgs:t,reducerPath:n,createSelector:r}=e;const o=e=>R,i=e=>D;return{buildQuerySelector:function(e,n){return i=>{const l=t({queryArgs:i,endpointDefinition:n,endpointName:e});return r(i===I?o:e=>s(e)?.queries?.[l]??R,a)}},buildMutationSelector:function(){return e=>{let t;return t="object"===typeof e?k(e)??I:e,r(t===I?i:e=>s(e)?.mutations?.[t]??D,a)}},selectInvalidatedBy:function(e,t){const r=e[n],o=new Set;for(const n of t.map(y)){const e=r.provided[n.type];if(!e)continue;let t=(void 0!==n.id?e[n.id]:l(Object.values(e)))??[];for(const n of t)o.add(n)}return l(Array.from(o.values()).map((e=>{const t=r.queries[e];return t?[{queryCacheKey:e,endpointName:t.endpointName,originalArgs:t.originalArgs}]:[]})))},selectCachedArgsForQuery:function(e,t){return Object.values(e[n].queries).filter((e=>e?.endpointName===t&&"uninitialized"!==e.status)).map((e=>e.originalArgs))}};function a(e){return{...e,...(t=e.status,{status:t,isUninitialized:"uninitialized"===t,isLoading:"pending"===t,isSuccess:"fulfilled"===t,isError:"rejected"===t})};var t}function s(e){return e[n]}}({serializeQueryArgs:S,reducerPath:u,createSelector:e});W(t.util,{selectInvalidatedBy:ie,selectCachedArgsForQuery:ae});const{buildInitiateQuery:se,buildInitiateMutation:le,getRunningMutationThunk:ce,getRunningMutationsThunk:ue,getRunningQueriesThunk:de,getRunningQueryThunk:fe}=function(e){let{serializeQueryArgs:t,queryThunk:n,mutationThunk:r,api:o,context:i}=e;const a=new Map,s=new Map,{unsubscribeQueryResult:l,removeMutationResult:c,updateSubscriptionOptions:u}=o.internalActions;return{buildInitiateQuery:function(e,r){const i=function(s){let{subscribe:c=!0,forceRefetch:f,subscriptionOptions:p,[E]:h,...m}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(g,v)=>{const y=t({queryArgs:s,endpointDefinition:r,endpointName:e}),b=n({...m,type:"query",subscribe:c,forceRefetch:f,subscriptionOptions:p,endpointName:e,originalArgs:s,queryCacheKey:y,[E]:h}),_=o.endpoints[e].select(s),x=g(b),S=_(v());d(g);const{requestId:C,abort:k}=x,O=S.requestId!==C,T=a.get(g)?.[y],N=()=>_(v()),I=Object.assign(h?x.then(N):O&&!T?Promise.resolve(S):Promise.all([T,x]).then(N),{arg:s,requestId:C,subscriptionOptions:p,queryCacheKey:y,abort:k,async unwrap(){const e=await I;if(e.isError)throw e.error;return e.data},refetch:()=>g(i(s,{subscribe:!1,forceRefetch:!0})),unsubscribe(){c&&g(l({queryCacheKey:y,requestId:C}))},updateSubscriptionOptions(t){I.subscriptionOptions=t,g(u({endpointName:e,requestId:C,queryCacheKey:y,options:t}))}});if(!T&&!O&&!h){const e=a.get(g)||{};e[y]=I,a.set(g,e),I.then((()=>{delete e[y],w(e)||a.delete(g)}))}return I}};return i},buildInitiateMutation:function(e){return function(t){let{track:n=!0,fixedCacheKey:o}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(i,a)=>{const l=r({type:"mutation",endpointName:e,originalArgs:t,track:n,fixedCacheKey:o}),u=i(l);d(i);const{requestId:f,abort:p,unwrap:h}=u,m=(g=e=>({error:e}),u.unwrap().then((e=>({data:e}))).catch(g));var g;const v=Object.assign(m,{arg:u.arg,requestId:f,abort:p,unwrap:h,reset:()=>{i(c({requestId:f,fixedCacheKey:o}))}}),y=s.get(i)||{};return s.set(i,y),y[f]=v,v.then((()=>{delete y[f],w(y)||s.delete(i)})),o&&(y[o]=v,v.then((()=>{y[o]===v&&(delete y[o],w(y)||s.delete(i))}))),v}}},getRunningQueryThunk:function(e,n){return r=>{const o=i.endpointDefinitions[e],s=t({queryArgs:n,endpointDefinition:o,endpointName:e});return a.get(r)?.[s]}},getRunningMutationThunk:function(e,t){return e=>s.get(e)?.[t]},getRunningQueriesThunk:function(){return e=>Object.values(a.get(e)||{}).filter(b)},getRunningMutationsThunk:function(){return e=>Object.values(s.get(e)||{}).filter(b)}};function d(e){}}({queryThunk:M,mutationThunk:L,api:t,serializeQueryArgs:S,context:a});return W(t.util,{getRunningMutationThunk:ce,getRunningMutationsThunk:ue,getRunningQueryThunk:fe,getRunningQueriesThunk:de}),{name:G,injectEndpoint(e,n){const r=t;r.endpoints[e]??={},g(n)?W(r.endpoints[e],{name:e,select:re(e,n),initiate:se(e,n)},J(M,e)):"mutation"===n.type&&W(r.endpoints[e],{name:e,select:oe(),initiate:le(e)},J(L,e))}}}}};Y()},1399:(e,t,n)=>{"use strict";n.d(t,{s4:()=>g,xC:()=>_,PH:()=>d,hg:()=>B,oM:()=>V,rJ:()=>te,A6:()=>T,Q:()=>O,Gx:()=>j,KD:()=>A,zR:()=>P,Iv:()=>R,h_:()=>D,x0:()=>C,cw:()=>v});var r=n(89900),o=n(36313),i=n(38907);function a(e){return t=>{let{dispatch:n,getState:r}=t;return t=>o=>"function"===typeof o?o(n,r,e):t(o)}}var s=a(),l=a,c=(function(){const e=(0,o.wN)(...arguments),t=Object.assign((function(){const t=e(...arguments),n=function(e){for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return t((0,r.mv)(e)?(0,r.Vk)(e):e,...o)};return Object.assign(n,t),n}),{withTypes:()=>t})}(o.kO),"undefined"!==typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"===typeof arguments[0]?i.qC:i.qC.apply(null,arguments)}),u=("undefined"!==typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__,e=>e&&"function"===typeof e.match);function d(e,t){function n(){if(t){let n=t(...arguments);if(!n)throw new Error(te(0));return{type:e,payload:n.payload,..."meta"in n&&{meta:n.meta},..."error"in n&&{error:n.error}}}return{type:e,payload:arguments.length<=0?void 0:arguments[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=t=>(0,i.LG)(t)&&t.type===e,n}var f=class e extends Array{constructor(){super(...arguments),Object.setPrototypeOf(this,e.prototype)}static get[Symbol.species](){return e}concat(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return super.concat.apply(this,t)}prepend(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return 1===n.length&&Array.isArray(n[0])?new e(...n[0].concat(this)):new e(...n.concat(this))}};function p(e){return(0,r.o$)(e)?(0,r.Uy)(e,(()=>{})):e}function h(e,t,n){if(e.has(t)){let r=e.get(t);return n.update&&(r=n.update(r,t,e),e.set(t,r)),r}if(!n.insert)throw new Error(te(10));const r=n.insert(t,e);return e.set(t,r),r}var m=()=>function(e){const{thunk:t=!0,immutableCheck:n=!0,serializableCheck:r=!0,actionCreatorCheck:o=!0}=e??{};let i=new f;return t&&("boolean"===typeof t?i.push(s):i.push(l(t.extraArgument))),i},g="RTK_autoBatch",v=()=>e=>({payload:e,meta:{[g]:!0}}),y=e=>t=>{setTimeout(t,e)},b="undefined"!==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame:y(10),w=e=>function(t){const{autoBatch:n=!0}=t??{};let r=new f(e);return n&&r.push(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{type:"raf"};return t=>function(){const n=t(...arguments);let r=!0,o=!1,i=!1;const a=new Set,s="tick"===e.type?queueMicrotask:"raf"===e.type?b:"callback"===e.type?e.queueNotification:y(e.timeout),l=()=>{i=!1,o&&(o=!1,a.forEach((e=>e())))};return Object.assign({},n,{subscribe(e){const t=n.subscribe((()=>r&&e()));return a.add(e),()=>{t(),a.delete(e)}},dispatch(e){try{return r=!e?.meta?.[g],o=!r,o&&(i||(i=!0,s(l))),n.dispatch(e)}finally{r=!0}}})}}("object"===typeof n?n:void 0)),r},E=!0;function _(e){const t=m(),{reducer:n,middleware:r,devTools:o=!0,preloadedState:a,enhancers:s}=e||{};let l,u;if("function"===typeof n)l=n;else{if(!(0,i.PO)(n))throw new Error(te(1));l=(0,i.UY)(n)}if(!E&&r&&"function"!==typeof r)throw new Error(te(2));if("function"===typeof r){if(u=r(t),!E&&!Array.isArray(u))throw new Error(te(3))}else u=t();if(!E&&u.some((e=>"function"!==typeof e)))throw new Error(te(4));let d=i.qC;o&&(d=c({trace:!E,..."object"===typeof o&&o}));const f=(0,i.md)(...u),p=w(f);if(!E&&s&&"function"!==typeof s)throw new Error(te(5));let h="function"===typeof s?s(p):p();if(!E&&!Array.isArray(h))throw new Error(te(6));if(!E&&h.some((e=>"function"!==typeof e)))throw new Error(te(7));E||!u.length||h.includes(f)||console.error("middlewares were provided, but middleware enhancer was not included in final enhancers - make sure to call `getDefaultEnhancers`");const g=d(...h);return(0,i.MT)(l,a,g)}function x(e){const t={},n=[];let r;const o={addCase(e,n){const r="string"===typeof e?e:e.type;if(!r)throw new Error(te(28));if(r in t)throw new Error(te(29));return t[r]=n,o},addMatcher:(e,t)=>(n.push({matcher:e,reducer:t}),o),addDefaultCase:e=>(r=e,o)};return e(o),[t,n,r]}var S="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",C=function(){let e="",t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:21;for(;t--;)e+=S[64*Math.random()|0];return e},k=(e,t)=>u(e)?e.match(t):e(t);function O(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return e=>t.some((t=>k(t,e)))}function T(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return e=>t.every((t=>k(t,e)))}function N(e,t){if(!e||!e.meta)return!1;const n="string"===typeof e.meta.requestId,r=t.indexOf(e.meta.requestStatus)>-1;return n&&r}function I(e){return"function"===typeof e[0]&&"pending"in e[0]&&"fulfilled"in e[0]&&"rejected"in e[0]}function P(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?e=>N(e,["pending"]):I(t)?e=>O(...t.map((e=>e.pending)))(e):P()(t[0])}function R(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?e=>N(e,["rejected"]):I(t)?e=>O(...t.map((e=>e.rejected)))(e):R()(t[0])}function D(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=e=>e&&e.meta&&e.meta.rejectedWithValue;return 0===t.length||I(t)?e=>T(R(...t),r)(e):D()(t[0])}function A(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?e=>N(e,["fulfilled"]):I(t)?e=>O(...t.map((e=>e.fulfilled)))(e):A()(t[0])}function j(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?e=>N(e,["pending","fulfilled","rejected"]):I(t)?e=>{const n=[];for(const r of t)n.push(r.pending,r.rejected,r.fulfilled);return O(...n)(e)}:j()(t[0])}var M=["name","message","stack","code"],L=class{constructor(e,t){this.payload=e,this.meta=t}_type},z=class{constructor(e,t){this.payload=e,this.meta=t}_type},F=e=>{if("object"===typeof e&&null!==e){const t={};for(const n of M)"string"===typeof e[n]&&(t[n]=e[n]);return t}return{message:String(e)}},B=(()=>{function e(e,t,n){const r=d(e+"/fulfilled",((e,t,n,r)=>({payload:e,meta:{...r||{},arg:n,requestId:t,requestStatus:"fulfilled"}}))),o=d(e+"/pending",((e,t,n)=>({payload:void 0,meta:{...n||{},arg:t,requestId:e,requestStatus:"pending"}}))),i=d(e+"/rejected",((e,t,r,o,i)=>({payload:o,error:(n&&n.serializeError||F)(e||"Rejected"),meta:{...i||{},arg:r,requestId:t,rejectedWithValue:!!o,requestStatus:"rejected",aborted:"AbortError"===e?.name,condition:"ConditionError"===e?.name}})));return Object.assign((function(e){return(a,s,l)=>{const c=n?.idGenerator?n.idGenerator(e):C(),u=new AbortController;let d,f;function p(e){f=e,u.abort()}const h=async function(){let h;try{let i=n?.condition?.(e,{getState:s,extra:l});if(null!==(m=i)&&"object"===typeof m&&"function"===typeof m.then&&(i=await i),!1===i||u.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const g=new Promise(((e,t)=>{d=()=>{t({name:"AbortError",message:f||"Aborted"})},u.signal.addEventListener("abort",d)}));a(o(c,e,n?.getPendingMeta?.({requestId:c,arg:e},{getState:s,extra:l}))),h=await Promise.race([g,Promise.resolve(t(e,{dispatch:a,getState:s,extra:l,requestId:c,signal:u.signal,abort:p,rejectWithValue:(e,t)=>new L(e,t),fulfillWithValue:(e,t)=>new z(e,t)})).then((t=>{if(t instanceof L)throw t;return t instanceof z?r(t.payload,c,e,t.meta):r(t,c,e)}))])}catch(g){h=g instanceof L?i(null,c,e,g.payload,g.meta):i(g,c,e)}finally{d&&u.signal.removeEventListener("abort",d)}var m;return n&&!n.dispatchConditionRejection&&i.match(h)&&h.meta.condition||a(h),h}();return Object.assign(h,{abort:p,requestId:c,arg:e,unwrap:()=>h.then(U)})}}),{pending:o,rejected:i,fulfilled:r,settled:O(i,r),typePrefix:e})}return e.withTypes=()=>e,e})();function U(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}var q=Symbol.for("rtk-slice-createasyncthunk");function $(e,t){return`${e}/${t}`}function Z(){let{creators:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=e?.asyncThunk?.[q];return function(e){const{name:n,reducerPath:o=n}=e;if(!n)throw new Error(te(11));const i=("function"===typeof e.reducers?e.reducers(function(){function e(e,t){return{_reducerDefinitionType:"asyncThunk",payloadCreator:e,...t}}return e.withTypes=()=>e,{reducer:e=>Object.assign({[e.name](){return e(...arguments)}}[e.name],{_reducerDefinitionType:"reducer"}),preparedReducer:(e,t)=>({_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:t}),asyncThunk:e}}()):e.reducers)||{},a=Object.keys(i),s={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},l={addCase(e,t){const n="string"===typeof e?e:e.type;if(!n)throw new Error(te(12));if(n in s.sliceCaseReducersByType)throw new Error(te(13));return s.sliceCaseReducersByType[n]=t,l},addMatcher:(e,t)=>(s.sliceMatchers.push({matcher:e,reducer:t}),l),exposeAction:(e,t)=>(s.actionCreators[e]=t,l),exposeCaseReducer:(e,t)=>(s.sliceCaseReducersByName[e]=t,l)};function c(){const[t={},n=[],o]="function"===typeof e.extraReducers?x(e.extraReducers):[e.extraReducers],i={...t,...s.sliceCaseReducersByType};return function(e,t){let n,[o,i,a]=x(t);if("function"===typeof e)n=()=>p(e());else{const t=p(e);n=()=>t}function s(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n(),t=arguments.length>1?arguments[1]:void 0,s=[o[t.type],...i.filter((e=>{let{matcher:n}=e;return n(t)})).map((e=>{let{reducer:t}=e;return t}))];return 0===s.filter((e=>!!e)).length&&(s=[a]),s.reduce(((e,n)=>{if(n){if((0,r.mv)(e)){const r=n(e,t);return void 0===r?e:r}if((0,r.o$)(e))return(0,r.Uy)(e,(e=>n(e,t)));{const r=n(e,t);if(void 0===r){if(null===e)return e;throw new Error(te(9))}return r}}return e}),e)}return s.getInitialState=n,s}(e.initialState,(e=>{for(let t in i)e.addCase(t,i[t]);for(let t of s.sliceMatchers)e.addMatcher(t.matcher,t.reducer);for(let t of n)e.addMatcher(t.matcher,t.reducer);o&&e.addDefaultCase(o)}))}a.forEach((r=>{const o=i[r],a={reducerName:r,type:$(n,r),createNotation:"function"===typeof e.reducers};!function(e){return"asyncThunk"===e._reducerDefinitionType}(o)?function(e,t,n){let r,o,{type:i,reducerName:a,createNotation:s}=e;if("reducer"in t){if(s&&!function(e){return"reducerWithPrepare"===e._reducerDefinitionType}(t))throw new Error(te(17));r=t.reducer,o=t.prepare}else r=t;n.addCase(i,r).exposeCaseReducer(a,r).exposeAction(a,o?d(i,o):d(i))}(a,o,l):function(e,t,n,r){let{type:o,reducerName:i}=e;if(!r)throw new Error(te(18));const{payloadCreator:a,fulfilled:s,pending:l,rejected:c,settled:u,options:d}=t,f=r(o,a,d);n.exposeAction(i,f),s&&n.addCase(f.fulfilled,s);l&&n.addCase(f.pending,l);c&&n.addCase(f.rejected,c);u&&n.addMatcher(f.settled,u);n.exposeCaseReducer(i,{fulfilled:s||W,pending:l||W,rejected:c||W,settled:u||W})}(a,o,l,t)}));const u=e=>e,f=new Map;let m;function g(e,t){return m||(m=c()),m(e,t)}function v(){return m||(m=c()),m.getInitialState()}function y(t){let n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];function r(e){let r=e[t];return"undefined"===typeof r&&n&&(r=v()),r}function o(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u;const r=h(f,n,{insert:()=>new WeakMap});return h(r,t,{insert:()=>{const r={};for(const[o,i]of Object.entries(e.selectors??{}))r[o]=H(i,t,v,n);return r}})}return{reducerPath:t,getSelectors:o,get selectors(){return o(r)},selectSlice:r}}const b={name:n,reducer:g,actions:s.actionCreators,caseReducers:s.sliceCaseReducersByName,getInitialState:v,...y(o),injectInto(e){let{reducerPath:t,...n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=t??o;return e.inject({reducerPath:r,reducer:g},n),{...b,...y(r,!0)}}};return b}}function H(e,t,n,r){function o(o){let i=t(o);"undefined"===typeof i&&r&&(i=n());for(var a=arguments.length,s=new Array(a>1?a-1:0),l=1;l<a;l++)s[l-1]=arguments[l];return e(i,...s)}return o.unwrapped=e,o}var V=Z();function W(){}r.mv;var G=(e,t)=>{if("function"!==typeof e)throw new Error(te(32))};var{assign:Y}=Object,K="listenerMiddleware",Q=e=>{let{type:t,actionCreator:n,matcher:r,predicate:o,effect:i}=e;if(t)o=d(t).match;else if(n)t=n.type,o=n.match;else if(r)o=r;else if(!o)throw new Error(te(21));return G(i,"options.listener"),{predicate:o,type:t,effect:i}},J=Object.assign((e=>{const{type:t,predicate:n,effect:r}=Q(e);return{id:C(),effect:r,type:t,predicate:n,pending:new Set,unsubscribe:()=>{throw new Error(te(22))}}}),{withTypes:()=>J}),X=Object.assign(d(`${K}/add`),{withTypes:()=>X}),ee=(d(`${K}/removeAll`),Object.assign(d(`${K}/remove`),{withTypes:()=>ee}));Symbol.for("rtk-state-proxy-original");function te(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}},89900:(e,t,n)=>{"use strict";n.d(t,{Js:()=>f,QE:()=>J,Uy:()=>K,Vk:()=>V,aS:()=>Q,mv:()=>l,o$:()=>c,vI:()=>G});var r=Symbol.for("immer-nothing"),o=Symbol.for("immer-draftable"),i=Symbol.for("immer-state");function a(e){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var s=Object.getPrototypeOf;function l(e){return!!e&&!!e[i]}function c(e){return!!e&&(d(e)||Array.isArray(e)||!!e[o]||!!e.constructor?.[o]||y(e)||b(e))}var u=Object.prototype.constructor.toString();function d(e){if(!e||"object"!==typeof e)return!1;const t=s(e);if(null===t)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===u}function f(e){return l(e)||a(15),e[i].base_}function p(e,t){0===h(e)?Object.entries(e).forEach((n=>{let[r,o]=n;t(r,o,e)})):e.forEach(((n,r)=>t(r,n,e)))}function h(e){const t=e[i];return t?t.type_:Array.isArray(e)?1:y(e)?2:b(e)?3:0}function m(e,t){return 2===h(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function g(e,t){return 2===h(e)?e.get(t):e[t]}function v(e,t,n){const r=h(e);2===r?e.set(t,n):3===r?e.add(n):e[t]=n}function y(e){return e instanceof Map}function b(e){return e instanceof Set}function w(e){return e.copy_||e.base_}function E(e,t){if(y(e))return new Map(e);if(b(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);if(!t&&d(e)){if(!s(e)){const t=Object.create(null);return Object.assign(t,e)}return{...e}}const n=Object.getOwnPropertyDescriptors(e);delete n[i];let r=Reflect.ownKeys(n);for(let o=0;o<r.length;o++){const t=r[o],i=n[t];!1===i.writable&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(n[t]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[t]})}return Object.create(s(e),n)}function _(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return S(e)||l(e)||!c(e)||(h(e)>1&&(e.set=e.add=e.clear=e.delete=x),Object.freeze(e),t&&p(e,((e,t)=>_(t,!0)))),e}function x(){a(2)}function S(e){return Object.isFrozen(e)}var C,k={};function O(e){const t=k[e];return t||a(0),t}function T(e,t){k[e]||(k[e]=t)}function N(){return C}function I(e,t){t&&(O("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function P(e){R(e),e.drafts_.forEach(A),e.drafts_=null}function R(e){e===C&&(C=e.parent_)}function D(e){return C={drafts_:[],parent_:C,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function A(e){const t=e[i];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function j(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return void 0!==e&&e!==n?(n[i].modified_&&(P(t),a(4)),c(e)&&(e=M(t,e),t.parent_||z(t,e)),t.patches_&&O("Patches").generateReplacementPatches_(n[i].base_,e,t.patches_,t.inversePatches_)):e=M(t,n,[]),P(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==r?e:void 0}function M(e,t,n){if(S(t))return t;const r=t[i];if(!r)return p(t,((o,i)=>L(e,r,t,o,i,n))),t;if(r.scope_!==e)return t;if(!r.modified_)return z(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const t=r.copy_;let o=t,i=!1;3===r.type_&&(o=new Set(t),t.clear(),i=!0),p(o,((o,a)=>L(e,r,t,o,a,n,i))),z(e,t,!1),n&&e.patches_&&O("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function L(e,t,n,r,o,i,a){if(l(o)){const a=M(e,o,i&&t&&3!==t.type_&&!m(t.assigned_,r)?i.concat(r):void 0);if(v(n,r,a),!l(a))return;e.canAutoFreeze_=!1}else a&&n.add(o);if(c(o)&&!S(o)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;M(e,o),t&&t.scope_.parent_||z(e,o)}}function z(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&_(t,n)}var F={get(e,t){if(t===i)return e;const n=w(e);if(!m(n,t))return function(e,t,n){const r=q(t,n);return r?"value"in r?r.value:r.get?.call(e.draft_):void 0}(e,n,t);const r=n[t];return e.finalized_||!c(r)?r:r===U(e.base_,t)?(Z(e),e.copy_[t]=H(r,e)):r},has:(e,t)=>t in w(e),ownKeys:e=>Reflect.ownKeys(w(e)),set(e,t,n){const r=q(w(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const r=U(w(e),t),s=r?.[i];if(s&&s.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(((o=n)===(a=r)?0!==o||1/o===1/a:o!==o&&a!==a)&&(void 0!==n||m(e.base_,t)))return!0;Z(e),$(e)}var o,a;return e.copy_[t]===n&&(void 0!==n||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty:(e,t)=>(void 0!==U(e.base_,t)||t in e.base_?(e.assigned_[t]=!1,Z(e),$(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){const n=w(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.type_||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty(){a(11)},getPrototypeOf:e=>s(e.base_),setPrototypeOf(){a(12)}},B={};function U(e,t){const n=e[i];return(n?w(n):e)[t]}function q(e,t){if(!(t in e))return;let n=s(e);for(;n;){const e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=s(n)}}function $(e){e.modified_||(e.modified_=!0,e.parent_&&$(e.parent_))}function Z(e){e.copy_||(e.copy_=E(e.base_,e.scope_.immer_.useStrictShallowCopy_))}p(F,((e,t)=>{B[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),B.deleteProperty=function(e,t){return B.set.call(this,e,t,void 0)},B.set=function(e,t,n){return F.set.call(this,e[0],t,n,e[0])};function H(e,t){const n=y(e)?O("MapSet").proxyMap_(e,t):b(e)?O("MapSet").proxySet_(e,t):function(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:N(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=r,i=F;n&&(o=[r],i=B);const{revoke:a,proxy:s}=Proxy.revocable(o,i);return r.draft_=s,r.revoke_=a,s}(e,t);return(t?t.scope_:N()).drafts_.push(n),n}function V(e){return l(e)||a(10),W(e)}function W(e){if(!c(e)||S(e))return e;const t=e[i];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=E(e,t.scope_.immer_.useStrictShallowCopy_)}else n=E(e,!0);return p(n,((e,t)=>{v(n,e,W(t))})),t&&(t.finalized_=!1),n}function G(){const e=16;const t="replace",n="add",i="remove";function u(e){if(!c(e))return e;if(Array.isArray(e))return e.map(u);if(y(e))return new Map(Array.from(e.entries()).map((e=>{let[t,n]=e;return[t,u(n)]})));if(b(e))return new Set(Array.from(e).map(u));const t=Object.create(s(e));for(const n in e)t[n]=u(e[n]);return m(e,o)&&(t[o]=e[o]),t}function d(e){return l(e)?u(e):e}T("Patches",{applyPatches_:function(r,o){return o.forEach((o=>{const{path:s,op:l}=o;let c=r;for(let t=0;t<s.length-1;t++){const n=h(c);let r=s[t];"string"!==typeof r&&"number"!==typeof r&&(r=""+r),0!==n&&1!==n||"__proto__"!==r&&"constructor"!==r||a(e+3),"function"===typeof c&&"prototype"===r&&a(e+3),c=g(c,r),"object"!==typeof c&&a(e+2,s.join("/"))}const d=h(c),f=u(o.value),p=s[s.length-1];switch(l){case t:switch(d){case 2:return c.set(p,f);case 3:a(e);default:return c[p]=f}case n:switch(d){case 1:return"-"===p?c.push(f):c.splice(p,0,f);case 2:return c.set(p,f);case 3:return c.add(f);default:return c[p]=f}case i:switch(d){case 1:return c.splice(p,1);case 2:return c.delete(p);case 3:return c.delete(o.value);default:return delete c[p]}default:a(e+1)}})),r},generatePatches_:function(e,r,o,a){switch(e.type_){case 0:case 2:return function(e,r,o,a){const{base_:s,copy_:l}=e;p(e.assigned_,((e,c)=>{const u=g(s,e),f=g(l,e),p=c?m(s,e)?t:n:i;if(u===f&&p===t)return;const h=r.concat(e);o.push(p===i?{op:p,path:h}:{op:p,path:h,value:f}),a.push(p===n?{op:i,path:h}:p===i?{op:n,path:h,value:d(u)}:{op:t,path:h,value:d(u)})}))}(e,r,o,a);case 1:return function(e,r,o,a){let{base_:s,assigned_:l}=e,c=e.copy_;c.length<s.length&&([s,c]=[c,s],[o,a]=[a,o]);for(let n=0;n<s.length;n++)if(l[n]&&c[n]!==s[n]){const e=r.concat([n]);o.push({op:t,path:e,value:d(c[n])}),a.push({op:t,path:e,value:d(s[n])})}for(let t=s.length;t<c.length;t++){const e=r.concat([t]);o.push({op:n,path:e,value:d(c[t])})}for(let t=c.length-1;s.length<=t;--t){const e=r.concat([t]);a.push({op:i,path:e})}}(e,r,o,a);case 3:return function(e,t,r,o){let{base_:a,copy_:s}=e,l=0;a.forEach((e=>{if(!s.has(e)){const a=t.concat([l]);r.push({op:i,path:a,value:e}),o.unshift({op:n,path:a,value:e})}l++})),l=0,s.forEach((e=>{if(!a.has(e)){const a=t.concat([l]);r.push({op:n,path:a,value:e}),o.unshift({op:i,path:a,value:e})}l++}))}(e,r,o,a)}},generateReplacementPatches_:function(e,n,o,i){o.push({op:t,path:[],value:n===r?void 0:n}),i.push({op:t,path:[],value:e})}})}var Y=new class{constructor(e){var t=this;this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(e,t,n)=>{if("function"===typeof e&&"function"!==typeof t){const n=t;t=e;const r=this;return function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n;for(var o=arguments.length,i=new Array(o>1?o-1:0),a=1;a<o;a++)i[a-1]=arguments[a];return r.produce(e,(e=>t.call(this,e,...i)))}}let o;if("function"!==typeof t&&a(6),void 0!==n&&"function"!==typeof n&&a(7),c(e)){const r=D(this),i=H(e,void 0);let a=!0;try{o=t(i),a=!1}finally{a?P(r):R(r)}return I(r,n),j(o,r)}if(!e||"object"!==typeof e){if(o=t(e),void 0===o&&(o=e),o===r&&(o=void 0),this.autoFreeze_&&_(o,!0),n){const t=[],r=[];O("Patches").generateReplacementPatches_(e,o,t,r),n(t,r)}return o}a(1)},this.produceWithPatches=(e,n)=>{if("function"===typeof e)return function(n){for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return t.produceWithPatches(n,(t=>e(t,...o)))};let r,o;return[this.produce(e,n,((e,t)=>{r=e,o=t})),r,o]},"boolean"===typeof e?.autoFreeze&&this.setAutoFreeze(e.autoFreeze),"boolean"===typeof e?.useStrictShallowCopy&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){c(e)||a(8),l(e)&&(e=V(e));const t=D(this),n=H(e,void 0);return n[i].isManual_=!0,R(t),n}finishDraft(e,t){const n=e&&e[i];n&&n.isManual_||a(9);const{scope_:r}=n;return I(r,t),j(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));const r=O("Patches").applyPatches_;return l(e)?r(e,t):this.produce(e,(e=>r(e,t)))}},K=Y.produce,Q=Y.produceWithPatches.bind(Y),J=(Y.setAutoFreeze.bind(Y),Y.setUseStrictShallowCopy.bind(Y),Y.applyPatches.bind(Y));Y.createDraft.bind(Y),Y.finishDraft.bind(Y)},87555:(e,t,n)=>{"use strict";n.d(t,{$j:()=>ce,I0:()=>me,dC:()=>ge,oR:()=>fe,v9:()=>g,wU:()=>V,zt:()=>ue});var r=n(68963),o=n(29074),i=r,a=Symbol.for("react-redux-context"),s="undefined"!==typeof globalThis?globalThis:{};function l(){if(!i.createContext)return{};const e=s[a]??(s[a]=new Map);let t=e.get(i.createContext);return t||(t=i.createContext(null),e.set(i.createContext,t)),t}var c=l(),u=()=>{throw new Error("uSES not initialized!")};function d(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;return function(){return i.useContext(e)}}var f=d(),p=u,h=(e,t)=>e===t;function m(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;const t=e===c?f:d(e),n=function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{equalityFn:r=h,devModeChecks:o={}}="function"===typeof n?{equalityFn:n}:n;const{store:a,subscription:s,getServerState:l,stabilityCheck:c,identityFunctionCheck:u}=t(),d=(i.useRef(!0),i.useCallback({[e.name]:t=>e(t)}[e.name],[e,c,o.stabilityCheck])),f=p(s.addNestedSub,a.getState,l||a.getState,d,r);return i.useDebugValue(f),f};return Object.assign(n,{withTypes:()=>n}),n}var g=m(),v=Symbol.for("react.element"),y=Symbol.for("react.portal"),b=Symbol.for("react.fragment"),w=Symbol.for("react.strict_mode"),E=Symbol.for("react.profiler"),_=Symbol.for("react.provider"),x=Symbol.for("react.context"),S=Symbol.for("react.server_context"),C=Symbol.for("react.forward_ref"),k=Symbol.for("react.suspense"),O=Symbol.for("react.suspense_list"),T=Symbol.for("react.memo"),N=Symbol.for("react.lazy"),I=(Symbol.for("react.offscreen"),Symbol.for("react.client.reference"),C),P=T;function R(e){if("object"===typeof e&&null!==e){const t=e.$$typeof;switch(t){case v:{const n=e.type;switch(n){case b:case E:case w:case k:case O:return n;default:{const e=n&&n.$$typeof;switch(e){case S:case x:case C:case N:case T:case _:return e;default:return t}}}}case y:return t}}}function D(e,t,n,r,o){let i,a,s,l,c,{areStatesEqual:u,areOwnPropsEqual:d,areStatePropsEqual:f}=o,p=!1;function h(o,p){const h=!d(p,a),m=!u(o,i,p,a);return i=o,a=p,h&&m?(s=e(i,a),t.dependsOnOwnProps&&(l=t(r,a)),c=n(s,l,a),c):h?(e.dependsOnOwnProps&&(s=e(i,a)),t.dependsOnOwnProps&&(l=t(r,a)),c=n(s,l,a),c):m?function(){const t=e(i,a),r=!f(t,s);return s=t,r&&(c=n(s,l,a)),c}():c}return function(o,u){return p?h(o,u):(i=o,a=u,s=e(i,a),l=t(r,a),c=n(s,l,a),p=!0,c)}}function A(e){return function(t){const n=e(t);function r(){return n}return r.dependsOnOwnProps=!1,r}}function j(e){return e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function M(e,t){return function(t,n){let{displayName:r}=n;const o=function(e,t){return o.dependsOnOwnProps?o.mapToProps(e,t):o.mapToProps(e,void 0)};return o.dependsOnOwnProps=!0,o.mapToProps=function(t,n){o.mapToProps=e,o.dependsOnOwnProps=j(e);let r=o(t,n);return"function"===typeof r&&(o.mapToProps=r,o.dependsOnOwnProps=j(r),r=o(t,n)),r},o}}function L(e,t){return(n,r)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${r.wrappedComponentName}.`)}}function z(e,t,n){return{...n,...e,...t}}function F(e){e()}var B={notify(){},get:()=>[]};function U(e,t){let n,r=B,o=0,i=!1;function a(){c.onStateChange&&c.onStateChange()}function s(){o++,n||(n=t?t.addNestedSub(a):e.subscribe(a),r=function(){let e=null,t=null;return{clear(){e=null,t=null},notify(){F((()=>{let t=e;for(;t;)t.callback(),t=t.next}))},get(){const t=[];let n=e;for(;n;)t.push(n),n=n.next;return t},subscribe(n){let r=!0;const o=t={callback:n,next:null,prev:t};return o.prev?o.prev.next=o:e=o,function(){r&&null!==e&&(r=!1,o.next?o.next.prev=o.prev:t=o.prev,o.prev?o.prev.next=o.next:e=o.next)}}}}())}function l(){o--,n&&0===o&&(n(),n=void 0,r.clear(),r=B)}const c={addNestedSub:function(e){s();const t=r.subscribe(e);let n=!1;return()=>{n||(n=!0,t(),l())}},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:a,isSubscribed:function(){return i},trySubscribe:function(){i||(i=!0,s())},tryUnsubscribe:function(){i&&(i=!1,l())},getListeners:()=>r};return c}var q=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),$="undefined"!==typeof navigator&&"ReactNative"===navigator.product,Z=q||$?i.useLayoutEffect:i.useEffect;function H(e,t){return e===t?0!==e||0!==t||1/e===1/t:e!==e&&t!==t}function V(e,t){if(H(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let o=0;o<n.length;o++)if(!Object.prototype.hasOwnProperty.call(t,n[o])||!H(e[n[o]],t[n[o]]))return!1;return!0}var W={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},G={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Y={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},K={[I]:{$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},[P]:Y};function Q(e){return R(e)===T?Y:K[e.$$typeof]||W}var J=Object.defineProperty,X=Object.getOwnPropertyNames,ee=Object.getOwnPropertySymbols,te=Object.getOwnPropertyDescriptor,ne=Object.getPrototypeOf,re=Object.prototype;function oe(e,t){if("string"!==typeof t){if(re){const n=ne(t);n&&n!==re&&oe(e,n)}let r=X(t);ee&&(r=r.concat(ee(t)));const o=Q(e),i=Q(t);for(let a=0;a<r.length;++a){const s=r[a];if(!G[s]&&(!i||!i[s])&&(!o||!o[s])){const r=te(t,s);try{J(e,s,r)}catch(n){}}}}return e}var ie=u,ae=[null,null];function se(e,t,n,r,o,i){e.current=r,n.current=!1,o.current&&(o.current=null,i())}function le(e,t){return e===t}var ce=function(e,t,n){let{pure:r,areStatesEqual:o=le,areOwnPropsEqual:a=V,areStatePropsEqual:s=V,areMergedPropsEqual:l=V,forwardRef:u=!1,context:d=c}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const f=d,p=function(e){return e?"function"===typeof e?M(e):L(e,"mapStateToProps"):A((()=>({})))}(e),h=function(e){return e&&"object"===typeof e?A((t=>function(e,t){const n={};for(const r in e){const o=e[r];"function"===typeof o&&(n[r]=function(){return t(o(...arguments))})}return n}(e,t))):e?"function"===typeof e?M(e):L(e,"mapDispatchToProps"):A((e=>({dispatch:e})))}(t),m=function(e){return e?"function"===typeof e?function(e){return function(t,n){let r,{displayName:o,areMergedPropsEqual:i}=n,a=!1;return function(t,n,o){const s=e(t,n,o);return a?i(s,r)||(r=s):(a=!0,r=s),r}}}(e):L(e,"mergeProps"):()=>z}(n),g=Boolean(e);return e=>{const t=e.displayName||e.name||"Component",n=`Connect(${t})`,r={shouldHandleStateChanges:g,displayName:n,wrappedComponentName:t,WrappedComponent:e,initMapStateToProps:p,initMapDispatchToProps:h,initMergeProps:m,areStatesEqual:o,areStatePropsEqual:s,areOwnPropsEqual:a,areMergedPropsEqual:l};function c(t){const[n,o,a]=i.useMemo((()=>{const{reactReduxForwardedRef:e,...n}=t;return[t.context,e,n]}),[t]),s=i.useMemo((()=>{let e=f;return n?.Consumer,e}),[n,f]),l=i.useContext(s),c=Boolean(t.store)&&Boolean(t.store.getState)&&Boolean(t.store.dispatch),u=Boolean(l)&&Boolean(l.store);const d=c?t.store:l.store,p=u?l.getServerState:d.getState,h=i.useMemo((()=>function(e,t){let{initMapStateToProps:n,initMapDispatchToProps:r,initMergeProps:o,...i}=t;return D(n(e,i),r(e,i),o(e,i),e,i)}(d.dispatch,r)),[d]),[m,v]=i.useMemo((()=>{if(!g)return ae;const e=U(d,c?void 0:l.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[d,c,l]),y=i.useMemo((()=>c?l:{...l,subscription:m}),[c,l,m]),b=i.useRef(void 0),w=i.useRef(a),E=i.useRef(void 0),_=i.useRef(!1),x=i.useRef(!1),S=i.useRef(void 0);Z((()=>(x.current=!0,()=>{x.current=!1})),[]);const C=i.useMemo((()=>()=>E.current&&a===w.current?E.current:h(d.getState(),a)),[d,a]),k=i.useMemo((()=>e=>m?function(e,t,n,r,o,i,a,s,l,c,u){if(!e)return()=>{};let d=!1,f=null;const p=()=>{if(d||!s.current)return;const e=t.getState();let n,p;try{n=r(e,o.current)}catch(h){p=h,f=h}p||(f=null),n===i.current?a.current||c():(i.current=n,l.current=n,a.current=!0,u())};return n.onStateChange=p,n.trySubscribe(),p(),()=>{if(d=!0,n.tryUnsubscribe(),n.onStateChange=null,f)throw f}}(g,d,m,h,w,b,_,x,E,v,e):()=>{}),[m]);var O,T,N;let I;O=se,T=[w,b,_,a,E,v],Z((()=>O(...T)),N);try{I=ie(k,C,p?()=>h(p(),a):C)}catch(R){throw S.current&&(R.message+=`\nThe error may be correlated with this previous error:\n${S.current.stack}\n\n`),R}Z((()=>{S.current=void 0,E.current=void 0,b.current=I}));const P=i.useMemo((()=>i.createElement(e,{...I,ref:o})),[o,e,I]);return i.useMemo((()=>g?i.createElement(s.Provider,{value:y},P):P),[s,P,y])}const d=i.memo(c);if(d.WrappedComponent=e,d.displayName=c.displayName=n,u){const t=i.forwardRef((function(e,t){return i.createElement(d,{...e,reactReduxForwardedRef:t})}));return t.displayName=n,t.WrappedComponent=e,oe(t,e)}return oe(d,e)}};var ue=function(e){let{store:t,context:n,children:r,serverState:o,stabilityCheck:a="once",identityFunctionCheck:s="once"}=e;const l=i.useMemo((()=>{const e=U(t);return{store:t,subscription:e,getServerState:o?()=>o:void 0,stabilityCheck:a,identityFunctionCheck:s}}),[t,o,a,s]),u=i.useMemo((()=>t.getState()),[t]);Z((()=>{const{subscription:e}=l;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),u!==t.getState()&&e.notifyNestedSubs(),()=>{e.tryUnsubscribe(),e.onStateChange=void 0}}),[l,u]);const d=n||c;return i.createElement(d.Provider,{value:l},r)};function de(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;const t=e===c?f:d(e),n=()=>{const{store:e}=t();return e};return Object.assign(n,{withTypes:()=>n}),n}var fe=de();function pe(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;const t=e===c?fe:de(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var he,me=pe(),ge=F;he=o.useSyncExternalStoreWithSelector,p=he,(e=>{ie=e})(r.useSyncExternalStore)},38907:(e,t,n)=>{"use strict";function r(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}n.d(t,{DE:()=>d,LG:()=>h,MT:()=>l,PO:()=>s,UY:()=>c,md:()=>p,qC:()=>f});var o=(()=>"function"===typeof Symbol&&Symbol.observable||"@@observable")(),i=()=>Math.random().toString(36).substring(7).split("").join("."),a={INIT:`@@redux/INIT${i()}`,REPLACE:`@@redux/REPLACE${i()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${i()}`};function s(e){if("object"!==typeof e||null===e)return!1;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||null===Object.getPrototypeOf(e)}function l(e,t,n){if("function"!==typeof e)throw new Error(r(2));if("function"===typeof t&&"function"===typeof n||"function"===typeof n&&"function"===typeof arguments[3])throw new Error(r(0));if("function"===typeof t&&"undefined"===typeof n&&(n=t,t=void 0),"undefined"!==typeof n){if("function"!==typeof n)throw new Error(r(1));return n(l)(e,t)}let i=e,c=t,u=new Map,d=u,f=0,p=!1;function h(){d===u&&(d=new Map,u.forEach(((e,t)=>{d.set(t,e)})))}function m(){if(p)throw new Error(r(3));return c}function g(e){if("function"!==typeof e)throw new Error(r(4));if(p)throw new Error(r(5));let t=!0;h();const n=f++;return d.set(n,e),function(){if(t){if(p)throw new Error(r(6));t=!1,h(),d.delete(n),u=null}}}function v(e){if(!s(e))throw new Error(r(7));if("undefined"===typeof e.type)throw new Error(r(8));if("string"!==typeof e.type)throw new Error(r(17));if(p)throw new Error(r(9));try{p=!0,c=i(c,e)}finally{p=!1}return(u=d).forEach((e=>{e()})),e}v({type:a.INIT});return{dispatch:v,subscribe:g,getState:m,replaceReducer:function(e){if("function"!==typeof e)throw new Error(r(10));i=e,v({type:a.REPLACE})},[o]:function(){const e=g;return{subscribe(t){if("object"!==typeof t||null===t)throw new Error(r(11));function n(){const e=t;e.next&&e.next(m())}n();return{unsubscribe:e(n)}},[o](){return this}}}}}function c(e){const t=Object.keys(e),n={};for(let r=0;r<t.length;r++){const o=t[r];0,"function"===typeof e[o]&&(n[o]=e[o])}const o=Object.keys(n);let i;try{!function(e){Object.keys(e).forEach((t=>{const n=e[t];if("undefined"===typeof n(void 0,{type:a.INIT}))throw new Error(r(12));if("undefined"===typeof n(void 0,{type:a.PROBE_UNKNOWN_ACTION()}))throw new Error(r(13))}))}(n)}catch(s){i=s}return function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(i)throw i;let a=!1;const s={};for(let i=0;i<o.length;i++){const l=o[i],c=n[l],u=e[l],d=c(u,t);if("undefined"===typeof d){t&&t.type;throw new Error(r(14))}s[l]=d,a=a||d!==u}return a=a||o.length!==Object.keys(e).length,a?s:e}}function u(e,t){return function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t(e.apply(this,r))}}function d(e,t){if("function"===typeof e)return u(e,t);if("object"!==typeof e||null===e)throw new Error(r(16));const n={};for(const r in e){const o=e[r];"function"===typeof o&&(n[r]=u(o,t))}return n}function f(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?e=>e:1===t.length?t[0]:t.reduce(((e,t)=>function(){return e(t(...arguments))}))}function p(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return e=>(n,o)=>{const i=e(n,o);let a=()=>{throw new Error(r(15))};const s={getState:i.getState,dispatch:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return a(e,...n)}},l=t.map((e=>e(s)));return a=f(...l)(i.dispatch),{...i,dispatch:a}}}function h(e){return s(e)&&"type"in e&&"string"===typeof e.type}},36313:(e,t,n)=>{"use strict";n.d(t,{P1:()=>g,PP:()=>c,kO:()=>h,wN:()=>m});var r="NOT_FOUND";function o(e){if("function"!==typeof e)throw new TypeError(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"expected a function, instead received "+typeof e)}var i=e=>Array.isArray(e)?e:[e];function a(e){const t=Array.isArray(e[0])?e[0]:e;return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"expected all items to be functions, instead received the following types: ";if(!e.every((e=>"function"===typeof e))){const n=e.map((e=>"function"===typeof e?`function ${e.name||"unnamed"}()`:typeof e)).join(", ");throw new TypeError(`${t}[${n}]`)}}(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}Symbol(),Object.getPrototypeOf({});var s=(e,t)=>e===t;function l(e){return function(t,n){if(null===t||null===n||t.length!==n.length)return!1;const{length:r}=t;for(let o=0;o<r;o++)if(!e(t[o],n[o]))return!1;return!0}}function c(e,t){const n="object"===typeof t?t:{equalityCheck:t},{equalityCheck:o=s,maxSize:i=1,resultEqualityCheck:a}=n,c=l(o);let u=0;const d=1===i?function(e){let t;return{get:n=>t&&e(t.key,n)?t.value:r,put(e,n){t={key:e,value:n}},getEntries:()=>t?[t]:[],clear(){t=void 0}}}(c):function(e,t){let n=[];function o(e){const o=n.findIndex((n=>t(e,n.key)));if(o>-1){const e=n[o];return o>0&&(n.splice(o,1),n.unshift(e)),e.value}return r}return{get:o,put:function(t,i){o(t)===r&&(n.unshift({key:t,value:i}),n.length>e&&n.pop())},getEntries:function(){return n},clear:function(){n=[]}}}(i,c);function f(){let t=d.get(arguments);if(t===r){if(t=e.apply(null,arguments),u++,a){const e=d.getEntries().find((e=>a(e.value,t)));e&&(t=e.value,0!==u&&u--)}d.put(arguments,t)}return t}return f.clearCache=()=>{d.clear(),f.resetResultsCount()},f.resultsCount=()=>u,f.resetResultsCount=()=>{u=0},f}var u="undefined"!==typeof WeakRef?WeakRef:class{constructor(e){this.value=e}deref(){return this.value}},d=0,f=1;function p(){return{s:d,v:void 0,o:null,p:null}}function h(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=p();const{resultEqualityCheck:r}=t;let o,i=0;function a(){let t=n;const{length:a}=arguments;for(let e=0,n=a;e<n;e++){const n=arguments[e];if("function"===typeof n||"object"===typeof n&&null!==n){let e=t.o;null===e&&(t.o=e=new WeakMap);const r=e.get(n);void 0===r?(t=p(),e.set(n,t)):t=r}else{let e=t.p;null===e&&(t.p=e=new Map);const r=e.get(n);void 0===r?(t=p(),e.set(n,t)):t=r}}const s=t;let l;if(t.s===f?l=t.v:(l=e.apply(null,arguments),i++),s.s=f,r){const e=o?.deref?.()??o;null!=e&&r(e,l)&&(l=e,0!==i&&i--);o="object"===typeof l&&null!==l||"function"===typeof l?new u(l):l}return s.v=l,l}return a.clearCache=()=>{n=p(),a.resetResultsCount()},a.resultsCount=()=>i,a.resetResultsCount=()=>{i=0},a}function m(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];const s="function"===typeof e?{memoize:e,memoizeOptions:n}:e,l=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];let r,l=0,c=0,u={},d=t.pop();"object"===typeof d&&(u=d,d=t.pop()),o(d,`createSelector expects an output function after the inputs, but received: [${typeof d}]`);const f={...s,...u},{memoize:p,memoizeOptions:m=[],argsMemoize:g=h,argsMemoizeOptions:v=[],devModeChecks:y={}}=f,b=i(m),w=i(v),E=a(t),_=p((function(){return l++,d.apply(null,arguments)}),...b);const x=g((function(){c++;const e=function(e,t){const n=[],{length:r}=e;for(let o=0;o<r;o++)n.push(e[o].apply(null,t));return n}(E,arguments);return r=_.apply(null,e),r}),...w);return Object.assign(x,{resultFunc:d,memoizedResultFunc:_,dependencies:E,dependencyRecomputations:()=>c,resetDependencyRecomputations:()=>{c=0},lastResult:()=>r,recomputations:()=>l,resetRecomputations:()=>{l=0},memoize:p,argsMemoize:g})};return Object.assign(l,{withTypes:()=>l}),l}var g=m(h),v=Object.assign((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:g;!function(e){if("object"!==typeof e)throw new TypeError(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"expected an object, instead received "+typeof e)}(e,"createStructuredSelector expects first argument to be an object where each property is a selector, instead received a "+typeof e);const n=Object.keys(e),r=t(n.map((t=>e[t])),(function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.reduce(((e,t,r)=>(e[n[r]]=t,e)),{})}));return r}),{withTypes:()=>v})},95097:(e,t,n)=>{"use strict";n.d(t,{_T:()=>r});function r(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}Object.create;Object.create;"function"===typeof SuppressedError&&SuppressedError},95408:(e,t,n)=>{"use strict";var r,o;n.d(t,{z:()=>bt}),function(e){e.assertEqual=e=>e,e.assertIs=function(e){},e.assertNever=function(e){throw new Error},e.arrayToEnum=e=>{const t={};for(const n of e)t[n]=n;return t},e.getValidEnumValues=t=>{const n=e.objectKeys(t).filter((e=>"number"!==typeof t[t[e]])),r={};for(const e of n)r[e]=t[e];return e.objectValues(r)},e.objectValues=t=>e.objectKeys(t).map((function(e){return t[e]})),e.objectKeys="function"===typeof Object.keys?e=>Object.keys(e):e=>{const t=[];for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t},e.find=(e,t)=>{for(const n of e)if(t(n))return n},e.isInteger="function"===typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"===typeof e&&isFinite(e)&&Math.floor(e)===e,e.joinValues=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:" | ";return e.map((e=>"string"===typeof e?`'${e}'`:e)).join(t)},e.jsonStringifyReplacer=(e,t)=>"bigint"===typeof t?t.toString():t}(r||(r={})),function(e){e.mergeShapes=(e,t)=>({...e,...t})}(o||(o={}));const i=r.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),a=e=>{switch(typeof e){case"undefined":return i.undefined;case"string":return i.string;case"number":return isNaN(e)?i.nan:i.number;case"boolean":return i.boolean;case"function":return i.function;case"bigint":return i.bigint;case"symbol":return i.symbol;case"object":return Array.isArray(e)?i.array:null===e?i.null:e.then&&"function"===typeof e.then&&e.catch&&"function"===typeof e.catch?i.promise:"undefined"!==typeof Map&&e instanceof Map?i.map:"undefined"!==typeof Set&&e instanceof Set?i.set:"undefined"!==typeof Date&&e instanceof Date?i.date:i.object;default:return i.unknown}},s=r.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class l extends Error{constructor(e){var t;super(),t=this,this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];t.issues=[...t.issues,...e]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=e}get errors(){return this.issues}format(e){const t=e||function(e){return e.message},n={_errors:[]},r=e=>{for(const o of e.issues)if("invalid_union"===o.code)o.unionErrors.map(r);else if("invalid_return_type"===o.code)r(o.returnTypeError);else if("invalid_arguments"===o.code)r(o.argumentsError);else if(0===o.path.length)n._errors.push(t(o));else{let e=n,r=0;for(;r<o.path.length;){const n=o.path[r];r===o.path.length-1?(e[n]=e[n]||{_errors:[]},e[n]._errors.push(t(o))):e[n]=e[n]||{_errors:[]},e=e[n],r++}}};return r(this),n}static assert(e){if(!(e instanceof l))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,r.jsonStringifyReplacer,2)}get isEmpty(){return 0===this.issues.length}flatten(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e=>e.message;const t={},n=[];for(const r of this.issues)r.path.length>0?(t[r.path[0]]=t[r.path[0]]||[],t[r.path[0]].push(e(r))):n.push(e(r));return{formErrors:n,fieldErrors:t}}get formErrors(){return this.flatten()}}l.create=e=>new l(e);const c=(e,t)=>{let n;switch(e.code){case s.invalid_type:n=e.received===i.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case s.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,r.jsonStringifyReplacer)}`;break;case s.unrecognized_keys:n=`Unrecognized key(s) in object: ${r.joinValues(e.keys,", ")}`;break;case s.invalid_union:n="Invalid input";break;case s.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${r.joinValues(e.options)}`;break;case s.invalid_enum_value:n=`Invalid enum value. Expected ${r.joinValues(e.options)}, received '${e.received}'`;break;case s.invalid_arguments:n="Invalid function arguments";break;case s.invalid_return_type:n="Invalid function return type";break;case s.invalid_date:n="Invalid date";break;case s.invalid_string:"object"===typeof e.validation?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,"number"===typeof e.validation.position&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:r.assertNever(e.validation):n="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case s.too_small:n="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:"date"===e.type?`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:"Invalid input";break;case s.too_big:n="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"bigint"===e.type?`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"date"===e.type?`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:"Invalid input";break;case s.custom:n="Invalid input";break;case s.invalid_intersection_types:n="Intersection results could not be merged";break;case s.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case s.not_finite:n="Number must be finite";break;default:n=t.defaultError,r.assertNever(e)}return{message:n}};let u=c;function d(){return u}const f=e=>{const{data:t,path:n,errorMaps:r,issueData:o}=e,i=[...n,...o.path||[]],a={...o,path:i};if(void 0!==o.message)return{...o,path:i,message:o.message};let s="";const l=r.filter((e=>!!e)).slice().reverse();for(const c of l)s=c(a,{data:t,defaultError:s}).message;return{...o,path:i,message:s}};function p(e,t){const n=d(),r=f({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===c?void 0:c].filter((e=>!!e))});e.common.issues.push(r)}class h{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,t){const n=[];for(const r of t){if("aborted"===r.status)return m;"dirty"===r.status&&e.dirty(),n.push(r.value)}return{status:e.value,value:n}}static async mergeObjectAsync(e,t){const n=[];for(const r of t){const e=await r.key,t=await r.value;n.push({key:e,value:t})}return h.mergeObjectSync(e,n)}static mergeObjectSync(e,t){const n={};for(const r of t){const{key:t,value:o}=r;if("aborted"===t.status)return m;if("aborted"===o.status)return m;"dirty"===t.status&&e.dirty(),"dirty"===o.status&&e.dirty(),"__proto__"===t.value||"undefined"===typeof o.value&&!r.alwaysSet||(n[t.value]=o.value)}return{status:e.value,value:n}}}const m=Object.freeze({status:"aborted"}),g=e=>({status:"dirty",value:e}),v=e=>({status:"valid",value:e}),y=e=>"aborted"===e.status,b=e=>"dirty"===e.status,w=e=>"valid"===e.status,E=e=>"undefined"!==typeof Promise&&e instanceof Promise;function _(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"===typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)}function x(e,t,n,r,o){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"===typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?o.call(e,n):o?o.value=n:t.set(e,n),n}var S,C,k;"function"===typeof SuppressedError&&SuppressedError,function(e){e.errToObj=e=>"string"===typeof e?{message:e}:e||{},e.toString=e=>"string"===typeof e?e:null===e||void 0===e?void 0:e.message}(S||(S={}));class O{constructor(e,t,n,r){this._cachedPath=[],this.parent=e,this.data=t,this._path=n,this._key=r}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const T=(e,t)=>{if(w(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const t=new l(e.common.issues);return this._error=t,this._error}}};function N(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:r,description:o}=e;if(t&&(n||r))throw new Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');if(t)return{errorMap:t,description:o};return{errorMap:(t,o)=>{var i,a;const{message:s}=e;return"invalid_enum_value"===t.code?{message:null!==s&&void 0!==s?s:o.defaultError}:"undefined"===typeof o.data?{message:null!==(i=null!==s&&void 0!==s?s:r)&&void 0!==i?i:o.defaultError}:"invalid_type"!==t.code?{message:o.defaultError}:{message:null!==(a=null!==s&&void 0!==s?s:n)&&void 0!==a?a:o.defaultError}},description:o}}class I{constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(e){return a(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:a(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new h,ctx:{common:e.parent.common,data:e.data,parsedType:a(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const t=this._parse(e);if(E(t))throw new Error("Synchronous parse encountered promise.");return t}_parseAsync(e){const t=this._parse(e);return Promise.resolve(t)}parse(e,t){const n=this.safeParse(e,t);if(n.success)return n.data;throw n.error}safeParse(e,t){var n;const r={common:{issues:[],async:null!==(n=null===t||void 0===t?void 0:t.async)&&void 0!==n&&n,contextualErrorMap:null===t||void 0===t?void 0:t.errorMap},path:(null===t||void 0===t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:a(e)},o=this._parseSync({data:e,path:r.path,parent:r});return T(r,o)}async parseAsync(e,t){const n=await this.safeParseAsync(e,t);if(n.success)return n.data;throw n.error}async safeParseAsync(e,t){const n={common:{issues:[],contextualErrorMap:null===t||void 0===t?void 0:t.errorMap,async:!0},path:(null===t||void 0===t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:a(e)},r=this._parse({data:e,path:n.path,parent:n}),o=await(E(r)?r:Promise.resolve(r));return T(n,o)}refine(e,t){const n=e=>"string"===typeof t||"undefined"===typeof t?{message:t}:"function"===typeof t?t(e):t;return this._refinement(((t,r)=>{const o=e(t),i=()=>r.addIssue({code:s.custom,...n(t)});return"undefined"!==typeof Promise&&o instanceof Promise?o.then((e=>!!e||(i(),!1))):!!o||(i(),!1)}))}refinement(e,t){return this._refinement(((n,r)=>!!e(n)||(r.addIssue("function"===typeof t?t(n,r):t),!1)))}_refinement(e){return new Se({schema:this,typeName:Me.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}optional(){return Ce.create(this,this._def)}nullable(){return ke.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return ie.create(this,this._def)}promise(){return xe.create(this,this._def)}or(e){return le.create([this,e],this._def)}and(e){return fe.create(this,e,this._def)}transform(e){return new Se({...N(this._def),schema:this,typeName:Me.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const t="function"===typeof e?e:()=>e;return new Oe({...N(this._def),innerType:this,defaultValue:t,typeName:Me.ZodDefault})}brand(){return new Pe({typeName:Me.ZodBranded,type:this,...N(this._def)})}catch(e){const t="function"===typeof e?e:()=>e;return new Te({...N(this._def),innerType:this,catchValue:t,typeName:Me.ZodCatch})}describe(e){return new(0,this.constructor)({...this._def,description:e})}pipe(e){return Re.create(this,e)}readonly(){return De.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const P=/^c[^\s-]{8,}$/i,R=/^[0-9a-z]+$/,D=/^[0-9A-HJKMNP-TV-Z]{26}$/,A=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,j=/^[a-z0-9_-]{21}$/i,M=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,L=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i;let z;const F=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,B=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,U=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,q="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",$=new RegExp(`^${q}$`);function Z(e){let t="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return e.precision?t=`${t}\\.\\d{${e.precision}}`:null==e.precision&&(t=`${t}(\\.\\d+)?`),t}function H(e){let t=`${q}T${Z(e)}`;const n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}class V extends I{_parse(e){this._def.coerce&&(e.data=String(e.data));if(this._getType(e)!==i.string){const t=this._getOrReturnCtx(e);return p(t,{code:s.invalid_type,expected:i.string,received:t.parsedType}),m}const t=new h;let n;for(const i of this._def.checks)if("min"===i.kind)e.data.length<i.value&&(n=this._getOrReturnCtx(e,n),p(n,{code:s.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),t.dirty());else if("max"===i.kind)e.data.length>i.value&&(n=this._getOrReturnCtx(e,n),p(n,{code:s.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),t.dirty());else if("length"===i.kind){const r=e.data.length>i.value,o=e.data.length<i.value;(r||o)&&(n=this._getOrReturnCtx(e,n),r?p(n,{code:s.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}):o&&p(n,{code:s.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}),t.dirty())}else if("email"===i.kind)L.test(e.data)||(n=this._getOrReturnCtx(e,n),p(n,{validation:"email",code:s.invalid_string,message:i.message}),t.dirty());else if("emoji"===i.kind)z||(z=new RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),z.test(e.data)||(n=this._getOrReturnCtx(e,n),p(n,{validation:"emoji",code:s.invalid_string,message:i.message}),t.dirty());else if("uuid"===i.kind)A.test(e.data)||(n=this._getOrReturnCtx(e,n),p(n,{validation:"uuid",code:s.invalid_string,message:i.message}),t.dirty());else if("nanoid"===i.kind)j.test(e.data)||(n=this._getOrReturnCtx(e,n),p(n,{validation:"nanoid",code:s.invalid_string,message:i.message}),t.dirty());else if("cuid"===i.kind)P.test(e.data)||(n=this._getOrReturnCtx(e,n),p(n,{validation:"cuid",code:s.invalid_string,message:i.message}),t.dirty());else if("cuid2"===i.kind)R.test(e.data)||(n=this._getOrReturnCtx(e,n),p(n,{validation:"cuid2",code:s.invalid_string,message:i.message}),t.dirty());else if("ulid"===i.kind)D.test(e.data)||(n=this._getOrReturnCtx(e,n),p(n,{validation:"ulid",code:s.invalid_string,message:i.message}),t.dirty());else if("url"===i.kind)try{new URL(e.data)}catch(l){n=this._getOrReturnCtx(e,n),p(n,{validation:"url",code:s.invalid_string,message:i.message}),t.dirty()}else if("regex"===i.kind){i.regex.lastIndex=0;i.regex.test(e.data)||(n=this._getOrReturnCtx(e,n),p(n,{validation:"regex",code:s.invalid_string,message:i.message}),t.dirty())}else if("trim"===i.kind)e.data=e.data.trim();else if("includes"===i.kind)e.data.includes(i.value,i.position)||(n=this._getOrReturnCtx(e,n),p(n,{code:s.invalid_string,validation:{includes:i.value,position:i.position},message:i.message}),t.dirty());else if("toLowerCase"===i.kind)e.data=e.data.toLowerCase();else if("toUpperCase"===i.kind)e.data=e.data.toUpperCase();else if("startsWith"===i.kind)e.data.startsWith(i.value)||(n=this._getOrReturnCtx(e,n),p(n,{code:s.invalid_string,validation:{startsWith:i.value},message:i.message}),t.dirty());else if("endsWith"===i.kind)e.data.endsWith(i.value)||(n=this._getOrReturnCtx(e,n),p(n,{code:s.invalid_string,validation:{endsWith:i.value},message:i.message}),t.dirty());else if("datetime"===i.kind){H(i).test(e.data)||(n=this._getOrReturnCtx(e,n),p(n,{code:s.invalid_string,validation:"datetime",message:i.message}),t.dirty())}else if("date"===i.kind){$.test(e.data)||(n=this._getOrReturnCtx(e,n),p(n,{code:s.invalid_string,validation:"date",message:i.message}),t.dirty())}else if("time"===i.kind){new RegExp(`^${Z(i)}$`).test(e.data)||(n=this._getOrReturnCtx(e,n),p(n,{code:s.invalid_string,validation:"time",message:i.message}),t.dirty())}else"duration"===i.kind?M.test(e.data)||(n=this._getOrReturnCtx(e,n),p(n,{validation:"duration",code:s.invalid_string,message:i.message}),t.dirty()):"ip"===i.kind?(o=e.data,("v4"!==(a=i.version)&&a||!F.test(o))&&("v6"!==a&&a||!B.test(o))&&(n=this._getOrReturnCtx(e,n),p(n,{validation:"ip",code:s.invalid_string,message:i.message}),t.dirty())):"base64"===i.kind?U.test(e.data)||(n=this._getOrReturnCtx(e,n),p(n,{validation:"base64",code:s.invalid_string,message:i.message}),t.dirty()):r.assertNever(i);var o,a;return{status:t.value,value:e.data}}_regex(e,t,n){return this.refinement((t=>e.test(t)),{validation:t,code:s.invalid_string,...S.errToObj(n)})}_addCheck(e){return new V({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...S.errToObj(e)})}url(e){return this._addCheck({kind:"url",...S.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...S.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...S.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...S.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...S.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...S.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...S.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...S.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...S.errToObj(e)})}datetime(e){var t,n;return"string"===typeof e?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:"undefined"===typeof(null===e||void 0===e?void 0:e.precision)?null:null===e||void 0===e?void 0:e.precision,offset:null!==(t=null===e||void 0===e?void 0:e.offset)&&void 0!==t&&t,local:null!==(n=null===e||void 0===e?void 0:e.local)&&void 0!==n&&n,...S.errToObj(null===e||void 0===e?void 0:e.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return"string"===typeof e?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:"undefined"===typeof(null===e||void 0===e?void 0:e.precision)?null:null===e||void 0===e?void 0:e.precision,...S.errToObj(null===e||void 0===e?void 0:e.message)})}duration(e){return this._addCheck({kind:"duration",...S.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...S.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:null===t||void 0===t?void 0:t.position,...S.errToObj(null===t||void 0===t?void 0:t.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...S.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...S.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...S.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...S.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...S.errToObj(t)})}nonempty(e){return this.min(1,S.errToObj(e))}trim(){return new V({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new V({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new V({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find((e=>"datetime"===e.kind))}get isDate(){return!!this._def.checks.find((e=>"date"===e.kind))}get isTime(){return!!this._def.checks.find((e=>"time"===e.kind))}get isDuration(){return!!this._def.checks.find((e=>"duration"===e.kind))}get isEmail(){return!!this._def.checks.find((e=>"email"===e.kind))}get isURL(){return!!this._def.checks.find((e=>"url"===e.kind))}get isEmoji(){return!!this._def.checks.find((e=>"emoji"===e.kind))}get isUUID(){return!!this._def.checks.find((e=>"uuid"===e.kind))}get isNANOID(){return!!this._def.checks.find((e=>"nanoid"===e.kind))}get isCUID(){return!!this._def.checks.find((e=>"cuid"===e.kind))}get isCUID2(){return!!this._def.checks.find((e=>"cuid2"===e.kind))}get isULID(){return!!this._def.checks.find((e=>"ulid"===e.kind))}get isIP(){return!!this._def.checks.find((e=>"ip"===e.kind))}get isBase64(){return!!this._def.checks.find((e=>"base64"===e.kind))}get minLength(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}function W(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,o=n>r?n:r;return parseInt(e.toFixed(o).replace(".",""))%parseInt(t.toFixed(o).replace(".",""))/Math.pow(10,o)}V.create=e=>{var t;return new V({checks:[],typeName:Me.ZodString,coerce:null!==(t=null===e||void 0===e?void 0:e.coerce)&&void 0!==t&&t,...N(e)})};class G extends I{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){this._def.coerce&&(e.data=Number(e.data));if(this._getType(e)!==i.number){const t=this._getOrReturnCtx(e);return p(t,{code:s.invalid_type,expected:i.number,received:t.parsedType}),m}let t;const n=new h;for(const o of this._def.checks)if("int"===o.kind)r.isInteger(e.data)||(t=this._getOrReturnCtx(e,t),p(t,{code:s.invalid_type,expected:"integer",received:"float",message:o.message}),n.dirty());else if("min"===o.kind){(o.inclusive?e.data<o.value:e.data<=o.value)&&(t=this._getOrReturnCtx(e,t),p(t,{code:s.too_small,minimum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),n.dirty())}else if("max"===o.kind){(o.inclusive?e.data>o.value:e.data>=o.value)&&(t=this._getOrReturnCtx(e,t),p(t,{code:s.too_big,maximum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),n.dirty())}else"multipleOf"===o.kind?0!==W(e.data,o.value)&&(t=this._getOrReturnCtx(e,t),p(t,{code:s.not_multiple_of,multipleOf:o.value,message:o.message}),n.dirty()):"finite"===o.kind?Number.isFinite(e.data)||(t=this._getOrReturnCtx(e,t),p(t,{code:s.not_finite,message:o.message}),n.dirty()):r.assertNever(o);return{status:n.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,S.toString(t))}gt(e,t){return this.setLimit("min",e,!1,S.toString(t))}lte(e,t){return this.setLimit("max",e,!0,S.toString(t))}lt(e,t){return this.setLimit("max",e,!1,S.toString(t))}setLimit(e,t,n,r){return new G({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:S.toString(r)}]})}_addCheck(e){return new G({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:S.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:S.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:S.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:S.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:S.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:S.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:S.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:S.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:S.toString(e)})}get minValue(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}get isInt(){return!!this._def.checks.find((e=>"int"===e.kind||"multipleOf"===e.kind&&r.isInteger(e.value)))}get isFinite(){let e=null,t=null;for(const n of this._def.checks){if("finite"===n.kind||"int"===n.kind||"multipleOf"===n.kind)return!0;"min"===n.kind?(null===t||n.value>t)&&(t=n.value):"max"===n.kind&&(null===e||n.value<e)&&(e=n.value)}return Number.isFinite(t)&&Number.isFinite(e)}}G.create=e=>new G({checks:[],typeName:Me.ZodNumber,coerce:(null===e||void 0===e?void 0:e.coerce)||!1,...N(e)});class Y extends I{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){this._def.coerce&&(e.data=BigInt(e.data));if(this._getType(e)!==i.bigint){const t=this._getOrReturnCtx(e);return p(t,{code:s.invalid_type,expected:i.bigint,received:t.parsedType}),m}let t;const n=new h;for(const o of this._def.checks)if("min"===o.kind){(o.inclusive?e.data<o.value:e.data<=o.value)&&(t=this._getOrReturnCtx(e,t),p(t,{code:s.too_small,type:"bigint",minimum:o.value,inclusive:o.inclusive,message:o.message}),n.dirty())}else if("max"===o.kind){(o.inclusive?e.data>o.value:e.data>=o.value)&&(t=this._getOrReturnCtx(e,t),p(t,{code:s.too_big,type:"bigint",maximum:o.value,inclusive:o.inclusive,message:o.message}),n.dirty())}else"multipleOf"===o.kind?e.data%o.value!==BigInt(0)&&(t=this._getOrReturnCtx(e,t),p(t,{code:s.not_multiple_of,multipleOf:o.value,message:o.message}),n.dirty()):r.assertNever(o);return{status:n.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,S.toString(t))}gt(e,t){return this.setLimit("min",e,!1,S.toString(t))}lte(e,t){return this.setLimit("max",e,!0,S.toString(t))}lt(e,t){return this.setLimit("max",e,!1,S.toString(t))}setLimit(e,t,n,r){return new Y({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:S.toString(r)}]})}_addCheck(e){return new Y({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:S.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:S.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:S.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:S.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:S.toString(t)})}get minValue(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}Y.create=e=>{var t;return new Y({checks:[],typeName:Me.ZodBigInt,coerce:null!==(t=null===e||void 0===e?void 0:e.coerce)&&void 0!==t&&t,...N(e)})};class K extends I{_parse(e){this._def.coerce&&(e.data=Boolean(e.data));if(this._getType(e)!==i.boolean){const t=this._getOrReturnCtx(e);return p(t,{code:s.invalid_type,expected:i.boolean,received:t.parsedType}),m}return v(e.data)}}K.create=e=>new K({typeName:Me.ZodBoolean,coerce:(null===e||void 0===e?void 0:e.coerce)||!1,...N(e)});class Q extends I{_parse(e){this._def.coerce&&(e.data=new Date(e.data));if(this._getType(e)!==i.date){const t=this._getOrReturnCtx(e);return p(t,{code:s.invalid_type,expected:i.date,received:t.parsedType}),m}if(isNaN(e.data.getTime())){return p(this._getOrReturnCtx(e),{code:s.invalid_date}),m}const t=new h;let n;for(const o of this._def.checks)"min"===o.kind?e.data.getTime()<o.value&&(n=this._getOrReturnCtx(e,n),p(n,{code:s.too_small,message:o.message,inclusive:!0,exact:!1,minimum:o.value,type:"date"}),t.dirty()):"max"===o.kind?e.data.getTime()>o.value&&(n=this._getOrReturnCtx(e,n),p(n,{code:s.too_big,message:o.message,inclusive:!0,exact:!1,maximum:o.value,type:"date"}),t.dirty()):r.assertNever(o);return{status:t.value,value:new Date(e.data.getTime())}}_addCheck(e){return new Q({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:S.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:S.toString(t)})}get minDate(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return null!=e?new Date(e):null}get maxDate(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return null!=e?new Date(e):null}}Q.create=e=>new Q({checks:[],coerce:(null===e||void 0===e?void 0:e.coerce)||!1,typeName:Me.ZodDate,...N(e)});class J extends I{_parse(e){if(this._getType(e)!==i.symbol){const t=this._getOrReturnCtx(e);return p(t,{code:s.invalid_type,expected:i.symbol,received:t.parsedType}),m}return v(e.data)}}J.create=e=>new J({typeName:Me.ZodSymbol,...N(e)});class X extends I{_parse(e){if(this._getType(e)!==i.undefined){const t=this._getOrReturnCtx(e);return p(t,{code:s.invalid_type,expected:i.undefined,received:t.parsedType}),m}return v(e.data)}}X.create=e=>new X({typeName:Me.ZodUndefined,...N(e)});class ee extends I{_parse(e){if(this._getType(e)!==i.null){const t=this._getOrReturnCtx(e);return p(t,{code:s.invalid_type,expected:i.null,received:t.parsedType}),m}return v(e.data)}}ee.create=e=>new ee({typeName:Me.ZodNull,...N(e)});class te extends I{constructor(){super(...arguments),this._any=!0}_parse(e){return v(e.data)}}te.create=e=>new te({typeName:Me.ZodAny,...N(e)});class ne extends I{constructor(){super(...arguments),this._unknown=!0}_parse(e){return v(e.data)}}ne.create=e=>new ne({typeName:Me.ZodUnknown,...N(e)});class re extends I{_parse(e){const t=this._getOrReturnCtx(e);return p(t,{code:s.invalid_type,expected:i.never,received:t.parsedType}),m}}re.create=e=>new re({typeName:Me.ZodNever,...N(e)});class oe extends I{_parse(e){if(this._getType(e)!==i.undefined){const t=this._getOrReturnCtx(e);return p(t,{code:s.invalid_type,expected:i.void,received:t.parsedType}),m}return v(e.data)}}oe.create=e=>new oe({typeName:Me.ZodVoid,...N(e)});class ie extends I{_parse(e){const{ctx:t,status:n}=this._processInputParams(e),r=this._def;if(t.parsedType!==i.array)return p(t,{code:s.invalid_type,expected:i.array,received:t.parsedType}),m;if(null!==r.exactLength){const e=t.data.length>r.exactLength.value,o=t.data.length<r.exactLength.value;(e||o)&&(p(t,{code:e?s.too_big:s.too_small,minimum:o?r.exactLength.value:void 0,maximum:e?r.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:r.exactLength.message}),n.dirty())}if(null!==r.minLength&&t.data.length<r.minLength.value&&(p(t,{code:s.too_small,minimum:r.minLength.value,type:"array",inclusive:!0,exact:!1,message:r.minLength.message}),n.dirty()),null!==r.maxLength&&t.data.length>r.maxLength.value&&(p(t,{code:s.too_big,maximum:r.maxLength.value,type:"array",inclusive:!0,exact:!1,message:r.maxLength.message}),n.dirty()),t.common.async)return Promise.all([...t.data].map(((e,n)=>r.type._parseAsync(new O(t,e,t.path,n))))).then((e=>h.mergeArray(n,e)));const o=[...t.data].map(((e,n)=>r.type._parseSync(new O(t,e,t.path,n))));return h.mergeArray(n,o)}get element(){return this._def.type}min(e,t){return new ie({...this._def,minLength:{value:e,message:S.toString(t)}})}max(e,t){return new ie({...this._def,maxLength:{value:e,message:S.toString(t)}})}length(e,t){return new ie({...this._def,exactLength:{value:e,message:S.toString(t)}})}nonempty(e){return this.min(1,e)}}function ae(e){if(e instanceof se){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=Ce.create(ae(r))}return new se({...e._def,shape:()=>t})}return e instanceof ie?new ie({...e._def,type:ae(e.element)}):e instanceof Ce?Ce.create(ae(e.unwrap())):e instanceof ke?ke.create(ae(e.unwrap())):e instanceof pe?pe.create(e.items.map((e=>ae(e)))):e}ie.create=(e,t)=>new ie({type:e,minLength:null,maxLength:null,exactLength:null,typeName:Me.ZodArray,...N(t)});class se extends I{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;const e=this._def.shape(),t=r.objectKeys(e);return this._cached={shape:e,keys:t}}_parse(e){if(this._getType(e)!==i.object){const t=this._getOrReturnCtx(e);return p(t,{code:s.invalid_type,expected:i.object,received:t.parsedType}),m}const{status:t,ctx:n}=this._processInputParams(e),{shape:r,keys:o}=this._getCached(),a=[];if(!(this._def.catchall instanceof re&&"strip"===this._def.unknownKeys))for(const i in n.data)o.includes(i)||a.push(i);const l=[];for(const i of o){const e=r[i],t=n.data[i];l.push({key:{status:"valid",value:i},value:e._parse(new O(n,t,n.path,i)),alwaysSet:i in n.data})}if(this._def.catchall instanceof re){const e=this._def.unknownKeys;if("passthrough"===e)for(const t of a)l.push({key:{status:"valid",value:t},value:{status:"valid",value:n.data[t]}});else if("strict"===e)a.length>0&&(p(n,{code:s.unrecognized_keys,keys:a}),t.dirty());else if("strip"!==e)throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const e=this._def.catchall;for(const t of a){const r=n.data[t];l.push({key:{status:"valid",value:t},value:e._parse(new O(n,r,n.path,t)),alwaysSet:t in n.data})}}return n.common.async?Promise.resolve().then((async()=>{const e=[];for(const t of l){const n=await t.key,r=await t.value;e.push({key:n,value:r,alwaysSet:t.alwaysSet})}return e})).then((e=>h.mergeObjectSync(t,e))):h.mergeObjectSync(t,l)}get shape(){return this._def.shape()}strict(e){return S.errToObj,new se({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,n)=>{var r,o,i,a;const s=null!==(i=null===(o=(r=this._def).errorMap)||void 0===o?void 0:o.call(r,t,n).message)&&void 0!==i?i:n.defaultError;return"unrecognized_keys"===t.code?{message:null!==(a=S.errToObj(e).message)&&void 0!==a?a:s}:{message:s}}}:{}})}strip(){return new se({...this._def,unknownKeys:"strip"})}passthrough(){return new se({...this._def,unknownKeys:"passthrough"})}extend(e){return new se({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new se({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:Me.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new se({...this._def,catchall:e})}pick(e){const t={};return r.objectKeys(e).forEach((n=>{e[n]&&this.shape[n]&&(t[n]=this.shape[n])})),new se({...this._def,shape:()=>t})}omit(e){const t={};return r.objectKeys(this.shape).forEach((n=>{e[n]||(t[n]=this.shape[n])})),new se({...this._def,shape:()=>t})}deepPartial(){return ae(this)}partial(e){const t={};return r.objectKeys(this.shape).forEach((n=>{const r=this.shape[n];e&&!e[n]?t[n]=r:t[n]=r.optional()})),new se({...this._def,shape:()=>t})}required(e){const t={};return r.objectKeys(this.shape).forEach((n=>{if(e&&!e[n])t[n]=this.shape[n];else{let e=this.shape[n];for(;e instanceof Ce;)e=e._def.innerType;t[n]=e}})),new se({...this._def,shape:()=>t})}keyof(){return we(r.objectKeys(this.shape))}}se.create=(e,t)=>new se({shape:()=>e,unknownKeys:"strip",catchall:re.create(),typeName:Me.ZodObject,...N(t)}),se.strictCreate=(e,t)=>new se({shape:()=>e,unknownKeys:"strict",catchall:re.create(),typeName:Me.ZodObject,...N(t)}),se.lazycreate=(e,t)=>new se({shape:e,unknownKeys:"strip",catchall:re.create(),typeName:Me.ZodObject,...N(t)});class le extends I{_parse(e){const{ctx:t}=this._processInputParams(e),n=this._def.options;if(t.common.async)return Promise.all(n.map((async e=>{const n={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:n}),ctx:n}}))).then((function(e){for(const t of e)if("valid"===t.result.status)return t.result;for(const r of e)if("dirty"===r.result.status)return t.common.issues.push(...r.ctx.common.issues),r.result;const n=e.map((e=>new l(e.ctx.common.issues)));return p(t,{code:s.invalid_union,unionErrors:n}),m}));{let e;const r=[];for(const i of n){const n={...t,common:{...t.common,issues:[]},parent:null},o=i._parseSync({data:t.data,path:t.path,parent:n});if("valid"===o.status)return o;"dirty"!==o.status||e||(e={result:o,ctx:n}),n.common.issues.length&&r.push(n.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;const o=r.map((e=>new l(e)));return p(t,{code:s.invalid_union,unionErrors:o}),m}}get options(){return this._def.options}}le.create=(e,t)=>new le({options:e,typeName:Me.ZodUnion,...N(t)});const ce=e=>e instanceof ye?ce(e.schema):e instanceof Se?ce(e.innerType()):e instanceof be?[e.value]:e instanceof Ee?e.options:e instanceof _e?r.objectValues(e.enum):e instanceof Oe?ce(e._def.innerType):e instanceof X?[void 0]:e instanceof ee?[null]:e instanceof Ce?[void 0,...ce(e.unwrap())]:e instanceof ke?[null,...ce(e.unwrap())]:e instanceof Pe||e instanceof De?ce(e.unwrap()):e instanceof Te?ce(e._def.innerType):[];class ue extends I{_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==i.object)return p(t,{code:s.invalid_type,expected:i.object,received:t.parsedType}),m;const n=this.discriminator,r=t.data[n],o=this.optionsMap.get(r);return o?t.common.async?o._parseAsync({data:t.data,path:t.path,parent:t}):o._parseSync({data:t.data,path:t.path,parent:t}):(p(t,{code:s.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),m)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,n){const r=new Map;for(const o of t){const t=ce(o.shape[e]);if(!t.length)throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(const n of t){if(r.has(n))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(n)}`);r.set(n,o)}}return new ue({typeName:Me.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:r,...N(n)})}}function de(e,t){const n=a(e),o=a(t);if(e===t)return{valid:!0,data:e};if(n===i.object&&o===i.object){const n=r.objectKeys(t),o=r.objectKeys(e).filter((e=>-1!==n.indexOf(e))),i={...e,...t};for(const r of o){const n=de(e[r],t[r]);if(!n.valid)return{valid:!1};i[r]=n.data}return{valid:!0,data:i}}if(n===i.array&&o===i.array){if(e.length!==t.length)return{valid:!1};const n=[];for(let r=0;r<e.length;r++){const o=de(e[r],t[r]);if(!o.valid)return{valid:!1};n.push(o.data)}return{valid:!0,data:n}}return n===i.date&&o===i.date&&+e===+t?{valid:!0,data:e}:{valid:!1}}class fe extends I{_parse(e){const{status:t,ctx:n}=this._processInputParams(e),r=(e,r)=>{if(y(e)||y(r))return m;const o=de(e.value,r.value);return o.valid?((b(e)||b(r))&&t.dirty(),{status:t.value,value:o.data}):(p(n,{code:s.invalid_intersection_types}),m)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then((e=>{let[t,n]=e;return r(t,n)})):r(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}}fe.create=(e,t,n)=>new fe({left:e,right:t,typeName:Me.ZodIntersection,...N(n)});class pe extends I{_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==i.array)return p(n,{code:s.invalid_type,expected:i.array,received:n.parsedType}),m;if(n.data.length<this._def.items.length)return p(n,{code:s.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),m;!this._def.rest&&n.data.length>this._def.items.length&&(p(n,{code:s.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());const r=[...n.data].map(((e,t)=>{const r=this._def.items[t]||this._def.rest;return r?r._parse(new O(n,e,n.path,t)):null})).filter((e=>!!e));return n.common.async?Promise.all(r).then((e=>h.mergeArray(t,e))):h.mergeArray(t,r)}get items(){return this._def.items}rest(e){return new pe({...this._def,rest:e})}}pe.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new pe({items:e,typeName:Me.ZodTuple,rest:null,...N(t)})};class he extends I{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==i.object)return p(n,{code:s.invalid_type,expected:i.object,received:n.parsedType}),m;const r=[],o=this._def.keyType,a=this._def.valueType;for(const i in n.data)r.push({key:o._parse(new O(n,i,n.path,i)),value:a._parse(new O(n,n.data[i],n.path,i)),alwaysSet:i in n.data});return n.common.async?h.mergeObjectAsync(t,r):h.mergeObjectSync(t,r)}get element(){return this._def.valueType}static create(e,t,n){return new he(t instanceof I?{keyType:e,valueType:t,typeName:Me.ZodRecord,...N(n)}:{keyType:V.create(),valueType:e,typeName:Me.ZodRecord,...N(t)})}}class me extends I{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==i.map)return p(n,{code:s.invalid_type,expected:i.map,received:n.parsedType}),m;const r=this._def.keyType,o=this._def.valueType,a=[...n.data.entries()].map(((e,t)=>{let[i,a]=e;return{key:r._parse(new O(n,i,n.path,[t,"key"])),value:o._parse(new O(n,a,n.path,[t,"value"]))}}));if(n.common.async){const e=new Map;return Promise.resolve().then((async()=>{for(const n of a){const r=await n.key,o=await n.value;if("aborted"===r.status||"aborted"===o.status)return m;"dirty"!==r.status&&"dirty"!==o.status||t.dirty(),e.set(r.value,o.value)}return{status:t.value,value:e}}))}{const e=new Map;for(const n of a){const r=n.key,o=n.value;if("aborted"===r.status||"aborted"===o.status)return m;"dirty"!==r.status&&"dirty"!==o.status||t.dirty(),e.set(r.value,o.value)}return{status:t.value,value:e}}}}me.create=(e,t,n)=>new me({valueType:t,keyType:e,typeName:Me.ZodMap,...N(n)});class ge extends I{_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==i.set)return p(n,{code:s.invalid_type,expected:i.set,received:n.parsedType}),m;const r=this._def;null!==r.minSize&&n.data.size<r.minSize.value&&(p(n,{code:s.too_small,minimum:r.minSize.value,type:"set",inclusive:!0,exact:!1,message:r.minSize.message}),t.dirty()),null!==r.maxSize&&n.data.size>r.maxSize.value&&(p(n,{code:s.too_big,maximum:r.maxSize.value,type:"set",inclusive:!0,exact:!1,message:r.maxSize.message}),t.dirty());const o=this._def.valueType;function a(e){const n=new Set;for(const r of e){if("aborted"===r.status)return m;"dirty"===r.status&&t.dirty(),n.add(r.value)}return{status:t.value,value:n}}const l=[...n.data.values()].map(((e,t)=>o._parse(new O(n,e,n.path,t))));return n.common.async?Promise.all(l).then((e=>a(e))):a(l)}min(e,t){return new ge({...this._def,minSize:{value:e,message:S.toString(t)}})}max(e,t){return new ge({...this._def,maxSize:{value:e,message:S.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}ge.create=(e,t)=>new ge({valueType:e,minSize:null,maxSize:null,typeName:Me.ZodSet,...N(t)});class ve extends I{constructor(){super(...arguments),this.validate=this.implement}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==i.function)return p(t,{code:s.invalid_type,expected:i.function,received:t.parsedType}),m;function n(e,n){return f({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,d(),c].filter((e=>!!e)),issueData:{code:s.invalid_arguments,argumentsError:n}})}function r(e,n){return f({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,d(),c].filter((e=>!!e)),issueData:{code:s.invalid_return_type,returnTypeError:n}})}const o={errorMap:t.common.contextualErrorMap},a=t.data;if(this._def.returns instanceof xe){const e=this;return v((async function(){for(var t=arguments.length,i=new Array(t),s=0;s<t;s++)i[s]=arguments[s];const c=new l([]),u=await e._def.args.parseAsync(i,o).catch((e=>{throw c.addIssue(n(i,e)),c})),d=await Reflect.apply(a,this,u);return await e._def.returns._def.type.parseAsync(d,o).catch((e=>{throw c.addIssue(r(d,e)),c}))}))}{const e=this;return v((function(){for(var t=arguments.length,i=new Array(t),s=0;s<t;s++)i[s]=arguments[s];const c=e._def.args.safeParse(i,o);if(!c.success)throw new l([n(i,c.error)]);const u=Reflect.apply(a,this,c.data),d=e._def.returns.safeParse(u,o);if(!d.success)throw new l([r(u,d.error)]);return d.data}))}}parameters(){return this._def.args}returnType(){return this._def.returns}args(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new ve({...this._def,args:pe.create(t).rest(ne.create())})}returns(e){return new ve({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,n){return new ve({args:e||pe.create([]).rest(ne.create()),returns:t||ne.create(),typeName:Me.ZodFunction,...N(n)})}}class ye extends I{get schema(){return this._def.getter()}_parse(e){const{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}ye.create=(e,t)=>new ye({getter:e,typeName:Me.ZodLazy,...N(t)});class be extends I{_parse(e){if(e.data!==this._def.value){const t=this._getOrReturnCtx(e);return p(t,{received:t.data,code:s.invalid_literal,expected:this._def.value}),m}return{status:"valid",value:e.data}}get value(){return this._def.value}}function we(e,t){return new Ee({values:e,typeName:Me.ZodEnum,...N(t)})}be.create=(e,t)=>new be({value:e,typeName:Me.ZodLiteral,...N(t)});class Ee extends I{constructor(){super(...arguments),C.set(this,void 0)}_parse(e){if("string"!==typeof e.data){const t=this._getOrReturnCtx(e),n=this._def.values;return p(t,{expected:r.joinValues(n),received:t.parsedType,code:s.invalid_type}),m}if(_(this,C,"f")||x(this,C,new Set(this._def.values),"f"),!_(this,C,"f").has(e.data)){const t=this._getOrReturnCtx(e),n=this._def.values;return p(t,{received:t.data,code:s.invalid_enum_value,options:n}),m}return v(e.data)}get options(){return this._def.values}get enum(){const e={};for(const t of this._def.values)e[t]=t;return e}get Values(){const e={};for(const t of this._def.values)e[t]=t;return e}get Enum(){const e={};for(const t of this._def.values)e[t]=t;return e}extract(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._def;return Ee.create(e,{...this._def,...t})}exclude(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._def;return Ee.create(this.options.filter((t=>!e.includes(t))),{...this._def,...t})}}C=new WeakMap,Ee.create=we;class _e extends I{constructor(){super(...arguments),k.set(this,void 0)}_parse(e){const t=r.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==i.string&&n.parsedType!==i.number){const e=r.objectValues(t);return p(n,{expected:r.joinValues(e),received:n.parsedType,code:s.invalid_type}),m}if(_(this,k,"f")||x(this,k,new Set(r.getValidEnumValues(this._def.values)),"f"),!_(this,k,"f").has(e.data)){const e=r.objectValues(t);return p(n,{received:n.data,code:s.invalid_enum_value,options:e}),m}return v(e.data)}get enum(){return this._def.values}}k=new WeakMap,_e.create=(e,t)=>new _e({values:e,typeName:Me.ZodNativeEnum,...N(t)});class xe extends I{unwrap(){return this._def.type}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==i.promise&&!1===t.common.async)return p(t,{code:s.invalid_type,expected:i.promise,received:t.parsedType}),m;const n=t.parsedType===i.promise?t.data:Promise.resolve(t.data);return v(n.then((e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap}))))}}xe.create=(e,t)=>new xe({type:e,typeName:Me.ZodPromise,...N(t)});class Se extends I{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Me.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){const{status:t,ctx:n}=this._processInputParams(e),o=this._def.effect||null,i={addIssue:e=>{p(n,e),e.fatal?t.abort():t.dirty()},get path(){return n.path}};if(i.addIssue=i.addIssue.bind(i),"preprocess"===o.type){const e=o.transform(n.data,i);if(n.common.async)return Promise.resolve(e).then((async e=>{if("aborted"===t.value)return m;const r=await this._def.schema._parseAsync({data:e,path:n.path,parent:n});return"aborted"===r.status?m:"dirty"===r.status||"dirty"===t.value?g(r.value):r}));{if("aborted"===t.value)return m;const r=this._def.schema._parseSync({data:e,path:n.path,parent:n});return"aborted"===r.status?m:"dirty"===r.status||"dirty"===t.value?g(r.value):r}}if("refinement"===o.type){const e=e=>{const t=o.refinement(e,i);if(n.common.async)return Promise.resolve(t);if(t instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1===n.common.async){const r=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return"aborted"===r.status?m:("dirty"===r.status&&t.dirty(),e(r.value),{status:t.value,value:r.value})}return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then((n=>"aborted"===n.status?m:("dirty"===n.status&&t.dirty(),e(n.value).then((()=>({status:t.value,value:n.value}))))))}if("transform"===o.type){if(!1===n.common.async){const e=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!w(e))return e;const r=o.transform(e.value,i);if(r instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:r}}return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then((e=>w(e)?Promise.resolve(o.transform(e.value,i)).then((e=>({status:t.value,value:e}))):e))}r.assertNever(o)}}Se.create=(e,t,n)=>new Se({schema:e,typeName:Me.ZodEffects,effect:t,...N(n)}),Se.createWithPreprocess=(e,t,n)=>new Se({schema:t,effect:{type:"preprocess",transform:e},typeName:Me.ZodEffects,...N(n)});class Ce extends I{_parse(e){return this._getType(e)===i.undefined?v(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}Ce.create=(e,t)=>new Ce({innerType:e,typeName:Me.ZodOptional,...N(t)});class ke extends I{_parse(e){return this._getType(e)===i.null?v(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}ke.create=(e,t)=>new ke({innerType:e,typeName:Me.ZodNullable,...N(t)});class Oe extends I{_parse(e){const{ctx:t}=this._processInputParams(e);let n=t.data;return t.parsedType===i.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}Oe.create=(e,t)=>new Oe({innerType:e,typeName:Me.ZodDefault,defaultValue:"function"===typeof t.default?t.default:()=>t.default,...N(t)});class Te extends I{_parse(e){const{ctx:t}=this._processInputParams(e),n={...t,common:{...t.common,issues:[]}},r=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return E(r)?r.then((e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new l(n.common.issues)},input:n.data})}))):{status:"valid",value:"valid"===r.status?r.value:this._def.catchValue({get error(){return new l(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}}Te.create=(e,t)=>new Te({innerType:e,typeName:Me.ZodCatch,catchValue:"function"===typeof t.catch?t.catch:()=>t.catch,...N(t)});class Ne extends I{_parse(e){if(this._getType(e)!==i.nan){const t=this._getOrReturnCtx(e);return p(t,{code:s.invalid_type,expected:i.nan,received:t.parsedType}),m}return{status:"valid",value:e.data}}}Ne.create=e=>new Ne({typeName:Me.ZodNaN,...N(e)});const Ie=Symbol("zod_brand");class Pe extends I{_parse(e){const{ctx:t}=this._processInputParams(e),n=t.data;return this._def.type._parse({data:n,path:t.path,parent:t})}unwrap(){return this._def.type}}class Re extends I{_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.common.async){return(async()=>{const e=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return"aborted"===e.status?m:"dirty"===e.status?(t.dirty(),g(e.value)):this._def.out._parseAsync({data:e.value,path:n.path,parent:n})})()}{const e=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return"aborted"===e.status?m:"dirty"===e.status?(t.dirty(),{status:"dirty",value:e.value}):this._def.out._parseSync({data:e.value,path:n.path,parent:n})}}static create(e,t){return new Re({in:e,out:t,typeName:Me.ZodPipeline})}}class De extends I{_parse(e){const t=this._def.innerType._parse(e),n=e=>(w(e)&&(e.value=Object.freeze(e.value)),e);return E(t)?t.then((e=>n(e))):n(t)}unwrap(){return this._def.innerType}}function Ae(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return e?te.create().superRefine(((r,o)=>{var i,a;if(!e(r)){const e="function"===typeof t?t(r):"string"===typeof t?{message:t}:t,s=null===(a=null!==(i=e.fatal)&&void 0!==i?i:n)||void 0===a||a,l="string"===typeof e?{message:e}:e;o.addIssue({code:"custom",...l,fatal:s})}})):te.create()}De.create=(e,t)=>new De({innerType:e,typeName:Me.ZodReadonly,...N(t)});const je={object:se.lazycreate};var Me;!function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"}(Me||(Me={}));const Le=V.create,ze=G.create,Fe=Ne.create,Be=Y.create,Ue=K.create,qe=Q.create,$e=J.create,Ze=X.create,He=ee.create,Ve=te.create,We=ne.create,Ge=re.create,Ye=oe.create,Ke=ie.create,Qe=se.create,Je=se.strictCreate,Xe=le.create,et=ue.create,tt=fe.create,nt=pe.create,rt=he.create,ot=me.create,it=ge.create,at=ve.create,st=ye.create,lt=be.create,ct=Ee.create,ut=_e.create,dt=xe.create,ft=Se.create,pt=Ce.create,ht=ke.create,mt=Se.createWithPreprocess,gt=Re.create,vt={string:e=>V.create({...e,coerce:!0}),number:e=>G.create({...e,coerce:!0}),boolean:e=>K.create({...e,coerce:!0}),bigint:e=>Y.create({...e,coerce:!0}),date:e=>Q.create({...e,coerce:!0})},yt=m;var bt=Object.freeze({__proto__:null,defaultErrorMap:c,setErrorMap:function(e){u=e},getErrorMap:d,makeIssue:f,EMPTY_PATH:[],addIssueToContext:p,ParseStatus:h,INVALID:m,DIRTY:g,OK:v,isAborted:y,isDirty:b,isValid:w,isAsync:E,get util(){return r},get objectUtil(){return o},ZodParsedType:i,getParsedType:a,ZodType:I,datetimeRegex:H,ZodString:V,ZodNumber:G,ZodBigInt:Y,ZodBoolean:K,ZodDate:Q,ZodSymbol:J,ZodUndefined:X,ZodNull:ee,ZodAny:te,ZodUnknown:ne,ZodNever:re,ZodVoid:oe,ZodArray:ie,ZodObject:se,ZodUnion:le,ZodDiscriminatedUnion:ue,ZodIntersection:fe,ZodTuple:pe,ZodRecord:he,ZodMap:me,ZodSet:ge,ZodFunction:ve,ZodLazy:ye,ZodLiteral:be,ZodEnum:Ee,ZodNativeEnum:_e,ZodPromise:xe,ZodEffects:Se,ZodTransformer:Se,ZodOptional:Ce,ZodNullable:ke,ZodDefault:Oe,ZodCatch:Te,ZodNaN:Ne,BRAND:Ie,ZodBranded:Pe,ZodPipeline:Re,ZodReadonly:De,custom:Ae,Schema:I,ZodSchema:I,late:je,get ZodFirstPartyTypeKind(){return Me},coerce:vt,any:Ve,array:Ke,bigint:Be,boolean:Ue,date:qe,discriminatedUnion:et,effect:ft,enum:ct,function:at,instanceof:function(e){return Ae((t=>t instanceof e),arguments.length>1&&void 0!==arguments[1]?arguments[1]:{message:`Input not instance of ${e.name}`})},intersection:tt,lazy:st,literal:lt,map:ot,nan:Fe,nativeEnum:ut,never:Ge,null:He,nullable:ht,number:ze,object:Qe,oboolean:()=>Ue().optional(),onumber:()=>ze().optional(),optional:pt,ostring:()=>Le().optional(),pipeline:gt,preprocess:mt,promise:dt,record:rt,set:it,strictObject:Je,string:Le,symbol:$e,transformer:ft,tuple:nt,undefined:Ze,union:Xe,unknown:We,void:Ye,NEVER:yt,ZodIssueCode:s,quotelessJson:e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:"),ZodError:l})}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}n.m=e,n.amdO={},n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},(()=>{var e,t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;n.t=function(r,o){if(1&o&&(r=this(r)),8&o)return r;if("object"===typeof r&&r){if(4&o&&r.__esModule)return r;if(16&o&&"function"===typeof r.then)return r}var i=Object.create(null);n.r(i);var a={};e=e||[null,t({}),t([]),t(t)];for(var s=2&o&&r;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((e=>a[e]=()=>r[e]));return a.default=()=>r,n.d(i,a),i}})(),n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.f={},n.e=e=>Promise.all(Object.keys(n.f).reduce(((t,r)=>(n.f[r](e,t),t)),[])),n.u=e=>"static/js/"+e+"."+{27:"29953fc3",30:"b097cbb4",86:"ad271bdc",96:"6e1bf3f4",115:"2c4de87e",148:"b60f0e5e",163:"eea01641",178:"e0df04cc",185:"7d51fcfa",202:"52f13cd5",214:"c03ec0c5",337:"b6fc715e",358:"d6300019",383:"4faec08b",425:"c6dd581a",436:"564ff0f8",451:"3b449e79",515:"cd9a8a90",556:"55f00ac6",598:"243fd68d",599:"c58caf58",619:"f27ddcbd",620:"7aea5425",632:"b6c03857",674:"e6536250",678:"b73063ff",704:"45771d88",785:"d2eae69c",919:"53e04507",924:"382f18b1",1148:"3c629236",1150:"2b47004d",1155:"4fce1854",1168:"91d9e2c2",1179:"15d7ac65",1278:"c0717a20",1350:"21b6a9ef",1478:"631a9793",1508:"f0158935",1528:"2a39d066",1616:"8a217b93",1736:"9f4a6b02",1746:"a8ba5c62",1747:"b4331799",1869:"d6661a03",1878:"b8595333",1956:"0205a5bb",1962:"2fc0a4aa",2033:"5c6dfca9",2104:"4f22ecac",2118:"9d64ef57",2141:"26c930aa",2183:"e2318c37",2190:"27f354f5",2194:"38bafdfc",2223:"63ae5a05",2229:"6687fc46",2238:"3cf88b79",2244:"a7bd228d",2302:"7e7a2fb4",2322:"fe9185b1",2367:"052e678b",2403:"5de440f9",2435:"092e8d7f",2477:"e6121bfd",2492:"64b7d727",2521:"21bdfab9",2532:"30bb087d",2553:"5faabf5a",2590:"75b6626e",2620:"8e5c52fb",2677:"3d7ea3fc",2701:"86912840",2840:"b69eb597",2876:"afe7e47f",2931:"3ade3bc3",2937:"09da0354",2962:"66e01691",2981:"6d027811",2986:"2100fcad",2994:"e6c77407",3025:"7e536c57",3074:"bbb8aaef",3231:"65396654",3271:"7b005742",3304:"f5897a96",3333:"ceb196e6",3358:"c777fe1f",3397:"9c0005a3",3457:"b193afe6",3466:"98f036ac",3498:"c7d39060",3621:"9b6c61ab",3630:"8eda2d3f",3644:"aeda46ca",3645:"bdd20200",3756:"67bd6b00",3771:"764124c3",3862:"041343ca",3898:"1fec42e6",3920:"11b8c9d7",3926:"8f2c9741",3945:"054c871d",4046:"5dac72a9",4080:"07be3744",4123:"64882a16",4132:"04be158e",4159:"5e0cfd91",4198:"d0671061",4263:"183a56ca",4326:"d5c34c54",4345:"9238776d",4347:"adf03999",4388:"edb51304",4482:"59f2c9c2",4535:"5d1c8322",4550:"2e04d705",4583:"1682cf86",4616:"108b0d1e",4618:"131d9563",4635:"a36f9ad7",4663:"b893c670",4684:"27f737c4",4726:"09337328",4789:"2486836a",4812:"73af8448",4814:"11309069",4826:"d2723706",4848:"64f47dc3",4949:"6bf46e71",4964:"c7c75eb0",4985:"991de003",5107:"8cac6a03",5112:"6189bbe0",5117:"896f7ffb",5161:"45b4f520",5168:"6fb23f08",5226:"675d55fb",5311:"a500a1ea",5341:"2c19c723",5345:"37bcf3b0",5352:"3d3187b7",5373:"90c95a6e",5378:"86805fba",5387:"8af1d694",5399:"f9398084",5410:"5b33035f",5448:"cef3c129",5450:"f0dcfc15",5491:"a460479e",5643:"00957838",5661:"c83a4eb0",5670:"5c30cef1",5720:"39a954f1",5790:"e3d88e2c",5809:"d78ebebb",5844:"a6d86219",5863:"e2cd2452",5868:"be04313a",6044:"2de9962d",6058:"7f474f92",6065:"b08e9640",6123:"bcc7dc27",6142:"b2452554",6144:"e1568f26",6156:"0c562627",6194:"f467f444",6227:"fc562bbf",6230:"8e64216a",6289:"51f8741e",6291:"e7cdf7f2",6300:"dca75d45",6321:"aa3e44de",6329:"8763cdf1",6361:"a9f11e7a",6382:"7ce31b00",6390:"e2ce5781",6392:"9c5364ed",6393:"b0de2d9e",6521:"371403ec",6619:"9e1de7a6",6679:"6e0a87d5",6692:"9322b59d",6795:"5ec0c96a",6815:"672badd5",6876:"867b698c",6877:"d2d51d98",6887:"0855fd66",6892:"2c3c2bcb",6898:"5580b941",6919:"8f4bfed3",6954:"e18be130",6961:"f4888ae1",7016:"4a34a027",7059:"0bcaa0b1",7074:"f6a35734",7119:"e94f8dac",7202:"fefd43ee",7257:"8ce0d045",7276:"47f377a4",7388:"9f447514",7409:"4408962b",7520:"0062a6b8",7522:"1a0f9c02",7529:"e42e6e04",7543:"8ff5adcd",7554:"28f3da22",7645:"6f6a8416",7673:"69ae8f05",7684:"a3920b72",7779:"9d9b07ae",7803:"a56cfca6",7963:"b08b6343",7992:"20690745",7999:"bdf4fe79",8011:"4fed4307",8065:"22593484",8133:"2afc4db4",8140:"8d8e9309",8167:"b9a90da5",8450:"baf3a89d",8591:"93172fe9",8622:"49f3054c",8695:"f17f8853",8702:"69a3e0d5",8747:"baf63d86",8791:"b209de42",8797:"f8f0ce13",8850:"97635389",8853:"c8f9e9d6",8858:"cd9d49a5",8905:"b8a9fd91",9079:"c7e50399",9101:"ce051539",9173:"56664808",9204:"77418f94",9207:"5881b206",9212:"870f16f0",9219:"24a20881",9220:"4d762672",9280:"40cff028",9292:"91ed23f7",9297:"eadc4dba",9308:"c72b8585",9319:"40f9e46a",9371:"f1e95ffc",9399:"abafeca2",9411:"96fb3e2f",9413:"b2921c36",9415:"a2b45d07",9433:"7ce648d0",9526:"10bb1684",9528:"9991c023",9555:"c9b5ee61",9572:"9f83f004",9621:"48073631",9854:"4a10d07f",9870:"f57e1929",9876:"c4e3221a",9917:"67d792e3",9923:"270f0a19"}[e]+".chunk.js",n.miniCssF=e=>"static/css/"+e+"."+{1878:"b2c94758",2244:"f723033a",3862:"f9d9bfe9",4263:"34f7edbd",4482:"3ce054a3",4616:"ac57fa01",5410:"033f4b87",6123:"8f81c527",6194:"566eff0a",7059:"0a2e691a",7074:"c6e4f322",7963:"dd2b9fe2",9399:"3cc21bd9"}[e]+".chunk.css",n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={},t="ydb-embedded-ui:";n.l=(r,o,i,a)=>{if(e[r])e[r].push(o);else{var s,l;if(void 0!==i)for(var c=document.getElementsByTagName("script"),u=0;u<c.length;u++){var d=c[u];if(d.getAttribute("src")==r||d.getAttribute("data-webpack")==t+i){s=d;break}}s||(l=!0,(s=document.createElement("script")).charset="utf-8",s.timeout=120,n.nc&&s.setAttribute("nonce",n.nc),s.setAttribute("data-webpack",t+i),s.src=r),e[r]=[o];var f=(t,n)=>{s.onerror=s.onload=null,clearTimeout(p);var o=e[r];if(delete e[r],s.parentNode&&s.parentNode.removeChild(s),o&&o.forEach((e=>e(n))),t)return t(n)},p=setTimeout(f.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=f.bind(null,s.onerror),s.onload=f.bind(null,s.onload),l&&document.head.appendChild(s)}}})(),n.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),n.p="./",(()=>{if("undefined"!==typeof document){var e=e=>new Promise(((t,r)=>{var o=n.miniCssF(e),i=n.p+o;if(((e,t)=>{for(var n=document.getElementsByTagName("link"),r=0;r<n.length;r++){var o=(a=n[r]).getAttribute("data-href")||a.getAttribute("href");if("stylesheet"===a.rel&&(o===e||o===t))return a}var i=document.getElementsByTagName("style");for(r=0;r<i.length;r++){var a;if((o=(a=i[r]).getAttribute("data-href"))===e||o===t)return a}})(o,i))return t();((e,t,r,o,i)=>{var a=document.createElement("link");a.rel="stylesheet",a.type="text/css",n.nc&&(a.nonce=n.nc),a.onerror=a.onload=n=>{if(a.onerror=a.onload=null,"load"===n.type)o();else{var r=n&&n.type,s=n&&n.target&&n.target.href||t,l=new Error("Loading CSS chunk "+e+" failed.\n("+r+": "+s+")");l.name="ChunkLoadError",l.code="CSS_CHUNK_LOAD_FAILED",l.type=r,l.request=s,a.parentNode&&a.parentNode.removeChild(a),i(l)}},a.href=t,r?r.parentNode.insertBefore(a,r.nextSibling):document.head.appendChild(a)})(e,i,null,t,r)})),t={179:0};n.f.miniCss=(n,r)=>{t[n]?r.push(t[n]):0!==t[n]&&{1878:1,2244:1,3862:1,4263:1,4482:1,4616:1,5410:1,6123:1,6194:1,7059:1,7074:1,7963:1,9399:1}[n]&&r.push(t[n]=e(n).then((()=>{t[n]=0}),(e=>{throw delete t[n],e})))}}})(),(()=>{var e={179:0};n.f.j=(t,r)=>{var o=n.o(e,t)?e[t]:void 0;if(0!==o)if(o)r.push(o[2]);else if(/^(4616|7074)$/.test(t))e[t]=0;else{var i=new Promise(((n,r)=>o=e[t]=[n,r]));r.push(o[2]=i);var a=n.p+n.u(t),s=new Error;n.l(a,(r=>{if(n.o(e,t)&&(0!==(o=e[t])&&(e[t]=void 0),o)){var i=r&&("load"===r.type?"missing":r.type),a=r&&r.target&&r.target.src;s.message="Loading chunk "+t+" failed.\n("+i+": "+a+")",s.name="ChunkLoadError",s.type=i,s.request=a,o[1](s)}}),"chunk-"+t,t)}};var t=(t,r)=>{var o,i,a=r[0],s=r[1],l=r[2],c=0;if(a.some((t=>0!==e[t]))){for(o in s)n.o(s,o)&&(n.m[o]=s[o]);if(l)l(n)}for(t&&t(r);c<a.length;c++)i=a[c],n.o(e,i)&&e[i]&&e[i][0](),e[i]=0},r=self.webpackChunkydb_embedded_ui=self.webpackChunkydb_embedded_ui||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})(),(()=>{"use strict";var e=n(63609),t=n(29796),r=n(90058),o=n(67510);const{store:i,history:a}=(0,o.xC)();var s=n(75859);!async function(){let r;r=await Promise.resolve().then(n.bind(n,29796)).then((e=>{let{SingleClusterApp:t}=e;return t}));const o=document.getElementById("root");if(!o)throw new Error("Can't find root element");e.createRoot(o).render((0,s.jsx)(t.ErrorBoundary,{children:(0,s.jsx)(r,{store:i,history:a})}))}(),(0,r.Z)()})()})(); \ No newline at end of file
diff --git a/ydb/core/viewer/monitoring/static/js/main.a4a734f7.js.LICENSE.txt b/ydb/core/viewer/monitoring/static/js/main.5702199d.js.LICENSE.txt
index f63f93dcd2..f63f93dcd2 100644
--- a/ydb/core/viewer/monitoring/static/js/main.a4a734f7.js.LICENSE.txt
+++ b/ydb/core/viewer/monitoring/static/js/main.5702199d.js.LICENSE.txt
diff --git a/ydb/core/viewer/monitoring/static/js/main.a4a734f7.js b/ydb/core/viewer/monitoring/static/js/main.a4a734f7.js
deleted file mode 100644
index 2183ca243e..0000000000
--- a/ydb/core/viewer/monitoring/static/js/main.a4a734f7.js
+++ /dev/null
@@ -1,2 +0,0 @@
-/*! For license information please see main.a4a734f7.js.LICENSE.txt */
-(()=>{var e={40726:(e,t,n)=>{"use strict";n.d(t,{C:()=>s,t:()=>a});var r=n(68963),o=n(75859);const i=r.createContext(void 0);function a(e){let{children:t,registry:n}=e;return(0,o.jsx)(i.Provider,{value:n,children:t})}function s(e){const t=r.useContext(i);if(void 0===t)throw new Error("useComponent must be used within ComponentsProvider");return t.get(e)}},79023:(e,t,n)=>{"use strict";n.d(t,{u:()=>_,$:()=>x});var r,o,i,a,s,l,c,u,d,f,p,h=n(88776),m=n(24362),g=n(68963);function v(){return v=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},v.apply(this,arguments)}const y=function(e){return g.createElement("svg",v({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 383 396",fill:"none"},e),r||(r=g.createElement("path",{d:"M307.333 168.43c9.4-14.2 14.1-32.6 14.1-55.3 0-34.4-11.7-61.9-35.3-82.2-23.4-20.5-63-30.7-106.7-30.7-13.1 0-24.1.9-34.8 2.7-10.7 1.8-20.1 3.9-28.2 6.3-5.4 1.6-16.1 5.7-23.3 8.6-4.1 1.7-6.9 6-6.9 10.8v39.5c0 8.2 7.8 13.8 14.9 10.5a458.74 458.74 0 001.806-.818c2.367-1.074 4.452-2.02 5.894-2.581 5.7-2.3 12.4-4.2 20.1-5.8 7.7-1.6 16.3-2.4 25.7-2.4 22.2 0 43.1 5 52.3 14.9 9.2 10 13.8 22.499 13.8 37.499 0 13-2.7 24.1-8.2 33.2-5.5 9.1-13.1 18-22.9 26.5-7.9 6.9-15.2 13.5-22 19.8-6.8 6.3-12.6 13.2-17.5 20.7s-8.7 16-11.3 25.3c-1.6 5.6-2.7 20.3-3.3 31-.3 6.6 4.5 12.2 10.7 12.2h51.2c5.4 0 10-4.4 10.6-10.2.6-5.7 2-12.5 5.5-17.8 4-5.9 8.7-11.8 14.7-17.3s13-11 20.9-16.7c8-5.6 16.2-12.1 24.9-19.4 12.8-11.4 23.9-24.1 33.3-38.3zm-167.6 212.7c9 9.5 20.1 14.2 33.4 14.2 6.3 0 12.4-1.3 18.2-4 5.8-2.6 10.9-6 15.2-10.3 4.3-4.3 7.7-9.4 10.2-15.2 2.5-5.8 3.7-12.1 3.7-19 0-6.8-1.2-13.2-3.7-19-2.5-5.8-5.9-10.9-10.2-15.4-4.3-4.5-9.4-7.9-15.2-10.3-5.8-2.4-11.9-3.6-18.2-3.6-13.3 0-24.4 4.6-33.4 13.9s-13.5 20.8-13.5 34.5c0 13.4 4.5 24.8 13.5 34.2z",fill:"#ECF2F9"})),o||(o=g.createElement("path",{d:"M213.933 353.03h-193.5c-10 0-18.2-8.2-18.2-18.2v-125.4c0-10 8.2-18.2 18.2-18.2h193.5c10 0 18.2 8.2 18.2 18.2v125.4c0 10.1-8.2 18.2-18.2 18.2z",stroke:"#00E6C5",strokeWidth:4,strokeLinecap:"round",strokeLinejoin:"round",strokeDasharray:"4 10"})),i||(i=g.createElement("path",{d:"M21.034 214.732a5.2 5.2 0 100-10.4 5.2 5.2 0 000 10.4zm16.899 0a5.2 5.2 0 100-10.4 5.2 5.2 0 000 10.4zm16.9 0a5.2 5.2 0 100-10.4 5.2 5.2 0 000 10.4z",fill:"#2EE5C0"})),a||(a=g.createElement("path",{d:"M2.533 228.129h228.9",stroke:"#00E6C5",strokeWidth:4,strokeLinecap:"round",strokeLinejoin:"round",strokeDasharray:"4 10"})),s||(s=g.createElement("path",{d:"M301.033 264.83l-216.9 12c-7.3.4-13.3-5.2-13.3-12.5V96.93c0-7.3 6-12.9 13.3-12.5l216.9 12c5.6.3 10.1 5.7 10.1 12v144.4c0 6.3-4.5 11.7-10.1 12z",fill:"#027BF3"})),l||(l=g.createElement("path",{d:"M90.433 107.93c3.4.2 6.1-2.4 6.1-5.8s-2.7-6.3-6.1-6.4c-3.3-.2-6.1 2.4-6.1 5.8s2.7 6.3 6.1 6.4zm19.8.798c3.3.1 6-2.5 6-5.8s-2.7-6.1-6-6.3c-3.3-.1-6 2.5-6 5.8s2.7 6.2 6 6.3zm25.2-4.9c0 3.3-2.6 5.9-5.8 5.7-3.2-.1-5.9-2.9-5.9-6.2 0-3.3 2.6-5.9 5.9-5.7 3.2.1 5.8 2.9 5.8 6.2zm66.001 61.703l19.1-20.9 17.4 19.1-18.9 20.9 18.9 20.5-17.4 19.5-19.1-20.5-19.4 21.5-18.1-19.1 19.6-21.5-19.6-21 18.1-19.5 19.4 21z",fill:"#fff"})),c||(c=g.createElement("path",{d:"M327.433 112.83c0-28.4-21.7-37.1-33.5-37.9-.1 0-33.5 2.3-33.5 45.3 0 25.5 21.2 45.5 46 44.6 7.8-.3 14.9-2.6 21-6.4v-45.6z",fill:"#67B0F8"})),u||(u=g.createElement("path",{d:"M380.534 195.931c-2.9 3.4-7.6 3.7-10.5.8l-38.6-39 11.3-12.2 37.8 39c2.9 3 2.9 8 0 11.4z",fill:"#FF4645"})),d||(d=g.createElement("path",{d:"M342.833 145.629l-11.3 12.2 3.7 3.7c1.9 1.9 4.9 2 6.8.2 1.1-1 2.2-2.1 3.2-3.2.6-.7 1.3-1.4 1.9-2.1 1.6-1.9 1.5-4.8-.3-6.6l-4-4.2z",fill:"#D93654"})),f||(f=g.createElement("path",{d:"M267.633 154.13c-23-21.401-23-57.3 0-78.1 21.9-19.8 55.1-17 74.4 4.3 18.4 20.399 18.4 51.7 0 71.6-19.3 20.8-52.5 22.6-74.4 2.2zm9.4-10.802c15.6 15 39.8 14.2 54.1-.9 13.8-14.6 13.8-37.8 0-52.8-14.3-15.5-38.5-17-54.1-2.5-16.2 15.1-16.2 40.7 0 56.2z",fill:"#00236B"})),p||(p=g.createElement("path",{d:"M41.034 42.73a2 2 0 10-4 0h4zm-4 8.3a2 2 0 004 0h-4zm4 17.2a2 2 0 10-4 0h4zm-4 8.9a2 2 0 004 0h-4zm19.2-15.2a2 2 0 000-4v4zm-8.2-4a2 2 0 100 4v-4zm-17.9 4a2 2 0 000-4v4zm-8.2-4a2 2 0 100 4v-4zm15.1-15.2v8.3h4v-8.3h-4zm0 25.5v8.9h4v-8.9h-4zm19.2-10.3h-8.2v4h8.2v-4zm-26.1 0h-8.2v4h8.2v-4z",fill:"#2EE5C0"})))};var b=n(75859);const w=(0,m.cn)("empty-state"),E={s:150,m:250,l:350},_=e=>{let{image:t,title:n,description:r,actions:o,size:i="m",position:a="center"}=e;return(0,b.jsx)("div",{className:w({size:i}),children:(0,b.jsxs)("div",{className:w("wrapper",{size:i,position:a}),children:[(0,b.jsx)("div",{className:w("image"),children:t||(0,b.jsx)(h.J,{data:y,width:E[i],height:E[i]})}),(0,b.jsx)("div",{className:w("title",{size:i}),children:n}),(0,b.jsx)("div",{className:w("description"),children:r}),(0,b.jsx)("div",{className:w("actions"),children:o})]})})};function x(e){let{isEmpty:t,children:n,className:r,...o}=e;return t?(0,b.jsx)("div",{className:r,children:(0,b.jsx)(_,{...o})}):n}},27710:(e,t,n)=>{"use strict";n.d(t,{SV:()=>M,l2:()=>z,TI:()=>L});var r=n(68963),o=n(70292),i=n(89646);const a=r.createContext(void 0),s=r.createContext(void 0);function l(e){const{size:t,disabled:n,defaultExpanded:o,arrowPosition:l,summary:c,keepMounted:u,onUpdate:d,expanded:f}=e,[p,h]=r.useState((()=>Boolean(o))),m=void 0!==f,g=(0,i.u)(),v=`disclosure${g}`;return r.createElement(a.Provider,{value:{size:t,disabled:n,summary:c,arrowPosition:l,keepMounted:u,expanded:m?f:p,ariaControls:g,ariaLabelledby:v}},r.createElement(s.Provider,{value:()=>{h((e=>!e));d(m?!f:!p)}},e.children))}function c(){const e=r.useContext(a);if(void 0===e)throw new Error("useDisclosureAttributes must be used within DisclosureProvider");return e}var u=n(62685),d=n(31445);const f=(0,n(36951).Ge)("disclosure"),p={SUMMARY:"disclosure-summary",DETAILS:"disclosure-details"};function h(e){let{children:t}=e;const n=r.useRef(null),{ariaControls:o,ariaLabelledby:i,keepMounted:a,expanded:s}=c();return r.createElement(u.Z,{nodeRef:n,in:s,addEndListener:e=>{var t;return null===(t=n.current)||void 0===t?void 0:t.addEventListener("animationend",e)},classNames:(0,d.Y)(f),mountOnEnter:!a,unmountOnExit:!a,appear:!0},r.createElement("div",{ref:n,id:o,role:"region","aria-labelledby":i,className:f("content",{visible:s}),"data-qa":p.DETAILS},t))}h.displayName="DisclosureDetails";var m=n(33569),g=n(12913);const v={m:14,l:16,xl:20};function y(){(0,g.O)('[Disclosure] Physical values (left, right) of "arrowPosition" property are deprecated. Use logical values (start, end) instead.')}function b(e){let{children:t}=e;const n=function(){const e=r.useContext(s);if(void 0===e)throw new Error("useToggleDisclosure must be used within DisclosureProvider");return e}(),{ariaControls:o,ariaLabelledby:i,expanded:a,disabled:l}=c(),u={onClick:n,ariaControls:o,id:i,expanded:a,disabled:l};return t(u,r.createElement(w,Object.assign({},u)))}function w(e){let{onClick:t,ariaControls:n,id:o,expanded:i,disabled:a}=e;const{size:s,summary:l,arrowPosition:u}=c();let d=u;return"left"===d&&(y(),d="start"),"right"===d&&(y(),d="end"),r.createElement("button",{type:"button","aria-expanded":i,className:f("trigger",{disabled:a,arrow:d}),"aria-controls":n,id:o,onClick:t,disabled:a,"data-qa":p.SUMMARY},r.createElement(m.F,{size:v[s],direction:i?"top":"bottom"}),l)}b.displayName="DisclosureSummary";const E=(0,o.s)(b),_=r.forwardRef((function(e,t){const{size:n="m",disabled:o=!1,defaultExpanded:i=!1,arrowPosition:a="start",summary:s="",className:c,keepMounted:u=!0,children:d,onUpdate:p=(()=>{}),expanded:m,qa:g}=e,[v,y]=function(e){const t=r.Children.toArray(e);let n,o;const i=[];for(const r of t){if(E(r)){if(n)throw new Error("Only one <Disclosure.Summary> component is allowed");n=r}else i.push(r)}i.length>0&&(o=r.createElement(h,null,i));n||(n=r.createElement(b,null,(e=>r.createElement(w,Object.assign({},e)))));return[n,o]}(d);return r.createElement(l,{disabled:o,defaultExpanded:i,expanded:m,keepMounted:u,size:n,summary:s,arrowPosition:a,onUpdate:p},r.createElement("section",{ref:t,className:f({size:n},c),"data-qa":g},v,y))}));_.Summary=b,_.displayName="Disclosure";var x=n(17176);const S=(0,r.createContext)(null),C={didCatch:!1,error:null};class k extends r.Component{constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=C}static getDerivedStateFromError(e){return{didCatch:!0,error:e}}resetErrorBoundary(){const{error:e}=this.state;if(null!==e){for(var t,n,r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];null===(t=(n=this.props).onReset)||void 0===t||t.call(n,{args:o,reason:"imperative-api"}),this.setState(C)}}componentDidCatch(e,t){var n,r;null===(n=(r=this.props).onError)||void 0===n||n.call(r,e,t)}componentDidUpdate(e,t){const{didCatch:n}=this.state,{resetKeys:r}=this.props;var o,i;n&&null!==t.error&&function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e.length!==t.length||e.some(((e,n)=>!Object.is(e,t[n])))}(e.resetKeys,r)&&(null===(o=(i=this.props).onReset)||void 0===o||o.call(i,{next:r,prev:e.resetKeys,reason:"keys"}),this.setState(C))}render(){const{children:e,fallbackRender:t,FallbackComponent:n,fallback:o}=this.props,{didCatch:i,error:a}=this.state;let s=e;if(i){const e={error:a,resetErrorBoundary:this.resetErrorBoundary};if("function"===typeof t)s=t(e);else if(n)s=(0,r.createElement)(n,e);else{if(null!==o&&!(0,r.isValidElement)(o))throw a;s=o}}return(0,r.createElement)(S.Provider,{value:{didCatch:i,error:a,resetErrorBoundary:this.resetErrorBoundary}},s)}}var O=n(24362);var T=n(40726),N=n(56350),I=n(30817);const P=JSON.parse('{"error-title":"Something went wrong","error-description":"We have something broken, but don\'t worry, it won\'t last long","show-details":"Show details","report-problem":"Report a problem","button-reset":"Try again"}'),R=JSON.parse('{"error-title":"\u0427\u0442\u043e-\u0442\u043e \u043f\u043e\u0448\u043b\u043e \u043d\u0435 \u0442\u0430\u043a","error-description":"\u0423 \u043d\u0430\u0441 \u0447\u0442\u043e-\u0442\u043e \u0441\u043b\u043e\u043c\u0430\u043b\u043e\u0441\u044c, \u043d\u043e \u043d\u0435 \u043f\u0435\u0440\u0435\u0436\u0438\u0432\u0430\u0439\u0442\u0435, \u044d\u0442\u043e \u043d\u0435\u043d\u0430\u0434\u043e\u043b\u0433\u043e","show-details":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0434\u0435\u0442\u0430\u043b\u0438","report-problem":"\u0421\u043e\u043e\u0431\u0449\u0438\u0442\u044c \u043e \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0435","button-reset":"\u041f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u0441\u043d\u043e\u0432\u0430"}'),D=(0,I.wZ)("ydb-error-boundary",{ru:R,en:P});var A=n(75859);const j=(0,O.cn)("ydb-error-boundary");function M(e){let{children:t}=e;const n=(0,T.C)("ErrorBoundary");return(0,A.jsx)(n,{children:t})}function L(e){let{children:t,useRetry:n=!0,onReportProblem:r}=e;return(0,A.jsx)(k,{onError:(e,t)=>{var n;!function(e,t){var n;let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"error";"undefined"!==typeof window&&null!==(n=window.Ya)&&void 0!==n&&n.Rum?window.Ya.Rum.logError({additional:{url:window.location.href},type:r,message:t,level:window.Ya.Rum.ERROR_LEVEL.ERROR},e):console.error(e)}(e,null!==(n=t.componentStack)&&void 0!==n?n:void 0,"error-boundary")},fallbackRender:e=>{let{error:t,resetErrorBoundary:o}=e;return(0,A.jsx)(z,{error:t,useRetry:n,resetErrorBoundary:o,onReportProblem:r})},children:t})}function z(e){let{error:t,resetErrorBoundary:n,useRetry:r,onReportProblem:o}=e;return(0,A.jsxs)("div",{className:j(),children:[(0,A.jsx)(N.Q,{name:"error",className:j("illustration")}),(0,A.jsxs)("div",{className:j("content"),children:[(0,A.jsx)("h2",{className:j("error-title"),children:D("error-title")}),(0,A.jsx)("div",{className:j("error-description"),children:D("error-description")}),(0,A.jsx)(_,{summary:D("show-details"),className:j("show-details"),size:"m",children:(0,A.jsx)("pre",{className:j("error-details"),children:t.stack})}),(0,A.jsxs)("div",{className:j("actions"),children:[r&&(0,A.jsx)(x.z,{view:"outlined",onClick:n,children:D("button-reset")}),o&&(0,A.jsx)(x.z,{view:"outlined",onClick:()=>o(t),children:D("report-problem")})]})]})]})}},82073:(e,t,n)=>{"use strict";n.d(t,{J:()=>s});var r=n(79023),o=n(56350),i=n(68746),a=n(75859);const s=e=>{let{title:t,description:n,...s}=e;return(0,a.jsx)(r.u,{image:(0,a.jsx)(o.Q,{name:"403"}),title:t||(0,i.Z)("403.title"),description:n||(0,i.Z)("403.description"),...s})}},86969:(e,t,n)=>{"use strict";n.d(t,{J:()=>r.J});var r=n(82073)},1440:(e,t,n)=>{"use strict";n.d(t,{S:()=>u,u:()=>d});var r=n(68963),o=n(79023),i=n(56350),a=n(86969),s=n(26688),l=n(68746),c=n(75859);function u(e){let{title:t,description:n,error:u,children:f,...p}=e;return d(u)?(0,c.jsx)(a.J,{title:t,description:n,...p}):u||n?(0,c.jsx)(o.u,{image:(0,c.jsx)(i.Q,{name:"error"}),title:t||(0,l.Z)("error.title"),description:u?(0,c.jsx)(s.V,{error:u}):n,...p}):(0,c.jsx)(r.Fragment,{children:f})}function d(e){return Boolean(e&&"object"===typeof e&&"status"in e&&(403===e.status||401===e.status))}},8747:(e,t,n)=>{"use strict";n.d(t,{V:()=>i});var r=n(68746),o=n(75859);const i=e=>{let{error:t,className:n,defaultMessage:i=(0,r.Z)("responseError.defaultMessage")}=e,a="";return t&&"string"===typeof t&&(a=t),t&&"object"===typeof t&&("data"in t&&"string"===typeof t.data?a=t.data:"statusText"in t&&"string"===typeof t.statusText?a=t.statusText:"message"in t&&"string"===typeof t.message&&(a=t.message)),(0,o.jsx)("div",{className:`error ${n}`,children:a||i})}},26688:(e,t,n)=>{"use strict";n.d(t,{V:()=>r.V});var r=n(8747)},68746:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(30817);const o=JSON.parse('{"403.title":"Access denied","403.description":"You don\u2019t have the necessary roles to view this page.","responseError.defaultMessage":"Response error","error.title":"Error"}'),i=JSON.parse('{"403.title":"\u0414\u043e\u0441\u0442\u0443\u043f \u0437\u0430\u043f\u0440\u0435\u0449\u0435\u043d","403.description":"\u0423 \u0432\u0430\u0441 \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043f\u0440\u0430\u0432 \u0434\u043b\u044f \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0430 \u0434\u0430\u043d\u043d\u043e\u0439 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b.","responseError.defaultMessage":"\u041e\u0448\u0438\u0431\u043a\u0430 \u0437\u0430\u043f\u0440\u043e\u0441\u0430","error.title":"\u041e\u0448\u0438\u0431\u043a\u0430"}'),a=(0,r.wZ)("ydb-errors-access-denied",{ru:i,en:o})},56350:(e,t,n)=>{"use strict";n.d(t,{Q:()=>c});var r=n(68963),o=n(64270),i=n(24362),a=n(75859);const s={light:{403:()=>n.e(3457).then(n.bind(n,73457)),thumbsUp:()=>n.e(6876).then(n.bind(n,36876)),error:()=>n.e(2435).then(n.bind(n,32435))},dark:{403:()=>n.e(7409).then(n.bind(n,77409)),thumbsUp:()=>n.e(8622).then(n.bind(n,28622)),error:()=>n.e(598).then(n.bind(n,40598))}},l=(0,i.cn)("kv-illustration"),c=e=>{let{name:t,className:n,...i}=e;const c=(0,o.C)(),[u,d]=r.useState(""),f=s[c]&&s[c][t];return r.useEffect((()=>{"function"===typeof f&&f().then((e=>d(e.default))).catch((e=>{console.error(e),d("")}))}),[f]),u?(0,a.jsx)("img",{alt:t,src:u,className:l(null,n),...i}):null}},23373:(e,t,n)=>{"use strict";n.d(t,{_:()=>l});var r=n(68963),o=n(24362),i=n(31954),a=n(75859);const s=(0,o.cn)("info-viewer"),l=e=>{let{title:t,info:n,dots:o=!0,size:l,className:c,multilineLabels:u,renderEmptyState:d}=e;return n&&n.length||!d?(0,a.jsxs)("div",{className:s({size:l},c),children:[t&&(0,a.jsx)("div",{className:s("title"),children:t}),n&&n.length>0?(0,a.jsx)("div",{className:s("items"),children:n.map(((e,t)=>(0,a.jsxs)("div",{className:s("row"),children:[(0,a.jsxs)("div",{className:s("label"),children:[(0,a.jsx)("div",{className:s("label-text",{multiline:u}),children:e.label}),o&&(0,a.jsx)("div",{className:s("dots")})]}),(0,a.jsx)("div",{className:s("value"),children:e.value})]},t)))}):(0,i.Z)("no-data")]}):(0,a.jsx)(r.Fragment,{children:d({title:t,size:l})})}},31954:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(30817);const o=JSON.parse('{"common.created":"Created","common.type":"Type","no-data":"No data"}'),i=(0,r.wZ)("ydb-components-info-viewer",{en:o})},62206:(e,t,n)=>{"use strict";n.d(t,{Z6:()=>o.Z,_P:()=>r._,aE:()=>o.a});var r=n(23373),o=n(93849)},93849:(e,t,n)=>{"use strict";function r(e,t){var n;return null!==(n=t[e])&&void 0!==n?n:e}function o(e,t,n,r){const o=n[e]||r;return o?o(t):t}function i(e){let{values:t,labels:n,defaultValueFormatter:i}=e;return(e,a)=>({label:r(e,n||{}),value:o(e,a,t||{},i)})}n.d(t,{Z:()=>a,a:()=>i});const a=(e,t)=>t?Object.entries(t).map((t=>{let[n,r]=t;return e(n,r)})).filter((e=>{let{value:t}=e;return Boolean(t)})):[]},68036:(e,t,n)=>{"use strict";n.d(t,{h:()=>s});var r=n(83203),o=n(24362),i=n(75859);const a=(0,o.cn)("g-link"),s=e=>{let{className:t,to:n,onClick:o,...s}=e;return n?(0,i.jsx)(r.rU,{to:n,onClick:o,className:a({view:"normal"},t),...s}):(0,i.jsx)("span",{className:t,onClick:o,children:s.children})}},74170:(e,t,n)=>{"use strict";n.d(t,{h:()=>r.h});var r=n(68036)},32270:(e,t,n)=>{"use strict";n.d(t,{j:()=>u});var r=n(68963),o=n(39683),i=n(86017),a=n(24362),s=n(74170),l=n(75859);const c=(0,a.cn)("ydb-link-with-icon"),u=e=>{let{title:t,url:n,external:a=!0,className:u}=e;const d=(0,l.jsxs)(r.Fragment,{children:[t,"\xa0",(0,l.jsx)(o.Z,{})]});return a?(0,l.jsx)(i.r,{href:n,target:"_blank",className:c(null,u),children:d}):(0,l.jsx)(s.h,{to:n,className:c(null,u),children:d})}},91173:(e,t,n)=>{"use strict";n.d(t,{a:()=>l});var r=n(2982),o=n(24362),i=n(42587),a=n(75859);const s=(0,o.cn)("ydb-loader"),l=e=>{let{size:t="m",delay:n=600,className:o}=e;const[l]=(0,i.$)(n);return l?(0,a.jsx)("div",{className:s(null,o),children:(0,a.jsx)(r.a,{size:t})}):null}},96409:(e,t,n)=>{"use strict";n.d(t,{s:()=>i});n(68963);var r=n(91173),o=n(75859);function i(e){let{loading:t,size:n="m",className:i,children:a}=e;return t?(0,o.jsx)(r.a,{size:n,className:i}):a}},42784:(e,t,n)=>{"use strict";n.d(t,{v:()=>a});var r=n(24362),o=n(75859);const i=(0,r.cn)("tablet-icon"),a=e=>{let{text:t,className:n}=e;return(0,o.jsx)("div",{className:i(null,n),children:(0,o.jsx)("div",{className:i("type"),children:t||"T"})})}},27506:(e,t,n)=>{"use strict";n.d(t,{bP:()=>s,A8:()=>f,Fb:()=>u});var r=n(24362),o=n(62206),i=n(75859);const a=(0,r.cn)("ydb-node-endpoints-tooltip-content"),s=e=>{let{data:t}=e;const n=[];return null!==t&&void 0!==t&&t.Rack&&n.push({label:"Rack",value:t.Rack}),null!==t&&void 0!==t&&t.Endpoints&&t.Endpoints.length&&t.Endpoints.forEach((e=>{let{Name:t,Address:r}=e;t&&r&&n.push({label:t,value:r})})),(0,i.jsx)(o._P,{className:a(null),info:n,dots:!1,size:"s"})};var l=n(34301);const c=(0,o.aE)({values:{ChangeTime:e=>(0,l.fG)(e)},labels:{TabletId:"Tablet"},defaultValueFormatter:e=>e&&String(e)}),u=e=>{let{data:t={},className:n}=e;const{TabletId:r,NodeId:a,State:s,Type:l,ChangeTime:u,Generation:d}=t,f=(0,o.Z6)(c,{TabletId:r,NodeId:a,State:s,Type:l,ChangeTime:u,Generation:d});return(0,i.jsx)(o._P,{className:n,info:f,dots:!1,size:"s"})},d=(0,o.aE)({values:{Usage:e=>e&&`${(100*Number(e)).toFixed(2)} %`},labels:{Name:"Pool"},defaultValueFormatter:e=>e&&String(e)}),f=e=>{let{data:t={},className:n}=e;const r=(0,o.Z6)(d,t);return(0,i.jsx)(o._P,{className:n,info:r,dots:!1,size:"s"})}},41616:(e,t,n)=>{"use strict";n.d(t,{f:()=>f,r:()=>d});var r=n(68963),o=n(52846),i=n(20163),a=n(27102),s=n(61293);const l=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.y3,t=arguments.length>1?arguments[1]:void 0;return{getNodeRef:function(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,s.pY)(n,null!==e&&void 0!==e?e:"",t)}}};var c=n(52317),u=n(17096);function d(){const[e]=(0,o.useQueryParam)("clusterName",o.StringParam),{data:t}=i.W1.useGetClustersListQuery(void 0),n=r.useMemo((()=>(t||[]).find((t=>t.name===e))),[t,e]),{solomon:a,balancer:s,versions:l,cluster:c}=n||{};return{monitoring:a,balancer:s,versions:l,cluster:c,...f({balancer:s})}}function f(e){let{balancer:t}=e;const[n]=(0,u.yu)(c.IG);return{additionalNodesProps:l(t,n),useClusterBalancerAsBackend:n}}},81003:(e,t,n)=>{"use strict";n.d(t,{B7:()=>s,V2:()=>a,_Y:()=>i,xu:()=>o});var r=n(54665);const o={overview:"overview",tenants:"tenants",nodes:"nodes",storage:"storage",versions:"versions"},i=[{id:o.overview,title:"Overview"},{id:o.tenants,title:"Databases"},{id:o.nodes,title:"Nodes"},{id:o.storage,title:"Storage"},{id:o.versions,title:"Versions"}];function a(e){return Object.values(o).includes(e)}const s=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,r.ax)(r.ZP.cluster,e?{activeTab:e}:void 0,t)}},92398:(e,t,n)=>{"use strict";n.d(t,{IA:()=>i,P_:()=>o,ZJ:()=>l,a3:()=>c,mD:()=>a,pV:()=>s});var r=n(54665);const o="storage",i="tablets",a="overview",s="structure",l=[{id:a,name:"Overview"},{id:o,name:"Storage"},{id:s,name:"Structure"},{id:i,name:"Tablets"}];function c(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:a;return(0,r.ax)(r.ZP.node,{id:e,activeTab:n},t)}},95478:(e,t,n)=>{"use strict";n.d(t,{Cc:()=>a,Sj:()=>l,XV:()=>i,c7:()=>s});var r=n(54665),o=n(24015);const i={summaryTab:"summaryTab",queryTab:"queryTab",diagnosticsTab:"diagnosticsTab",metricsTab:"metricsTab"},a=[{id:o.uw.overview,title:"Overview"},{id:o.uw.acl,title:"ACL"}],s=[{id:o.uw.schema,title:"Schema"}],l=e=>(0,r.ax)(r.ZP.tenant,void 0,e)},6523:(e,t,n)=>{"use strict";n.d(t,{$J:()=>T,Jp:()=>v,Sb:()=>C,St:()=>_,TV:()=>d,d:()=>c,dC:()=>m,dw:()=>b,fd:()=>O,lZ:()=>a,uL:()=>k,vp:()=>p,zf:()=>w});var r=n(35638);const o={[r.mR.EPathSubTypeSyncIndexImplTable]:"index_table",[r.mR.EPathSubTypeAsyncIndexImplTable]:"index_table",[r.mR.EPathSubTypeStreamImpl]:void 0,[r.mR.EPathSubTypeEmpty]:void 0},i={[r.gb.EPathTypeInvalid]:void 0,[r.gb.EPathTypeSubDomain]:"database",[r.gb.EPathTypeExtSubDomain]:"database",[r.gb.EPathTypeDir]:"directory",[r.gb.EPathTypeColumnStore]:"directory",[r.gb.EPathTypeTable]:"table",[r.gb.EPathTypeTableIndex]:"index",[r.gb.EPathTypeColumnTable]:"column_table",[r.gb.EPathTypeCdcStream]:"stream",[r.gb.EPathTypePersQueueGroup]:"topic",[r.gb.EPathTypeExternalDataSource]:"external_data_source",[r.gb.EPathTypeExternalTable]:"external_table",[r.gb.EPathTypeView]:"view",[r.gb.EPathTypeReplication]:"async_replication"},a=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.gb.EPathTypeDir,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"directory";return t&&o[t]||i[e]||n},s={[r.mR.EPathSubTypeSyncIndexImplTable]:"Secondary Index Table",[r.mR.EPathSubTypeAsyncIndexImplTable]:"Secondary Index Table",[r.mR.EPathSubTypeStreamImpl]:void 0,[r.mR.EPathSubTypeEmpty]:void 0},l={[r.gb.EPathTypeInvalid]:void 0,[r.gb.EPathTypeSubDomain]:"Database",[r.gb.EPathTypeExtSubDomain]:"Database",[r.gb.EPathTypeDir]:"Directory",[r.gb.EPathTypeTable]:"Table",[r.gb.EPathTypeTableIndex]:"Secondary Index",[r.gb.EPathTypeColumnStore]:"Tablestore",[r.gb.EPathTypeColumnTable]:"Column-oriented table",[r.gb.EPathTypeCdcStream]:"Changefeed",[r.gb.EPathTypePersQueueGroup]:"Topic",[r.gb.EPathTypeExternalDataSource]:"External Data Source",[r.gb.EPathTypeExternalTable]:"External Table",[r.gb.EPathTypeView]:"View",[r.gb.EPathTypeReplication]:"Async Replication"},c=(e,t)=>t&&s[t]||e&&l[e],u={UnknownTenantType:"Database",Domain:"Cluster Root",Dedicated:"Dedicated Database",Shared:"Shared Database",Serverless:"Serverless Database"},d=e=>e&&u[e],f={[r.gb.EPathTypeTable]:!0,[r.gb.EPathTypeColumnTable]:!0,[r.gb.EPathTypeExternalTable]:!0,[r.gb.EPathTypeView]:!0,[r.gb.EPathTypeInvalid]:!1,[r.gb.EPathTypeDir]:!1,[r.gb.EPathTypeSubDomain]:!1,[r.gb.EPathTypeTableIndex]:!1,[r.gb.EPathTypeExtSubDomain]:!1,[r.gb.EPathTypeColumnStore]:!1,[r.gb.EPathTypeCdcStream]:!1,[r.gb.EPathTypePersQueueGroup]:!1,[r.gb.EPathTypeExternalDataSource]:!1,[r.gb.EPathTypeReplication]:!1},p=e=>{var t;return null!==(t=e&&f[e])&&void 0!==t&&t},h={[r.mR.EPathSubTypeSyncIndexImplTable]:!0,[r.mR.EPathSubTypeAsyncIndexImplTable]:!0,[r.mR.EPathSubTypeStreamImpl]:!1,[r.mR.EPathSubTypeEmpty]:!1},m=e=>{var t;return null!==(t=e&&h[e])&&void 0!==t&&t},g={[r.gb.EPathTypeColumnStore]:!0,[r.gb.EPathTypeColumnTable]:!0,[r.gb.EPathTypeInvalid]:!1,[r.gb.EPathTypeDir]:!1,[r.gb.EPathTypeTable]:!1,[r.gb.EPathTypeSubDomain]:!1,[r.gb.EPathTypeTableIndex]:!1,[r.gb.EPathTypeExtSubDomain]:!1,[r.gb.EPathTypeCdcStream]:!1,[r.gb.EPathTypePersQueueGroup]:!1,[r.gb.EPathTypeExternalDataSource]:!1,[r.gb.EPathTypeExternalTable]:!1,[r.gb.EPathTypeView]:!1,[r.gb.EPathTypeReplication]:!1},v=e=>{var t;return null!==(t=e&&g[e])&&void 0!==t&&t},y={[r.gb.EPathTypeSubDomain]:!0,[r.gb.EPathTypeExtSubDomain]:!0,[r.gb.EPathTypeInvalid]:!1,[r.gb.EPathTypeDir]:!1,[r.gb.EPathTypeColumnStore]:!1,[r.gb.EPathTypeColumnTable]:!1,[r.gb.EPathTypeTable]:!1,[r.gb.EPathTypeTableIndex]:!1,[r.gb.EPathTypeCdcStream]:!1,[r.gb.EPathTypePersQueueGroup]:!1,[r.gb.EPathTypeExternalDataSource]:!1,[r.gb.EPathTypeExternalTable]:!1,[r.gb.EPathTypeView]:!1,[r.gb.EPathTypeReplication]:!1},b=e=>{var t;return null!==(t=e&&y[e])&&void 0!==t&&t},w=e=>e===r.gb.EPathTypeCdcStream,E={[r.gb.EPathTypeCdcStream]:!0,[r.gb.EPathTypePersQueueGroup]:!1,[r.gb.EPathTypeInvalid]:!1,[r.gb.EPathTypeColumnStore]:!1,[r.gb.EPathTypeColumnTable]:!1,[r.gb.EPathTypeDir]:!1,[r.gb.EPathTypeTable]:!1,[r.gb.EPathTypeSubDomain]:!1,[r.gb.EPathTypeTableIndex]:!1,[r.gb.EPathTypeExtSubDomain]:!1,[r.gb.EPathTypeExternalDataSource]:!1,[r.gb.EPathTypeExternalTable]:!1,[r.gb.EPathTypeView]:!1,[r.gb.EPathTypeReplication]:!1},_=e=>{var t;return null!==(t=e&&E[e])&&void 0!==t&&t},x={[r.mR.EPathSubTypeSyncIndexImplTable]:!0,[r.mR.EPathSubTypeAsyncIndexImplTable]:!0,[r.mR.EPathSubTypeStreamImpl]:!1,[r.mR.EPathSubTypeEmpty]:!1},S={[r.gb.EPathTypeCdcStream]:!0,[r.gb.EPathTypePersQueueGroup]:!0,[r.gb.EPathTypeExternalDataSource]:!0,[r.gb.EPathTypeExternalTable]:!0,[r.gb.EPathTypeView]:!0,[r.gb.EPathTypeReplication]:!0,[r.gb.EPathTypeInvalid]:!1,[r.gb.EPathTypeColumnStore]:!1,[r.gb.EPathTypeColumnTable]:!1,[r.gb.EPathTypeDir]:!1,[r.gb.EPathTypeTable]:!1,[r.gb.EPathTypeSubDomain]:!1,[r.gb.EPathTypeTableIndex]:!1,[r.gb.EPathTypeExtSubDomain]:!1},C=(e,t)=>{var n;return null!==(n=t&&x[t]||e&&S[e])&&void 0!==n&&n},k=(r.gb.EPathTypeCdcStream,r.gb.EPathTypePersQueueGroup,r.gb.EPathTypeInvalid,r.gb.EPathTypeColumnStore,r.gb.EPathTypeColumnTable,r.gb.EPathTypeDir,r.gb.EPathTypeTable,r.gb.EPathTypeSubDomain,r.gb.EPathTypeTableIndex,r.gb.EPathTypeExtSubDomain,r.gb.EPathTypeExternalDataSource,r.gb.EPathTypeExternalTable,r.gb.EPathTypeView,r.gb.EPathTypeReplication,e=>e===r.gb.EPathTypeExternalTable),O=e=>e===r.gb.EPathTypeTable,T=e=>e===r.gb.EPathTypeView},29796:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ASIDE_HEADER_COMPACT_KEY:()=>Be.Ac,AUTOCOMPLETE_ON_ENTER:()=>Be.XX,AUTO_REFRESH_INTERVAL:()=>Be.KU,AUTO_RELOAD_INTERVAL:()=>Be.t_,AppSlots:()=>r,AsideNavigation:()=>yi,BINARY_DATA_IN_PLAIN_TEXT_DISPLAY:()=>Be.N1,CLUSTER_DEFAULT_TITLE:()=>Be.DO,COLORS_PRIORITY:()=>Be.sl,DATA_QA_TUNE_COLUMNS_POPUP:()=>Be.KS,DAY_IN_SECONDS:()=>Be.ii,DEFAULT_CLUSTER_TAB_KEY:()=>Be.S7,DEFAULT_IS_QUERY_RESULT_COLLAPSED:()=>Be.eG,DEFAULT_IS_TENANT_COMMON_INFO_COLLAPSED:()=>Be.Mn,DEFAULT_IS_TENANT_SUMMARY_COLLAPSED:()=>Be.sO,DEFAULT_POLLING_INTERVAL:()=>Be.ME,DEFAULT_SIZE_RESULT_PANE_KEY:()=>Be.XN,DEFAULT_SIZE_TENANT_KEY:()=>Be.z4,DEFAULT_SIZE_TENANT_SUMMARY_KEY:()=>Be.wr,DEFAULT_TABLE_SETTINGS:()=>Be.LE,DEVELOPER_UI_TITLE:()=>Be.Ah,DEV_ENABLE_TRACING_FOR_ALL_REQUESTS:()=>Be.Ik,EMPTY_DATA_PLACEHOLDER:()=>Be.jX,ENABLE_AUTOCOMPLETE:()=>Be.y6,ErrorBoundary:()=>s.TI,ErrorBoundaryFallback:()=>s.l2,GIGABYTE:()=>Be.GS,HOUR_IN_SECONDS:()=>Be.RQ,INVERTED_DISKS_KEY:()=>Be.yT,IS_HOTKEYS_HELP_HIDDEN_KEY:()=>Be.RI,KILOBYTE:()=>Be.h0,LANGUAGE_KEY:()=>Be.Px,LAST_QUERY_EXECUTION_SETTINGS_KEY:()=>Be.RE,LAST_USED_QUERY_ACTION_KEY:()=>Be.w7,LOAD_AVERAGE_TIME_INTERVALS:()=>Be.x5,Lang:()=>pe.Uo,MEGABYTE:()=>Be.nQ,MINUTE_IN_SECONDS:()=>Be.sU,MS_IN_NANOSECONDS:()=>Be.yD,MultiClusterApp:()=>Zi,PARTITIONS_HIDDEN_COLUMNS_KEY:()=>Be.ZY,QUERIES_HISTORY_KEY:()=>Be.if,QUERY_EXECUTION_SETTINGS_KEY:()=>Be.Zi,QUERY_SETTINGS_BANNER_LAST_CLOSED_KEY:()=>Be.Rn,QUERY_USE_MULTI_SCHEMA_KEY:()=>Be.Rq,SAVED_QUERIES_KEY:()=>Be.DG,SECOND_IN_MS:()=>Be.NO,SHOW_DOMAIN_DATABASE_KEY:()=>Be.Zy,SingleClusterApp:()=>_i,TABLET_COLORS:()=>Be.HN,TABLET_SYMBOLS:()=>Be.tV,TENANT_DEFAULT_TITLE:()=>Be.FU,TENANT_INITIAL_PAGE_KEY:()=>Be.pf,TENANT_OVERVIEW_TABLES_LIMIT:()=>Be.fl,TENANT_OVERVIEW_TABLES_SETTINGS:()=>Be.E6,TERABYTE:()=>Be.Bp,THEME_KEY:()=>Be.bw,USE_CLUSTER_BALANCER_AS_BACKEND_KEY:()=>Be.IG,USE_PAGINATED_TABLES_KEY:()=>Be.Qy,WEEK_IN_SECONDS:()=>Be.nU,YdbEmbeddedAPI:()=>Hi.su,YdbWebVersionAPI:()=>Hi.Iy,appRoutes:()=>de.ZP,cn:()=>fe.cn,componentsRegistry:()=>bi,configureStore:()=>Yt.xC,createApi:()=>Hi.LC,getMonitoringClusterLink:()=>Si,getMonitoringLink:()=>xi,getSettingValue:()=>Wi.Cx,getTabletLabel:()=>Be.qV,getUserSettings:()=>lt,i18n:()=>pe.ag,registerKeysets:()=>pe.wZ,reportWebVitals:()=>Yi.Z,rootReducer:()=>Yt.QW,setSettingValue:()=>Wi.xI,settingsManager:()=>Vi.r,toaster:()=>Gi.m,useSetting:()=>u.yu,useTypedSelector:()=>u.ix});var r={};n.r(r),n.d(r,{ClusterSlot:()=>En,ClustersSlot:()=>wn,NodeSlot:()=>xn,PDiskPageSlot:()=>Sn,RedirectSlot:()=>Nn,RoutesSlot:()=>Tn,StorageGroupSlot:()=>kn,TabletSlot:()=>On,TenantSlot:()=>_n,VDiskPageSlot:()=>Cn});var o=n(68963),i=n(49352),a=n(87555),s=n(27710),l=n(40726),c=n(14146),u=n(17096);function d(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}"function"===typeof SuppressedError&&SuppressedError;var f=n(88776),p=n(8179),h=n(77264),m=n(2982),g=n(77796),v=n(5718);function y(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!==typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}var b=n(5687),w=n(54973),E=n(77280),_=n(10288),x=n(17176),S={button_close:"Close"},C={button_close:"\u0417\u0430\u043a\u0440\u044b\u0442\u044c"};var k=(0,w.e)({en:S,ru:C},`${v.N}Title`);y(".gn-title{align-items:center;box-sizing:border-box;display:flex;justify-content:space-between;min-height:64px;padding:14px 10px 14px 20px}.gn-title_separator{border-bottom:1px solid var(--g-color-line-generic)}.gn-title__text{margin:0 20px 0 0}");const O=(0,v.b)("title"),T=e=>{let{children:t,closeIconSize:n=23,hasSeparator:r,closeTitle:i=k("button_close"),onClose:a}=e;return o.createElement("div",{className:O({separator:r})},o.createElement(_.x,{className:O("text"),as:"h3",variant:"subheader-3"},t),a&&o.createElement(x.z,{onClick:a,view:"flat",size:"l",extraProps:{"aria-label":i}},o.createElement(f.J,{data:E.Z,size:n})))};function N(e){const t=o.useRef();return o.useEffect((()=>(t.current=e,()=>{t.current=void 0})),[e]),o.useCallback((function(){if("function"===typeof t.current)return t.current(...arguments)}),[])}function I(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function P(e){const t=I(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"").replace(/\s+/g,".*?");return R(e,"",new RegExp(t,"i"))}function R(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2?arguments[2]:void 0;const r=[],i={};let a=!1,s=!1;return o.Children.forEach(e,(e=>{var l,c;if(o.isValidElement(e))if(e.type===o.Fragment){const{menu:o,pages:a}=R(e.props.children,t,n);r.push(...o),Object.assign(i,a)}else if(e.props.groupTitle){0;const o=`${t}/${null!==(l=e.props.id)&&void 0!==l?l:e.props.groupTitle}`;a=!0;const{menu:s,pages:c}=R(e.props.children,o,n);0,r.push({groupTitle:e.props.groupTitle,items:s}),Object.assign(i,c)}else{s=!0;const o=`${t}/${null!==(c=e.props.id)&&void 0!==c?c:e.props.title}`;0,i[o]=D(e.props.children,n),i[o].id=o,r.push({id:o,title:e.props.title,icon:e.props.icon,withBadge:i[o].withBadge,disabled:i[o].hidden})}})),{menu:r,pages:i}}function D(e,t){const n={id:"",sections:[],hidden:!0};return o.Children.forEach(e,(e=>{if(o.isValidElement(e))if(e.type===o.Fragment){const{sections:r,withBadge:o,hidden:i}=D(e.props.children,t);n.sections.push(...r),n.withBadge=o||n.withBadge,n.hidden=i&&n.hidden}else{const{withBadge:r,showTitle:o=!0}=e.props,{items:i,hidden:a}=A(e.props.children,t);n.withBadge=r||n.withBadge,n.hidden=a&&n.hidden,n.sections.push(Object.assign(Object.assign({},e.props),{withBadge:r,items:i,hidden:a,showTitle:o}))}})),n}function A(e,t){let n=!0;const r=[];return o.Children.forEach(e,(e=>{if(o.isValidElement(e))if(e.type===o.Fragment){const o=A(e.props.children,t);r.push(...o.items),n=n&&o.hidden}else{const o=Object.assign(Object.assign({},e.props),{element:e,hidden:!t.test(e.props.title)});r.push(o),n=n&&o.hidden}})),{items:r,hidden:n}}T.displayName="Title";const j=o.createContext({});function M(e,t){const n=o.useRef(null);return o.useMemo((()=>t?Object.assign({selectedRef:n},function(e,t){if(!t.settingId&&!t.section&&!t.page)return{};for(const n of Object.values(e)){if(!t.settingId&&!t.section){if(t.page!==n.id)continue;return{page:n}}for(const e of n.sections)if(t.settingId){for(const r of e.items)if(r.id===t.settingId)return{page:n,section:e,setting:r}}else if(t.section&&("id"in t.section?t.section.id===e.id:t.section.title===e.title))return{page:n,section:e}}return{}}(e,t)):{selectedRef:n}),[e,t])}j.displayName="SettingsSelectionContext";const L=j.Provider;var z=function(e){return e};y('.gn-settings-menu__group-heading{display:inline-block;font-weight:var(--g-text-accent-font-weight);line-height:18px;margin-bottom:12px;padding:0 20px}.gn-settings-menu__group+.gn-settings-menu__group{margin-top:24px}.gn-settings-menu__item{align-items:center;color:var(--g-color-text-primary);cursor:pointer;display:flex;height:40px;padding:0 20px}.gn-settings-menu__item-icon{color:var(--g-color-text-misc);margin-right:5px}.gn-settings-menu__item:hover,.gn-settings-menu__item_focused{background:var(--g-color-base-simple-hover)}.gn-settings-menu__item_selected{background:var(--g-color-base-selection)}.gn-settings-menu__item_selected.gn-settings-menu__item_focused,.gn-settings-menu__item_selected:hover{background:var(--g-color-base-selection-hover)}.gn-settings-menu__item_disabled{color:var(--g-color-text-secondary);cursor:auto}.gn-settings-menu__item_disabled:hover{background:none}.gn-settings-menu__item_disabled .gn-settings-menu__item-icon{color:var(--g-color-base-misc-heavy)}.gn-settings-menu__item_badge{position:relative}.gn-settings-menu__item_badge:after{background-color:var(--g-color-text-danger);border-radius:50%;content:"";display:block;height:6px;position:absolute;right:9px;top:calc(50% - 3px);width:6px}');const F=(0,v.b)("settings-menu"),B=o.forwardRef((function(e,t){let{items:n,onChange:r,activeItemId:i}=e;const[a,s]=o.useState(),l=o.useRef(null),c=N(r),u=function(e){const t=o.useRef(e);return t.current=e,o.useCallback((()=>t.current),[])}(a);return o.useImperativeHandle(t,(()=>({handleKeyDown(e){if(!l.current)return!1;const t=u();return t&&"Enter"===e.key?(c(t),!0):"ArrowDown"===e.key?(s(q(l.current,t,1)),!0):"ArrowUp"===e.key&&(s(q(l.current,t,-1)),!0)},clearFocus(){s(void 0)}})),[u,c]),o.createElement("div",{ref:l,className:F()},n.map((e=>"groupTitle"in e?o.createElement("div",{key:e.groupTitle,className:F("group")},o.createElement("span",{className:F("group-heading")},e.groupTitle),e.items.map((e=>U(e,r,i,a)))):U(e,r,i,a))))}));function U(e,t,n,r){return o.createElement("span",{key:e.title,className:F("item",{selected:n===e.id,disabled:e.disabled,focused:r===e.id,badge:e.withBadge}),onClick:()=>{e.disabled||t(e.id)},"data-id":e.id},e.icon?o.createElement(f.J,Object.assign({size:16},e.icon,{className:F("item-icon")})):void 0,o.createElement("span",null,e.title))}function q(e,t,n){var r;const o=e.querySelectorAll(`.${F("item")}:not(.${F("item")}_disabled)`);if(0===o.length)return;let i=n>0?-1:0;return t&&(i=Array.prototype.findIndex.call(o,(e=>e.getAttribute("data-id")===t))),i=(o.length+i+n)%o.length,null!==(r=o[i].getAttribute("data-id"))&&void 0!==r?r:void 0}y('.gn-settings-menu-mobile.g-tabs_direction_horizontal{-ms-overflow-style:none;flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:none;scrollbar-width:none}.gn-settings-menu-mobile.g-tabs_direction_horizontal::-webkit-scrollbar{display:none}.gn-settings-menu-mobile__item_badge{position:relative}.gn-settings-menu-mobile__item_badge:after{background-color:var(--g-color-text-danger);border-radius:50%;content:"";display:block;height:6px;position:absolute;right:-8px;top:11px;width:6px}');const $=(0,v.b)("settings-menu-mobile"),Z=e=>{let{items:t,onChange:n,activeItemId:r,className:i}=e;const a=o.useRef(null),s=o.useMemo((()=>{const e=[];return t.forEach((t=>{if("groupTitle"in t)e.push(...t.items.map((e=>{let{id:t,title:n,disabled:r,withBadge:o}=e;return{id:t,title:n,disabled:r,className:$("item",{badge:o})}})));else{const{id:n,title:r,disabled:o,withBadge:i}=t;e.push({id:n,title:r,disabled:o,className:$("item",{badge:i})})}})),e}),[t]);return o.createElement("div",{ref:a,onTouchMove:e=>{e.stopPropagation()}},o.createElement(p.m,{items:s,className:$(null,i),size:"l",activeTab:r,onSelectTab:n}))};var H={label_title:"Settings","label_filter-placeholder":"Search settings","label_empty-placeholder":"No results found",label_search:"Search"},V={label_title:"\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438","label_filter-placeholder":"\u041d\u0430\u0439\u0442\u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438","label_empty-placeholder":"\u041d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u043d\u0430\u0439\u0434\u0435\u043d\u043e",label_search:"\u041f\u043e\u0438\u0441\u043a"};var W=(0,w.e)({en:H,ru:V},`${v.N}Settings`);const G=(0,v.b)("settings-search");function Y(e){let{className:t,initialValue:n,onChange:r,debounce:i=200,inputRef:a,inputSize:s,placeholder:l,autoFocus:c=!0}=e;const[u,d]=o.useState(null!==n&&void 0!==n?n:""),f=N((0,b.d)(r,i)),p=N((e=>{d(e),f(e)}));return o.createElement("div",{className:G(null,t)},o.createElement(h.o,{value:u,controlRef:a,hasClear:!0,autoFocus:c,size:s,placeholder:l,onUpdate:p,controlProps:{"aria-label":W("label_search")}}))}y('.gn-settings{display:grid;grid-template-columns:216px 1fr;height:100%;width:834px}.gn-settings_view_mobile{display:block;height:calc(80vh - 56px);overflow-x:hidden;width:auto}@supports (height:90dvh){.gn-settings_view_mobile{height:calc(90dvh - 56px)}}.gn-settings_view_mobile.gn-settings_loading{text-align:center}.gn-settings_view_mobile .gn-settings__loader{margin-top:20px}.gn-settings_view_mobile .gn-settings__search{margin:4px 0 16px;padding:0 20px}.gn-settings_view_mobile .gn-settings__page{overflow-y:visible}.gn-settings_view_mobile .gn-settings__tabs .g-tabs__item:first-child{margin-left:20px}.gn-settings_view_mobile .gn-settings__tabs .g-tabs__item:last-child{margin-right:20px}.gn-settings_view_mobile .gn-settings__section-heading{font-size:var(--g-text-subheader-3-font-size);font-weight:var(--g-text-subheader-font-weight);line-height:var(--g-text-subheader-3-line-height)}.gn-settings_view_mobile .gn-settings__section-subheader{color:var(--g-color-text-secondary)}.gn-settings_view_mobile .gn-settings__section-heading+.gn-settings-subheader{margin-top:8px}.gn-settings_view_mobile .gn-settings__section-item{margin-top:0}.gn-settings_view_mobile .gn-settings__section-heading+.gn-settings__section-item,.gn-settings_view_mobile .gn-settings__section-subheader+.gn-settings__section-item{margin-top:30px}.gn-settings_view_mobile .gn-settings__section-item+.gn-settings__section-item{margin-top:22px}.gn-settings_view_mobile .gn-settings__item:not(.gn-settings_view_mobile .gn-settings__item_mode_row){gap:8px;grid-template-columns:1fr}.gn-settings_view_mobile .gn-settings__item-heading{font-size:var(--g-text-body-2-font-size);font-weight:var(--g-text-body-font-weight);line-height:var(--g-text-body-2-line-height)}.gn-settings_view_mobile .gn-settings__item-description{font-size:var(--g-text-body-1-font-size);font-weight:var(--g-text-body-font-weight);line-height:var(--g-text-body-1-line-height)}.gn-settings_view_mobile .gn-settings__item_mode_row{grid-template-columns:1fr auto}.gn-settings_view_mobile .gn-settings__item_mode_row .gn-settings__item-heading{padding-right:20px}.gn-settings_view_mobile .gn-settings__item-content{width:100%}.gn-settings_view_mobile .gn-settings__not-found{color:var(--g-color-text-hint);font-size:var(--g-text-body-2-font-size);font-weight:var(--g-text-body-font-weight);justify-items:start;line-height:var(--g-text-body-2-line-height);margin:20px 0 0 20px}.gn-settings_loading{grid-template-columns:auto}.gn-settings__loader{place-self:center}.gn-settings__not-found{display:grid;height:100%;place-items:center}.gn-settings__menu{border-right:1px solid var(--g-color-line-generic)}.gn-settings__heading{font-size:var(--g-text-subheader-2-font-size);font-weight:var(--g-text-subheader-font-weight);line-height:var(--g-text-subheader-2-line-height);margin:20px 20px 0}.gn-settings__search{margin:0 20px 16px}.gn-settings__page{overflow-y:auto}.gn-settings__content{padding:20px}.gn-settings__section-right-adornment_hidden{opacity:0;transition:opacity .2s}.gn-settings__section-heading:hover .gn-settings__section-right-adornment_hidden{opacity:1}.gn-settings__section-heading{font-size:var(--g-text-subheader-2-font-size);font-weight:var(--g-text-subheader-font-weight);line-height:var(--g-text-subheader-2-line-height);margin:0}.gn-settings__section-item{margin-top:24px}.gn-settings__section+.gn-settings__section{margin-top:32px}.gn-settings__item{display:grid;grid-template-columns:216px 1fr;justify-items:start}.gn-settings__item_align_top{align-items:start}.gn-settings__item_align_center{align-items:center}.gn-settings__item-title_badge{position:relative}.gn-settings__item-title_badge:after{background-color:var(--g-color-text-danger);border-radius:50%;content:"";display:block;height:6px;position:absolute;right:-8px;top:1px;width:6px}.gn-settings__item-description{color:var(--g-color-text-secondary);display:block;font-size:var(--g-text-caption-2-font-size);font-weight:var(--g-text-caption-font-weight);line-height:var(--g-text-caption-2-line-height);margin-top:2px;padding-right:20px}.gn-settings__item-right-adornment_hidden{opacity:0;transition:opacity .2s}.gn-settings__item:hover .gn-settings__item-right-adornment_hidden{opacity:1}.gn-settings__item_selected,.gn-settings__section_selected{background:var(--g-color-base-selection);border-radius:8px;margin-left:-8px;padding:8px}.gn-settings__found{background:var(--g-color-base-selection);font-weight:var(--g-text-accent-font-weight)}');const K=(0,v.b)("settings"),Q=o.createContext({}),J=()=>o.useContext(Q);function X(e){var{loading:t,renderLoading:n,children:r,view:i="normal",renderRightAdornment:a,renderSectionRightAdornment:s,showRightAdornmentOnHover:l=!0}=e,c=d(e,["loading","renderLoading","children","view","renderRightAdornment","renderSectionRightAdornment","showRightAdornmentOnHover"]);return t?o.createElement("div",{className:K({loading:!0,view:i})},"function"===typeof n?n():o.createElement(m.a,{className:K("loader"),size:"m"})):o.createElement(Q.Provider,{value:{renderRightAdornment:a,renderSectionRightAdornment:s,showRightAdornmentOnHover:l}},o.createElement(te,Object.assign({view:i},c),r))}const ee=(e,t)=>{for(const n of e)if("groupTitle"in n){for(const e of n.items)if(e.id===t)return e.title}else if(n.id===t)return n.title;return""};function te(e){let{initialPage:t,initialSearch:n,selection:r,children:i,renderNotFound:a,title:s=W("label_title"),filterPlaceholder:l=W("label_filter-placeholder"),emptyPlaceholder:c=W("label_empty-placeholder"),view:u,onPageChange:d,onClose:f}=e;var p,h;const{renderSectionRightAdornment:m,showRightAdornmentOnHover:v}=J(),[y,b]=o.useState(null!==n&&void 0!==n?n:""),{menu:w,pages:E}=P(i,y),_=M(E,r),x=Object.keys(E),S=_.page&&x.includes(_.page.id)?_.page.id:void 0,[C,k]=o.useState(S||(t&&x.includes(t)?t:void 0)),O=o.useRef(null),N=o.useRef(null),I="mobile"===u;o.useEffect((()=>{var e;null===(e=N.current)||void 0===e||e.clearFocus()}),[y]),o.useEffect((()=>{const e=()=>{var e;null===(e=N.current)||void 0===e||e.clearFocus()};return window.addEventListener("click",e),()=>{window.removeEventListener("click",e)}}),[]);let R=C;R&&!(null===(p=E[R])||void 0===p?void 0:p.hidden)||(R=null===(h=Object.values(E).find((e=>{let{hidden:t}=e;return!t})))||void 0===h?void 0:h.id);const D=e=>{k((t=>(t!==e&&(null===d||void 0===d||d(e)),e)))};o.useEffect((()=>{R!==C&&D(R)})),o.useEffect((()=>{S&&k(S)}),[S]),o.useEffect((()=>{var e;(null===(e=_.selectedRef)||void 0===e?void 0:e.current)&&_.selectedRef.current.scrollIntoView()}),[_.selectedRef]);const A=(e,t)=>{const n=function(e,t,n){var r;return!(!e.section||e.setting)&&(!(!e.section.id||e.section.id!==n.id)||!((null===(r=e.page)||void 0===r?void 0:r.id)!==t||!e.section.title||e.section.title!==n.title))}(_,e,t);return o.createElement("div",{key:t.title,className:K("section",{selected:n}),ref:n?_.selectedRef:void 0},t.showTitle&&o.createElement("h3",{className:K("section-heading")},m?o.createElement(g.k,{gap:2,alignItems:"center"},t.title,o.createElement("div",{className:K("section-right-adornment",{hidden:v})},m(t))):t.title),t.header&&(I?o.createElement("div",{className:K("section-subheader")},t.header):t.header),t.items.map((e=>e.hidden?null:(e=>{let{title:t,element:n}=e;return o.createElement("div",{key:t,className:K("section-item")},o.cloneElement(n,Object.assign(Object.assign({},n.props),{highlightedTitle:y&&t?ne(t,y):t})))})(e))))};return o.createElement(L,{value:_},o.createElement("div",{className:K({view:u})},I?o.createElement(o.Fragment,null,o.createElement(Y,{inputRef:O,className:K("search"),initialValue:n,onChange:b,autoFocus:!1,inputSize:"xl"}),o.createElement(Z,{items:w,onChange:D,activeItemId:R,className:K("tabs")})):o.createElement("div",{className:K("menu"),onClick:()=>{O.current&&O.current.focus()},onKeyDown:e=>{N.current&&N.current.handleKeyDown(e)&&e.preventDefault()}},o.createElement(T,null,s),o.createElement(Y,{inputRef:O,className:K("search"),initialValue:n,onChange:b,placeholder:l,autoFocus:!0}),o.createElement(B,{ref:N,items:w,onChange:D,activeItemId:R})),o.createElement("div",{className:K("page")},(e=>{if(!e)return"function"===typeof a?a():o.createElement("div",{className:K("not-found")},c);const t=E[e].sections.filter((e=>!e.hidden));return o.createElement(o.Fragment,null,!I&&o.createElement(T,{hasSeparator:!0,onClose:f},ee(w,e)),o.createElement("div",{className:K("content")},t.map((t=>A(e,t)))))})(R))))}function ne(e,t){let n=e.slice(0);const r=[],i=I(t).split(" ").filter(Boolean);let a=0;for(const s of i){const e=new RegExp(s,"ig").exec(n);if(e){const t=e[0],i=e.index;i>0&&r.push(n.slice(0,i)),r.push(o.createElement("strong",{key:a++,className:K("found")},t)),n=n.slice(i+t.length)}}return n&&r.push(n),r}X.Group=function(e){let{children:t}=e;return o.createElement(o.Fragment,null,t)},X.Page=function(e){let{children:t}=e;return o.createElement(o.Fragment,null,t)},X.Section=function(e){let{children:t}=e;return o.createElement(o.Fragment,null,t)},X.Item=function(e){const{id:t,labelId:n,highlightedTitle:r,children:i,align:a="center",withBadge:s,renderTitleComponent:l=z,mode:c,description:u}=e,d=o.useContext(j),f=d.setting&&d.setting.id===t,{renderRightAdornment:p,showRightAdornmentOnHover:h}=J(),m=o.createElement("span",{className:K("item-title",{badge:s})},l(r));return o.createElement("div",{className:K("item",{align:a,mode:c,selected:f}),ref:f?d.selectedRef:void 0},o.createElement("label",{className:K("item-heading"),id:n},p?o.createElement(g.k,{className:K("item-title-wrapper"),gap:3},m,o.createElement("div",{className:K("item-right-adornment",{hidden:h})},p(e))):m,u?o.createElement("span",{className:K("item-description")},u):null),o.createElement("div",{className:K("item-content")},i))};var re=n(68291),oe=n(79734),ie=n(75859);const ae=e=>{let{type:t="switch",settingKey:n,options:r,defaultValue:o,onValueUpdate:i}=e;const[a,s]=(0,u.yu)(n,o),l=e=>{s(e),null===i||void 0===i||i()};switch(t){case"switch":return(0,ie.jsx)(re.r,{checked:Boolean(a),onUpdate:l});case"radio":return r?(0,ie.jsx)(oe.E,{value:String(a),onUpdate:l,children:r.map((e=>{let{value:t,content:n}=e;return(0,ie.jsx)(oe.E.Option,{value:t,children:n},t)}))}):null;default:return null}},se=e=>{let{settings:t}=e;return(0,ie.jsx)(X,{children:t.map((e=>{const{id:t,title:n,icon:r,sections:o=[]}=e;return(0,ie.jsx)(X.Page,{id:t,title:n,icon:r,children:o.map((e=>{const{title:n,settings:r=[]}=e;return(0,ie.jsx)(X.Section,{title:n,children:r.map((e=>"info"===e.type?(0,ie.jsx)(X.Item,{...e,children:e.content},e.title):(0,ie.jsx)(X.Item,{...e,children:(0,ie.jsx)(ae,{...e})},e.title)))},t)}))},t)}))})},le=e=>o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),o.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M14.78 7.47a.75.75 0 0 1 0 1.06l-2.5 2.5a.75.75 0 1 1-1.06-1.06l1.22-1.22H4.75a.75.75 0 0 1 0-1.5h7.69l-1.22-1.22a.75.75 0 0 1 1.06-1.06l2.5 2.5ZM9.5 4.25a.75.75 0 0 1-1.5 0V4a1.5 1.5 0 0 0-1.5-1.5H4A1.5 1.5 0 0 0 2.5 4v8A1.5 1.5 0 0 0 4 13.5h2.5A1.5 1.5 0 0 0 8 12v-.25a.75.75 0 0 1 1.5 0V12a3 3 0 0 1-3 3H4a3 3 0 0 1-3-3V4a3 3 0 0 1 3-3h2.5a3 3 0 0 1 3 3v.25Z",clipRule:"evenodd"})),ce=e=>o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),o.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M11.78 7.47a.75.75 0 0 1 0 1.06l-2.5 2.5a.75.75 0 1 1-1.06-1.06l1.22-1.22H1.75a.75.75 0 0 1 0-1.5h7.69L8.22 6.03a.75.75 0 0 1 1.06-1.06l2.5 2.5ZM4 11.75a.75.75 0 0 1 1.5 0V12A1.5 1.5 0 0 0 7 13.5h5a1.5 1.5 0 0 0 1.5-1.5V4A1.5 1.5 0 0 0 12 2.5H7A1.5 1.5 0 0 0 5.5 4v.25a.75.75 0 0 1-1.5 0V4a3 3 0 0 1 3-3h5a3 3 0 0 1 3 3v8a3 3 0 0 1-3 3H7a3 3 0 0 1-3-3v-.25Z",clipRule:"evenodd"}));var ue=n(86974),de=n(54665),fe=n(24362),pe=n(30817);const he=JSON.parse('{"navigation-item.documentation":"Documentation","navigation-item.settings":"Settings","navigation-item.account":"Account","account.user":"YDB User","account.login":"Login","account.logout":"Logout"}'),me=(0,pe.wZ)("ydb-aside-navigation",{en:he}),ge=(0,fe.cn)("kv-ydb-internal-user");function ve(e){let{login:t}=e;const[n]=c.nc.useLogoutMutation(),r=(0,ue.k6)();return(0,ie.jsxs)("div",{className:ge(),children:[(0,ie.jsxs)("div",{className:ge("user-info-wrapper"),children:[(0,ie.jsx)("div",{className:ge("ydb-internal-user-title"),children:me("account.user")}),t&&(0,ie.jsx)("div",{className:ge("username"),children:t})]}),t?(0,ie.jsx)(x.z,{view:"flat-secondary",title:me("account.logout"),onClick:()=>{n(void 0)},children:(0,ie.jsx)(f.J,{data:le})}):(0,ie.jsx)(x.z,{view:"flat-secondary",title:me("account.login"),onClick:()=>{r.push((0,de.ax)(de.ZP.auth,void 0,{returnUrl:encodeURIComponent(location.href)}))},children:(0,ie.jsx)(f.J,{data:ce})})]})}function ye(e){let{children:t,userSettings:n}=e;const r=(0,l.C)("AsideNavigation"),o=(0,u.ix)(c.dy);return(0,ie.jsx)(r,{settings:(0,ie.jsx)(se,{settings:n}),ydbInternalUser:(0,ie.jsx)(ve,{login:o}),user:o?{login:o}:void 0,content:t})}const be={top:0,right:0,bottom:0,left:0};var we=n(44920),Ee=n(3027),_e=n(83326),xe=n.n(_e),Se=n(27506);const Ce=(0,fe.cn)("node-tootltip"),ke=e=>{const{data:t}=e;return t&&(0,ie.jsx)("div",{className:Ce(),children:(0,ie.jsx)("table",{children:(0,ie.jsxs)("tbody",{children:[(0,ie.jsxs)("tr",{children:[(0,ie.jsx)("td",{className:Ce("label"),children:"ID"}),(0,ie.jsx)("td",{className:Ce("value"),children:t.nodeId||"?"})]}),(0,ie.jsxs)("tr",{children:[(0,ie.jsx)("td",{className:Ce("label"),children:"Rack"}),(0,ie.jsx)("td",{className:Ce("value"),children:t.rack||"?"})]}),t.connected&&t.capacity?(0,ie.jsxs)("tr",{children:[(0,ie.jsx)("td",{className:Ce("label"),children:"Net"}),(0,ie.jsx)("td",{className:Ce("value"),children:`${t.connected} / ${t.capacity}`})]}):null]})})})},Oe=(0,fe.cn)("tabletsOverall-tooltip"),Te=e=>{const{data:t}=e;return t&&(0,ie.jsx)("div",{className:Oe(),children:(0,ie.jsx)("table",{children:(0,ie.jsx)("tbody",{children:t.map(((e,t)=>(0,ie.jsxs)("tr",{children:[(0,ie.jsxs)("td",{className:Oe("label"),children:[e.color,":"]}),(0,ie.jsx)("td",{className:Oe("value"),children:`${e.value}/${e.total} (${e.percents.toFixed(2)}%)`})]},t)))})})})},Ne=(0,fe.cn)("histogram-tooltip"),Ie=e=>{const{data:t}=e;return t&&(0,ie.jsx)("div",{className:Ne(),children:(0,ie.jsx)("table",{children:(0,ie.jsxs)("tbody",{children:[(0,ie.jsxs)("tr",{children:[(0,ie.jsx)("td",{className:Ne("label"),children:"Count"}),(0,ie.jsx)("td",{className:Ne("value"),children:t.count||"?"})]}),(0,ie.jsxs)("tr",{children:[(0,ie.jsx)("td",{className:Ne("label"),children:"From"}),(0,ie.jsx)("td",{className:Ne("value"),children:t.leftBound||"?"})]}),(0,ie.jsxs)("tr",{children:[(0,ie.jsx)("td",{className:Ne("label"),children:"To"}),(0,ie.jsx)("td",{className:Ne("value"),children:t.rightBound||"?"})]})]})})})},Pe=(0,fe.cn)("cell-tooltip"),Re=(0,fe.cn)("json-tooltip"),De={pool:e=>(0,ie.jsx)(Se.A8,{data:e}),tablet:e=>(0,ie.jsx)(Se.Fb,{data:e}),node:e=>(0,ie.jsx)(ke,{data:e}),nodeEndpoints:e=>(0,ie.jsx)(Se.bP,{data:e}),tabletsOverall:e=>(0,ie.jsx)(Te,{data:e}),histogram:e=>(0,ie.jsx)(Ie,{data:e}),cell:e=>(0,ie.jsx)("div",{className:Pe(),children:e}),json:e=>(0,ie.jsx)("div",{className:Re(),children:(0,ie.jsx)(xe(),{data:e,search:!1,isExpanded:()=>!0,className:Re("inspector")})})};const Ae=(0,a.$j)((e=>{const{toolTipVisible:t,currentHoveredRef:n,data:r,templateType:o,additionalData:i,positions:a}=e.tooltip,{popupClassName:s}=i||{};return{toolTipVisible:t,currentHoveredRef:n,data:r,template:De[o],additionalData:i,positions:a,popupClassName:s}}),{hideTooltip:Ee.i8})((function(e){var t,n;const r=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{rect:t,contextElement:n}=e,r=o.useRef(be),i=o.useRef({contextElement:n,getBoundingClientRect(){const{top:e,right:t,bottom:n,left:o}=r.current;return{top:e,right:t,bottom:n,left:o,width:t-o,height:n-e}}});if(i.current.contextElement=n,t){const{top:e=0,left:n=0,right:o=n,bottom:i=e}=t;r.current={top:e,right:o,bottom:i,left:n}}else r.current=be;return i}({rect:{top:null===(t=e.positions)||void 0===t?void 0:t.top,left:null===(n=e.positions)||void 0===n?void 0:n.left}}),i=o.useCallback((()=>{const{hideTooltip:t,toolTipVisible:n}=e;n&&setTimeout((()=>t()),500)}),[e]);o.useEffect((()=>(window.addEventListener("scroll",i,!0),()=>{window.removeEventListener("scroll",i)})),[i]);const{className:a="",toolTipVisible:s,currentHoveredRef:l,data:c,additionalData:u,positions:d}=e;return(0,ie.jsx)("div",{className:`redux-tooltip ${a}`,children:d?((t,n,i,a)=>{const{template:s,popupClassName:l,hideTooltip:c}=e;return(0,ie.jsx)(o.Fragment,{children:(0,ie.jsx)(we.G,{open:t,placement:["top","bottom","left","right"],contentClassName:l,anchorRef:r,onOutsideClick:c,children:i&&s(i,a)})})})(s,0,c,u):((t,n,r,o)=>{const{template:i,popupClassName:a,hideTooltip:s}=e;return(0,ie.jsx)(we.G,{open:t,anchorRef:{current:n},hasArrow:!0,placement:["top","bottom","left","right"],className:a,onOutsideClick:s,children:r&&i(r,o)})})(s,l,c,u)})})),je=e=>o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),o.createElement("path",{fill:"currentColor",d:"M6.886.773C7.29-.231 8.71-.231 9.114.773l1.472 3.667 3.943.268c1.08.073 1.518 1.424.688 2.118L12.185 9.36l.964 3.832c.264 1.05-.886 1.884-1.802 1.31L8 12.4l-3.347 2.101c-.916.575-2.066-.26-1.802-1.309l.964-3.832L.783 6.826c-.83-.694-.391-2.045.688-2.118l3.943-.268L6.886.773Z"})),Me=e=>o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),o.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M11.494 13.2c.837-.482 1.006-.946 1.006-1.2 0-.35-.105-.692-.303-.981L9.072 6.435a1.854 1.854 0 0 1-.322-1.044V2.909C8.518 2.968 8.265 3 8 3s-.518-.032-.75-.09v2.48c0 .373-.112.737-.322 1.045L3.803 11.02c-.198.289-.303.63-.303.981 0 .254.169.718 1.006 1.2.813.468 2.043.8 3.494.8s2.68-.332 3.494-.8ZM8 .5c2 0 2.25 1 2.25 1.5v3.39c0 .072.021.141.062.2l3.125 4.584c.367.538.563 1.175.563 1.826 0 2-2.686 3.5-6 3.5S2 14 2 12c0-.652.196-1.288.563-1.826L5.69 5.59a.354.354 0 0 0 .061-.2V2C5.75 1.5 6 .5 8 .5Zm.084 7.626a.75.75 0 0 1 1.04.208l1.5 2.25a.75.75 0 1 1-1.248.832l-1.5-2.25a.75.75 0 0 1 .208-1.04Z",clipRule:"evenodd"})),Le=e=>o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),o.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M6.169 6.331a3 3 0 0 0-.833 1.6l-.338 1.912a1 1 0 0 0 1.159 1.159l1.912-.338a3 3 0 0 0 1.6-.833l3.07-3.07 2-2A.894.894 0 0 0 15 4.13 3.13 3.13 0 0 0 11.87 1a.894.894 0 0 0-.632.262l-2 2-3.07 3.07Zm3.936-1.814L7.229 7.392a1.5 1.5 0 0 0-.416.8L6.6 9.4l1.208-.213.057-.01a1.5 1.5 0 0 0 .743-.406l2.875-2.876a1.63 1.63 0 0 0-1.378-1.378Zm2.558.199a3.143 3.143 0 0 0-1.379-1.38l.82-.82a1.63 1.63 0 0 1 1.38 1.38l-.82.82ZM8 2.25a.75.75 0 0 0-.75-.75H4.5a3 3 0 0 0-3 3v7a3 3 0 0 0 3 3h7a3 3 0 0 0 3-3V8.75a.75.75 0 0 0-1.5 0v2.75a1.5 1.5 0 0 1-1.5 1.5h-7A1.5 1.5 0 0 1 3 11.5v-7A1.5 1.5 0 0 1 4.5 3h2.75A.75.75 0 0 0 8 2.25Z",clipRule:"evenodd"}));var ze=n(68010),Fe=n(89900),Be=n(52317);const Ue=JSON.parse('{"page.general":"General","section.appearance":"Appearance","page.experiments":"Experiments","section.experiments":"Experiments","page.editor":"Editor","section.dev-setting":"Development settings","page.about":"About","section.about":"About","settings.editor.autocomplete.title":"Enable autocomplete","settings.editor.autocomplete.description":"You\u2019re always able to get suggestions by pressing Ctrl+Space.","settings.editor.autocomplete-on-enter.title":"Accept suggestion on Enter","settings.editor.autocomplete-on-enter.description":"Controls whether suggestions should be accepted on Enter, in addition to Tab. Helps to avoid ambiguity between inserting new lines or accepting suggestions.","settings.theme.title":"Interface theme","settings.theme.option-dark":"Dark","settings.theme.option-light":"Light","settings.theme.option-system":"System","settings.language.title":"Interface language","settings.language.option-russian":"Russian","settings.language.option-english":"English","settings.binaryDataInPlainTextDisplay.title":"Display binary data in plain text","settings.invertedDisks.title":"Inverted disks space indicators","settings.usePaginatedTables.title":"Use paginated tables","settings.usePaginatedTables.description":" Use table with data load on scroll for Nodes and Storage tabs. It will increase performance, but could work unstable","settings.showDomainDatabase.title":"Show domain database","settings.queryUseMultiSchema.title":"Allow queries with multiple result sets","settings.queryUseMultiSchema.description":"Use \'multi\' schema for queries. It enables queries with multiple result sets. It returns nothing on versions 23-3 and older","settings.useClusterBalancerAsBackend.title":"Use cluster balancer as backend","settings.useClusterBalancerAsBackend.description":"By default random cluster node is used as backend. It causes saved links to become invalid after some time, when node is restarted. Using balancer as backend fixes it","settings.about.interfaceVersionInfoField.title":"Interface version"}'),qe=(0,pe.wZ)("ydb-user-settings",{en:Ue}),$e=[{value:"system",content:qe("settings.theme.option-system")},{value:"light",content:qe("settings.theme.option-light")},{value:"dark",content:qe("settings.theme.option-dark")}],Ze={settingKey:Be.bw,title:qe("settings.theme.title"),type:"radio",options:$e},He=(pe.Uo.Ru,qe("settings.language.option-russian"),pe.Uo.En,qe("settings.language.option-english"),Be.Px,qe("settings.language.title"),pe.Fp,{settingKey:Be.N1,title:qe("settings.binaryDataInPlainTextDisplay.title")}),Ve={settingKey:Be.yT,title:qe("settings.invertedDisks.title")},We={settingKey:Be.Qy,title:qe("settings.usePaginatedTables.title"),description:qe("settings.usePaginatedTables.description")},Ge={settingKey:Be.Zy,title:qe("settings.showDomainDatabase.title")},Ye={settingKey:Be.Rq,title:qe("settings.queryUseMultiSchema.title"),description:qe("settings.queryUseMultiSchema.description")},Ke={settingKey:Be.IG,title:qe("settings.useClusterBalancerAsBackend.title"),description:qe("settings.useClusterBalancerAsBackend.description")},Qe={settingKey:Be.y6,title:qe("settings.editor.autocomplete.title"),description:qe("settings.editor.autocomplete.description")},Je={settingKey:Be.XX,title:qe("settings.editor.autocomplete-on-enter.title"),description:qe("settings.editor.autocomplete-on-enter.description")},Xe={title:qe("settings.about.interfaceVersionInfoField.title"),type:"info",content:"6.22.0"},et={id:"appearanceSection",title:qe("section.appearance"),settings:[Ze,Ve,He,Ge]},tt={id:"experimentsSection",title:qe("section.experiments"),settings:[We,Ye]},nt={id:"devSettingsSection",title:qe("section.dev-setting"),settings:[Qe,Je]},rt={id:"aboutSettingsSection",title:qe("section.about"),settings:[Xe]},ot={id:"generalPage",title:qe("page.general"),icon:{data:je,height:14,width:14},sections:[et]},it={id:"experimentsPage",title:qe("page.experiments"),icon:{data:Me},sections:[tt]},at={id:"editorPage",title:qe("page.editor"),icon:{data:Le},sections:[nt]},st={id:"aboutPage",title:qe("page.about"),icon:{data:ze.Z},sections:[rt]};function lt(e){let{singleClusterMode:t}=e;const n=t?it:(0,Fe.Uy)(it,(e=>{e.sections[0].settings.push(Ke)}));return[ot,at,n,st]}var ct=n(1440),ut=n(96409);function dt(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"unknown";const t=()=>null;return t.displayName=`Slot(${e})`,t.__slotName=e,t}function ft(e){return"function"===typeof e&&"__slotName"in e}class pt{constructor(e){this.children=null,this.slots=void 0;const t=[];this.slots=new Map,o.Children.forEach(e,(e=>{if(n=e,o.isValidElement(n)&&ft(n.type)){const{type:t,props:n,ref:r}=e;if(this.slots.has(t))throw new Error(`Duplicate slot elements with name "${t.__slotName}" found.`);this.slots.set(t,{name:t.__slotName,props:n,ref:r,rendered:n.children})}else null!==e&&void 0!==e&&""!==e&&t.push(e);var n}));t.length>0&&(this.children=t)}get(e){if(!ft(e))throw new Error('Invalid slot component. Should be a component created using "createSlot".');return this.slots.get(e)}}var ht=n(29326),mt=n(99337),gt=n(30410);const vt=e=>o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),o.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M3.03 1.97a.75.75 0 0 0-1.06 1.06l.83.83A8.206 8.206 0 0 0 .5 6.876l-.26.585a1.328 1.328 0 0 0 0 1.079l.26.585a8.208 8.208 0 0 0 11.434 3.87l1.036 1.035a.75.75 0 1 0 1.06-1.06l-11-11Zm7.788 9.908-1.294-1.293a3 3 0 0 1-4.109-4.109L3.866 4.927A6.707 6.707 0 0 0 1.87 7.486L1.641 8l.23.515a6.708 6.708 0 0 0 8.947 3.363ZM6.55 7.611A1.502 1.502 0 0 0 8.389 9.45L6.55 7.611Zm1.658-2.604 2.784 2.784a3 3 0 0 0-2.784-2.784Zm5.92 3.508a6.704 6.704 0 0 1-.915 1.496l1.065 1.066A8.203 8.203 0 0 0 15.5 9.125l.26-.585a1.328 1.328 0 0 0 0-1.08l-.26-.584A8.208 8.208 0 0 0 5.572 2.37L6.81 3.61a6.708 6.708 0 0 1 7.32 3.877l.228.514-.228.515Z",clipRule:"evenodd"})),yt=e=>o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),o.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M1.87 8.515 1.641 8l.229-.515a6.708 6.708 0 0 1 12.26 0l.228.515-.229.515a6.708 6.708 0 0 1-12.259 0ZM.5 6.876l-.26.585a1.328 1.328 0 0 0 0 1.079l.26.584a8.208 8.208 0 0 0 15 0l.26-.584a1.328 1.328 0 0 0 0-1.08l-.26-.584a8.208 8.208 0 0 0-15 0ZM9.5 8a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0ZM11 8a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z",clipRule:"evenodd"}));var bt,wt,Et=n(86017);function _t(e){return Boolean(e&&"object"===typeof e&&"data"in e&&e.data&&"object"===typeof e.data&&"error"in e.data&&"string"===typeof e.data.error)}function xt(){return xt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xt.apply(this,arguments)}const St=function(e){return o.createElement("svg",xt({viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),bt||(bt=o.createElement("path",{d:"M0 16C0 7.163 7.163 0 16 0s16 7.163 16 16-7.163 16-16 16S0 24.837 0 16z",fill:"#5282FF"})),wt||(wt=o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M24 9.5c0 .828-1.343 1.5-3 1.5s-3-.672-3-1.5S19.343 8 21 8s3 .672 3 1.5zM13 19.6v2.7c0 .9 1.3 1.6 3 1.6s3-.7 3-1.6v-2.7c-.8.7-1.9 1-3 1s-2.2-.3-3-1zm5-8.6v-.4c.8.7 1.9 1 3 1s2.2-.3 3-1v2.8c0 .8-1.2 1.5-2.8 1.6l-2.475 2.871c.176.192.275.405.275.629 0 .828-1.343 1.5-3 1.5s-3-.672-3-1.5a.9.9 0 01.232-.58L10.8 15.1C9.3 15 8 14.3 8 13.5v-2.9c.8.7 1.9 1 3 1s2.2-.3 3-1v.4h4zm-.276 6.272A5.27 5.27 0 0016 17c-.265 0-.522.017-.766.05a5.994 5.994 0 00-1.134.25L12 14.9c1.1-.2 2-.8 2-1.5V12h4v1.4c0 .7.7 1.3 1.8 1.5l-2.076 2.372zM14 9.5c0 .828-1.343 1.5-3 1.5s-3-.672-3-1.5S9.343 8 11 8s3 .672 3 1.5z",fill:"#fff"})))},Ct=(0,fe.cn)("authentication");const kt=function(e){let{closable:t=!1}=e;const n=(0,ue.k6)(),r=(0,ue.TH)(),[i,{error:a,isLoading:s}]=c.nc.useAuthenticateMutation(void 0),{returnUrl:l}=(0,de.mB)(r),[u,d]=o.useState(""),[p,m]=o.useState(""),[g,v]=o.useState(""),[y,b]=o.useState(""),[w,_]=o.useState(!1);o.useEffect((()=>{(function(e){return _t(e)&&e.data.error.includes("user")})(a)&&v(a.data.error),function(e){return _t(e)&&e.data.error.includes("password")}(a)&&b(a.data.error)}),[a]);const S=()=>{i({user:u,password:p}).then((()=>{if(l){const e=decodeURIComponent(l.toString()),t=new URL(e),r=t.pathname+t.search;n.replace(r)}}))},C=e=>{13===e.keyCode&&S()};return(0,ie.jsxs)("section",{className:Ct(),children:[(0,ie.jsxs)("form",{className:Ct("form-wrapper"),children:[(0,ie.jsxs)("div",{className:Ct("header"),children:[(0,ie.jsxs)("div",{className:Ct("logo"),children:[(0,ie.jsx)(f.J,{data:St,size:24}),"YDB"]}),(0,ie.jsx)(Et.r,{href:"https://ydb.tech/docs",target:"_blank",children:"Documentation"})]}),(0,ie.jsx)("h2",{className:Ct("title"),children:"Sign in"}),(0,ie.jsx)("div",{className:Ct("field-wrapper"),children:(0,ie.jsx)(h.o,{value:u,onUpdate:e=>{d(e),v("")},placeholder:"Username",error:g,onKeyDown:C,size:"l",autoFocus:!0})}),(0,ie.jsxs)("div",{className:Ct("field-wrapper"),children:[(0,ie.jsx)(h.o,{value:p,onUpdate:e=>{m(e),b("")},type:w?"text":"password",placeholder:"Password",error:y,onKeyDown:C,size:"l"}),(0,ie.jsx)(x.z,{onClick:()=>{_((e=>!e))},size:"l",className:Ct("show-password-button"),children:(0,ie.jsx)(f.J,{data:w?vt:yt,size:16})})]}),(0,ie.jsx)(x.z,{view:"action",onClick:S,width:"max",size:"l",disabled:Boolean(!u||g||y),loading:s,className:Ct("button-sign-in"),children:"Sign in"})]}),t&&n.length>1&&(0,ie.jsx)(x.z,{onClick:()=>{n.go(-1)},className:Ct("close"),children:(0,ie.jsx)(f.J,{data:E.Z,size:24})})]})};var Ot=n(81003),Tt=n(43832),Nt=n.n(Tt),It=n(36951);const Pt=(0,It.Ge)("breadcrumbs");function Rt(e){return o.createElement("button",Object.assign({},e,{type:"button",className:Pt("switcher",{more:!0})}))}const Dt=(0,It.Ge)("breadcrumbs");const At=o.memo((function(e){let{item:t,isCurrent:n,isPrevCurrent:r,renderItemContent:i,renderItem:a}=e;const s=i?i(t,n,r):t.text;if(a)return a({item:t,children:s,isCurrent:n,isPrevCurrent:r});const l=t.title||t.text;return r||!n?void 0!==t.href?o.createElement(Et.r,{key:t.text,view:"secondary",href:t.href,title:l,onClick:t.action,className:Dt("item",{"prev-current":r})},s):o.createElement(Rt,{key:t.text,title:l,onClick:t.action},s):o.createElement("div",{title:l,className:Dt("item",{current:!0})},s)}));At.displayName="Breadcrumbs.Item";var jt=n(30831);const Mt=JSON.parse('{"label_more":"Show more"}'),Lt=JSON.parse('{"label_more":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u0435"}'),zt=(0,w.e)({en:Mt,ru:Lt},"Breadcrumbs"),Ft=(0,It.Ge)("breadcrumbs");function Bt(e){let{popupStyle:t,popupPlacement:n,items:r}=e;return o.createElement(jt.h,{items:r,popupProps:{className:Ft("popup",{staircase:"staircase"===t}),placement:n},renderSwitcher:e=>{let{onClick:t}=e;return o.createElement(Rt,{title:zt("label_more"),onClick:t},"...")}})}Bt.displayName="Breadcrumbs.More";const Ut=(0,It.Ge)("breadcrumbs");function qt(e){let{renderItemDivider:t}=e;return o.createElement("div",{"aria-hidden":!0,className:Ut("divider")},t?t():"/")}qt.displayName="Breadcrumbs.Separator";const $t=(0,It.Ge)("breadcrumbs");var Zt,Ht;!function(e){e[e.One=1]="One",e[e.Two=2]="Two"}(Zt||(Zt={})),function(e){e[e.Zero=0]="Zero",e[e.One=1]="One"}(Ht||(Ht={}));class Vt extends o.Component{static prepareInitialState(e){const{firstDisplayedItemsCount:t}=e;return{calculated:!1,rootItem:t?e.items[0]:void 0,visibleItems:e.items.slice(t),hiddenItems:[],allItems:e.items}}static getDerivedStateFromProps(e,t){return t.allItems!==e.items?Vt.prepareInitialState(e):null}constructor(e){super(e),this.handleResize=()=>{const e=Vt.prepareInitialState(this.props);this.setState(e,this.recalculate)},this.handleResize=Nt()(this.handleResize,200),"undefined"!==typeof window&&(this.resizeObserver=new ResizeObserver(this.handleResize)),this.container=o.createRef(),this.state=Vt.prepareInitialState(e)}componentDidMount(){var e;this.recalculate(),null===(e=this.resizeObserver)||void 0===e||e.observe(this.container.current)}componentDidUpdate(e){e.items!==this.state.allItems&&this.recalculate()}componentWillUnmount(){var e;null===(e=this.resizeObserver)||void 0===e||e.disconnect()}render(){const{className:e,qa:t}=this.props,{calculated:n}=this.state;return o.createElement("div",{className:$t({calculated:n?"yes":"no"},e),"data-qa":t},o.createElement("div",{className:$t("inner"),ref:this.container},this.renderRootItem(),this.renderMoreItem(),this.renderVisibleItems()))}renderItem(e,t,n,r){return o.createElement(At,{item:e,isCurrent:t,isPrevCurrent:n,renderItemContent:r||this.props.renderItemContent,renderItem:this.props.renderItem})}renderItemDivider(){const{renderItemDivider:e}=this.props;return o.createElement(qt,{renderItemDivider:e})}renderRootItem(){const{renderRootContent:e}=this.props,{rootItem:t,visibleItems:n}=this.state,r=0===n.length;return t?this.renderItem(t,r,!1,e):null}renderVisibleItems(){const{visibleItems:e}=this.state;return e.map(((e,t,n)=>{const r=t===n.length-1,i=t===n.length-2;return o.createElement(o.Fragment,{key:t},this.renderItemDivider(),this.renderItem(e,r,i))}))}renderMoreItem(){const{hiddenItems:e}=this.state;if(0===e.length)return null;const{popupStyle:t,popupPlacement:n,renderItemDivider:r}=this.props;return o.createElement(o.Fragment,null,o.createElement(qt,{renderItemDivider:r}),o.createElement(Bt,{items:e,popupPlacement:n,popupStyle:t}))}recalculate(){var e;const{items:t,lastDisplayedItemsCount:n,firstDisplayedItemsCount:r}=this.props;let o=(null===(e=this.container.current)||void 0===e?void 0:e.offsetWidth)||0;if(this.container.current&&o>0){o+=4;const e=Array.from(this.container.current.querySelectorAll(`.${$t("divider")}`)),i=[...Array.from(this.container.current.querySelectorAll(`.${$t("switcher")}`)),...Array.from(this.container.current.querySelectorAll(`.${$t("item")}`))],a=i.map(((e,t)=>e.scrollWidth+(t===i.length-1?4:8))),s=e.map((e=>e.offsetWidth));let l=a.reduce(((e,t,r,o)=>{const i=o.length-1===r,a=n===Zt.Two&&o.length-2===r;return i||a?e+Math.min(t,200):e+t}),0)+s.reduce(((e,t)=>e+t),0),c=1;for(;l>o&&c<i.length-n;)1===c&&(l+=34+s[c]),l-=a[c]+s[c],c++;this.setState({calculated:!0,visibleItems:t.slice(c-(1-r)),hiddenItems:t.slice(r,c-(1-r))})}}}Vt.defaultProps={popupPlacement:["bottom","top"]};var Wt=n(74170),Gt=n(32270),Yt=n(27102),Kt=n(77915);const Qt=e=>o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),o.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M11 2.5a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3ZM14 4a3 3 0 1 0-5.895.79L6.15 5.908a3 3 0 1 0 0 4.185l1.955 1.117A3.003 3.003 0 0 0 11 15a3 3 0 1 0-2.15-5.092L6.895 8.79a3.003 3.003 0 0 0 0-1.58L8.85 6.092A3 3 0 0 0 14 4Zm-3 6.5a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3ZM2.5 8a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0Z",clipRule:"evenodd"})),Jt=e=>o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),o.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M11.615 4.888c.814-.375.885-.714.885-.888 0-.174-.071-.513-.885-.888C10.8 2.737 9.538 2.5 8 2.5c-1.538 0-2.799.237-3.615.612-.814.375-.885.714-.885.888 0 .174.071.513.885.888C5.2 5.263 6.462 5.5 8 5.5c1.538 0 2.799-.237 3.615-.612Zm.885 1.235C11.4 6.708 9.792 7 8 7c-1.792 0-3.4-.292-4.5-.877V8c0 .174.071.513.885.888C5.2 9.263 6.462 9.5 8 9.5c1.538 0 2.799-.237 3.615-.612.814-.375.885-.714.885-.888V6.123Zm0 4C11.4 10.708 9.792 11 8 11c-1.792 0-3.4-.293-4.5-.877V12c0 .174.071.513.885.887.816.377 2.077.613 3.615.613 1.538 0 2.799-.236 3.615-.613.814-.374.885-.713.885-.887v-1.877ZM14 4c0-2-2.686-3-6-3S2 2 2 4v8c0 2 2.686 3 6 3s6-1 6-3V4Z",clipRule:"evenodd"})),Xt=e=>o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),o.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 8.5a1.5 1.5 0 0 1 1.5 1.5v1a1.5 1.5 0 0 1-1.5 1.5H4A1.5 1.5 0 0 1 2.5 11v-1A1.5 1.5 0 0 1 4 8.5h8Zm.89-1.366L11.488 4.33a1.5 1.5 0 0 0-1.342-.829H5.854a1.5 1.5 0 0 0-1.342.83L3.11 7.133A3 3 0 0 1 4 7h8a3 3 0 0 1 .89.134ZM15 9.18V11a3 3 0 0 1-3 3H4a3 3 0 0 1-3-3V9.18a5 5 0 0 1 .528-2.236L3.17 3.658A3 3 0 0 1 5.854 2h4.292a3 3 0 0 1 2.683 1.658l1.643 3.286A5 5 0 0 1 15 9.18Zm-6 .57a.75.75 0 0 0 0 1.5h2.5a.75.75 0 0 0 0-1.5H9Z",clipRule:"evenodd"})),en=e=>o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),o.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M7 1.25a.75.75 0 0 0-1.5 0V2.5a3 3 0 0 0-3 3H1.25a.75.75 0 0 0 0 1.5H2.5v2H1.25a.75.75 0 0 0 0 1.5H2.5a3 3 0 0 0 3 3v1.25a.75.75 0 0 0 1.5 0V13.5h2v1.25a.75.75 0 0 0 1.5 0V13.5a3 3 0 0 0 3-3h1.25a.75.75 0 1 0 0-1.5H13.5V7h1.25a.75.75 0 1 0 0-1.5H13.5a3 3 0 0 0-3-3V1.25a.75.75 0 0 0-1.5 0V2.5H7V1.25ZM10.5 4h-5A1.5 1.5 0 0 0 4 5.5v5A1.5 1.5 0 0 0 5.5 12h5a1.5 1.5 0 0 0 1.5-1.5v-5A1.5 1.5 0 0 0 10.5 4Zm0 2.25a.75.75 0 0 0-.75-.75h-3.5a.75.75 0 0 0-.75.75v3.5a.75.75 0 0 0 .75.75h3.5a.75.75 0 0 0 .75-.75v-3.5ZM7 7h2v2H7V7Z",clipRule:"evenodd"}));var tn=n(42784),nn=n(24015),rn=n(92398),on=n(95478);const an=JSON.parse('{"breadcrumbs.tenant":"Tenant","breadcrumbs.node":"Node","breadcrumbs.pDisk":"PDisk","breadcrumbs.vDisk":"VDisk","breadcrumbs.tablet":"Tablet","breadcrumbs.tablets":"Tablets","breadcrumbs.storageGroup":"Storage Group"}'),sn=(0,pe.wZ)("ydb-header",{en:an}),ln=e=>e.startsWith("/")?e.slice(1):e,cn=e=>({[nn.bS]:nn.m2.diagnostics,[on.XV.diagnosticsTab]:nn.qQ[e]}),un=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{clusterName:n,clusterTab:r}=e;return[{text:n||Be.DO,link:(0,Ot.B7)(r,t),icon:(0,ie.jsx)(Qt,{})}]},dn=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{tenantName:n}=e,r=un(e,t),o={text:n?ln(n):sn("breadcrumbs.tenant"),link:n?(0,on.Sj)({...t,name:n}):void 0,icon:(0,ie.jsx)(Jt,{})};return r.push(o),r},fn=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{nodeId:n,nodeRole:r,nodeActiveTab:o,tenantName:i}=e,a=cn(o===rn.IA?"tablets":"nodes"),s=i?dn(e,{...t,...a}):un(e,t);let l=sn("breadcrumbs.node");n&&(l+=` ${n}`);const c={text:l,link:n?(0,rn.a3)(n,{tenantName:i,...t},o):void 0,icon:pn(r)};return s.push(c),s};function pn(e){switch(e){case"Storage":return(0,ie.jsx)(Xt,{});case"Compute":return(0,ie.jsx)(en,{});default:return}}const hn=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{nodeId:n,pDiskId:r,nodeRole:o,nodeActiveTab:i}=e,a=fn({nodeId:n,nodeRole:null!==o&&void 0!==o?o:"Storage",nodeActiveTab:i});let s=sn("breadcrumbs.pDisk");r&&(s+=` ${r}`);const l={text:s,link:r&&n?(0,de.ds)(r,n,t):void 0};return a.push(l),a},mn={cluster:un,node:fn,pDisk:hn,tablet:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{tabletId:n,tabletType:r,nodeId:o,nodeRole:i,nodeActiveTab:a=rn.IA,tenantName:s}=e,l=fn({nodeId:o,nodeRole:i,nodeActiveTab:a,tenantName:s},t),c={text:n||sn("breadcrumbs.tablet"),icon:(0,ie.jsx)(tn.v,{text:(0,Be.qV)(r)})};return l.push(c),l},tenant:dn,vDisk:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{vDiskSlotId:n}=e,r=hn(e,t);let o=sn("breadcrumbs.vDisk");n&&(o+=` ${n}`);const i={text:o};return r.push(i),r},storageGroup:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{groupId:n}=e,r=un(e,t);let o=sn("breadcrumbs.storageGroup");n&&(o+=` ${n}`);const i={text:o};return r.push(i),r}},gn=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(!e)return n;const o=(0,mn[e])(t,r);return[...n,...o]},vn=(0,fe.cn)("header"),yn=e=>e&&!Yt.j4?"/internal":Yt.y3+"/internal";const bn=function(e){let{mainPage:t}=e;const n=(0,u.ix)((e=>e.singleClusterMode)),{page:r,pageBreadcrumbsOptions:i}=(0,u.ix)((e=>e.header)),a=(0,Kt.kW)(),s=a.title||a.name,l=o.useMemo((()=>{const e=[];let n=i;t&&e.push(t),s&&(n={...n,clusterName:s});return gn(r,n,e).map((e=>({...e,action:()=>{}})))}),[s,t,r,i]);return(0,ie.jsxs)("header",{className:vn(),children:[(0,ie.jsx)(Vt,{items:l,lastDisplayedItemsCount:1,firstDisplayedItemsCount:1,className:vn("breadcrumbs"),renderItem:e=>{let{item:t,isCurrent:n}=e;const{icon:r,text:o,link:i}=t;return(0,ie.jsxs)(Wt.h,{className:vn("breadcrumbs-item",{active:n,link:!n}),to:n?void 0:i,children:[r?(0,ie.jsx)("span",{className:vn("breadcrumbs-icon"),children:r}):null,(0,ie.jsx)("span",{children:o})]})}}),(0,ie.jsx)(Gt.j,{title:Be.Ah,url:yn(n)})]})},wn=dt("clusters"),En=dt("cluster"),_n=dt("tenant"),xn=dt("node"),Sn=dt("pDisk"),Cn=dt("vDisk"),kn=dt("storageGroup"),On=dt("tablet"),Tn=dt("routes"),Nn=dt("redirect"),In=JSON.parse('{"pages.clusters":"All clusters"}'),Pn=JSON.parse('{"pages.clusters":"\u0412\u0441\u0435 \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u044b"}'),Rn=(0,pe.wZ)("ydb-app-content",{ru:Pn,en:In}),Dn=(0,fe.cn)("app"),An=[{path:de.ZP.cluster,slot:En,component:(0,gt.k)((()=>Promise.all([n.e(4482),n.e(4726),n.e(9610),n.e(6581),n.e(9870),n.e(2283)]).then(n.bind(n,37070))),"Cluster"),wrapper:zn},{path:de.ZP.tenant,slot:_n,component:(0,gt.k)((()=>Promise.all([n.e(4482),n.e(4726),n.e(9415),n.e(7059),n.e(9610),n.e(6581),n.e(9870),n.e(5293)]).then(n.bind(n,54419))),"Tenant"),wrapper:zn},{path:de.ZP.node,slot:xn,component:(0,gt.k)((()=>Promise.all([n.e(4482),n.e(4726),n.e(7673),n.e(9610),n.e(6581),n.e(5616),n.e(5384)]).then(n.bind(n,72473))),"Node"),wrapper:zn},{path:de.ZP.pDisk,slot:Sn,component:(0,gt.k)((()=>Promise.all([n.e(4482),n.e(4726),n.e(5844),n.e(9610),n.e(5616),n.e(4263)]).then(n.bind(n,64263))),"PDiskPage"),wrapper:zn},{path:de.ZP.vDisk,slot:Cn,component:(0,gt.k)((()=>Promise.all([n.e(4482),n.e(4726),n.e(5345),n.e(9610),n.e(5616),n.e(5410)]).then(n.bind(n,65410))),"VDiskPage"),wrapper:zn},{path:de.ZP.storageGroup,slot:kn,component:(0,gt.k)((()=>Promise.all([n.e(4482),n.e(4726),n.e(9610),n.e(2775)]).then(n.bind(n,35953))),"StorageGroupPage"),wrapper:zn},{path:de.ZP.tablet,slot:On,component:(0,gt.k)((()=>Promise.all([n.e(4482),n.e(9415),n.e(1878)]).then(n.bind(n,4259))),"Tablet"),wrapper:zn}],jn=(0,gt.k)((()=>Promise.all([n.e(4482),n.e(4726),n.e(2244)]).then(n.bind(n,17851))),"Clusters");function Mn(e,t){return(0,ie.jsx)(ue.AW,{path:t.path,exact:t.exact,render:n=>{var r;const i=e.get(t.slot);let a;if(i)a="function"===typeof i.rendered?i.rendered({component:t.component,...n}):i.rendered;else{const e=t.component;a=(0,ie.jsx)(e,{...n})}const s=null!==(r=t.wrapper)&&void 0!==r?r:o.Fragment;return(0,ie.jsx)("main",{className:Dn("main"),children:(0,ie.jsx)(s,{children:a})})}},t.path)}function Ln(e){var t;const{singleClusterMode:n}=e,r=function(e){const{children:t}=e;return o.useMemo((()=>new pt(t)),[t])}(e),i=r.get(Tn),a=r.get(Nn),s=null!==(t=null===a||void 0===a?void 0:a.props)&&void 0!==t?t:n?{to:(0,Ot.B7)()}:{to:de.ZP.clusters};let l;return n||(l={text:Rn("pages.clusters"),link:de.ZP.clusters}),(0,ie.jsxs)(ue.rs,{children:[n?null:Mn(r,{path:de.ZP.clusters,exact:!0,component:jn,slot:wn}),null===i||void 0===i?void 0:i.rendered,(0,ie.jsxs)(ue.AW,{children:[(0,ie.jsx)(bn,{mainPage:l}),(0,ie.jsxs)(ue.rs,{children:[An.map((e=>Mn(r,e))),(0,ie.jsx)(ue.AW,{path:s.from||s.path,exact:s.exact,strict:s.strict,render:()=>(0,ie.jsx)(ue.l_,{to:s.to,push:s.push})})]})]},"single-cluster")]})}function zn(e){let{children:t}=e;return(0,ie.jsxs)(Fn,{children:[(0,ie.jsx)(Bn,{}),(0,ie.jsx)(Un,{}),t]})}function Fn(e){let{children:t}=e;const{isLoading:n,error:r}=c.nc.useWhoamiQuery(void 0);return(0,ie.jsx)(ut.s,{loading:n,size:"l",children:(0,ie.jsx)(ct.S,{error:r,children:t})})}function Bn(){return mt.W.useGetNodesListQuery(void 0),null}function Un(){return ht.Gi.useGetClusterCapabilitiesQuery(void 0),null}const qn=(0,a.$j)((function(e){return{isAuthenticated:e.authentication.isAuthenticated,singleClusterMode:e.singleClusterMode}}))((function(e){const{singleClusterMode:t,isAuthenticated:n}=e;return(0,ie.jsxs)(ue.rs,{children:[(0,ie.jsx)(ue.AW,{path:de.ZP.auth,children:(0,ie.jsx)(kt,{closable:!0})}),(0,ie.jsx)(ue.AW,{children:(0,ie.jsx)("div",{className:Dn({embedded:t}),children:n?e.children:(0,ie.jsx)(kt,{})})})]})}));var $n=n(78761),Zn=n(52846);const Hn=e=>{let{children:t}=e;(0,ue.TH)();const n=(0,ue.k6)();return t({replace(e){n.replace(e.search||"?",e.state)},push(e){n.push(e.search||"?",e.state)},get location(){return n.location}})},Vn=e=>o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),o.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M10 4.5a2 2 0 1 1-4 0 2 2 0 0 1 4 0Zm1.5 0a3.5 3.5 0 1 1-7 0 3.5 3.5 0 0 1 7 0Zm-9 8c0-.204.22-.809 1.32-1.459C4.838 10.44 6.32 10 8 10c1.68 0 3.162.44 4.18 1.041 1.1.65 1.32 1.255 1.32 1.459a1 1 0 0 1-1 1h-9a1 1 0 0 1-1-1Zm5.5-4c-3.85 0-7 2-7 4A2.5 2.5 0 0 0 3.5 15h9a2.5 2.5 0 0 0 2.5-2.5c0-2-3.15-4-7-4Z",clipRule:"evenodd"}));var Wn=n(32257),Gn=n(21645),Yn=n(57107),Kn=n(2266),Qn=n(24917);const Jn=o.createContext(void 0);Jn.displayName="AsideHeaderInnerContext";const Xn=Jn.Provider,er=()=>{const e=o.useContext(Jn);if(void 0===e)throw new Error("AsideHeaderInnerContext is not initialized.\n Please check if you wrapped your component with AsideHeaderInnerContext.Provider");return e},tr=o.createContext({compact:!1,size:0});tr.displayName="AsideHeaderContext";const nr=tr.Provider,rr=()=>{const e=o.useContext(tr);if(void 0===e)throw new Error("AsideHeaderContext is not initialized.\n Please check if you wrapped your component with AsideHeader\n Context.Provider");return e},or=40;var ir=n(98409);y('.gn-composite-bar-highlighted-item{--_--background-color:var(--g-color-base-background);--_--item-icon-background-size:38px;--_--item-background-color-hover:var(--g-color-base-selection-hover);--_--item-selected-background-color-active:var(--g-color-base-selection);display:flex;justify-content:center;position:absolute;z-index:10000}.gn-composite-bar-highlighted-item__icon{align-items:center;background-color:var(--gn-aside-header-background-color,var(--_--background-color));border-radius:7px;box-shadow:0 8px 20px 0 var(--g-color-sfx-shadow);cursor:pointer;display:flex;height:var(--gn-aside-header-item-icon-background-size,var(--_--item-icon-background-size));justify-content:center;overflow:hidden;position:relative;transform:translateY(1px);width:var(--gn-aside-header-item-icon-background-size,var(--_--item-icon-background-size))}.gn-composite-bar-highlighted-item__icon:before{background-color:var(--gn-aside-header-item-current-background-color,var(--_--item-selected-background-color-active));content:"";height:100%;position:absolute;width:100%;z-index:-1}.gn-composite-bar-highlighted-item__icon:hover:before{background-color:var(--gn-aside-header-item-background-color-hover,var(--_--item-background-color-hover))}');const ar=(0,v.b)("composite-bar-highlighted-item"),sr=e=>{let{iconRef:t,iconNode:n,onClick:r,onClickCapture:i}=e;const{openModalSubscriber:a}=er(),[{top:s,left:l,width:c,height:u},d]=(0,o.useState)({top:0,left:0,width:0,height:0}),[f,p]=(0,o.useState)(!1),h=(0,o.useMemo)((()=>(0,b.d)((()=>{var e;const{top:n=0,left:r=0,width:o=0,height:i=0}=(null===(e=null===t||void 0===t?void 0:t.current)||void 0===e?void 0:e.getBoundingClientRect())||{};d({top:n+window.scrollY,left:r+window.scrollX,width:o,height:i})}),200,{leading:!0})),[t]),m=(0,o.useCallback)((()=>h()),[h]);return(0,o.useEffect)((()=>{if(f)return m(),window.addEventListener("resize",m),()=>window.removeEventListener("resize",m)}),[m,f]),null===a||void 0===a||a((e=>{p(e)})),n&&f?o.createElement(Yn.h,null,o.createElement("div",{className:ar(),style:{left:l,top:s,width:c,height:u},onClick:r,onClickCapture:i,"data-toast":!0},o.createElement("div",{className:ar("icon")},n))):null};sr.displayName="HighlightedItem";const lr="collapse-item-id",cr=["right-start","right-end","right"],ur=28;function dr(e){if(!hr(e))return or;switch(e.type){case"action":return 50;case"divider":return 15;default:return or}}function fr(e){return e.reduce(((e,t)=>e+dr(t)),0)}function pr(e){const t=e.findIndex((e=>{let{current:t}=e;return Boolean(t)}));return-1===t?void 0:t}function hr(e){return void 0!==(null===e||void 0===e?void 0:e.id)}y('.gn-composite-bar-item{--gn-composite-bar-item-action-size:36px;--_--horizontal-divider-line-color:var(--g-color-line-generic);--_--item-background-color-hover:var(--g-color-base-simple-hover);--_--item-general-icon-color:var(--g-color-text-primary);--_--item-icon-color:var(--g-color-text-misc);--_--item-text-color:var(--g-color-text-primary);--_--item-selected-text-color:var(--g-color-text-primary);--_--item-selected-background-color-active:var(--g-color-base-selection);align-items:center;cursor:pointer;display:flex;height:100%;width:100%}.gn-composite-bar-item__icon{color:var(--gn-aside-header-item-icon-color,var(--_--item-icon-color))}.gn-composite-bar-item_current .gn-composite-bar-item__icon{color:var(--gn-aside-header-item-current-icon-color,var(--gn-aside-header-item-icon-color,var(--_--item-icon-color)))}.gn-composite-bar-highlighted-item .gn-composite-bar-item__icon,.gn-composite-bar_subheader .gn-composite-bar-item__icon,.gn-footer-item .gn-composite-bar-item__icon{color:var(--gn-aside-header-general-item-icon-color,var(--_--item-general-icon-color))}.gn-composite-bar-highlighted-item.gn-composite-bar-item_current .gn-composite-bar-item__icon,.gn-composite-bar_subheader .gn-composite-bar-item_current .gn-composite-bar-item__icon,.gn-footer-item.gn-composite-bar-item_current .gn-composite-bar-item__icon{color:var(--gn-aside-header-item-current-icon-color,var(--gn-aside-header-general-item-icon-color,var(--_--item-general-icon-color)))}.gn-composite-bar-item__icon-tooltip .g-action-tooltip__description{color:var(--g-color-text-light-primary);margin-block-start:0}.gn-composite-bar-item__icon-place{align-items:center;display:flex;flex-shrink:0;height:100%;justify-content:center;width:var(--gn-aside-header-min-width)}.gn-composite-bar-item__title{display:flex;overflow:hidden}.gn-composite-bar-item__title-text{color:var(--gn-aside-header-item-text-color,var(--_--item-text-color));overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.gn-composite-bar-item_current .gn-composite-bar-item__title-text{color:var(--gn-aside-header-item-current-text-color,var(--_--item-selected-text-color))}.gn-composite-bar-item__title-adornment{margin:0 10px}.gn-composite-bar-item__collapse-item{align-items:center;cursor:pointer;display:flex;height:100%;padding:0 16px;width:100%}.gn-composite-bar-item__collapse-item .gn-composite-bar-item__title-adornment{margin-right:0}.gn-composite-bar-item__menu-divider{border-top:1px solid var(--gn-aside-header-divider-horizontal-color,var(--_--horizontal-divider-line-color));cursor:default;margin:0 8px;width:100%}.gn-composite-bar-item__collapse-items-popup-content{padding:4px 0}.gn-composite-bar-item__link{align-items:center;display:flex;height:100%;width:100%}.gn-composite-bar-item__link,.gn-composite-bar-item__link:active,.gn-composite-bar-item__link:focus,.gn-composite-bar-item__link:hover,.gn-composite-bar-item__link:visited{color:inherit;outline:none;text-decoration:none}.gn-composite-bar-item__btn-icon{align-items:center;display:flex;height:100%;justify-content:center;width:100%}.gn-composite-bar-item_type_action{background:var(--g-color-base-float);border-radius:var(--gn-composite-bar-item-action-size);box-shadow:0 0 0 1px rgba(0,0,0,.03),0 5px 6px rgba(0,0,0,.12);height:var(--gn-composite-bar-item-action-size);justify-content:center;margin:0 10px 8px;transition:transform .1s ease-out,background-color .15s linear}.gn-composite-bar-item_type_action:focus-visible{box-shadow:0 0 0 2px var(--g-color-line-misc)}.gn-composite-bar-item_type_action:hover{background-color:var(--g-color-base-float-hover)}.gn-composite-bar-item_type_action:active{box-shadow:0 1px 2px var(--g-color-sfx-shadow);transform:scale(.96);transition:none}.gn-composite-bar-item_type_action .gn-composite-bar-item__icon-place{width:var(--gn-composite-bar-item-action-size)}.gn-composite-bar-item_type_action .gn-composite-bar-item__title{margin-right:16px}.gn-composite-bar-item__icon-tooltip_item-type_action{margin-left:10px}.gn-composite-bar-item:not(.gn-composite-bar-item_compact).gn-composite-bar-item_current.gn-composite-bar-item_type_regular{background-color:var(--gn-aside-header-item-current-background-color,var(--_--item-selected-background-color-active))}.gn-composite-bar-item:not(.gn-composite-bar-item_compact):hover.gn-composite-bar-item_type_regular{background-color:var(--gn-aside-header-item-current-background-color-hover,var(--gn-aside-header-item-current-background-color,var(--_--item-selected-background-color-active)))}.gn-composite-bar-item:not(.gn-composite-bar-item_compact):not(.gn-composite-bar-item_current):hover.gn-composite-bar-item_type_regular{background-color:var(--gn-aside-header-item-background-color-hover,var(--_--item-background-color-hover))}.gn-composite-bar-item_compact.gn-composite-bar-item_type_action{width:var(--gn-composite-bar-item-action-size)}.gn-composite-bar-item_compact.gn-composite-bar-item_type_action .gn-composite-bar-item__title{margin:0}.gn-composite-bar-item_compact.gn-composite-bar-item_current.gn-composite-bar-item_type_regular .gn-composite-bar-item__btn-icon{background-color:transparent;position:relative}.gn-composite-bar-item_compact.gn-composite-bar-item_current.gn-composite-bar-item_type_regular .gn-composite-bar-item__btn-icon:before{background-color:var(--gn-aside-header-item-current-background-color,var(--_--item-selected-background-color-active));border-radius:7px;content:"";height:var(--gn-aside-header-item-icon-background-size,var(--_--item-icon-background-size));left:50%;margin-left:-19px;margin-top:-19px;position:absolute;top:50%;width:var(--gn-aside-header-item-icon-background-size,var(--_--item-icon-background-size));z-index:-1}.gn-composite-bar-item_compact:hover.gn-composite-bar-item_type_regular .gn-composite-bar-item__btn-icon{background-color:transparent;position:relative}.gn-composite-bar-item_compact:hover.gn-composite-bar-item_type_regular .gn-composite-bar-item__btn-icon:before{background-color:var(--gn-aside-header-item-current-background-color-hover,var(--gn-aside-header-item-current-background-color,var(--_--item-selected-background-color-active)));border-radius:7px;content:"";height:var(--gn-aside-header-item-icon-background-size,var(--_--item-icon-background-size));left:50%;margin-left:-19px;margin-top:-19px;position:absolute;top:50%;width:var(--gn-aside-header-item-icon-background-size,var(--_--item-icon-background-size));z-index:-1}.gn-composite-bar-item_compact:not(.gn-composite-bar-item_current):hover.gn-composite-bar-item_type_regular .gn-composite-bar-item__btn-icon{background-color:transparent;position:relative}.gn-composite-bar-item_compact:not(.gn-composite-bar-item_current):hover.gn-composite-bar-item_type_regular .gn-composite-bar-item__btn-icon:before{background-color:var(--gn-aside-header-item-background-color-hover,var(--_--item-background-color-hover));border-radius:7px;content:"";height:var(--gn-aside-header-item-icon-background-size,var(--_--item-icon-background-size));left:50%;margin-left:-19px;margin-top:-19px;position:absolute;top:50%;width:var(--gn-aside-header-item-icon-background-size,var(--_--item-icon-background-size));z-index:-1}');const mr=(0,v.b)("composite-bar-item");function gr(e){let t=o.createElement("div",{className:mr("title-text")},e.title);return e.rightAdornment&&(t=o.createElement(o.Fragment,null,t,o.createElement("div",{className:mr("title-adornment")},e.rightAdornment))),t}const vr=["right-end"],yr=[-20,8],br=e=>{const{item:t,className:n,collapseItems:r,onMouseLeave:i,onMouseEnter:a,enableTooltip:s=!0,popupVisible:l=!1,popupAnchor:c,popupPlacement:u=vr,popupOffset:d=yr,popupKeepMounted:p,popupContentClassName:h,renderPopupContent:m,onClosePopup:g,onItemClick:v,onItemClickCapture:y,bringForward:b}=e,{compact:w}=rr(),[E,_]=o.useState(!1),x=o.useRef(null),S=c||x,C=o.useRef(null),k=t.type||"regular",O=t.current||!1,T=t.tooltipText||t.title,N=t.icon,I=t.iconSize||18,P=t.iconQa,R=t.id===lr,D=o.useMemo((()=>[{name:"compact",enabled:!0,options:{compact:w},phase:"main",fn(){}}]),[w]),A=o.useCallback((e=>{var t;e instanceof MouseEvent&&e.target&&(null===(t=x.current)||void 0===t?void 0:t.contains(e.target))||null===g||void 0===g||g()}),[g]);if("divider"===t.type)return o.createElement("div",{className:mr("menu-divider")});const j=e=>w?o.createElement(Kn.M,{title:"",description:T,disabled:!s||R&&E||l,placement:"right",className:mr("icon-tooltip",{"item-type":k})},o.createElement("div",{onMouseEnter:()=>null===a||void 0===a?void 0:a(),onMouseLeave:()=>null===i||void 0===i?void 0:i(),className:mr("btn-icon")},e)):e,M=e=>{let{icon:r,title:s}=e;const c=o.createElement(o.Fragment,null,o.createElement("div",{className:mr({type:k,current:O,compact:w},n),ref:x,"data-qa":t.qa,onClick:e=>{R?_(!E):null===v||void 0===v||v(t,!1,e)},onClickCapture:y,onMouseEnter:()=>{w||null===a||void 0===a||a()},onMouseLeave:()=>{w||null===i||void 0===i||i()}},o.createElement("div",{className:mr("icon-place"),ref:C},j(r)),o.createElement("div",{className:mr("title"),title:"string"===typeof t.title?t.title:void 0},s)),m&&Boolean(null===S||void 0===S?void 0:S.current)&&o.createElement(we.G,{contentClassName:mr("popup",h),open:l,keepMounted:p,placement:u,offset:d,anchorRef:S,onClose:A,modifiers:D},m()));return t.link?o.createElement("a",{href:t.link,className:mr("link")},c):c},L=N?o.createElement(f.J,{qa:P,data:N,size:I,className:mr("icon")}):null,z={icon:L,title:gr(t)};let F,B=null;const U={compact:Boolean(w),collapsed:!1,item:t,ref:x};return"function"===typeof t.itemWrapper?(F=t.itemWrapper(z,M,U),B=b&&t.itemWrapper(z,(e=>{let{icon:t}=e;return j(t)}),U)):(F=M(z),B=b&&j(L)),o.createElement(o.Fragment,null,b&&o.createElement(sr,{iconNode:B,iconRef:C,onClick:e=>null===v||void 0===v?void 0:v(t,!1,e),onClickCapture:y}),F,E&&R&&(null===r||void 0===r?void 0:r.length)&&Boolean(null===S||void 0===S?void 0:S.current)&&o.createElement(wr,Object.assign({},e,{anchorRef:x,onClose:()=>_(!1)})))};function wr(e){let{onItemClick:t,collapseItems:n,anchorRef:r,onClose:i}=e;const{compact:a}=rr();return(null===n||void 0===n?void 0:n.length)?o.createElement(we.G,{placement:cr,open:!0,anchorRef:r,onClose:i},o.createElement("div",{className:mr("collapse-items-popup-content")},o.createElement(Qn.a,{itemClassName:mr("root-collapse-item"),items:n,selectedItemIndex:pr(n),itemHeight:ur,itemsHeight:n.length*ur,virtualized:!1,filterable:!1,sortable:!1,onItemClick:i,renderItem:e=>{const n=n=>{let{title:r}=n;const i=o.createElement("div",{className:mr("collapse-item"),onClick:n=>{null===t||void 0===t||t(e,!0,n)}},r);return e.link?o.createElement("a",{href:e.link,className:mr("link")},i):i},i={title:gr(e)},s={compact:Boolean(a),collapsed:!0,item:e,ref:r};return"function"===typeof e.itemWrapper?e.itemWrapper(i,n,s):n(i)}}))):null}br.displayName="Item";n(5247);y(".gn-footer-item{height:40px;width:100%}");const Er=(0,v.b)("footer-item"),_r=e=>{var{item:t}=e,n=d(e,["item"]);return o.createElement(br,Object.assign({},n,{item:Object.assign({iconSize:18},t),className:Er({compact:n.compact}),onItemClick:t.onItemClick,onItemClickCapture:t.onItemClickCapture}))},xr=o.memo((e=>{let{renderContent:t,size:n}=e;return o.createElement(o.Fragment,null,t({size:n}))}));xr.displayName="RenderContent";const Sr=e=>{let{size:t,className:n,cssSizeVariableName:r="--gn-aside-header-size",renderContent:i,children:a}=e;return o.createElement("div",{className:n,style:Object.assign({},{[r]:`${t}px`})},"function"===typeof i?o.createElement(xr,{size:t,renderContent:i}):a)};var Cr=n(50528);y('.g-root{--gn-aside-top-panel-height:0px}.gn-aside-header{--gn-aside-header-min-width:56px;--_--item-icon-background-size:38px;--_--background-color:var(--g-color-base-background);--_--decoration-collapsed-background-color:var(--g-color-base-warning-light);--_--decoration-expanded-background-color:var(--g-color-base-warning-light);--_--vertical-divider-line-color:var(--g-color-line-generic);--_--horizontal-divider-line-color:var(--g-color-line-generic);background-color:var(--g-color-base-background);height:100%;position:relative;width:100%}.gn-aside-header__aside{background-color:var(--gn-aside-header-background-color,var(--_--background-color));box-sizing:border-box;display:flex;flex-direction:column;height:100vh;left:0;margin-top:var(--gn-aside-top-panel-height);max-height:calc(100vh - var(--gn-aside-top-panel-height));position:sticky;top:var(--gn-aside-top-panel-height);width:inherit;z-index:var(--gn-aside-header-z-index,100)}.gn-aside-header__aside:after{background-color:var(--gn-aside-header-divider-vertical-color,var(--_--vertical-divider-line-color));content:"";height:100%;position:absolute;right:0;top:0;width:1px;z-index:2}.gn-aside-header__aside-popup-anchor{inset:0;position:absolute;z-index:1}.gn-aside-header__aside-content{--gradient-height:334px;display:flex;flex-direction:column;height:inherit;overflow-x:hidden;position:relative;user-select:none;width:inherit;z-index:2}.gn-aside-header__aside-content>.gn-aside-header-logo{margin:8px 0}.gn-aside-header__aside-content_with-decoration{background:linear-gradient(180deg,var(--gn-aside-header-decoration-expanded-background-color,var(--_--decoration-expanded-background-color)) calc(var(--gradient-height)*.33),transparent calc(var(--gradient-height)*.88))}.gn-aside-header__aside-custom-background{bottom:0;display:flex;position:absolute;top:0;z-index:-1}.gn-aside-header_compact .gn-aside-header__aside-content{background:transparent}.gn-aside-header__header{--gn-aside-header-header-divider-height:29px;box-sizing:border-box;flex:none;padding-bottom:22px;padding-top:8px;position:relative;width:100%;z-index:1}.gn-aside-header__header .gn-aside-header__header-divider{bottom:0;color:var(--gn-aside-header-decoration-collapsed-background-color,var(--_--decoration-collapsed-background-color));display:none;left:0;position:absolute;z-index:-2}.gn-aside-header__header_with-decoration:before{background-color:var(--gn-aside-header-decoration-collapsed-background-color,var(--_--decoration-collapsed-background-color));content:"";display:none;height:calc(100% - var(--gn-aside-header-header-divider-height));left:0;position:absolute;top:0;width:100%;z-index:-2}.gn-aside-header__header:after{background-color:var(--gn-aside-header-divider-horizontal-color,var(--_--horizontal-divider-line-color));bottom:12px;content:"";height:1px;left:0;position:absolute;width:100%;z-index:-2}.gn-aside-header_compact .gn-aside-header__header:before,.gn-aside-header_compact .gn-aside-header__header_with-decoration .gn-aside-header__header-divider{display:block}.gn-aside-header_compact .gn-aside-header__header_with-decoration:after{display:none}.gn-aside-header__logo-button-wrapper{width:var(--gn-aside-header-min-width)}.gn-aside-header__logo-button[class],.gn-aside-header__logo-button[class] .g-button__icon{height:var(--gn-aside-header-item-icon-background-size,var(--_--item-icon-background-size))}.gn-aside-header__menu-items{flex-grow:1}.gn-aside-header__footer{display:flex;flex-direction:column;flex-shrink:0;margin:8px 0;width:100%}.gn-aside-header__panels{inset:var(--gn-aside-top-panel-height) 0 0;max-height:calc(100vh - var(--gn-aside-top-panel-height));overflow:auto;position:fixed;z-index:var(--gn-aside-header-panel-z-index,98)}.gn-aside-header__panel{height:100%}.gn-aside-header__pane-container{display:flex;flex-direction:row;outline:none;overflow:visible;user-select:text}.gn-aside-header__pane-top-divider{background-color:var(--gn-aside-header-divider-horizontal-color,var(--_--horizontal-divider-line-color));height:1px;margin-top:-1px}.gn-aside-header__pane-top{background:var(--g-color-base-background);position:fixed;top:0;width:100%;z-index:var(--gn-aside-header-pane-top-z-index,98)}.gn-aside-header__pane-top-alert_centered{display:flex;justify-content:space-around}.gn-aside-header__pane-top-alert_dense{padding-bottom:var(--g-spacing-2);padding-top:var(--g-spacing-2)}.gn-aside-header__content{margin-top:var(--gn-aside-top-panel-height);width:calc(100% - var(--gn-aside-header-size));z-index:var(--gn-aside-header-content-z-index,95)}');const kr=o.lazy((()=>n.e(9399).then(n.bind(n,79399)).then((e=>({default:e.TopPanel}))))),Or=Object.assign((e=>{let{compact:t,className:n,children:r,topAlert:i}=e;const a=t?56:236,s=(0,o.useMemo)((()=>({size:a,compact:t})),[t,a]);return o.createElement(nr,{value:s},o.createElement("div",{className:(0,Cr.b)({compact:t},n),style:Object.assign({},{"--gn-aside-header-size":`${a}px`})},i&&o.createElement(o.Suspense,{fallback:null},o.createElement(kr,{topAlert:i})),o.createElement("div",{className:(0,Cr.b)("pane-container")},r)))}),{Content:e=>{let{children:t,renderContent:n}=e;const{size:r}=rr();return o.createElement(Sr,{size:r,className:(0,Cr.b)("content"),renderContent:n},t)}});var Tr=n(9704);const Nr=e=>o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),o.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M10.5 2.255v-.01c.003-.03.013-.157-.361-.35C9.703 1.668 8.966 1.5 8 1.5c-.967 0-1.703.169-2.138.394-.375.194-.365.32-.362.351v.01c-.003.03-.013.157.362.35C6.297 2.832 7.033 3 8 3c.967 0 1.703-.169 2.139-.394.374-.194.364-.32.361-.351ZM8 4.5c.506 0 .99-.04 1.436-.118l.84 2.352.253.707.717.221c.648.2 1.055.44 1.277.65.192.18.227.31.227.438 0 .14-.055.488-.937.878-.869.384-2.2.622-3.813.622s-2.944-.238-3.813-.622c-.882-.39-.937-.738-.937-.878 0-.128.035-.259.227-.439.222-.209.629-.448 1.277-.649l.717-.221.253-.707.84-2.352c.445.079.93.118 1.436.118Zm4-2.25c0 .738-.433 1.294-1.136 1.669l.825 2.31c1.553.48 2.561 1.32 2.561 2.52 0 1.854-2.402 2.848-5.5 2.985V15a.75.75 0 0 1-1.5 0v-3.266c-3.098-.136-5.5-1.131-5.5-2.984 0-1.2 1.008-2.04 2.561-2.52l.825-2.311C4.433 3.544 4 2.988 4 2.25 4 .75 5.79 0 8 0s4 .75 4 2.25Z",clipRule:"evenodd"})),Ir=e=>o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),o.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M10.5 2.255v-.01c.003-.03.013-.157-.361-.35C9.703 1.668 8.966 1.5 8 1.5c-.967 0-1.703.169-2.138.394-.375.194-.365.32-.362.351v.01c-.003.03-.013.157.362.35C6.297 2.832 7.033 3 8 3c.967 0 1.703-.169 2.139-.394.374-.194.364-.32.361-.351ZM12 2.25c0 .738-.433 1.294-1.136 1.669l.825 2.31c1.553.48 2.561 1.32 2.561 2.52 0 1.854-2.402 2.848-5.5 2.985V15a.75.75 0 0 1-1.5 0v-3.266c-3.098-.136-5.5-1.131-5.5-2.984 0-1.2 1.008-2.04 2.561-2.52l.825-2.311C4.433 3.544 4 2.988 4 2.25 4 .75 5.79 0 8 0s4 .75 4 2.25Z",clipRule:"evenodd"}));var Pr;function Rr(){return Rr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Rr.apply(this,arguments)}var Dr=function(e){return o.createElement("svg",Rr({width:56,height:29,viewBox:"0 0 56 29",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),Pr||(Pr=o.createElement("path",{d:"M56 0v29c-.8-1-7-6.1-17.7-8.4L13 15.7A16 16 0 0 1 0 0Z"})))},Ar=n(74100),jr=n(38886);function Mr(){return Mr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Mr.apply(this,arguments)}function Lr(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function zr(e,t){return zr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},zr(e,t)}function Fr(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,zr(e,t)}var Br,Ur,qr,$r;function Zr(){if(Ur)return Br;Ur=1;return Br="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function Hr(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}(function(){if($r)return qr;$r=1;var e=Zr();function t(){}function n(){}return n.resetWarningCache=t,qr=function(){function r(t,n,r,o,i,a){if(a!==e){var s=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 s.name="Invariant Violation",s}}function o(){return r}r.isRequired=r;var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i}})()();var Vr=!1,Wr=o.createContext(null),Gr=function(e){return e.scrollTop},Yr="unmounted",Kr="exited",Qr="entering",Jr="entered",Xr="exiting",eo=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=Kr,r.appearStatus=Qr):o=Jr:o=t.unmountOnExit||t.mountOnEnter?Yr:Kr,r.state={status:o},r.nextCallback=null,r}Fr(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Yr?{status:Kr}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==Qr&&n!==Jr&&(t=Qr):n!==Qr&&n!==Jr||(t=Xr)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!==typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===Qr){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:jr.findDOMNode(this);n&&Gr(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Kr&&this.setState({status:Yr})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[jr.findDOMNode(this),r],i=o[0],a=o[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||Vr?this.safeSetState({status:Jr},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:Qr},(function(){t.props.onEntering(i,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:Jr},(function(){t.props.onEntered(i,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:jr.findDOMNode(this);t&&!Vr?(this.props.onExit(r),this.safeSetState({status:Xr},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:Kr},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:Kr},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:jr.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===Yr)return null;var t=this.props,n=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var r=Lr(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return o.createElement(Wr.Provider,{value:null},"function"===typeof n?n(e,r):o.cloneElement(o.Children.only(n),r))},t}(o.Component);function to(){}eo.contextType=Wr,eo.propTypes={},eo.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:to,onEntering:to,onEntered:to,onExit:to,onExiting:to,onExited:to},eo.UNMOUNTED=Yr,eo.EXITED=Kr,eo.ENTERING=Qr,eo.ENTERED=Jr,eo.EXITING=Xr;var no=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.add(r):function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}(n,r)||("string"===typeof n.className?n.className=n.className+" "+r:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+r)));var n,r}))},ro=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.remove(r):"string"===typeof n.className?n.className=Hr(n.className,r):n.setAttribute("class",Hr(n.className&&n.className.baseVal||"",r)));var n,r}))},oo=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1];t.removeClasses(o,"exit"),t.addClass(o,i?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1]?"appear":"enter";t.addClass(o,i,"active"),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1]?"appear":"enter";t.removeClasses(o,i),t.addClass(o,i,"done"),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"appear"),t.removeClasses(n,"enter"),t.addClass(n,"exit","base"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.resolveArguments(e)[0];t.addClass(n,"exit","active"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"exit"),t.addClass(n,"exit","done"),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,n){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,n]},t.getClassNames=function(e){var n=t.props.classNames,r="string"===typeof n,o=r?""+(r&&n?n+"-":"")+e:n[e];return{baseClassName:o,activeClassName:r?o+"-active":n[e+"Active"],doneClassName:r?o+"-done":n[e+"Done"]}},t}Fr(t,e);var n=t.prototype;return n.addClass=function(e,t,n){var r=this.getClassNames(t)[n+"ClassName"],o=this.getClassNames("enter").doneClassName;"appear"===t&&"done"===n&&o&&(r+=" "+o),"active"===n&&e&&Gr(e),r&&(this.appliedClasses[t][n]=r,no(e,r))},n.removeClasses=function(e,t){var n=this.appliedClasses[t],r=n.base,o=n.active,i=n.done;this.appliedClasses[t]={},r&&ro(e,r),o&&ro(e,o),i&&ro(e,i)},n.render=function(){var e=this.props;e.classNames;var t=Lr(e,["classNames"]);return o.createElement(eo,Mr({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(o.Component);function io(e,t){var n=Object.create(null);return e&&o.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&(0,o.isValidElement)(e)?t(e):e}(e)})),n}function ao(e,t,n){return null!=n[t]?n[t]:e.props[t]}function so(e,t,n){var r=io(e.children),i=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var s={};for(var l in t){if(o[l])for(r=0;r<o[l].length;r++){var c=o[l][r];s[o[l][r]]=n(c)}s[l]=n(l)}for(r=0;r<i.length;r++)s[i[r]]=n(i[r]);return s}(t,r);return Object.keys(i).forEach((function(a){var s=i[a];if((0,o.isValidElement)(s)){var l=a in t,c=a in r,u=t[a],d=(0,o.isValidElement)(u)&&!u.props.in;!c||l&&!d?c||!l||d?c&&l&&(0,o.isValidElement)(u)&&(i[a]=(0,o.cloneElement)(s,{onExited:n.bind(null,s),in:u.props.in,exit:ao(s,"exit",e),enter:ao(s,"enter",e)})):i[a]=(0,o.cloneElement)(s,{in:!1}):i[a]=(0,o.cloneElement)(s,{onExited:n.bind(null,s),in:!0,exit:ao(s,"exit",e),enter:ao(s,"enter",e)})}})),i}oo.defaultProps={classNames:""},oo.propTypes={};var lo,co,uo=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},fo=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}Fr(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,i=t.children,a=t.handleExited;return{children:t.firstRender?(n=e,r=a,io(n.children,(function(e){return(0,o.cloneElement)(e,{onExited:r.bind(null,e),in:!0,appear:ao(e,"appear",n),enter:ao(e,"enter",n),exit:ao(e,"exit",n)})}))):so(e,i,a),firstRender:!1}},n.handleExited=function(e,t){var n=io(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=Mr({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=Lr(e,["component","childFactory"]),i=this.state.contextValue,a=uo(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?o.createElement(Wr.Provider,{value:i},a):o.createElement(Wr.Provider,{value:i},o.createElement(t,r,a))},t}(o.Component);fo.propTypes={},fo.defaultProps={component:"div",childFactory:function(e){return e}},(function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).handleEnter=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEnter",0,n)},t.handleEntering=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEntering",0,n)},t.handleEntered=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEntered",0,n)},t.handleExit=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExit",1,n)},t.handleExiting=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExiting",1,n)},t.handleExited=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExited",1,n)},t}Fr(t,e);var n=t.prototype;return n.handleLifecycle=function(e,t,n){var r,i=this.props.children,a=o.Children.toArray(i)[t];if(a.props[e]&&(r=a.props)[e].apply(r,n),this.props[e]){var s=a.props.nodeRef?void 0:jr.findDOMNode(this);this.props[e](s)}},n.render=function(){var e=this.props,t=e.children,n=e.in,r=Lr(e,["children","in"]),i=o.Children.toArray(t),a=i[0],s=i[1];return delete r.onEnter,delete r.onEntering,delete r.onEntered,delete r.onExit,delete r.onExiting,delete r.onExited,o.createElement(fo,r,n?o.cloneElement(a,{key:"first",onEnter:this.handleEnter,onEntering:this.handleEntering,onEntered:this.handleEntered}):o.cloneElement(s,{key:"second",onEnter:this.handleExit,onEntering:this.handleExiting,onEntered:this.handleExited}))},t}(o.Component)).propTypes={};var po="out-in",ho="in-out",mo=function(e,t,n){return function(){var r;e.props[t]&&(r=e.props)[t].apply(r,arguments),n()}},go=((lo={})[po]=function(e){var t=e.current,n=e.changeState;return o.cloneElement(t,{in:!1,onExited:mo(t,"onExited",(function(){n(Qr,null)}))})},lo[ho]=function(e){var t=e.current,n=e.changeState,r=e.children;return[t,o.cloneElement(r,{in:!0,onEntered:mo(r,"onEntered",(function(){n(Qr)}))})]},lo),vo=((co={})[po]=function(e){var t=e.children,n=e.changeState;return o.cloneElement(t,{in:!0,onEntered:mo(t,"onEntered",(function(){n(Jr,o.cloneElement(t,{in:!0}))}))})},co[ho]=function(e){var t=e.current,n=e.children,r=e.changeState;return[o.cloneElement(t,{in:!1,onExited:mo(t,"onExited",(function(){r(Jr,o.cloneElement(n,{in:!0}))}))}),o.cloneElement(n,{in:!0})]},co),yo=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).state={status:Jr,current:null},t.appeared=!1,t.changeState=function(e,n){void 0===n&&(n=t.state.current),t.setState({status:e,current:n})},t}Fr(t,e);var n=t.prototype;return n.componentDidMount=function(){this.appeared=!0},t.getDerivedStateFromProps=function(e,t){return null==e.children?{current:null}:t.status===Qr&&e.mode===ho?{status:Qr}:!t.current||(n=t.current,r=e.children,n===r||o.isValidElement(n)&&o.isValidElement(r)&&null!=n.key&&n.key===r.key)?{current:o.cloneElement(e.children,{in:!0})}:{status:Xr};var n,r},n.render=function(){var e,t=this.props,n=t.children,r=t.mode,i=this.state,a=i.status,s=i.current,l={children:n,current:s,changeState:this.changeState,status:a};switch(a){case Qr:e=vo[r](l);break;case Xr:e=go[r](l);break;case Jr:e=s}return o.createElement(Wr.Provider,{value:{isMounting:!this.appeared}},e)},t}(o.Component);yo.propTypes={},yo.defaultProps={mode:po};y(".gn-drawer__item{background-color:var(--g-color-base-background);bottom:0;height:100%;left:0;position:absolute;top:0;will-change:transform}.gn-drawer__item_direction_right{left:auto;right:0}.gn-drawer__item-transition-enter{transform:translate(-100%)}.gn-drawer__item-transition_direction_right-enter{transform:translate(100%)}.gn-drawer__item-transition-enter-active,.gn-drawer__item-transition_direction_right-enter-active{transform:translate(0);transition:transform .3s}.gn-drawer__item-transition-enter-done,.gn-drawer__item-transition_direction_right-enter-done{filter:blur(0);transform:translateZ(0)}.gn-drawer__item-transition-exit,.gn-drawer__item-transition_direction_right-exit{transform:translate(0)}.gn-drawer__item-transition-exit-active,.gn-drawer__item-transition_direction_right-exit-active{transition:transform .3s}.gn-drawer__item-transition-exit-active{transform:translate(-100%)}.gn-drawer__item-transition_direction_right-exit-active{transform:translate(100%)}.gn-drawer__item-transition-exit-done,.gn-drawer__item-transition_direction_right-exit-done{visibility:hidden}.gn-drawer__veil{background-color:var(--g-color-sfx-veil);inset:0;position:absolute}.gn-drawer__veil-transition-enter{opacity:0}.gn-drawer__veil-transition-enter-active{opacity:1;transition:opacity .3s}.gn-drawer__veil-transition-exit{opacity:1}.gn-drawer__veil-transition-exit-active{opacity:0;transition:opacity .3s}.gn-drawer__veil-transition-exit-done{visibility:hidden}");const bo=(0,v.b)("drawer"),wo=e=>{let{visible:t,content:n,children:r,direction:i="left",className:a}=e;const s=o.useRef(null),l="left"===i?void 0:i;return o.createElement(oo,{in:t,timeout:300,unmountOnExit:!0,classNames:bo("item-transition",{direction:l}),nodeRef:s},o.createElement("div",{ref:s,className:bo("item",{direction:l},a)},null!==r&&void 0!==r?r:n))},Eo=e=>{let{className:t,children:n,style:r,onVeilClick:i,onEscape:a,preventScrollBody:s=!0}=e,l=!1;o.Children.forEach(n,(e=>{if(o.isValidElement(e)&&e.type===wo){Boolean(e.props.visible)&&(l=!0)}})),o.useEffect((()=>{function e(e){"Escape"===e.key&&(null===a||void 0===a||a())}return l&&window.addEventListener("keydown",e),()=>{window.removeEventListener("keydown",e)}}),[a,l]),(0,Ar.y)({enabled:s&&l});const c=o.useRef(null),u=o.useRef(null);return o.createElement(eo,{in:l,timeout:{enter:0,exit:300},mountOnEnter:!0,unmountOnExit:!0,nodeRef:c},(e=>{const a=l&&"entered"===e;return o.createElement("div",{ref:c,className:bo(null,t),style:r},o.createElement(oo,{in:a,timeout:300,unmountOnExit:!0,classNames:bo("veil-transition"),nodeRef:u},o.createElement("div",{ref:u,className:bo("veil"),onClick:i})),o.Children.map(n,(e=>{if(o.isValidElement(e)&&e.type===wo){const t=Boolean(e.props.visible);return o.cloneElement(e,Object.assign(Object.assign({},e.props),{visible:t&&a}))}return e})))}))};y(".gn-all-pages-list-item{align-items:center;column-gap:var(--g-spacing-4);display:flex;height:40px;padding:0 var(--g-spacing-6);width:100%}.gn-all-pages-list-item__text{flex:1}.gn-all-pages-list-item__icon{color:var(--g-color-text-misc)}");const _o=(0,v.b)("all-pages-list-item"),xo=e=>{const{item:t,editMode:n,onToggle:r}=e,i=(0,o.useCallback)((e=>{e.stopPropagation(),e.preventDefault(),r()}),[r]);return o.createElement("div",{className:_o(),onClick:e=>{n&&(e.stopPropagation(),e.preventDefault())}},t.icon?o.createElement(f.J,{className:_o("icon"),data:t.icon,size:t.iconSize}):null,o.createElement("span",{className:_o("text")},t.title),n&&o.createElement(x.z,{onClick:i,view:t.hidden?"flat-secondary":"flat-action"},o.createElement(x.z.Icon,null,t.hidden?o.createElement(Nr,null):o.createElement(Ir,null))))};var So=(0,w.e)({en:{"menu-item.all-pages.title":"All pages","all-panel.menu.category.allOther":"All other","all-panel.resetToDefault":"Reset to default","all-panel.title.editing":"Editing","all-panel.title.main":"All pages"},ru:{"menu-item.all-pages.title":"\u0412\u0441\u0435 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b","all-panel.menu.category.allOther":"\u041e\u0441\u0442\u0430\u043b\u044c\u043d\u043e\u0435","all-panel.resetToDefault":"\u0421\u0431\u0440\u043e\u0441\u0438\u0442\u044c \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e","all-panel.title.editing":"\u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435","all-panel.title.main":"\u0412\u0441\u0435 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b"}},`${v.N}AllPagesPanel`);const Co="all-pages";y(".gn-all-pages-panel{box-sizing:border-box;height:100%;min-width:300px;padding:var(--g-spacing-4) var(--g-spacing-6)}.gn-all-pages-panel__content{flex:1;margin:0 calc(var(--g-spacing-6)*-1);overflow:auto}.gn-all-pages-panel__category{padding:0 var(--g-spacing-6)}.gn-all-pages-panel__discoverable-feature-wrapper{display:flex}");const ko=(0,v.b)("all-pages-panel"),Oo=e=>{const{startEditIcon:t,onEditModeChanged:n,className:r}=e,{menuItems:i,onMenuItemsChanged:a}=er(),s=(0,o.useRef)(i);s.current=i;const[l,c]=(0,o.useState)(!1),u=(0,o.useCallback)((()=>{c((e=>!e))}),[]),d=(e=>{const t=(0,o.useMemo)((()=>{const t=e.filter((e=>"divider"!==e.type&&e.id!==Co));return t.sort(((e,t)=>"action"===e.type?1:"action"===t.type?-1:0)),t.reduce(((e,t)=>{const n=t.category||So("all-panel.menu.category.allOther");return e[n]||(e[n]=[]),e[n].push(t),e}),{})}),[e]);return t})(i);(0,o.useEffect)((()=>{null===n||void 0===n||n(l)}),[l,n]);const p=(0,o.useCallback)((e=>{var t;null===(t=e.onItemClick)||void 0===t||t.call(e,e,!1)}),[]),h=(0,o.useCallback)((e=>{if(!a)return;const t=Object.assign(Object.assign({},e),{hidden:!e.hidden}),n=s.current.filter((e=>e.id!==Co));a(n.map((e=>e.id!==t.id?e:t)))}),[a]),m=(0,o.useCallback)(((e,t,n)=>o.createElement(xo,{item:e,editMode:l,onToggle:()=>h(e)})),[l,h]),v=(0,o.useCallback)((()=>{if(!a)return;const e=s.current.filter((e=>e.id!==Co));a(e.map((e=>Object.assign(Object.assign({},e),{hidden:!1}))))}),[a]);return o.createElement(g.k,{className:ko(null,r),gap:"5",direction:"column"},o.createElement(g.k,{gap:"4",alignItems:"center",justifyContent:"space-between"},o.createElement(_.x,{variant:"subheader-2"},So(l?"all-panel.title.editing":"all-panel.title.main")),o.createElement(x.z,{selected:l,view:"normal",onClick:u},t||o.createElement(f.J,{data:Gn.Z}))),o.createElement(g.k,{className:ko("content"),gap:"5",direction:"column"},Object.keys(d).map((e=>o.createElement(g.k,{key:e,direction:"column",gap:"3"},o.createElement(_.x,{className:ko("category"),variant:"body-1",color:"secondary"},e),o.createElement(Qn.a,{virtualized:!1,filterable:!1,items:d[e],onItemClick:p,renderItem:m}))))),l&&o.createElement(x.z,{onClick:v},So("all-panel.resetToDefault")))};let To;To="undefined"!==typeof window?window:"undefined"!==typeof self?self:n.g;let No=null,Io=null;const Po=To.clearTimeout,Ro=To.setTimeout,Do=To.cancelAnimationFrame||To.mozCancelAnimationFrame||To.webkitCancelAnimationFrame,Ao=To.requestAnimationFrame||To.mozRequestAnimationFrame||To.webkitRequestAnimationFrame;function jo(e){let t,n,r,o,i,a,s;const l="undefined"!==typeof document&&document.attachEvent;if(!l){a=function(e){const t=e.__resizeTriggers__,n=t.firstElementChild,r=t.lastElementChild,o=n.firstElementChild;r.scrollLeft=r.scrollWidth,r.scrollTop=r.scrollHeight,o.style.width=n.offsetWidth+1+"px",o.style.height=n.offsetHeight+1+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight},i=function(e){return e.offsetWidth!==e.__resizeLast__.width||e.offsetHeight!==e.__resizeLast__.height},s=function(e){if(e.target.className&&"function"===typeof e.target.className.indexOf&&e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)return;const t=this;a(this),this.__resizeRAF__&&No(this.__resizeRAF__),this.__resizeRAF__=Io((function(){i(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach((function(n){n.call(t,e)})))}))};let e=!1,l="";r="animationstart";const c="Webkit Moz O ms".split(" ");let u="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),d="";{const t=document.createElement("fakeelement");if(void 0!==t.style.animationName&&(e=!0),!1===e)for(let n=0;n<c.length;n++)if(void 0!==t.style[c[n]+"AnimationName"]){d=c[n],l="-"+d.toLowerCase()+"-",r=u[n],e=!0;break}}n="resizeanim",t="@"+l+"keyframes "+n+" { from { opacity: 0; } to { opacity: 0; } } ",o=l+"animation: 1ms "+n+"; "}return{addResizeListener:function(i,c){if(l)i.attachEvent("onresize",c);else{if(!i.__resizeTriggers__){const l=i.ownerDocument,c=To.getComputedStyle(i);c&&"static"===c.position&&(i.style.position="relative"),function(n){if(!n.getElementById("detectElementResize")){const r=(t||"")+".resize-triggers { "+(o||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',i=n.head||n.getElementsByTagName("head")[0],a=n.createElement("style");a.id="detectElementResize",a.type="text/css",null!=e&&a.setAttribute("nonce",e),a.styleSheet?a.styleSheet.cssText=r:a.appendChild(n.createTextNode(r)),i.appendChild(a)}}(l),i.__resizeLast__={},i.__resizeListeners__=[],(i.__resizeTriggers__=l.createElement("div")).className="resize-triggers";const u=l.createElement("div");u.className="expand-trigger",u.appendChild(l.createElement("div"));const d=l.createElement("div");d.className="contract-trigger",i.__resizeTriggers__.appendChild(u),i.__resizeTriggers__.appendChild(d),i.appendChild(i.__resizeTriggers__),a(i),i.addEventListener("scroll",s,!0),r&&(i.__resizeTriggers__.__animationListener__=function(e){e.animationName===n&&a(i)},i.__resizeTriggers__.addEventListener(r,i.__resizeTriggers__.__animationListener__))}i.__resizeListeners__.push(c)}},removeResizeListener:function(e,t){if(l)e.detachEvent("onresize",t);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",s,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(r,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(n){}}}}}null==Do||null==Ao?(No=Po,Io=function(e){return Ro(e,20)}):(No=function(e){let[t,n]=e;Do(t),Po(n)},Io=function(e){const t=Ao((function(){Po(n),e()})),n=Ro((function(){Do(t),e()}),20);return[t,n]});class Mo extends o.Component{constructor(){super(...arguments),this.state={height:this.props.defaultHeight||0,scaledHeight:this.props.defaultHeight||0,scaledWidth:this.props.defaultWidth||0,width:this.props.defaultWidth||0},this._autoSizer=null,this._detectElementResize=null,this._parentNode=null,this._resizeObserver=null,this._timeoutId=null,this._onResize=()=>{this._timeoutId=null;const{disableHeight:e,disableWidth:t,onResize:n}=this.props;if(this._parentNode){const r=window.getComputedStyle(this._parentNode)||{},o=parseFloat(r.paddingLeft||"0"),i=parseFloat(r.paddingRight||"0"),a=parseFloat(r.paddingTop||"0"),s=parseFloat(r.paddingBottom||"0"),l=this._parentNode.getBoundingClientRect(),c=l.height-a-s,u=l.width-o-i,d=this._parentNode.offsetHeight-a-s,f=this._parentNode.offsetWidth-o-i;(e||this.state.height===d&&this.state.scaledHeight===c)&&(t||this.state.width===f&&this.state.scaledWidth===u)||(this.setState({height:d,width:f,scaledHeight:c,scaledWidth:u}),"function"===typeof n&&n({height:d,scaledHeight:c,scaledWidth:u,width:f}))}},this._setRef=e=>{this._autoSizer=e}}componentDidMount(){const{nonce:e}=this.props;this._autoSizer&&this._autoSizer.parentNode&&this._autoSizer.parentNode.ownerDocument&&this._autoSizer.parentNode.ownerDocument.defaultView&&this._autoSizer.parentNode instanceof this._autoSizer.parentNode.ownerDocument.defaultView.HTMLElement&&(this._parentNode=this._autoSizer.parentNode,null!=this._parentNode&&("undefined"!==typeof ResizeObserver?(this._resizeObserver=new ResizeObserver((()=>{this._timeoutId=setTimeout(this._onResize,0)})),this._resizeObserver.observe(this._parentNode)):(this._detectElementResize=jo(e),this._detectElementResize.addResizeListener(this._parentNode,this._onResize)),this._onResize()))}componentWillUnmount(){this._parentNode&&(this._detectElementResize&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize),null!==this._timeoutId&&clearTimeout(this._timeoutId),this._resizeObserver&&(this._resizeObserver.observe(this._parentNode),this._resizeObserver.disconnect()))}render(){const{children:e,defaultHeight:t,defaultWidth:n,disableHeight:r=!1,disableWidth:i=!1,nonce:a,onResize:s,style:l={},tagName:c="div",...u}=this.props,{height:d,scaledHeight:f,scaledWidth:p,width:h}=this.state,m={overflow:"visible"},g={};let v=!1;return r||(0===d&&(v=!0),m.height=0,g.height=d,g.scaledHeight=f),i||(0===h&&(v=!0),m.width=0,g.width=h,g.scaledWidth=p),(0,o.createElement)(c,{ref:this._setRef,style:{...m,...l},...u},!v&&e(g))}}const Lo={active:!1,activeIndex:void 0,hideCollapseItemTooltip:!1,lastClickedItemIndex:void 0,setValue:()=>{}},zo=o.createContext(Lo);class Fo extends o.PureComponent{constructor(){super(...arguments),this.state=Object.assign({},Lo),this.setValue=e=>{this.setState(Object.assign({},e))}}render(){const{children:e}=this.props;return o.createElement(zo.Provider,{value:Object.assign(Object.assign({},this.state),{setValue:this.setValue})},e)}}y('.g-root_theme_dark .gn-multiple-tooltip,.g-root_theme_dark-hc .gn-multiple-tooltip{--multiple-tooltip-item-bg-color:var(\n --g-color-base-float-medium,var(--g-color-private-white-100-solid)\n );--multiple-tooltip-item-active-bg-color:var(--g-color-base-float-heavy);--multiple-tooltip-backdrop-background:linear-gradient(90deg,var(--g-color-base-background) 50%,transparent);--multiple-tooltip-backdrop-filter:blur(16px)}.g-root_theme_dark-hc .gn-multiple-tooltip{--multiple-tooltip-item-bg-color:var(\n --g-color-base-float-medium,var(--g-color-private-white-150-solid)\n )}.g-root_theme_light .gn-multiple-tooltip,.g-root_theme_light-hc .gn-multiple-tooltip{--multiple-tooltip-item-bg-color:var(\n --g-color-base-float-medium,var(--g-color-private-black-550-solid)\n );--multiple-tooltip-item-active-bg-color:var(--g-color-base-float-heavy);--multiple-tooltip-backdrop-background:linear-gradient(90deg,var(--g-color-base-background) 50%,transparent);--multiple-tooltip-backdrop-filter:blur(12px)}.gn-multiple-tooltip.gn-multiple-tooltip{background-color:transparent;box-shadow:none}.gn-multiple-tooltip:before{background:var(--multiple-tooltip-backdrop-background);box-shadow:none;content:"";filter:var(--multiple-tooltip-backdrop-filter);height:100%;opacity:.7;position:absolute;width:100%;z-index:-1}.gn-multiple-tooltip__items-container{align-items:flex-start;display:flex;flex-direction:column;padding:32px 40px 32px 12px}.gn-multiple-tooltip__item{align-items:center;background-color:var(--multiple-tooltip-item-bg-color);border-radius:5px;box-sizing:border-box;color:var(--g-color-text-light-primary);display:flex;height:30px;margin-bottom:5px;padding:8px 12px;position:relative;transition:transform .1s ease-in-out}.gn-multiple-tooltip__item:first-child,.gn-multiple-tooltip__item:not(.gn-multiple-tooltip__item_divider)+.gn-multiple-tooltip__item:not(.gn-multiple-tooltip__item_divider){margin-top:5px}.gn-multiple-tooltip__item_divider+.gn-multiple-tooltip__item:not(.gn-multiple-tooltip__item_divider){margin-top:4px}.gn-multiple-tooltip__item_active{background-color:var(--multiple-tooltip-item-active-bg-color);transform:translateX(-12px)}.gn-multiple-tooltip__item_divider{height:15px;margin:0;visibility:hidden}');const Bo=(0,v.b)("multiple-tooltip"),Uo=[-32,4],qo=[{name:"preventOverflow",enabled:!1}],$o=e=>{let{items:t,open:n,anchorRef:r,placement:i}=e;const{activeIndex:a,hideCollapseItemTooltip:s}=o.useContext(zo),l=void 0===a?null:t[a];return o.createElement(we.G,{open:n,anchorRef:r,placement:i,offset:Uo,contentClassName:Bo(null),modifiers:qo,disableLayer:!0},o.createElement("div",{className:Bo("items-container")},t.filter((e=>{let{type:t="regular",id:n}=e;return!s||n!==lr&&"action"!==t})).map(((e,t)=>"divider"===e.type?o.createElement("div",{className:Bo("item",{divider:!0}),key:t},e.title):o.createElement("div",{className:Bo("item",{active:e===l}),key:t},e.title)))))};y(".gn-composite-bar{flex:1 0 auto;min-height:40px;width:100%}.gn-composite-bar .gn-composite-bar__root-menu-item[class]{background-color:transparent}");const Zo=(0,v.b)("composite-bar"),Ho=e=>{let{type:t,items:n,onItemClick:r,collapseItems:i,multipleTooltip:a=!1}=e;const s=(0,o.useRef)(null),l=(0,o.useRef)(null),{setValue:c,active:u,activeIndex:d,lastClickedItemIndex:f}=(0,o.useContext)(zo),{compact:p}=rr();o.useEffect((()=>{function e(){a&&u&&c({active:!1})}return window.addEventListener("blur",e),()=>{window.removeEventListener("blur",e)}}),[a,u,c]);const h=(0,o.useCallback)((e=>{a&&p&&!u&&document.hasFocus()&&d!==f&&e.clientX<=56&&(null===c||void 0===c||c({active:!0}))}),[a,p,u,d,f,c]),m=(0,o.useCallback)((()=>{a&&u&&document.hasFocus()&&(null===c||void 0===c||c({active:!1,lastClickedItemIndex:void 0}))}),[a,u,c]),g=(0,o.useCallback)((e=>()=>{if(a&&document.hasFocus()){let t=u;if(u||e===f||(t=!0),d===e&&u===t)return;c({activeIndex:e,active:t})}}),[a,u,f,d,c]),v=(0,o.useCallback)((()=>{var e;p&&document.hasFocus()&&(null===(e=s.current)||void 0===e||e.activateItem(void 0),!a||void 0===d&&void 0===f||c({activeIndex:void 0,lastClickedItemIndex:void 0}))}),[d,p,f,a,c]),y=(0,o.useCallback)((e=>(t,n,o)=>{p&&a&&e!==f&&t.id!==lr&&c({lastClickedItemIndex:e,active:!1}),null===r||void 0===r||r(t,n,o)}),[p,f,a,r,c]);return o.createElement(o.Fragment,null,o.createElement("div",{ref:l,onMouseEnter:h,onMouseLeave:m},o.createElement(Qn.a,{ref:s,items:n,selectedItemIndex:"menu"===t?pr(n):void 0,itemHeight:dr,itemsHeight:fr,itemClassName:Zo("root-menu-item"),virtualized:!1,filterable:!1,sortable:!1,renderItem:(e,t,n)=>{const r=hr(e)?{item:e}:e,s=hr(e)?!a:e.enableTooltip;return o.createElement(br,Object.assign({},r,{enableTooltip:s,onMouseEnter:g(n),onMouseLeave:v,onItemClick:y(n),collapseItems:i}))}})),"menu"===t&&a&&o.createElement($o,{open:p&&u,anchorRef:l,placement:["right-start"],items:n}))},Vo=e=>{let t,{type:n,items:r,menuMoreTitle:i,onItemClick:a,multipleTooltip:s=!1}=e;if(0===r.length)return null;if("menu"===n){const e=function(e){const t=function(e){const t=[];for(const n of e)(n.pinned||"divider"===n.type&&t.length>0&&"divider"!==t[t.length-1].type)&&t.push(n);return t}(e),n=e.filter((e=>e.afterMoreButton));return fr(t)+fr(n)+(t.length===e.length?0:or)}(r),n=function(e){return{id:lr,title:e,icon:ir.Z,iconSize:18}}(i);t=o.createElement("div",{className:Zo({autosizer:!0}),style:{minHeight:e}},0!==r.length&&o.createElement(Mo,null,(e=>{const t=Number.isNaN(e.width)?0:e.width,i=Number.isNaN(e.height)?0:e.height,{listItems:l,collapseItems:c}=function(e,t,n){var r,o,i;const a=e.filter((e=>e.afterMoreButton)),s=e.filter((e=>!e.afterMoreButton)),l=[...s,...a],c=fr(l);if(c<=t)return{listItems:l,collapseItems:[]};const u=dr(n);l.splice(s.length,0,n);const d=[];let f=c+u,p=l.length;for(;f>t&&0!==p;){p--;const e=l[p];e.pinned||e.id===lr||e.afterMoreButton||("divider"!==e.type?(f-=dr(e),d.unshift(...l.splice(p,1))):p+1<l.length&&"divider"===(null===(r=l[p+1])||void 0===r?void 0:r.type)&&(f-=dr(e),l.splice(p,1)))}return"divider"!==(null===(o=l[p])||void 0===o?void 0:o.type)||0!==p&&"divider"!==(null===(i=l[p-1])||void 0===i?void 0:i.type)||l.splice(p,1),{listItems:l,collapseItems:d}}(r,i,n);return o.createElement("div",{style:{width:t,height:i}},o.createElement(Ho,{type:"menu",items:l,onItemClick:a,collapseItems:c,multipleTooltip:s}))})))}else t=o.createElement("div",{className:Zo({subheader:!0})},o.createElement(Ho,{type:"subheader",items:r,onItemClick:a}));return o.createElement(Fo,null,t)};var Wo={button_collapse:"Collapse",button_expand:"Expand",label_more:"More"},Go={button_collapse:"\u0421\u0432\u0435\u0440\u043d\u0443\u0442\u044c",button_expand:"\u0420\u0430\u0437\u0432\u0435\u0440\u043d\u0443\u0442\u044c",label_more:"\u0415\u0449\u0451"};var Yo,Ko=(0,w.e)({en:Wo,ru:Go},`${v.N}AsideHeader`);function Qo(){return Qo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Qo.apply(this,arguments)}var Jo=function(e){return o.createElement("svg",Qo({width:8,height:8,viewBox:"0 0 8 8",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},e),Yo||(Yo=o.createElement("path",{d:"m.72 7.64 6.39-3.2a.5.5 0 0 0 0-.89L.72.36A.5.5 0 0 0 0 .81v6.38c0 .37.4.61.72.45Z"})))};y('.gn-collapse-button{--_--focus-outline-color:var(--g-color-line-focus);--_--focus-outline-offset:0;align-items:center;background:none;border:none;border-top:1px solid var(--gn-aside-header-divider-horizontal-color,var(--_--horizontal-divider-line-color));box-sizing:content-box;color:inherit;cursor:pointer;display:flex;font-family:var(--g-text-body-font-family);font-size:inherit;font-weight:var(--g-text-body-font-weight);justify-content:center;min-height:20px;outline:none;padding:0;position:relative;width:100%}.gn-collapse-button:before{content:"";inset:0 2px 2px;position:absolute;z-index:-1}.gn-collapse-button:focus-visible:before{outline:var(--_--focus-outline-color) solid 2px;outline-offset:var(--_--focus-outline-offset)}.gn-collapse-button:not(.gn-collapse-button_compact) .gn-collapse-button__icon{transform:rotate(180deg)}.gn-collapse-button:hover .gn-collapse-button__icon{color:var(--g-color-text-primary)}.gn-collapse-button__icon{color:var(--g-color-text-secondary)}');const Xo=(0,v.b)("collapse-button"),ei=e=>{let{className:t}=e;const{onChangeCompact:n,compact:r,expandTitle:i,collapseTitle:a}=er(),s=(0,o.useCallback)((()=>{null===n||void 0===n||n(!r)}),[r,n]),l=r?i||Ko("button_expand"):a||Ko("button_collapse");return o.createElement("button",{className:Xo({compact:r},t),onClick:s,title:l},o.createElement(f.J,{data:Jo,className:Xo("icon"),width:"16",height:"10"}))};y(".gn-logo{height:40px}.gn-logo,.gn-logo__logo-btn-place{align-items:center;display:flex;flex-shrink:0}.gn-logo__logo-btn-place{cursor:pointer;justify-content:center}.gn-logo__logo-btn-place .g-button:before{background-color:transparent}.gn-logo__logo{cursor:pointer;font-size:var(--g-text-body-2-font-size);font-weight:var(--g-text-body-font-weight);line-height:var(--g-text-body-2-line-height);vertical-align:middle}.gn-logo__logo-link,.gn-logo__logo-link:active,.gn-logo__logo-link:focus,.gn-logo__logo-link:hover,.gn-logo__logo-link:visited{color:inherit;outline:none;text-decoration:none}.g-root .gn-logo__btn-logo.button2_theme_flat.button2_hovered_yes:before{background-color:transparent}");const ti=(0,v.b)("logo"),ni=e=>{let{text:t,icon:n,iconSrc:r,iconClassName:i,iconSize:a=24,textSize:s=15,href:l,target:c="_self",wrapper:u,onClick:d,compact:p,className:h,buttonWrapperClassName:m,buttonClassName:g,"aria-label":v,"aria-labelledby":y}=e;const b="function"===typeof u;let w;r?w=o.createElement(x.z.Icon,{className:i},o.createElement("img",{alt:"logo icon",src:r,width:a,height:a})):n&&(w=o.createElement(f.J,{data:n,size:a,className:i}));const E=o.createElement(x.z,{view:"flat",size:"l",className:ti("btn-logo",g),component:b?"span":void 0,onClick:d,target:c,rel:"_self"===c?void 0:"noreferrer",href:l,extraProps:{"aria-label":v,"aria-labelledby":y}},w);let _;return _="function"===typeof t?t():o.createElement("div",{className:ti("logo"),style:{fontSize:s}},t),o.createElement("div",{className:ti(null,h)},o.createElement("div",{className:ti("logo-btn-place",m)},b?u(E,Boolean(p)):E),!p&&(b?o.createElement("div",{onClick:d},u(_,Boolean(p))):o.createElement("a",{href:null!==l&&void 0!==l?l:"/",target:c,rel:"_self"===c?void 0:"noreferrer",className:ti("logo-link"),onClick:d},_)))},ri=[],oi=()=>{const{logo:e,onItemClick:t,onClosePanel:n,headerDecoration:r,subheaderItems:i}=er(),{compact:a}=rr(),{onClick:s}=e,l=(0,o.useCallback)((e=>{null===n||void 0===n||n(),null===s||void 0===s||s(e)}),[n,s]);return o.createElement("div",{className:(0,Cr.b)("header",{"with-decoration":r})},o.createElement(ni,Object.assign({},e,{onClick:l,compact:a,buttonWrapperClassName:(0,Cr.b)("logo-button-wrapper"),buttonClassName:(0,Cr.b)("logo-button")})),o.createElement(Vo,{type:"subheader",items:i||ri,onItemClick:t}),o.createElement(f.J,{data:Dr,className:(0,Cr.b)("header-divider"),width:56,height:29}))},ii=()=>{const{panelItems:e,onClosePanel:t,size:n}=er();return e?o.createElement(Eo,{className:(0,Cr.b)("panels"),onVeilClick:t,onEscape:t,style:{left:n}},e.map((e=>o.createElement(wo,Object.assign({key:e.id},e))))):null},ai=o.forwardRef(((e,t)=>{const{size:n,onItemClick:r,headerDecoration:i,multipleTooltip:a,menuMoreTitle:s,renderFooter:l,compact:c,customBackground:u,customBackgroundClassName:d,className:f,hideCollapseButton:p,qa:h}=er(),m=(()=>{const{menuItems:e,allPagesIsAvailable:t}=er();return(0,o.useMemo)((()=>{if(!t)return e;let n=0;return e.filter(((e,t,r)=>!e.hidden&&(!(t>0&&"divider"===e.type)||"divider"!==r[n].type&&!r[n].hidden)&&(n=t,!0)))}),[t,e])})(),g=(0,o.useRef)(null);return o.useEffect((()=>{(0,Tr.k)(t,g.current)}),[t]),o.createElement(o.Fragment,null,o.createElement("div",{className:(0,Cr.b)("aside",f),style:{width:n},"data-qa":h},o.createElement("div",{className:(0,Cr.b)("aside-popup-anchor"),ref:g}),o.createElement("div",{className:(0,Cr.b)("aside-content",{"with-decoration":i})},u&&o.createElement("div",{className:(0,Cr.b)("aside-custom-background",d)},u),o.createElement(oi,null),(null===m||void 0===m?void 0:m.length)?o.createElement(Vo,{type:"menu",items:m,menuMoreTitle:null!==s&&void 0!==s?s:Ko("label_more"),onItemClick:r,multipleTooltip:a}):o.createElement("div",{className:(0,Cr.b)("menu-items")}),o.createElement("div",{className:(0,Cr.b)("footer")},null===l||void 0===l?void 0:l({size:n,compact:Boolean(c),asideRef:g})),!p&&o.createElement(ei,null))),o.createElement(ii,null))}));var si;ai.displayName="FirstPanel",function(e){e.AllPages="all-pages"}(si||(si={}));const li=[],ci=e=>{const{size:t,onClosePanel:n,menuItems:r,panelItems:i,onMenuItemsChanged:a}=e,[s,l]=(0,o.useState)(),c=o.useMemo((()=>({id:Co,title:So("menu-item.all-pages.title"),tooltipText:So("menu-item.all-pages.title"),icon:ir.Z})),[]),u=Boolean(a)&&(!r||(null===r||void 0===r?void 0:r.length)>0);(0,o.useEffect)((()=>{(null===i||void 0===i?void 0:i.some((e=>e.visible)))&&l(void 0)}),[i]);const d=(0,o.useCallback)((()=>{l(void 0),null===n||void 0===n||n()}),[n]),f=(0,o.useCallback)(((e,t,n)=>{var r;e.id===c.id?l((e=>e===si.AllPages?void 0:si.AllPages)):d(),null===(r=e.onItemClick)||void 0===r||r.call(e,e,t,n)}),[d,c]),p=(0,o.useMemo)((()=>u?[...r||li,Object.assign(Object.assign({},c),{current:s===si.AllPages})]:r||li),[u,r,s,c]),h=(0,o.useMemo)((()=>u?[...i||[],{id:si.AllPages,content:o.createElement(Oo,null),visible:s===si.AllPages}]:i),[u,i,s]);return Object.assign(Object.assign({},e),{onClosePanel:d,allPagesIsAvailable:u,menuItems:p,panelItems:h,size:t,onItemClick:f})},ui=o.forwardRef(((e,t)=>{const{size:n,compact:r}=rr(),i=ci(Object.assign({size:n,compact:r},e));return o.createElement(Xn,{value:i},o.createElement(ai,{ref:t}))}));ui.displayName="PageLayoutAside";const di=o.forwardRef(((e,t)=>{var{compact:n,className:r,topAlert:i}=e,a=d(e,["compact","className","topAlert"]);return o.createElement(Or,{compact:n,className:r,topAlert:i},o.createElement(ui,Object.assign({ref:t},a)),o.createElement(Or.Content,{renderContent:a.renderContent}))}));var fi;function pi(){return pi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pi.apply(this,arguments)}di.displayName="AsideHeader";const hi=function(e){return o.createElement("svg",pi({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512"},e),fi||(fi=o.createElement("path",{d:"M560 448h-48V113.5c0-27.25-21.5-49.5-48-49.5l-112 .01V128h96v384h112c8.875 0 16-7.125 16-15.1v-31.1c0-10.7-7.1-17.8-16-17.8zM280.3 1.007l-192 49.75C73.1 54.51 64 67.76 64 82.88V448H16c-8.875 0-16 7.125-16 15.1v31.1C0 504.9 7.125 512 16 512h304V33.13c0-21.5-19.5-37.373-39.7-32.123zM232 288c-13.25 0-24-14.37-24-31.1 0-17.62 10.75-31.1 24-31.1s24 12.6 24 30.2-10.7 32-24 32z"})))},mi=(0,fe.cn)("kv-navigation");function gi(e){let{isCompact:t,popupAnchor:n,user:r,children:i}=e;const[a,s]=o.useState(!1),l=r?Vn:hi;return(0,ie.jsx)(_r,{compact:t,item:{id:"user-popup",title:null!==r&&void 0!==r&&r.login?r.login:me("navigation-item.account"),current:a,icon:l,onItemClick:()=>s((e=>!e))},enableTooltip:!a,popupAnchor:n,popupVisible:a,onClosePopup:()=>s(!1),renderPopupContent:()=>(0,ie.jsx)("div",{className:mi("ydb-user-wrapper"),children:i})})}var vi;function yi(e){const t=(0,ue.k6)(),[n,r]=o.useState(),[i,a]=(0,u.yu)(Be.Ac);return(0,ie.jsx)(o.Fragment,{children:(0,ie.jsx)(di,{logo:{text:"YDB",icon:St,onClick:()=>t.push("/")},menuItems:e.menuItems,compact:i,onChangeCompact:a,className:mi(),renderContent:()=>e.content,renderFooter:t=>{let{compact:i,asideRef:a}=t;return(0,ie.jsxs)(o.Fragment,{children:[(0,ie.jsx)(_r,{compact:i,item:{id:"documentation",title:me("navigation-item.documentation"),icon:Wn.Z,onItemClick:()=>{window.open("https://ydb.tech/docs","_blank","noreferrer")}}}),(0,ie.jsx)(_r,{item:{id:"user-settings",title:me("navigation-item.settings"),icon:Gn.Z,current:n===vi.UserSettings,onItemClick:()=>{r(n===vi.UserSettings?void 0:vi.UserSettings)}},compact:i}),(0,ie.jsx)(gi,{isCompact:i,popupAnchor:a,user:e.user,children:e.ydbInternalUser})]})},panelItems:[{id:"user-settings",visible:n===vi.UserSettings,content:e.settings}],onClosePanel:()=>{r(void 0)}})})}!function(e){e.UserSettings="UserSettings"}(vi||(vi={}));const bi=(new class{constructor(){this.type=void 0,this.entities={}}set(e,t){return this.entities[e]=t,this}get(e){return this.entities[e]}register(e,t){return this.entities[e]=t,this}}).register("StaffCard",(function(e){let{children:t}=e;return(0,ie.jsx)(o.Fragment,{children:t})})).register("AsideNavigation",yi).register("ErrorBoundary",s.TI);function wi(e){let{store:t,history:n,componentsRegistry:r=bi,children:o}=e;return(0,ie.jsx)(i.B6,{children:(0,ie.jsx)(a.zt,{store:t,children:(0,ie.jsx)(ue.F0,{history:n,children:(0,ie.jsx)(Zn.QueryParamProvider,{adapter:Hn,children:(0,ie.jsx)(Ei,{children:(0,ie.jsx)(l.t,{registry:r,children:o})})})})})})}function Ei(e){let{children:t}=e;const[n]=(0,u.yu)(Be.bw);return(0,ie.jsx)($n.f,{theme:n,children:t})}const _i=(0,a.$j)((function(e){return{singleClusterMode:e.singleClusterMode}}))((function(e){let{store:t,history:n,singleClusterMode:r,children:o,userSettings:a=lt({singleClusterMode:r})}=e;return(0,ie.jsxs)(wi,{store:t,history:n,children:[(0,ie.jsx)(i.ql,{defaultTitle:"YDB Monitoring",titleTemplate:"%s \u2014 YDB Monitoring"}),(0,ie.jsx)(qn,{children:(0,ie.jsx)(ye,{userSettings:a,children:(0,ie.jsxs)(s.SV,{children:[(0,ie.jsx)(Ln,{singleClusterMode:r,children:o}),(0,ie.jsx)("div",{id:"fullscreen-root"})]})})}),(0,ie.jsx)(Ae,{})]})}));function xi(e){let{monitoring:t,dbName:n,dbType:r,clusterName:o}=e;try{const e=Ci(t);if(e){var i,a;const t=null!==(i=e.host)&&void 0!==i?i:"cluster",s=null!==(a=e.slot)&&void 0!==a?a:"static",l=e.cluster_name||o||"",c=new URL(e.monitoring_url);if(!c.search){const t="Serverless"===r?e.serverless_dashboard:e.dedicated_dashboard;c.pathname+=`/${t}`}return c.searchParams.has("p.cluster")||c.searchParams.set("p.cluster",l),c.searchParams.set("p.host",t),c.searchParams.set("p.slot",s),c.searchParams.set("p.database",n),c.toString()}}catch{}return""}function Si(e,t){try{const n=Ci(e);if(n){const e=n.cluster_dashboard,r=n.cluster_name||t||"",o=new URL(n.monitoring_url);return!o.search&&e&&(o.pathname+=`/${e}/view`),o.searchParams.has("p.cluster")||o.searchParams.set("p.cluster",r),o.searchParams.set("p.database","-"),o.toString()}}catch{}return""}function Ci(e){try{const t=JSON.parse(e);if("object"===typeof t&&"monitoring_url"in t)return t}catch{}}var ki,Oi=n(19797);function Ti(){return Ti=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ti.apply(this,arguments)}const Ni=function(e){return o.createElement("svg",Ti({fill:"currentColor",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg"},e),ki||(ki=o.createElement("path",{d:"M14.195 11.375H3.125v-7.82a.328.328 0 00-.305-.305H1.805a.309.309 0 00-.305.305v9.14c0 .178.127.305.305.305h12.39a.309.309 0 00.305-.305V11.68a.328.328 0 00-.305-.305zm-3.25-5.688L8.812 7.11 6.63 4.24c-.127-.178-.38-.178-.508.026L3.937 7.922v2.64h9.75l-2.285-4.748c-.101-.177-.304-.228-.457-.127z"})))},Ii=(0,fe.cn)("kv-monitoring-button");function Pi(e){let{href:t,visible:n=!1,className:r}=e;return(0,ie.jsx)(x.z,{href:t,target:"_blank",className:Ii({visible:n},r),size:"s",title:"Monitoring dashboard",children:(0,ie.jsx)(f.J,{data:Ni})})}var Ri=n(90860),Di=n(45535),Ai=n(61293),ji=n(41616);const Mi=(0,fe.cn)("extended-cluster"),Li=e=>{const t=(0,Di.q)(e);return{label:"Balancer",value:(0,ie.jsxs)("div",{className:Mi("balancer"),children:[t,(0,ie.jsx)(Oi.m,{text:t,size:"s",className:Mi("clipboard-button")})]})}},zi=(e,t,n,r)=>{const o={};if(t&&r){const n=r(t,e);n&&(o.links=[{title:"Monitoring",url:n}])}return n&&(o.info=[Li(n)]),o},Fi=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return{getVersionToColorMap:()=>(0,Ri.n$)((0,Ri.kn)(e))}},Bi=(e,t,n,r,o)=>{const i={prepareTenantBackend:e=>{if(n){if(r)return(0,Di.M2)(n);if(e)return(0,Ai.sA)(e,n)}}};return t&&o&&(i.getMonitoringLink=(n,r)=>{if(n&&r){const i=o({monitoring:t,dbName:n,dbType:r,clusterName:e});return(0,ie.jsx)(Pi,{href:i})}return null}),i};function Ui(e){let{component:t,getMonitoringLink:n,getMonitoringClusterLink:r}=e;const{monitoring:o,balancer:i,versions:a,cluster:s,useClusterBalancerAsBackend:l,additionalNodesProps:c}=(0,ji.r)();return(0,ie.jsx)("div",{className:Mi(),children:(0,ie.jsx)(t,{additionalClusterProps:zi(null===s||void 0===s?void 0:s.Name,o,i,r),additionalVersionsProps:Fi(a),additionalTenantsProps:Bi(null===s||void 0===s?void 0:s.Name,o,i,l,n),additionalNodesProps:c})})}function qi(e){let{component:t}=e;const{balancer:n}=(0,Kt.kW)(),{additionalNodesProps:r}=(0,ji.f)({balancer:n});return(0,ie.jsx)(t,{additionalNodesProps:r})}function $i(e){let{component:t,getMonitoringLink:n}=e;const{balancer:r,monitoring:o}=(0,Kt.kW)(),{additionalNodesProps:i}=(0,ji.f)({balancer:r}),a={getMonitoringLink:(e,t)=>{if(o&&e&&t&&n){const r=n({monitoring:o,dbName:e,dbType:t});return r?(0,ie.jsx)(Pi,{href:r,visible:!0}):null}return null}};return(0,ie.jsx)(t,{additionalTenantProps:a,additionalNodesProps:i})}function Zi(e){let{store:t,history:n,getMonitoringLink:r=xi,getMonitoringClusterLink:o=Si,userSettings:i,children:a}=e;return(0,ie.jsxs)(_i,{store:t,history:n,userSettings:i,children:[(0,ie.jsx)(En,{children:e=>{let{component:t}=e;return(0,ie.jsx)(Ui,{component:t,getMonitoringLink:r,getMonitoringClusterLink:o})}}),(0,ie.jsx)(xn,{children:e=>{let{component:t}=e;return(0,ie.jsx)(qi,{component:t})}}),(0,ie.jsx)(_n,{children:e=>{let{component:t}=e;return(0,ie.jsx)($i,{component:t,getMonitoringLink:r})}}),a]})}var Hi=n(48710),Vi=n(18193),Wi=n(80839),Gi=n(63660),Yi=n(90058)},90058:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=e=>{e&&e instanceof Function&&n.e(599).then(n.bind(n,40599)).then((t=>{let{getCLS:n,getFID:r,getFCP:o,getLCP:i,getTTFB:a}=t;n(e),r(e),o(e),i(e),a(e)}))}},54665:(e,t,n)=>{"use strict";n.d(t,{By:()=>v,Fz:()=>m,Uu:()=>y,ZP:()=>u,ax:()=>p,ds:()=>g,fK:()=>b,mB:()=>d,vF:()=>h});var r=n(85198),o=n.n(r),i=n(7856),a=n(63041),s=n.n(a),l=n(27102);const c={clusters:"/clusters",cluster:"/cluster/:activeTab?",tenant:"/tenant",node:"/node/:id/:activeTab?",pDisk:"/pDisk",vDisk:"/vDisk",storageGroup:"/storageGroup",tablet:"/tablet/:id",tabletsFilters:"/tabletsFilters",auth:"/auth"},u=c,d=e=>s().parse(e.search,{ignoreQueryPrefix:!0}),f=e=>{let t=e;const n=/:\d{3,5}/g,r=e.match(n);if(r){const o=r[0];t=e.replace(n,":\\"+o.slice(1))}return t};function p(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n;const a="backend"in n&&Boolean(n.backend);l.y3&&!a&&l.dx&&(r={...n,backend:l.y3});const c="clusterName"in n&&Boolean(n.clusterName);l.qw&&!c&&l.dx&&(r={...r,clusterName:l.qw});const u=o()(r)?"":`?${s().stringify(r,{encode:!1,arrayFormat:"repeat"})}`,d=f(e);return`${(0,i.compile)(d)(t)}${u}`}const h=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return p(window.location.pathname,void 0,e)};function m(e){const{pathname:t,search:n,hash:r}=new URL(e,"http://localhost");return{pathname:t,search:n,hash:r}}function g(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return p(c.pDisk,void 0,{...n,nodeId:t,pDiskId:e})}function v(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return p(c.vDisk,void 0,{...r,nodeId:n,pDiskId:t,vDiskSlotId:e})}function y(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return p(c.storageGroup,void 0,{...t,groupId:e})}function b(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return p(c.tablet,{id:e},{...t})}},48710:(e,t,n)=>{"use strict";n.d(t,{su:()=>un,Iy:()=>dn,LC:()=>fn});var r={};n.r(r),n.d(r,{hasBrowserEnv:()=>fe,hasStandardBrowserEnv:()=>pe,hasStandardBrowserWebWorkerEnv:()=>me,origin:()=>ge});var o=n(63585),i=n.n(o);function a(e,t){return function(){return e.apply(t,arguments)}}const{toString:s}=Object.prototype,{getPrototypeOf:l}=Object,c=(u=Object.create(null),e=>{const t=s.call(e);return u[t]||(u[t]=t.slice(8,-1).toLowerCase())});var u;const d=e=>(e=e.toLowerCase(),t=>c(t)===e),f=e=>t=>typeof t===e,{isArray:p}=Array,h=f("undefined");const m=d("ArrayBuffer");const g=f("string"),v=f("function"),y=f("number"),b=e=>null!==e&&"object"===typeof e,w=e=>{if("object"!==c(e))return!1;const t=l(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},E=d("Date"),_=d("File"),x=d("Blob"),S=d("FileList"),C=d("URLSearchParams"),[k,O,T,N]=["ReadableStream","Request","Response","Headers"].map(d);function I(e,t){let n,r,{allOwnKeys:o=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),p(e))for(n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else{const r=o?Object.getOwnPropertyNames(e):Object.keys(e),i=r.length;let a;for(n=0;n<i;n++)a=r[n],t.call(null,e[a],a,e)}}function P(e,t){t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}const R="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:global,D=e=>!h(e)&&e!==R;const A=(j="undefined"!==typeof Uint8Array&&l(Uint8Array),e=>j&&e instanceof j);var j;const M=d("HTMLFormElement"),L=(e=>{let{hasOwnProperty:t}=e;return(e,n)=>t.call(e,n)})(Object.prototype),z=d("RegExp"),F=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};I(n,((n,o)=>{let i;!1!==(i=t(n,o,e))&&(r[o]=i||n)})),Object.defineProperties(e,r)},B="abcdefghijklmnopqrstuvwxyz",U="0123456789",q={DIGIT:U,ALPHA:B,ALPHA_DIGIT:B+B.toUpperCase()+U};const $=d("AsyncFunction"),Z=((e,t)=>{return e?setImmediate:t?(n=`axios@${Math.random()}`,r=[],R.addEventListener("message",(e=>{let{source:t,data:o}=e;t===R&&o===n&&r.length&&r.shift()()}),!1),e=>{r.push(e),R.postMessage(n,"*")}):e=>setTimeout(e);var n,r})("function"===typeof setImmediate,v(R.postMessage)),H="undefined"!==typeof queueMicrotask?queueMicrotask.bind(R):"undefined"!==typeof process&&process.nextTick||Z,V={isArray:p,isArrayBuffer:m,isBuffer:function(e){return null!==e&&!h(e)&&null!==e.constructor&&!h(e.constructor)&&v(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"===typeof FormData&&e instanceof FormData||v(e.append)&&("formdata"===(t=c(e))||"object"===t&&v(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&m(e.buffer),t},isString:g,isNumber:y,isBoolean:e=>!0===e||!1===e,isObject:b,isPlainObject:w,isReadableStream:k,isRequest:O,isResponse:T,isHeaders:N,isUndefined:h,isDate:E,isFile:_,isBlob:x,isRegExp:z,isFunction:v,isStream:e=>b(e)&&v(e.pipe),isURLSearchParams:C,isTypedArray:A,isFileList:S,forEach:I,merge:function e(){const{caseless:t}=D(this)&&this||{},n={},r=(r,o)=>{const i=t&&P(n,o)||o;w(n[i])&&w(r)?n[i]=e(n[i],r):w(r)?n[i]=e({},r):p(r)?n[i]=r.slice():n[i]=r};for(let o=0,i=arguments.length;o<i;o++)arguments[o]&&I(arguments[o],r);return n},extend:function(e,t,n){let{allOwnKeys:r}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return I(t,((t,r)=>{n&&v(t)?e[r]=a(t,n):e[r]=t}),{allOwnKeys:r}),e},trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let o,i,a;const s={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],r&&!r(a,e,t)||s[a]||(t[a]=e[a],s[a]=!0);e=!1!==n&&l(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:c,kindOfTest:d,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(p(e))return e;let t=e.length;if(!y(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:M,hasOwnProperty:L,hasOwnProp:L,reduceDescriptors:F,freezeMethods:e=>{F(e,((t,n)=>{if(v(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];v(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach((e=>{n[e]=!0}))};return p(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:P,global:R,isContextDefined:D,ALPHABET:q,generateString:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:16,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:q.ALPHA_DIGIT,n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n},isSpecCompliantForm:function(e){return!!(e&&v(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(b(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const o=p(e)?[]:{};return I(e,((e,t)=>{const i=n(e,r+1);!h(i)&&(o[t]=i)})),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:$,isThenable:e=>e&&(b(e)||v(e))&&v(e.then)&&v(e.catch),setImmediate:Z,asap:H};function W(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}V.inherits(W,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:V.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const G=W.prototype,Y={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{Y[e]={value:e}})),Object.defineProperties(W,Y),Object.defineProperty(G,"isAxiosError",{value:!0}),W.from=(e,t,n,r,o,i)=>{const a=Object.create(G);return V.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),W.call(a,e.message,t,n,r,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};const K=W,Q=null;function J(e){return V.isPlainObject(e)||V.isArray(e)}function X(e){return V.endsWith(e,"[]")?e.slice(0,-2):e}function ee(e,t,n){return e?e.concat(t).map((function(e,t){return e=X(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const te=V.toFlatObject(V,{},null,(function(e){return/^is[A-Z]/.test(e)}));const ne=function(e,t,n){if(!V.isObject(e))throw new TypeError("target must be an object");t=t||new(Q||FormData);const r=(n=V.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!V.isUndefined(t[e])}))).metaTokens,o=n.visitor||c,i=n.dots,a=n.indexes,s=(n.Blob||"undefined"!==typeof Blob&&Blob)&&V.isSpecCompliantForm(t);if(!V.isFunction(o))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(V.isDate(e))return e.toISOString();if(!s&&V.isBlob(e))throw new K("Blob is not supported. Use a Buffer instead.");return V.isArrayBuffer(e)||V.isTypedArray(e)?s&&"function"===typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,n,o){let s=e;if(e&&!o&&"object"===typeof e)if(V.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(V.isArray(e)&&function(e){return V.isArray(e)&&!e.some(J)}(e)||(V.isFileList(e)||V.endsWith(n,"[]"))&&(s=V.toArray(e)))return n=X(n),s.forEach((function(e,r){!V.isUndefined(e)&&null!==e&&t.append(!0===a?ee([n],r,i):null===a?n:n+"[]",l(e))})),!1;return!!J(e)||(t.append(ee(o,n,i),l(e)),!1)}const u=[],d=Object.assign(te,{defaultVisitor:c,convertValue:l,isVisitable:J});if(!V.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!V.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+r.join("."));u.push(n),V.forEach(n,(function(n,i){!0===(!(V.isUndefined(n)||null===n)&&o.call(t,n,V.isString(i)?i.trim():i,r,d))&&e(n,r?r.concat(i):[i])})),u.pop()}}(e),t};function re(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function oe(e,t){this._pairs=[],e&&ne(e,this,t)}const ie=oe.prototype;ie.append=function(e,t){this._pairs.push([e,t])},ie.toString=function(e){const t=e?function(t){return e.call(this,t,re)}:re;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};const ae=oe;function se(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function le(e,t,n){if(!t)return e;const r=n&&n.encode||se,o=n&&n.serialize;let i;if(i=o?o(t,n):V.isURLSearchParams(t)?t.toString():new ae(t,n).toString(r),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}const ce=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){V.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},ue={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},de={isBrowser:!0,classes:{URLSearchParams:"undefined"!==typeof URLSearchParams?URLSearchParams:ae,FormData:"undefined"!==typeof FormData?FormData:null,Blob:"undefined"!==typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},fe="undefined"!==typeof window&&"undefined"!==typeof document,pe=(he="undefined"!==typeof navigator&&navigator.product,fe&&["ReactNative","NativeScript","NS"].indexOf(he)<0);var he;const me="undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"===typeof self.importScripts,ge=fe&&window.location.href||"http://localhost",ve={...r,...de};const ye=function(e){function t(e,n,r,o){let i=e[o++];if("__proto__"===i)return!0;const a=Number.isFinite(+i),s=o>=e.length;if(i=!i&&V.isArray(r)?r.length:i,s)return V.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!a;r[i]&&V.isObject(r[i])||(r[i]=[]);return t(e,n,r[i],o)&&V.isArray(r[i])&&(r[i]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}(r[i])),!a}if(V.isFormData(e)&&V.isFunction(e.entries)){const n={};return V.forEachEntry(e,((e,r)=>{t(function(e){return V.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null};const be={transitional:ue,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=V.isObject(e);o&&V.isHTMLForm(e)&&(e=new FormData(e));if(V.isFormData(e))return r?JSON.stringify(ye(e)):e;if(V.isArrayBuffer(e)||V.isBuffer(e)||V.isStream(e)||V.isFile(e)||V.isBlob(e)||V.isReadableStream(e))return e;if(V.isArrayBufferView(e))return e.buffer;if(V.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return ne(e,new ve.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return ve.isNode&&V.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((i=V.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return ne(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(V.isString(e))try{return(t||JSON.parse)(e),V.trim(e)}catch(r){if("SyntaxError"!==r.name)throw r}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||be.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(V.isResponse(e)||V.isReadableStream(e))return e;if(e&&V.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(o){if(n){if("SyntaxError"===o.name)throw K.from(o,K.ERR_BAD_RESPONSE,this,null,this.response);throw o}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ve.classes.FormData,Blob:ve.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};V.forEach(["delete","get","head","post","put","patch"],(e=>{be.headers[e]={}}));const we=be,Ee=V.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),_e=Symbol("internals");function xe(e){return e&&String(e).trim().toLowerCase()}function Se(e){return!1===e||null==e?e:V.isArray(e)?e.map(Se):String(e)}function Ce(e,t,n,r,o){return V.isFunction(r)?r.call(this,t,n):(o&&(t=n),V.isString(t)?V.isString(r)?-1!==t.indexOf(r):V.isRegExp(r)?r.test(t):void 0:void 0)}class ke{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=xe(t);if(!o)throw new Error("header name must be a non-empty string");const i=V.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=Se(e))}const i=(e,t)=>V.forEach(e,((e,n)=>o(e,n,t)));if(V.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(V.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach((function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&Ee[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t})(e),t);else if(V.isHeaders(e))for(const[a,s]of e.entries())o(s,a,n);else null!=e&&o(t,e,n);return this}get(e,t){if(e=xe(e)){const n=V.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(V.isFunction(t))return t.call(this,e,n);if(V.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=xe(e)){const n=V.findKey(this,e);return!(!n||void 0===this[n]||t&&!Ce(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=xe(e)){const o=V.findKey(n,e);!o||t&&!Ce(0,n[o],o,t)||(delete n[o],r=!0)}}return V.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!Ce(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return V.forEach(this,((r,o)=>{const i=V.findKey(n,o);if(i)return t[i]=Se(r),void delete t[o];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(o):String(o).trim();a!==o&&delete t[o],t[a]=Se(r),n[a]=!0})),this}concat(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.constructor.concat(this,...t)}toJSON(e){const t=Object.create(null);return V.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&V.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((e=>{let[t,n]=e;return t+": "+n})).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e){const t=new this(e);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return r.forEach((e=>t.set(e))),t}static accessor(e){const t=(this[_e]=this[_e]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=xe(e);t[r]||(!function(e,t){const n=V.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})}))}(n,e),t[r]=!0)}return V.isArray(e)?e.forEach(r):r(e),this}}ke.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),V.reduceDescriptors(ke.prototype,((e,t)=>{let{value:n}=e,r=t[0].toUpperCase()+t.slice(1);return{get:()=>n,set(e){this[r]=e}}})),V.freezeMethods(ke);const Oe=ke;function Te(e,t){const n=this||we,r=t||n,o=Oe.from(r.headers);let i=r.data;return V.forEach(e,(function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)})),o.normalize(),i}function Ne(e){return!(!e||!e.__CANCEL__)}function Ie(e,t,n){K.call(this,null==e?"canceled":e,K.ERR_CANCELED,t,n),this.name="CanceledError"}V.inherits(Ie,K,{__CANCEL__:!0});const Pe=Ie;function Re(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new K("Request failed with status code "+n.status,[K.ERR_BAD_REQUEST,K.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}const De=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,i=0,a=0;return t=void 0!==t?t:1e3,function(s){const l=Date.now(),c=r[a];o||(o=l),n[i]=s,r[i]=l;let u=a,d=0;for(;u!==i;)d+=n[u++],u%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),l-o<t)return;const f=c&&l-c;return f?Math.round(1e3*d/f):void 0}};const Ae=function(e,t){let n,r,o=0,i=1e3/t;const a=function(t){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Date.now();o=i,n=null,r&&(clearTimeout(r),r=null),e.apply(null,t)};return[function(){const e=Date.now(),t=e-o;for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];t>=i?a(l,e):(n=l,r||(r=setTimeout((()=>{r=null,a(n)}),i-t)))},()=>n&&a(n)]},je=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3,r=0;const o=De(50,250);return Ae((n=>{const i=n.loaded,a=n.lengthComputable?n.total:void 0,s=i-r,l=o(s);r=i;e({loaded:i,total:a,progress:a?i/a:void 0,bytes:s,rate:l||void 0,estimated:l&&a&&i<=a?(a-i)/l:void 0,event:n,lengthComputable:null!=a,[t?"download":"upload"]:!0})}),n)},Me=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Le=e=>function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return V.asap((()=>e(...n)))},ze=ve.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let n;function r(n){let r=n;return e&&(t.setAttribute("href",r),r=t.href),t.setAttribute("href",r),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return n=r(window.location.href),function(e){const t=V.isString(e)?r(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return!0},Fe=ve.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const a=[e+"="+encodeURIComponent(t)];V.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),V.isString(r)&&a.push("path="+r),V.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function Be(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Ue=e=>e instanceof Oe?{...e}:e;function qe(e,t){t=t||{};const n={};function r(e,t,n){return V.isPlainObject(e)&&V.isPlainObject(t)?V.merge.call({caseless:n},e,t):V.isPlainObject(t)?V.merge({},t):V.isArray(t)?t.slice():t}function o(e,t,n){return V.isUndefined(t)?V.isUndefined(e)?void 0:r(void 0,e,n):r(e,t,n)}function i(e,t){if(!V.isUndefined(t))return r(void 0,t)}function a(e,t){return V.isUndefined(t)?V.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,o,i){return i in t?r(n,o):i in e?r(void 0,n):void 0}const l={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(e,t)=>o(Ue(e),Ue(t),!0)};return V.forEach(Object.keys(Object.assign({},e,t)),(function(r){const i=l[r]||o,a=i(e[r],t[r],r);V.isUndefined(a)&&i!==s||(n[r]=a)})),n}const $e=e=>{const t=qe({},e);let n,{data:r,withXSRFToken:o,xsrfHeaderName:i,xsrfCookieName:a,headers:s,auth:l}=t;if(t.headers=s=Oe.from(s),t.url=le(Be(t.baseURL,t.url),e.params,e.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),V.isFormData(r))if(ve.hasStandardBrowserEnv||ve.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(!1!==(n=s.getContentType())){const[e,...t]=n?n.split(";").map((e=>e.trim())).filter(Boolean):[];s.setContentType([e||"multipart/form-data",...t].join("; "))}if(ve.hasStandardBrowserEnv&&(o&&V.isFunction(o)&&(o=o(t)),o||!1!==o&&ze(t.url))){const e=i&&a&&Fe.read(a);e&&s.set(i,e)}return t},Ze="undefined"!==typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){const r=$e(e);let o=r.data;const i=Oe.from(r.headers).normalize();let a,s,l,c,u,{responseType:d,onUploadProgress:f,onDownloadProgress:p}=r;function h(){c&&c(),u&&u(),r.cancelToken&&r.cancelToken.unsubscribe(a),r.signal&&r.signal.removeEventListener("abort",a)}let m=new XMLHttpRequest;function g(){if(!m)return;const r=Oe.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());Re((function(e){t(e),h()}),(function(e){n(e),h()}),{data:d&&"text"!==d&&"json"!==d?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:r,config:e,request:m}),m=null}m.open(r.method.toUpperCase(),r.url,!0),m.timeout=r.timeout,"onloadend"in m?m.onloadend=g:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(g)},m.onabort=function(){m&&(n(new K("Request aborted",K.ECONNABORTED,e,m)),m=null)},m.onerror=function(){n(new K("Network Error",K.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const o=r.transitional||ue;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new K(t,o.clarifyTimeoutError?K.ETIMEDOUT:K.ECONNABORTED,e,m)),m=null},void 0===o&&i.setContentType(null),"setRequestHeader"in m&&V.forEach(i.toJSON(),(function(e,t){m.setRequestHeader(t,e)})),V.isUndefined(r.withCredentials)||(m.withCredentials=!!r.withCredentials),d&&"json"!==d&&(m.responseType=r.responseType),p&&([l,u]=je(p,!0),m.addEventListener("progress",l)),f&&m.upload&&([s,c]=je(f),m.upload.addEventListener("progress",s),m.upload.addEventListener("loadend",c)),(r.cancelToken||r.signal)&&(a=t=>{m&&(n(!t||t.type?new Pe(null,e,m):t),m.abort(),m=null)},r.cancelToken&&r.cancelToken.subscribe(a),r.signal&&(r.signal.aborted?a():r.signal.addEventListener("abort",a)));const v=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);v&&-1===ve.protocols.indexOf(v)?n(new K("Unsupported protocol "+v+":",K.ERR_BAD_REQUEST,e)):m.send(o||null)}))},He=(e,t)=>{let n,r=new AbortController;const o=function(e){if(!n){n=!0,a();const t=e instanceof Error?e:this.reason;r.abort(t instanceof K?t:new Pe(t instanceof Error?t.message:t))}};let i=t&&setTimeout((()=>{o(new K(`timeout ${t} of ms exceeded`,K.ETIMEDOUT))}),t);const a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach((e=>{e&&(e.removeEventListener?e.removeEventListener("abort",o):e.unsubscribe(o))})),e=null)};e.forEach((e=>e&&e.addEventListener&&e.addEventListener("abort",o)));const{signal:s}=r;return s.unsubscribe=a,[s,()=>{i&&clearTimeout(i),i=null}]},Ve=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let r,o=0;for(;o<n;)r=o+t,yield e.slice(o,r),o=r},We=(e,t,n,r,o)=>{const i=async function*(e,t,n){for await(const r of e)yield*Ve(ArrayBuffer.isView(r)?r:await n(String(r)),t)}(e,t,o);let a,s=0,l=e=>{a||(a=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await i.next();if(t)return l(),void e.close();let o=r.byteLength;if(n){let e=s+=o;n(e)}e.enqueue(new Uint8Array(r))}catch(t){throw l(t),t}},cancel:e=>(l(e),i.return())},{highWaterMark:2})},Ge="function"===typeof fetch&&"function"===typeof Request&&"function"===typeof Response,Ye=Ge&&"function"===typeof ReadableStream,Ke=Ge&&("function"===typeof TextEncoder?(Qe=new TextEncoder,e=>Qe.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer()));var Qe;const Je=function(e){try{for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return!!e(...n)}catch(o){return!1}},Xe=Ye&&Je((()=>{let e=!1;const t=new Request(ve.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),et=Ye&&Je((()=>V.isReadableStream(new Response("").body))),tt={stream:et&&(e=>e.body)};var nt;Ge&&(nt=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!tt[e]&&(tt[e]=V.isFunction(nt[e])?t=>t[e]():(t,n)=>{throw new K(`Response type '${e}' is not supported`,K.ERR_NOT_SUPPORT,n)})})));const rt=async(e,t)=>{const n=V.toFiniteNumber(e.getContentLength());return null==n?(async e=>null==e?0:V.isBlob(e)?e.size:V.isSpecCompliantForm(e)?(await new Request(e).arrayBuffer()).byteLength:V.isArrayBufferView(e)||V.isArrayBuffer(e)?e.byteLength:(V.isURLSearchParams(e)&&(e+=""),V.isString(e)?(await Ke(e)).byteLength:void 0))(t):n},ot=Ge&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:i,timeout:a,onDownloadProgress:s,onUploadProgress:l,responseType:c,headers:u,withCredentials:d="same-origin",fetchOptions:f}=$e(e);c=c?(c+"").toLowerCase():"text";let p,h,[m,g]=o||i||a?He([o,i],a):[];const v=()=>{!p&&setTimeout((()=>{m&&m.unsubscribe()})),p=!0};let y;try{if(l&&Xe&&"get"!==n&&"head"!==n&&0!==(y=await rt(u,r))){let e,n=new Request(t,{method:"POST",body:r,duplex:"half"});if(V.isFormData(r)&&(e=n.headers.get("content-type"))&&u.setContentType(e),n.body){const[e,t]=Me(y,je(Le(l)));r=We(n.body,65536,e,t,Ke)}}V.isString(d)||(d=d?"include":"omit"),h=new Request(t,{...f,signal:m,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:d});let o=await fetch(h);const i=et&&("stream"===c||"response"===c);if(et&&(s||i)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=o[t]}));const t=V.toFiniteNumber(o.headers.get("content-length")),[n,r]=s&&Me(t,je(Le(s),!0))||[];o=new Response(We(o.body,65536,n,(()=>{r&&r(),i&&v()}),Ke),e)}c=c||"text";let a=await tt[V.findKey(tt,c)||"text"](o,e);return!i&&v(),g&&g(),await new Promise(((t,n)=>{Re(t,n,{data:a,headers:Oe.from(o.headers),status:o.status,statusText:o.statusText,config:e,request:h})}))}catch(b){if(v(),b&&"TypeError"===b.name&&/fetch/i.test(b.message))throw Object.assign(new K("Network Error",K.ERR_NETWORK,e,h),{cause:b.cause||b});throw K.from(b,b&&b.code,e,h)}}),it={http:Q,xhr:Ze,fetch:ot};V.forEach(it,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(n){}Object.defineProperty(e,"adapterName",{value:t})}}));const at=e=>`- ${e}`,st=e=>V.isFunction(e)||null===e||!1===e,lt={getAdapter:e=>{e=V.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i<t;i++){let t;if(n=e[i],r=n,!st(n)&&(r=it[(t=String(n)).toLowerCase()],void 0===r))throw new K(`Unknown adapter '${t}'`);if(r)break;o[t||"#"+i]=r}if(!r){const e=Object.entries(o).map((e=>{let[t,n]=e;return`adapter ${t} `+(!1===n?"is not supported by the environment":"is not available in the build")}));let n=t?e.length>1?"since :\n"+e.map(at).join("\n"):" "+at(e[0]):"as no adapter specified";throw new K("There is no suitable adapter to dispatch the request "+n,"ERR_NOT_SUPPORT")}return r},adapters:it};function ct(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Pe(null,e)}function ut(e){ct(e),e.headers=Oe.from(e.headers),e.data=Te.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return lt.getAdapter(e.adapter||we.adapter)(e).then((function(t){return ct(e),t.data=Te.call(e,e.transformResponse,t),t.headers=Oe.from(t.headers),t}),(function(t){return Ne(t)||(ct(e),t&&t.response&&(t.response.data=Te.call(e,e.transformResponse,t.response),t.response.headers=Oe.from(t.response.headers))),Promise.reject(t)}))}const dt="1.7.3",ft={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{ft[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const pt={};ft.transitional=function(e,t,n){function r(e,t){return"[Axios v"+dt+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,i)=>{if(!1===e)throw new K(r(o," has been removed"+(t?" in "+t:"")),K.ERR_DEPRECATED);return t&&!pt[o]&&(pt[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,i)}};const ht={assertOptions:function(e,t,n){if("object"!==typeof e)throw new K("options must be an object",K.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],a=t[i];if(a){const t=e[i],n=void 0===t||a(t,i,e);if(!0!==n)throw new K("option "+i+" must be "+n,K.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new K("Unknown option "+i,K.ERR_BAD_OPTION)}},validators:ft},mt=ht.validators;class gt{constructor(e){this.defaults=e,this.interceptors={request:new ce,response:new ce}}async request(e,t){try{return await this._request(e,t)}catch(n){if(n instanceof Error){let e;Error.captureStackTrace?Error.captureStackTrace(e={}):e=new Error;const t=e.stack?e.stack.replace(/^.+\n/,""):"";try{n.stack?t&&!String(n.stack).endsWith(t.replace(/^.+\n.+\n/,""))&&(n.stack+="\n"+t):n.stack=t}catch(r){}}throw n}}_request(e,t){"string"===typeof e?(t=t||{}).url=e:t=e||{},t=qe(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&ht.assertOptions(n,{silentJSONParsing:mt.transitional(mt.boolean),forcedJSONParsing:mt.transitional(mt.boolean),clarifyTimeoutError:mt.transitional(mt.boolean)},!1),null!=r&&(V.isFunction(r)?t.paramsSerializer={serialize:r}:ht.assertOptions(r,{encode:mt.function,serialize:mt.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&V.merge(o.common,o[t.method]);o&&V.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=Oe.concat(i,o);const a=[];let s=!0;this.interceptors.request.forEach((function(e){"function"===typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,a.unshift(e.fulfilled,e.rejected))}));const l=[];let c;this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)}));let u,d=0;if(!s){const e=[ut.bind(this),void 0];for(e.unshift.apply(e,a),e.push.apply(e,l),u=e.length,c=Promise.resolve(t);d<u;)c=c.then(e[d++],e[d++]);return c}u=a.length;let f=t;for(d=0;d<u;){const e=a[d++],t=a[d++];try{f=e(f)}catch(p){t.call(this,p);break}}try{c=ut.call(this,f)}catch(p){return Promise.reject(p)}for(d=0,u=l.length;d<u;)c=c.then(l[d++],l[d++]);return c}getUri(e){return le(Be((e=qe(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}V.forEach(["delete","get","head","options"],(function(e){gt.prototype[e]=function(t,n){return this.request(qe(n||{},{method:e,url:t,data:(n||{}).data}))}})),V.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,o){return this.request(qe(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}gt.prototype[e]=t(),gt.prototype[e+"Form"]=t(!0)}));const vt=gt;class yt{constructor(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const r=new Promise((e=>{n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,o){n.reason||(n.reason=new Pe(e,r,o),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;return{token:new yt((function(t){e=t})),cancel:e}}}const bt=yt;const wt={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(wt).forEach((e=>{let[t,n]=e;wt[n]=t}));const Et=wt;const _t=function e(t){const n=new vt(t),r=a(vt.prototype.request,n);return V.extend(r,vt.prototype,n,{allOwnKeys:!0}),V.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(qe(t,n))},r}(we);_t.Axios=vt,_t.CanceledError=Pe,_t.CancelToken=bt,_t.isCancel=Ne,_t.VERSION=dt,_t.toFormData=ne,_t.AxiosError=K,_t.Cancel=_t.CanceledError,_t.all=function(e){return Promise.all(e)},_t.spread=function(e){return function(t){return e.apply(null,t)}},_t.isAxiosError=function(e){return V.isObject(e)&&!0===e.isAxiosError},_t.mergeConfig=qe,_t.AxiosHeaders=Oe,_t.formToJSON=e=>ye(V.isHTMLForm(e)?new FormData(e):e),_t.getAdapter=lt.getAdapter,_t.HttpStatusCode=Et,_t.default=_t;const xt=_t,{Axios:St,AxiosError:Ct,CanceledError:kt,isCancel:Ot,CancelToken:Tt,VERSION:Nt,all:It,Cancel:Pt,isAxiosError:Rt,spread:Dt,toFormData:At,AxiosHeaders:jt,HttpStatusCode:Mt,formToJSON:Lt,getAdapter:zt,mergeConfig:Ft}=xt;class Bt{constructor(){var e=this;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.setApiEndpoint=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";"undefined"!==typeof location&&(t=t.replace("%CURRENT_HOST%",location.host)),e.apiEndpoint=t},this.setCSRFToken=e=>{this._axios.defaults.headers.post["X-CSRF-Token"]=e,this._axios.defaults.headers.put["X-CSRF-Token"]=e,this._axios.defaults.headers.delete["X-CSRF-Token"]=e},this.setDefaultHeader=e=>{let{name:t,value:n,methods:r}=e;const o=this._axios.defaults.headers;Array.isArray(r)?r.forEach((e=>{const r=o[e];r&&r instanceof jt&&(r[t]=n)})):o.common[t]=n},this.apiPath=e=>`${this.apiEndpoint}${e}`;const{config:n={},apiEndpoint:r="/api",collector:o={}}=t,a=Object.assign({xsrfCookieName:"",timeout:Bt.DEFAULT_TIMEOUT,withCredentials:!0},n);this._axios=xt.create(a),this._axios.defaults.headers=i()(this._axios.defaults.headers),this.requestTokens={},this.setApiEndpoint(r),this.collectorSettings=o,this.collector={errors:[],requests:[]}}collectRequest(e){let{method:t,url:n,data:r,requestStart:o,response:i,responseError:a,error:s=!1,cancelled:l=!1}=e;const{collectErrors:c,collectRequests:u}=this.collectorSettings;if(!c&&!u)return;const{responseText:d="",responseURL:f=n}=i&&i.request||{},p=s&&a instanceof Error?a.message:"",h={method:t,url:f,time:{start:o,end:Number(new Date)},status:i&&i.status,size:d.length,requestData:r&&JSON.stringify(r,null,2)||"",responseData:i&&i.data&&JSON.stringify(i.data,null,2)||p,isError:s,isCancelled:l};c&&s&&(this.collector.errors=[...this.collector.errors,h].slice(-c)),u&&(this.collector.requests=[...this.collector.requests,h].slice(-u))}getCollectedRequests(){return{errors:[...this.collector.errors],requests:[...this.collector.requests]}}async request(e){const{method:t,url:n,data:r=null,params:o,options:i={},retries:a=0}=e,s=i.requestConfig||{},{concurrentId:l,collectRequest:c=!0,timeout:u,headers:d,onDownloadProgress:f}=i;l&&(this.cancelRequest(l),s.cancelToken=this.createRequestToken(l)),d&&(s.headers=d),"undefined"!==typeof u&&(s.timeout=u);const p=Number(new Date),h={method:t,url:n,data:r,params:o,onDownloadProgress:f};try{const e=await this._axios.request(Object.assign(Object.assign({},s),h));return this.clearRequestToken(l),c&&this.collectRequest(Object.assign(Object.assign({},h),{requestStart:p,response:e})),e.data}catch(m){if(xt.isCancel(m))throw{isCancelled:!0,error:m};let t;return this.clearRequestToken(l),t=m.response?m.response:"function"===typeof m.toJSON?m.toJSON():m,c&&this.collectRequest(Object.assign(Object.assign({},h),{requestStart:p,response:t,error:!0,cancelled:xt.isCancel(m),responseError:m})),this.handleRequestError(t,(()=>this.request(Object.assign(Object.assign({},e),{retries:a+1}))),a,new Error(m instanceof Error?m.message:"Unknown error"))}}cancelRequest(e){e&&this.requestTokens[e]&&this.requestTokens[e].cancel("Concurrent request")}get(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request({method:"GET",url:e,params:t,options:n})}post(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.request({method:"POST",url:e,data:t,params:n,options:r})}put(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.request({method:"PUT",url:e,data:t,params:n,options:r})}patch(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.request({method:"PATCH",url:e,data:t,params:n,options:r})}delete(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.request({method:"DELETE",url:e,data:t,params:n,options:r})}head(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request({method:"HEAD",url:e,params:t,options:n})}handleRequestError(e){throw e}createRequestToken(e){if(e){const t=xt.CancelToken.source();return this.requestTokens[e]=t,t.token}}clearRequestToken(e){e&&this.requestTokens[e]&&delete this.requestTokens[e]}}Bt.DEFAULT_TIMEOUT=6e4;var Ut=n(36383);const qt="axios-retry";function $t(e){return!e.response&&(!!e.code&&(!["ERR_CANCELED","ECONNABORTED"].includes(e.code)&&Ut(e)))}const Zt=["get","head","options"],Ht=Zt.concat(["put","delete"]);function Vt(e){return"ECONNABORTED"!==e.code&&(!e.response||429===e.response.status||e.response.status>=500&&e.response.status<=599)}function Wt(e){return!!e.config?.method&&(Vt(e)&&-1!==Ht.indexOf(e.config.method))}function Gt(e){return $t(e)||Wt(e)}function Yt(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;const t=e?.response?.headers["retry-after"];if(!t)return 0;let n=1e3*(Number(t)||0);return 0===n&&(n=(new Date(t).valueOf()||0)-Date.now()),Math.max(0,n)}const Kt={retries:3,retryCondition:Gt,retryDelay:function(){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return Math.max(0,Yt(e))},shouldResetTimeout:!1,onRetry:()=>{},onMaxRetryTimesExceeded:()=>{},validateResponse:null};function Qt(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r=function(e,t){return{...Kt,...t,...e[qt]}}(e,t||{});return r.retryCount=r.retryCount||0,r.lastRequestTime&&!n||(r.lastRequestTime=Date.now()),e[qt]=r,r}const Jt=(e,t)=>{const n=e.interceptors.request.use((e=>(Qt(e,t,!0),e[qt]?.validateResponse&&(e.validateStatus=()=>!1),e))),r=e.interceptors.response.use(null,(async n=>{const{config:r}=n;if(!r)return Promise.reject(n);const o=Qt(r,t);return n.response&&o.validateResponse?.(n.response)?n.response:await async function(e,t){const{retries:n,retryCondition:r}=e,o=(e.retryCount||0)<n&&r(t);if("object"===typeof o)try{return!1!==await o}catch(i){return!1}return o}(o,n)?async function(e,t,n,r){t.retryCount+=1;const{retryDelay:o,shouldResetTimeout:i,onRetry:a}=t,s=o(t.retryCount,n);if(function(e,t){e.defaults.agent===t.agent&&delete t.agent,e.defaults.httpAgent===t.httpAgent&&delete t.httpAgent,e.defaults.httpsAgent===t.httpsAgent&&delete t.httpsAgent}(e,r),!i&&r.timeout&&t.lastRequestTime){const e=Date.now()-t.lastRequestTime,o=r.timeout-e-s;if(o<=0)return Promise.reject(n);r.timeout=o}return r.transformRequest=[e=>e],await a(t.retryCount,n,r),r.signal?.aborted?Promise.resolve(e(r)):new Promise((t=>{const n=()=>{clearTimeout(o),t(e(r))},o=setTimeout((()=>{t(e(r)),r.signal?.removeEventListener&&r.signal.removeEventListener("abort",n)}),s);r.signal?.addEventListener&&r.signal.addEventListener("abort",n,{once:!0})}))}(e,o,n,r):(await async function(e,t){e.retryCount>=e.retries&&await e.onMaxRetryTimesExceeded(t,e.retryCount)}(o,n),Promise.reject(n))}));return{requestInterceptorId:n,responseInterceptorId:r}};Jt.isNetworkError=$t,Jt.isSafeRequestError=function(e){return!!e.config?.method&&(Vt(e)&&-1!==Zt.indexOf(e.config.method))},Jt.isIdempotentRequestError=Wt,Jt.isNetworkOrIdempotentRequestError=Gt,Jt.exponentialDelay=function(){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;const t=2**(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)*(arguments.length>2&&void 0!==arguments[2]?arguments[2]:100),n=Math.max(t,Yt(e));return n+.2*n*Math.random()},Jt.isRetryableError=Vt;const Xt=Jt;var en=n(27102),tn=n(52317),nn=n(48169),rn=n(30490),on=n(49683);const an=e=>({TenantInfo:null===e||void 0===e?void 0:e.databases});var sn=n(18193);const ln=2*tn.NO,cn=10*tn.NO;class un extends Bt{constructor(e){super(e),this.DEFAULT_RETRIES_COUNT=3,Xt(this._axios,{retries:this.DEFAULT_RETRIES_COUNT,retryDelay:Xt.exponentialDelay}),this._axios.interceptors.request.use((function(e){return sn.r.readUserSettingsValue(tn.Ik)&&(e.headers["X-Want-Trace"]=1),e})),this._axios.interceptors.response.use((function(e){if(e.data&&e.data instanceof Object&&!Array.isArray(e.data)&&e.headers.traceresponse){const t=e.headers.traceresponse.split("-")[1];e.data={...e.data,_meta:{...e.data._meta,traceId:t}}}return e})),this._axios.interceptors.response.use(null,(function(e){var t;const n=e.response;return n&&401===n.status&&null!==(t=n.data)&&void 0!==t&&t.authUrl&&window.location.assign(n.data.authUrl),Promise.reject(e)}))}getPath(e){return`${null!==en.y3&&void 0!==en.y3?en.y3:""}${e}`}prepareArrayRequestParam(e){return e.join(",")}getClusterCapabilities(){return this.get(this.getPath("/viewer/capabilities"),{},{})}getClusterInfo(e){let{concurrentId:t,signal:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.get(this.getPath("/viewer/json/cluster"),{name:e,tablets:!0},{concurrentId:t||"getClusterInfo",requestConfig:{signal:n}})}getClusterConfig(e){let{concurrentId:t,signal:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.get(this.getPath("/viewer/feature_flags"),{database:e},{concurrentId:t,requestConfig:{signal:n}})}getNodeInfo(e){let{concurrentId:t,signal:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.get(this.getPath("/viewer/json/sysinfo?enums=true"),{node_id:e},{concurrentId:t,requestConfig:{signal:n}})}getTenants(e){let{concurrentId:t,signal:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.get(this.getPath("/viewer/json/tenantinfo"),{tablets:!1,storage:!0,cluster_name:e},{concurrentId:t,requestConfig:{signal:n}})}getTenantInfo(e){let{path:t,database:n=t}=e,{concurrentId:r,signal:o}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.get(this.getPath("/viewer/json/tenantinfo"),{database:n,path:t,tablets:!1,storage:!0},{concurrentId:r,requestConfig:{signal:o}})}getNodes(e){let{type:t="any",tablets:n=!1,database:r,tenant:o,fieldsRequired:i="all",filter:a,...s}=e,{concurrentId:l,signal:c}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const u=Array.isArray(i)?this.prepareArrayRequestParam(i):i;return this.get(this.getPath("/viewer/json/nodes?enums=true"),{type:t,tablets:n,filter:a||void 0,database:r||o,tenant:o||r,fields_required:u,...s},{concurrentId:l,requestConfig:{signal:c}})}getStorageInfo(e){let{tenant:t,database:n,nodeId:r,groupId:o,pDiskId:i,filter:a,...s}=e,{concurrentId:l,signal:c}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.get(this.getPath("/viewer/json/storage?enums=true"),{database:n||t,tenant:t||n,node_id:r,group_id:o,pdisk_id:i,filter:a||void 0,...s},{concurrentId:l,requestConfig:{signal:c}})}getStorageGroups(e){let{nodeId:t,pDiskId:n,groupId:r,fieldsRequired:o="all",filter:i,...a}=e,{concurrentId:s,signal:l}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const c=Array.isArray(t)?this.prepareArrayRequestParam(t):t,u=Array.isArray(n)?this.prepareArrayRequestParam(n):n,d=Array.isArray(r)?this.prepareArrayRequestParam(r):r,f=Array.isArray(o)?this.prepareArrayRequestParam(o):o;return this.get(this.getPath("/storage/groups"),{node_id:c,pdisk_id:u,group_id:d,fields_required:f,filter:i||void 0,...a},{concurrentId:s,requestConfig:{signal:l}})}getNodeWhiteboardPDiskInfo(e){let{nodeId:t,pDiskId:n}=e,{concurrentId:r,signal:o}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.get(this.getPath("/viewer/json/pdiskinfo?enums=true"),{filter:`(NodeId=${t}${n?`;PDiskId=${n}`:""})`},{concurrentId:r,requestConfig:{signal:o}})}getPDiskInfo(e){let{nodeId:t,pDiskId:n}=e,{concurrentId:r,signal:o}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.get(this.getPath("/pdisk/info"),{node_id:t,pdisk_id:n},{concurrentId:r,requestConfig:{signal:o}})}getVDiskInfo(e){let{vDiskSlotId:t,pDiskId:n,nodeId:r}=e,{concurrentId:o,signal:i}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.get(this.getPath("/viewer/json/vdiskinfo?enums=true"),{node_id:r,filter:`(PDiskId=${n};VDiskSlotId=${t})`},{concurrentId:o,requestConfig:{signal:i}})}getGroupInfo(e){let{concurrentId:t,signal:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.get(this.getPath("/viewer/json/storage?enums=true"),{group_id:e},{concurrentId:t,requestConfig:{signal:n}})}getTabletsInfo(e){let{nodeId:t,path:n,database:r}=e,{concurrentId:o,signal:i}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.get(this.getPath("/viewer/json/tabletinfo"),{database:r,node_id:t,path:n,enums:!0},{concurrentId:o,requestConfig:{signal:i}})}getSchema(e){let{path:t,database:n}=e,{concurrentId:r,signal:o}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.get(this.getPath("/viewer/json/describe"),{database:n,path:t,enums:!0,backup:!1,private:!0,partition_config:!0,partition_stats:!0,partitioning_info:!0,subs:1},{concurrentId:r,requestConfig:{signal:o}})}getDescribe(e){let{path:t,database:n}=e,{concurrentId:r,signal:o}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.get(this.getPath("/viewer/json/describe"),{database:n,path:t,enums:!0,partition_stats:!0,subs:0},{concurrentId:r||`getDescribe|${t}`,requestConfig:{signal:o}})}getSchemaAcl(e){let{path:t,database:n}=e,{concurrentId:r,signal:o}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.get(this.getPath("/viewer/json/acl"),{database:n,path:t,merge_rules:!0},{concurrentId:r,requestConfig:{signal:o}})}getHeatmapData(e){let{path:t,database:n}=e,{concurrentId:r,signal:o}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.get(this.getPath("/viewer/json/describe"),{database:n,path:t,enums:!0,backup:!1,children:!1,partition_config:!1,partition_stats:!0},{concurrentId:r,requestConfig:{signal:o}})}getNetwork(e){let{path:t,database:n}=e,{concurrentId:r,signal:o}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.get(this.getPath("/viewer/json/netinfo"),{enums:!0,database:n,path:t},{concurrentId:r,requestConfig:{signal:o}})}getTopic(e){let{path:t,database:n}=e,{concurrentId:r,signal:o}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.get(this.getPath("/viewer/json/describe_topic"),{enums:!0,include_stats:!0,database:n,path:t},{concurrentId:r,requestConfig:{signal:o}})}getConsumer(e){let{path:t,consumer:n,database:r}=e,{concurrentId:o,signal:i}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.get(this.getPath("/viewer/json/describe_consumer"),{enums:!0,include_stats:!0,database:r,path:t,consumer:n},{concurrentId:o||"getConsumer",requestConfig:{signal:i}})}getTablet(e){let{id:t,database:n,nodeId:r}=e,{concurrentId:o,signal:i}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.get(this.getPath("/viewer/json/tabletinfo"),{enums:!0,database:n,node_id:r,filter:`(TabletId=${t})`},{concurrentId:o,requestConfig:{signal:i}})}getTabletHistory(e){let{id:t,database:n,nodeId:r}=e,{concurrentId:o,signal:i}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.get(this.getPath("/viewer/json/tabletinfo"),{enums:!0,merge:!1,database:n,node_id:r,filter:`(TabletId=${t})`},{concurrentId:o,requestConfig:{signal:i}})}getNodesList(){let{concurrentId:e,signal:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.get(this.getPath("/viewer/json/nodelist"),{enums:!0},{concurrentId:e,requestConfig:{signal:t}})}getTenantsList(){let{concurrentId:e,signal:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.get(this.getPath("/viewer/json/tenants"),{enums:!0,state:0},{concurrentId:e,requestConfig:{signal:t}})}sendQuery(e){let{concurrentId:t,signal:n,withRetries:r}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const o=!sn.r.readUserSettingsValue(tn.N1,!0),{schema:i,...a}=e;return this.post(this.getPath("/viewer/json/query"),{...a,base64:o},{schema:i,base64:o},{concurrentId:t,timeout:e.timeout,requestConfig:{signal:n,"axios-retry":{retries:r?this.DEFAULT_RETRIES_COUNT:0}},headers:e.tracingLevel?{"X-Trace-Verbosity":e.tracingLevel}:void 0})}getHotKeys(e){let{path:t,database:n,enableSampling:r}=e,{concurrentId:o,signal:i}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.get(this.getPath("/viewer/json/hotkeys"),{database:n,path:t,enable_sampling:r},{concurrentId:o||"getHotKeys",requestConfig:{signal:i}})}checkTrace(e){let{url:t}=e,{concurrentId:n,signal:r}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.get(t,{},{concurrentId:n||"checkTrace",requestConfig:{signal:r,timeout:ln,"axios-retry":{retries:30,retryDelay:(e,t)=>{var n;return(0,rn.IZ)(t)&&(404===(null===t||void 0===t||null===(n=t.response)||void 0===n?void 0:n.status)||"ERR_NETWORK"===t.code)?ln:cn},shouldResetTimeout:!0,retryCondition:()=>!0}}})}getHealthcheckInfo(e){let{database:t,maxLevel:n}=e,{concurrentId:r,signal:o}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.get(this.getPath("/viewer/json/healthcheck?merge_records=true"),{database:t,tenant:t,max_level:n},{concurrentId:r,requestConfig:{signal:o}})}evictVDiskOld(e){let{groupId:t,groupGeneration:n,failRealmIdx:r,failDomainIdx:o,vDiskIdx:i}=e;return this.post(this.getPath("/tablets/app?TabletID=72057594037932033&exec=1"),{Command:{ReassignGroupDisk:{GroupId:t,GroupGeneration:n,FailRealmIdx:r,FailDomainIdx:o,VDiskIdx:i}}},{},{headers:{Accept:"application/json"}})}evictVDisk(e){let{groupId:t,groupGeneration:n,failRealmIdx:r,failDomainIdx:o,vDiskIdx:i,force:a}=e;return this.post(this.getPath("/vdisk/evict"),{},{group_id:t,group_generation_id:n,fail_realm_idx:r,fail_domain_idx:o,vdisk_idx:i,force:a},{requestConfig:{"axios-retry":{retries:0}}})}restartPDiskOld(e){let{nodeId:t,pDiskId:n}=e;const r=(0,nn.ok)({nodeId:t,pDiskId:n,host:this.getPath("")});return this.post(r,"restartPDisk=",{},{headers:{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"}})}restartPDisk(e){let{nodeId:t,pDiskId:n,force:r}=e;return this.post(this.getPath("/pdisk/restart"),{},{node_id:t,pdisk_id:n,force:r},{requestConfig:{"axios-retry":{retries:0}}})}changePDiskStatus(e){let{nodeId:t,pDiskId:n,force:r,decommissionStatus:o}=e;return this.post(this.getPath("/pdisk/status"),{decommit_status:o},{node_id:t,pdisk_id:n,force:r},{requestConfig:{"axios-retry":{retries:0}}})}killTablet(e){return this.get(this.getPath(`/tablets?KillTabletID=${e}`),{},{requestConfig:{"axios-retry":{retries:0}}})}stopTablet(e,t){return this.get(this.getPath(`/tablets/app?TabletID=${t}&page=StopTablet&tablet=${e}`),{},{requestConfig:{"axios-retry":{retries:0}}})}resumeTablet(e,t){return this.get(this.getPath(`/tablets/app?TabletID=${t}&page=ResumeTablet&tablet=${e}`),{},{requestConfig:{"axios-retry":{retries:0}}})}getTabletFromHive(e){let{id:t,hiveId:n}=e,{concurrentId:r,signal:o}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.get(this.getPath("/tablets/app"),{TabletID:n,page:"TabletInfo",tablet:t},{concurrentId:r,requestConfig:{signal:o}})}getTabletDescribe(e){let{concurrentId:t,signal:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.get(this.getPath("/viewer/json/describe"),{schemeshard_id:null===e||void 0===e?void 0:e.SchemeShard,path_id:null===e||void 0===e?void 0:e.PathId},{concurrentId:t,requestConfig:{signal:n}})}getChartData(e){let{target:t,from:n,until:r,maxDataPoints:o,database:i}=e,{concurrentId:a,signal:s}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const l=`${t}&from=${n}&until=${r}&maxDataPoints=${o}&format=json`;return this.post(this.getPath(`/viewer/json/render?database=${i}`),l,{},{concurrentId:a,headers:{"Content-Type":"application/x-www-form-urlencoded"},requestConfig:{signal:s}})}authenticate(e){return this.post(this.getPath("/login"),e,{})}logout(){return this.post(this.getPath("/logout"),{},{})}whoami(){return this.get(this.getPath("/viewer/json/whoami"),{})}autocomplete(e){const{table:t,...n}=e,r=null===t||void 0===t?void 0:t.join(",");return this.get(this.getPath("/viewer/json/autocomplete"),{...n,table:r},{concurrentId:"sql-autocomplete"})}createSchemaDirectory(e){let{database:t,path:n}=e,{signal:r}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.post(this.getPath("/scheme/directory"),{},{database:t,path:n},{requestConfig:{signal:r}})}getClustersList(e){throw new Error("Method is not implemented.")}getClusterBaseInfo(e){throw new Error("Method is not implemented.")}}class dn extends un{getClustersList(e){let{signal:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.get(`${en.Vq||""}/meta/clusters`,null,{requestConfig:{signal:t}})}getClusterInfo(e){let{signal:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.get(`${en.Vq||""}/meta/cluster`,{name:e},{concurrentId:`getCluster${e}`,requestConfig:{signal:t}}).then(on.i)}getTenants(e){let{signal:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.get(`${en.Vq||""}/meta/cp_databases`,{cluster_name:e},{requestConfig:{signal:t}}).then(an)}getClusterBaseInfo(e){let{concurrentId:t,signal:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.get(`${en.Vq||""}/meta/db_clusters`,{name:e},{concurrentId:t,requestConfig:{signal:n}}).then((e=>e.clusters[0]))}}function fn(){let{webVersion:e=!1,withCredentials:t=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n={withCredentials:t};return e?new dn({config:n}):new un({config:n})}},49683:(e,t,n)=>{"use strict";n.d(t,{i:()=>a,N:()=>s});var r=n(95408);const o=r.z.object({url:r.z.string().url()}),i=r.z.object({url:r.z.string().url()}),a=e=>{const{cluster:t={}}=e,{cluster:n,balancer:r,solomon:o,trace_check:i,trace_view:a}=t,{traceCheck:l,traceView:c}=s({traceCheck:i,traceView:a});return{...n,Name:t.title||(null===n||void 0===n?void 0:n.Name),Balancer:r,Solomon:o,TraceCheck:l,TraceView:c}};function s(e){let{traceCheck:t,traceView:n}=e;try{return{traceCheck:t?o.parse(JSON.parse(t)):void 0,traceView:n?i.parse(JSON.parse(n)):void 0}}catch(r){console.error("Error parsing trace fields:",r)}return{}}},18193:(e,t,n)=>{"use strict";n.d(t,{r:()=>l,t:()=>s});var r=n(24015),o=n(52317),i=n(39623),a=n(55850);const s={[o.bw]:"system",[o.Px]:void 0,[o.yT]:!1,[o.Rq]:!0,[o.N1]:!0,[o.DG]:[],[o.pf]:r.m2.query,[o.w7]:i.Jf.execute,[o.Ac]:!0,[o.ZY]:[],[o.Qy]:!1,[o.IG]:!0,[o.y6]:!0,[o.XX]:!0,[o.RI]:!1,[o.KU]:0,[o.Zy]:!1,[o.RE]:void 0,[o.Rn]:void 0,[o.Zi]:i.hl};const l=new class{constructor(){this.extractSettingsFromLS=e=>Object.entries(e).reduce(((e,t)=>{let[n,r]=t;return e[n]=this.readUserSettingsValue(n,r),e}),{}),this.readValueFromLS=e=>{try{const t=localStorage.getItem(e);return(0,a.Mo)(t)}catch{return}},this.setValueToLS=(e,t)=>{try{"string"===typeof t?localStorage.setItem(e,t):localStorage.setItem(e,JSON.stringify(t))}catch{}}}readUserSettingsValue(e,t){var n;return null!==(n=this.readValueFromLS(e))&&void 0!==n?n:t}setUserSettingsValue(e,t){return this.setValueToLS(e,t)}}},67510:(e,t,n)=>{"use strict";n.d(t,{y3:()=>O,EZ:()=>T,qw:()=>N,xC:()=>z,j4:()=>j,Vq:()=>M,dx:()=>A});var r=n(1399),o=n(91668),i=n(91087),a=n(48710);const s=e=>{let{href:t,singleClusterMode:n,customBackend:r}=e;if(n){if(r){var o;const e=null!==(o=new URL(t).searchParams.get("backend"))&&void 0!==o?o:void 0;return{basename:"/",backend:e||r}}{const e=window.location.pathname.match(/.*(?=\/monitoring)/)||[],t=e.length>0?e[0]:"";return{basename:[t,"monitoring"].filter(Boolean).join("/"),backend:t||""}}}{var i,a;const e=new URL(t).searchParams;return{basename:"/",backend:null!==(i=e.get("backend"))&&void 0!==i?i:void 0,clusterName:null!==(a=e.get("clusterName"))&&void 0!==a?a:void 0}}};var l=n(89795),c=n(905),u=n(80839),d=n(3027),f=n(84142),p=n.n(f),h=n(25484),m=n.n(h),g=n(3186),v=n.n(g),y=n(63041),b=n.n(y),w=n(94909),E=n(58102),_=n(43903),x=n(78103),S=n(93717);const C={global:{problemFilter:{stateKey:"settings.problemFilter",initialState:u.E3.problemFilter}},"/tenant":{sort:{stateKey:"heatmap.sort",initialState:S.E3.sort,type:"bool"},heatmap:{stateKey:"heatmap.heatmap",initialState:S.E3.heatmap,type:"bool"},currentMetric:{stateKey:"heatmap.currentMetric",initialState:S.E3.currentMetric},tenantPage:{stateKey:"tenant.tenantPage"},queryTab:{stateKey:"tenant.queryTab"},diagnosticsTab:{stateKey:"tenant.diagnosticsTab"},summaryTab:{stateKey:"tenant.summaryTab"},metricsTab:{stateKey:"tenant.metricsTab"},shardsMode:{stateKey:"shardsWorkload.mode"},shardsDateFrom:{stateKey:"shardsWorkload.from"},shardsDateTo:{stateKey:"shardsWorkload.to"},topQueriesDateFrom:{stateKey:"executeTopQueries.from"},topQueriesDateTo:{stateKey:"executeTopQueries.to"},selectedConsumer:{stateKey:"partitions.selectedConsumer"}},"/cluster/tenants":{search:{stateKey:"tenants.searchValue"}}};function k(e,t){return v()({},e,t.query)}let O,T,N,I="";function P(e,t,n){const r=(0,x.stateToParams)(e,t,n);let{location:o}=r;if(o.search===I)return{location:n,shouldPush:!1};{const e=/\?\w+/;return I=o.search,e.test(n.search)&&(o=function(e,t){const{search:n,...r}=e,o=b().parse(t.search.slice(1)),i=(0,E.getMatchingDeclaredPath)(C,e),a=i&&C[i];p()(m()(a),(e=>{delete o[e]})),p()(m()(C.global||{}),(e=>{delete o[e]}));const s=b().stringify(o,{encoder:encodeURIComponent}),l=n.startsWith("?")?"&":"?";return{search:`${n}${l}${s}`,...r}}(o,n)),{...r,location:o}}}function R(e,t,n){return(r,o)=>{const i=((n,r)=>{const{type:o,payload:i}=r;if(!i)return n;if(w.LOCATION_POP===o||w.LOCATION_PUSH===o){const r=i;return r.query=(0,_.parseQuery)(e,i),t(n,r)}return n})(n(r,o),o);return i!==r?i:r}}function D(e,t,n,o){const{locationMiddleware:a,reducersWithLocation:s}=function(e,t){const{locationMiddleware:n}=(0,i.zl)(C,k,e,t,P);return{locationMiddleware:n,reducersWithLocation:R(C,k,t)}}(t,e),l=(0,r.xC)({reducer:s,preloadedState:n,middleware:e=>e({immutableCheck:{ignoredPaths:["tooltip.currentHoveredRef"]},serializableCheck:{ignoredPaths:["tooltip.currentHoveredRef","api"],ignoredActions:[d.MB,"api/executeQuery/rejected"]}}).concat(a,...o)});return(0,u.vD)(l),l}const A=window.web_version,j=window.custom_backend,M=window.meta_backend,L="undefined"===`${M}`;function z(){let{aRootReducer:e=l.Z,singleClusterMode:t=L,api:n=(0,a.LC)({webVersion:A,withCredentials:!j})}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};({backend:O,basename:T,clusterName:N}=s({href:window.location.href,singleClusterMode:t,customBackend:j}));const r=(0,o.lX)({basename:T}),u=D(e,r,{singleClusterMode:t},[c.h.middleware]);return(0,i.C1)(u,r),window.api=n,{history:r,store:u}}},27102:(e,t,n)=>{"use strict";n.d(t,{EZ:()=>r.EZ,QW:()=>o.Q,Vq:()=>r.Vq,dx:()=>r.dx,j4:()=>r.j4,qw:()=>r.qw,xC:()=>r.xC,y3:()=>r.y3});var r=n(67510),o=n(89795)},905:(e,t,n)=>{"use strict";n.d(t,{h:()=>w});var r=n(17095),o=n(38907),i=n(1399),a=n(68963),s=n(87555),l=n(36313);function c(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Object.assign(e,...n)}function u(e){return e.replace(e[0],e[0].toUpperCase())}var d=WeakMap?new WeakMap:void 0,f=e=>{let{endpointName:t,queryArgs:n}=e,r="";const i=d?.get(n);if("string"===typeof i)r=i;else{const e=JSON.stringify(n,((e,t)=>(0,o.PO)(t)?Object.keys(t).sort().reduce(((e,n)=>(e[n]=t[n],e)),{}):t));(0,o.PO)(n)&&d?.set(n,e),r=e}return`${t}(${r})`},p=Symbol();function h(e,t,n,r){const o=(0,a.useMemo)((()=>({queryArgs:e,serialized:"object"==typeof e?t({queryArgs:e,endpointDefinition:n,endpointName:r}):e})),[e,t,n,r]),i=(0,a.useRef)(o);return(0,a.useEffect)((()=>{i.current.serialized!==o.serialized&&(i.current=o)}),[o]),i.current.serialized===o.serialized?i.current.queryArgs:e}function m(e){const t=(0,a.useRef)(e);return(0,a.useEffect)((()=>{(0,s.wU)(t.current,e)||(t.current=e)}),[e]),(0,s.wU)(t.current,e)?t.current:e}var g="undefined"!==typeof window&&window.document&&window.document.createElement?a.useLayoutEffect:a.useEffect,v=e=>e.isUninitialized?{...e,isUninitialized:!1,isFetching:!0,isLoading:void 0===e.data,status:r.oZ.pending}:e;var y=Symbol();var b=(0,r.Tk)((0,r.hF)(),function(){let{batch:e=s.dC,hooks:t={useDispatch:s.I0,useSelector:s.v9,useStore:s.oR},createSelector:n=l.P1,unstable__sideEffectsInRender:o=!1,...d}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{name:y,init(l,d,y){let{serializeQueryArgs:b}=d;const w=l,{buildQueryHooks:E,buildMutationHook:_,usePrefetch:x}=function(e){let{api:t,moduleOptions:{batch:n,hooks:{useDispatch:o,useSelector:l,useStore:c},unstable__sideEffectsInRender:u,createSelector:d},serializeQueryArgs:y,context:b}=e;const w=u?e=>e():a.useEffect;return{buildQueryHooks:function(e){const u=function(n){let{refetchOnReconnect:s,refetchOnFocus:l,refetchOnMountOrArgChange:c,skip:u=!1,pollingInterval:d=0,skipPollingIfUnfocused:p=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{initiate:g}=t.endpoints[e],v=o(),y=(0,a.useRef)();if(!y.current){const e=v(t.internalActions.internal_getRTKQSubscriptions());y.current=e}const E=h(u?r.CN:n,f,b.endpointDefinitions[e],e),_=m({refetchOnReconnect:s,refetchOnFocus:l,pollingInterval:d,skipPollingIfUnfocused:p}),x=(0,a.useRef)(!1),S=(0,a.useRef)();let{queryCacheKey:C,requestId:k}=S.current||{},O=!1;C&&k&&(O=y.current.isRequestSubscribed(C,k));const T=!O&&x.current;return w((()=>{x.current=O})),w((()=>{T&&(S.current=void 0)}),[T]),w((()=>{const e=S.current;if(E===r.CN)return e?.unsubscribe(),void(S.current=void 0);const t=S.current?.subscriptionOptions;if(e&&e.arg===E)_!==t&&e.updateSubscriptionOptions(_);else{e?.unsubscribe();const t=v(g(E,{subscriptionOptions:_,forceRefetch:c}));S.current=t}}),[v,g,c,E,_,T]),(0,a.useEffect)((()=>()=>{S.current?.unsubscribe(),S.current=void 0}),[]),(0,a.useMemo)((()=>({refetch:()=>{if(!S.current)throw new Error((0,i.rJ)(38));return S.current?.refetch()}})),[])},_=function(){let{refetchOnReconnect:r,refetchOnFocus:i,pollingInterval:s=0,skipPollingIfUnfocused:l=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{initiate:c}=t.endpoints[e],u=o(),[d,f]=(0,a.useState)(p),h=(0,a.useRef)(),g=m({refetchOnReconnect:r,refetchOnFocus:i,pollingInterval:s,skipPollingIfUnfocused:l});w((()=>{const e=h.current?.subscriptionOptions;g!==e&&h.current?.updateSubscriptionOptions(g)}),[g]);const v=(0,a.useRef)(g);w((()=>{v.current=g}),[g]);const y=(0,a.useCallback)((function(e){let t,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return n((()=>{h.current?.unsubscribe(),h.current=t=u(c(e,{subscriptionOptions:v.current,forceRefetch:!r})),f(e)})),t}),[u,c]);return(0,a.useEffect)((()=>()=>{h?.current?.unsubscribe()}),[]),(0,a.useEffect)((()=>{d===p||h.current||y(d,!0)}),[d,y]),(0,a.useMemo)((()=>[y,d]),[y,d])},x=function(n){let{skip:o=!1,selectFromResult:i}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{select:u}=t.endpoints[e],f=h(o?r.CN:n,y,b.endpointDefinitions[e],e),p=(0,a.useRef)(),m=(0,a.useMemo)((()=>d([u(f),(e,t)=>t,e=>f],E,{memoizeOptions:{resultEqualityCheck:s.wU}})),[u,f]),v=(0,a.useMemo)((()=>i?d([m],i,{devModeChecks:{identityFunctionCheck:"never"}}):m),[m,i]),w=l((e=>v(e,p.current)),s.wU),_=c(),x=m(_.getState(),p.current);return g((()=>{p.current=x}),[x]),w};return{useQueryState:x,useQuerySubscription:u,useLazyQuerySubscription:_,useLazyQuery(e){const[t,n]=_(e),r=x(n,{...e,skip:n===p}),o=(0,a.useMemo)((()=>({lastArg:n})),[n]);return(0,a.useMemo)((()=>[t,r,o]),[t,r,o])},useQuery(e,t){const n=u(e,t),o=x(e,{selectFromResult:e===r.CN||t?.skip?void 0:v,...t}),{data:i,status:s,isLoading:l,isSuccess:c,isError:d,error:f}=o;return(0,a.useDebugValue)({data:i,status:s,isLoading:l,isSuccess:c,isError:d,error:f}),(0,a.useMemo)((()=>({...o,...n})),[o,n])}}},buildMutationHook:function(e){return function(){let{selectFromResult:r,fixedCacheKey:i}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{select:c,initiate:u}=t.endpoints[e],f=o(),[p,h]=(0,a.useState)();(0,a.useEffect)((()=>()=>{p?.arg.fixedCacheKey||p?.reset()}),[p]);const m=(0,a.useCallback)((function(e){const t=f(u(e,{fixedCacheKey:i}));return h(t),t}),[f,u,i]),{requestId:g}=p||{},v=(0,a.useMemo)((()=>c({fixedCacheKey:i,requestId:p?.requestId})),[i,p,c]),y=(0,a.useMemo)((()=>r?d([v],r):v),[r,v]),b=l(y,s.wU),w=null==i?p?.arg.originalArgs:void 0,E=(0,a.useCallback)((()=>{n((()=>{p&&h(void 0),i&&f(t.internalActions.removeMutationResult({requestId:g,fixedCacheKey:i}))}))}),[f,i,p,g]),{endpointName:_,data:x,status:S,isLoading:C,isSuccess:k,isError:O,error:T}=b;(0,a.useDebugValue)({endpointName:_,data:x,status:S,isLoading:C,isSuccess:k,isError:O,error:T});const N=(0,a.useMemo)((()=>({...b,originalArgs:w,reset:E})),[b,w,E]);return(0,a.useMemo)((()=>[m,N]),[m,N])}},usePrefetch:function(e,n){const r=o(),i=m(n);return(0,a.useCallback)(((n,o)=>r(t.util.prefetch(e,n,{...i,...o}))),[e,r,i])}};function E(e,t,n){if(t?.endpointName&&e.isUninitialized){const{endpointName:e}=t,r=b.endpointDefinitions[e];y({queryArgs:t.originalArgs,endpointDefinition:r,endpointName:e})===y({queryArgs:n,endpointDefinition:r,endpointName:e})&&(t=void 0)}let r=e.isSuccess?e.data:t?.data;void 0===r&&(r=e.data);const o=void 0!==r,i=e.isLoading,a=!o&&i,s=e.isSuccess||i&&o;return{...e,data:r,currentData:e.data,isFetching:i,isLoading:a,isSuccess:s}}}({api:l,moduleOptions:{batch:e,hooks:t,unstable__sideEffectsInRender:o,createSelector:n},serializeQueryArgs:b,context:y});return c(w,{usePrefetch:x}),c(y,{batch:e}),{injectEndpoint(e,t){if("query"===t.type){const{useQuery:t,useLazyQuery:n,useLazyQuerySubscription:r,useQueryState:o,useQuerySubscription:i}=E(e);c(w.endpoints[e],{useQuery:t,useLazyQuery:n,useLazyQuerySubscription:r,useQueryState:o,useQuerySubscription:i}),l[`use${u(e)}Query`]=t,l[`useLazy${u(e)}Query`]=n}else if(function(e){return"mutation"===e.type}(t)){const t=_(e);c(w.endpoints[e],{useMutation:t}),l[`use${u(e)}Mutation`]=t}}}}}}());const w=b({baseQuery:function(){throw new Error("When using `fakeBaseQuery`, all queries & mutations must use the `queryFn` definition syntax.")},endpoints:()=>({}),invalidationBehavior:"immediately",tagTypes:["All","PDiskData","PreviewData","StorageData","Tablet","UserData","VDiskData"]});Symbol()},14146:(e,t,n)=>{"use strict";n.d(t,{VH:()=>u,ZP:()=>s,dy:()=>d,nc:()=>f});var r=n(1399),o=n(30490),i=n(905);const a=(0,r.oM)({name:"authentication",initialState:{isAuthenticated:!0,user:""},reducers:{setIsAuthenticated:(e,t)=>{const n=t.payload;e.isAuthenticated=n,n||(e.user="")},setUser:(e,t)=>{const{UserSID:n,AuthType:r,IsMonitoringAllowed:o}=t.payload;e.user="Login"===r?n:void 0,e.isUserAllowedToMakeChanges=!1!==o}},selectors:{selectIsUserAllowedToMakeChanges:e=>e.isUserAllowedToMakeChanges,selectUser:e=>e.user}}),s=a.reducer,{setIsAuthenticated:l,setUser:c}=a.actions,{selectIsUserAllowedToMakeChanges:u,selectUser:d}=a.selectors,f=i.h.injectEndpoints({endpoints:e=>({whoami:e.query({queryFn:async(e,t)=>{let{dispatch:n}=t;try{const e=await window.api.whoami();return n(c(e)),{data:e}}catch(i){var r;return!(0,o.$z)(i)||401!==i.status||null!==(r=i.data)&&void 0!==r&&r.authUrl||n(l(!1)),{error:i}}},providesTags:["UserData"]}),authenticate:e.mutation({queryFn:async(e,t)=>{let{dispatch:n}=t;try{const t=await window.api.authenticate(e);return n(l(!0)),{data:t}}catch(r){return{error:r}}},invalidatesTags:(e,t)=>t?[]:["UserData"]}),logout:e.mutation({queryFn:async(e,t)=>{let{dispatch:n}=t;try{const e=await window.api.logout();return n(l(!1)),{data:e}}catch(r){return{error:r}}}})}),overrideExisting:"throw"})},29326:(e,t,n)=>{"use strict";n.d(t,{AE:()=>s,Gi:()=>o,Yv:()=>a});var r=n(36313);const o=n(905).h.injectEndpoints({endpoints:e=>({getClusterCapabilities:e.query({queryFn:async()=>{try{return{data:await window.api.getClusterCapabilities()}}catch(e){return{error:e}}}})}),overrideExisting:"throw"}),i=o.endpoints.getClusterCapabilities.select(void 0),a=(0,r.P1)((e=>e),((e,t)=>t),((e,t)=>{var n,r;return null===(n=i(e).data)||void 0===n||null===(r=n.Capabilities)||void 0===r?void 0:r[t]}));async function s(e,t){let{dispatch:n,getState:r}=t;const i=o.util.getRunningQueryThunk("getClusterCapabilities",void 0);return await n(i),a(r(),e)||0}},17880:(e,t,n)=>{"use strict";n.d(t,{X_:()=>l,bq:()=>d,j0:()=>s,rU:()=>i,tS:()=>u,uY:()=>c});var r=n(17096),o=n(29326);function i(){const{data:e,error:t}=o.Gi.useGetClusterCapabilitiesQuery(void 0);return Boolean(e||t)}const a=e=>(0,r.ix)((t=>(0,o.Yv)(t,e)||0)),s=()=>a("/scheme/directory")>0,l=()=>a("/pdisk/info")>0,c=()=>a("/viewer/query")>2,u=()=>a("/storage/groups")>2,d=()=>a("/viewer/feature_flags")>1},77915:(e,t,n)=>{"use strict";n.d(t,{UM:()=>E,ZP:()=>w,le:()=>C,LQ:()=>b,kW:()=>_});var r=n(1399),o=n(36313),i=n(17095),a=n(52846),s=n(81003),l=n(49683),c=n(1558),u=n(52317),d=n(39623),f=n(905);const p=e=>{var t,n;const r=null===(t=e.match(/^Type:(?<type>[A-Za-z]+)/))||void 0===t||null===(n=t.groups)||void 0===n?void 0:n.type;return"ROT"===r?"HDD":r};function h(e){const t={};return null===e||void 0===e||e.forEach((e=>{const{PDiskFilter:n,ErasureSpecies:r,CurrentAvailableSize:o,CurrentAllocatedSize:i,CurrentGroupsCreated:a,AvailableGroupsToCreate:s}=e,l=Number(a)||0,c=l+(Number(s)||0),u=Number(i)||0,d=Number(o)||0,f=n&&"string"===typeof n&&p(n);if(f&&r&&"string"===typeof r&&l){const e={diskType:f,erasure:r,createdGroups:l,totalGroups:c,allocatedSize:u,availableSize:d};if(t[f])if(t[f][r]){const e={...t[f][r]};t[f][r]={diskType:f,erasure:r,createdGroups:e.createdGroups+l,totalGroups:e.totalGroups+c,allocatedSize:e.allocatedSize+u,availableSize:e.availableSize+d}}else t[f][r]=e;else t[f]={[r]:e}}})),t}const m=localStorage.getItem(u.S7);let g;g=(0,s.V2)(m)?m:s.xu.overview;const v={defaultClusterTab:g},y=(0,r.oM)({name:"cluster",initialState:v,reducers:{setDefaultClusterTab(e,t){e.defaultClusterTab=t.payload}}});function b(e){return t=>{(0,s.V2)(e)&&(localStorage.setItem(u.S7,e),t(y.actions.setDefaultClusterTab(e)))}}const w=y.reducer,E=f.h.injectEndpoints({endpoints:e=>({getClusterInfo:e.query({queryFn:async(e,t)=>{let{signal:n}=t;try{const t=await window.api.getClusterInfo(e,{signal:n}),i=t.Domain;if(!i)return{data:{clusterData:t}};if((0,c.j)(t))return{data:{clusterData:t,groupsStats:(o=t,h(o.StorageStats))}};try{const e=(e=>`\nSELECT \n PDiskFilter,\n ErasureSpecies,\n CurrentAvailableSize,\n CurrentAllocatedSize,\n CurrentGroupsCreated,\n AvailableGroupsToCreate\n FROM \`${e}/.sys/ds_storage_stats\`\n ORDER BY CurrentGroupsCreated DESC;\n`)(i),n=await window.api.sendQuery({schema:"modern",query:e,database:i,action:"execute-scan"});return(0,d.gW)(n)?{data:{clusterData:t}}:{data:{clusterData:t,groupsStats:(r=n,h((0,d.gY)(r).result))}}}catch{return{data:{clusterData:t}}}}catch(i){return{error:i}}var r,o},providesTags:["All"]}),getClusterBaseInfo:e.query({queryFn:async(e,t)=>{let{signal:n}=t;try{return{data:await window.api.getClusterBaseInfo(e,{signal:n})}}catch(r){return{error:r}}},providesTags:["All"]})}),overrideExisting:"throw"});function _(){var e;const[t]=(0,a.useQueryParam)("clusterName",a.StringParam),{currentData:n}=E.useGetClusterBaseInfoQuery(null!==t&&void 0!==t?t:i.CN),{solomon:r,name:o,trace_check:s,trace_view:c,...u}=n||{};return{...u,...(0,l.N)({traceCheck:s,traceView:c}),name:null!==(e=null!==o&&void 0!==o?o:t)&&void 0!==e?e:void 0,monitoring:r}}const x=(0,o.P1)((e=>e),(e=>E.endpoints.getClusterInfo.select(e))),S=(0,o.P1)((e=>e),((e,t)=>x(t)),((e,t)=>t(e).data)),C=(0,o.P1)(((e,t)=>t),((e,t)=>S(e,t)),((e,t)=>{const{Name:n,Domain:r}=(null===t||void 0===t?void 0:t.clusterData)||{};return n||e||function(e){if(!e)return;return(e.startsWith("/")?e.slice(1):e).toUpperCase()}(r)||u.DO}))},20163:(e,t,n)=>{"use strict";n.d(t,{g_:()=>c,W1:()=>u,ZP:()=>l});var r=n(1399),o=n(905),i=n(90860);const a=e=>{const{clusters:t=[]}=e;let n=new Map;t.forEach((e=>{let{versions:t=[]}=e;n=(0,i.kn)(t,n)}));const r=(0,i.n$)(n);return t.map((e=>({...e,preparedVersions:(0,i.B_)(e.versions,r)})))},s=(0,r.oM)({name:"clusters",initialState:{clusterName:"",status:[],service:[],version:[]},reducers:{changeClustersFilters:(e,t)=>({...e,...t.payload})}}),l=s.reducer,{changeClustersFilters:c}=s.actions,u=o.h.injectEndpoints({endpoints:e=>({getClustersList:e.query({queryFn:async(e,t)=>{let{signal:n}=t;try{const e=await window.api.getClustersList(void 0,{signal:n});return{data:a(e)}}catch(r){return{error:r}}},providesTags:["All"]})}),overrideExisting:"throw"})},83786:(e,t,n)=>{"use strict";n.d(t,{AJ:()=>k,Ae:()=>S,B8:()=>O,K0:()=>T,NU:()=>C,ZP:()=>R,hO:()=>x,mg:()=>_,qV:()=>I,u$:()=>P,vS:()=>N});var r=n(18193),o=n(6544),i=n(90117),a=n(52317),s=n(39623),l=n(55850),c=n(905);const u=20,d="query/CHANGE_USER_INPUT",f="query/SET_QUERY_RESULT",p="query/SAVE_QUERY_TO_HISTORY",h="query/UPDATE_QUERY_IN_HISTORY",m="query/SET_QUERY_HISTORY_FILTER",g="query/GO_TO_PREVIOUS_QUERY",v="query/GO_TO_NEXT_QUERY",y="query/SET_TENANT_PATH",b=r.r.readUserSettingsValue(a.if,[]),w=b.length-u,E={loading:!1,input:"",history:{queries:b.slice(w<0?0:w).map((function(e){if("string"===typeof e)return{queryText:e};return e})),currentIndex:b.length>u?u-1:b.length-1,filter:""}},_=c.h.injectEndpoints({endpoints:e=>({executeQuery:e.mutation({queryFn:async(e,t)=>{let{query:n,database:r,querySettings:a={},schema:c="modern",enableTracingLevel:u,queryId:d}=e,{signal:f,dispatch:p}=t,m="execute",g=s.jM.yql;p(S({type:i.X.EXECUTE,queryId:d,isLoading:!0})),"pg"===a.queryMode?(m="execute-query",g=s.jM.pg):a.queryMode&&(m=`execute-${a.queryMode}`);try{var v;const e=Date.now(),t=await window.api.sendQuery({schema:c,query:n,database:r,action:m,syntax:g,stats:a.statisticsMode,tracingLevel:a.tracingLevel&&u?o.u[a.tracingLevel]:void 0,limit_rows:(0,l.kE)(a.limitRows)?Number(a.limitRows):void 0,transaction_mode:"implicit"===a.transactionMode?void 0:a.transactionMode,timeout:(0,l.kE)(a.timeout)?1e3*Number(a.timeout):void 0,query_id:d},{signal:f});if((0,s.gW)(t))return p(S({type:i.X.EXECUTE,error:t,isLoading:!1,queryId:d})),{error:t};const y=(0,s.gY)(t);y.traceId=null===t||void 0===t||null===(v=t._meta)||void 0===v?void 0:v.traceId;const b={};if(y.stats){const{DurationUs:e,Executions:[{FinishTimeMs:t}]=[{}]}=y.stats;b.durationUs=e,b.endTime=t}else{const t=Date.now();b.durationUs=1e3*(t-e),b.endTime=t}return p(function(e,t){return{type:h,data:{queryId:t,stats:e}}}(b,d)),p(S({type:i.X.EXECUTE,data:y,isLoading:!1,queryId:d})),{data:null}}catch(y){return p(S({type:i.X.EXECUTE,error:y,isLoading:!1,queryId:d})),{error:y}}}})}),overrideExisting:"throw"}),x=(e,t)=>({type:p,data:{queryText:e,queryId:t}});function S(e){return{type:f,data:e}}const C=()=>({type:g}),k=()=>({type:v}),O=e=>{let{input:t}=e;return{type:d,data:{input:t}}},T=e=>({type:y,data:e}),N=e=>e.executeQuery.history.filter||"",I=e=>{var t;const n=e.executeQuery.history.queries,r=null===(t=e.executeQuery.history.filter)||void 0===t?void 0:t.toLowerCase();return r?n.filter((e=>e.queryText.toLowerCase().includes(r))):n};const P=e=>({type:m,data:{filter:e}}),R=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:E,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case d:return{...e,input:t.data.input};case f:return{...e,result:t.data};case p:{const{queryText:n,queryId:o}=t.data,i=[...e.history.queries,{queryText:n,queryId:o}].slice(e.history.queries.length>=u?1:0);r.r.setUserSettingsValue(a.if,i);const s=i.length-1;return{...e,history:{queries:i,currentIndex:s}}}case h:{const{queryId:n,stats:o}=t.data;if(!o)return e;const i=e.history.queries.findIndex((e=>e.queryId===n));if(-1===i)return e;const s=[...e.history.queries],{durationUs:l,endTime:c}=o;return s.splice(i,1,{...e.history.queries[i],durationUs:l,endTime:c}),r.r.setUserSettingsValue(a.if,s),{...e,history:{...e.history,queries:s}}}case g:{const t=e.history.currentIndex;if(t<=0)return e;const n=t-1,r=e.history.queries[n];return{...e,history:{...e.history,currentIndex:n},input:r.queryText}}case v:{const t=e.history.queries.length-1,n=e.history.currentIndex;if(n>=t)return e;const r=n+1,o=e.history.queries[r];return{...e,history:{...e.history,currentIndex:r},input:o.queryText}}case y:return{...e,tenantPath:t.data};case m:return{...e,history:{...e.history,filter:t.data.filter}};default:return e}}},30667:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>f,Im:()=>d,MU:()=>h});var r=n(396),o=n(1399),i=n(39623),a=n(905);const s="EndTime",l="IntervalEnd",c=e=>`(\n SELECT\n MAX(${l})\n FROM \`${e}/.sys/top_queries_by_cpu_time_one_hour\`\n)`;const u=(0,o.oM)({name:"executeTopQueries",initialState:{},reducers:{setTopQueriesFilters:(e,t)=>({...e,...t.payload})}}),{setTopQueriesFilters:d}=u.actions,f=u.reducer,p=(e,t)=>{const n=function(e,t){var n,o;const i=[],a=null===(n=(0,r.J)(Number(null===t||void 0===t?void 0:t.to)||(null===t||void 0===t?void 0:t.to)))||void 0===n?void 0:n.valueOf(),u=null===(o=(0,r.J)(Number(null===t||void 0===t?void 0:t.from)||(null===t||void 0===t?void 0:t.from)))||void 0===o?void 0:o.valueOf();if(u&&a&&u>a)throw new Error("Invalid date range");if(u){const e=a===u?">=":">";i.push(`${s} ${e} Timestamp('${new Date(u).toISOString()}')`)}return a&&i.push(`${s} <= Timestamp('${new Date(a).toISOString()}')`),u||a||i.push(`${l} IN ${c(e)}`),null!==t&&void 0!==t&&t.text&&i.push(`QueryText ILIKE '%${t.text}%'`),i.join(" AND ")}(e,t);return`\nSELECT\n CPUTime as CPUTimeUs,\n QueryText,\n IntervalEnd,\n EndTime,\n ReadRows,\n ReadBytes,\n UserSID,\n Duration\nFROM \`${e}/.sys/top_queries_by_cpu_time_one_hour\`\nWHERE ${n||"true"}\nORDER BY CPUTimeUs DESC\n`},h=a.h.injectEndpoints({endpoints:e=>({getTopQueries:e.query({queryFn:async(e,t)=>{let{database:n,filters:r}=e,{signal:o}=t;const a={...r,from:(null===r||void 0===r?void 0:r.from)||"now-1h",to:(null===r||void 0===r?void 0:r.to)||"now"};try{const e=await window.api.sendQuery({schema:"modern",query:p(n,a),database:n,action:"execute-scan"},{signal:o,withRetries:!0});if((0,i.gW)(e))return{error:e};return{data:(0,i.gY)(e)}}catch(s){return{error:s}}},forceRefetch:e=>{var t,n,o,i;let{currentArg:a}=e;return!(null!==a&&void 0!==a&&null!==(t=a.filters)&&void 0!==t&&t.from&&null!==a&&void 0!==a&&null!==(n=a.filters)&&void 0!==n&&n.to&&!(0,r.KN)(null===a||void 0===a||null===(o=a.filters)||void 0===o?void 0:o.from)&&!(0,r.KN)(null===a||void 0===a||null===(i=a.filters)||void 0===i?void 0:i.to))}})}),overrideExisting:"throw"})},56963:(e,t,n)=>{"use strict";n.d(t,{Xl:()=>a,ZP:()=>l,vj:()=>s});const r="ENABLE_FULLSCREEN_MODE",o="DISABLE_FULLSCREEN_MODE",i=!1;function a(){return{type:r}}function s(){return{type:o}}const l=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i;switch((arguments.length>1?arguments[1]:void 0).type){case o:return!1;case r:return!0;default:return e}}},79061:(e,t,n)=>{"use strict";n.d(t,{J:()=>i,Z:()=>a});const r="header/SET_HEADER_BREADCRUMBS",o={pageBreadcrumbsOptions:{}};function i(e,t){return{type:r,page:e,options:t}}const a=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o,t=arguments.length>1?arguments[1]:void 0;return t.type===r?{page:t.page,pageBreadcrumbsOptions:t.options}:e}},93717:(e,t,n)=>{"use strict";n.d(t,{E3:()=>i,U_:()=>l,Vc:()=>c,ZP:()=>s});var r=n(1399),o=n(905);const i={currentMetric:void 0,sort:!1,heatmap:!1},a=(0,r.oM)({name:"heatmap",initialState:i,reducers:{setHeatmapOptions:(e,t)=>({...e,...t.payload})}}),s=a.reducer,{setHeatmapOptions:l}=a.actions,c=o.h.injectEndpoints({endpoints:e=>({getHeatmapTabletsInfo:e.query({queryFn:async(e,t)=>{let{path:n,database:r}=e,{signal:o,getState:i,dispatch:a}=t;try{var s;const e=function(e){let[t,n]=e;const{TabletStateInfo:r=[]}=t,o=new Map,{PathDescription:i={}}=null!==n&&void 0!==n?n:{},{TablePartitions:a=[],TablePartitionStats:s=[],TablePartitionMetrics:l=[]}=i;r.forEach((e=>{e.TabletId&&o.set(e.TabletId,e)})),a.forEach(((e,t)=>{const n=Object.assign({},s[t],l[t]);e.DatashardId&&o.set(e.DatashardId,{...o.get(e.DatashardId),metrics:n})}));const c=Array.from(o.values()),u=c[0]&&c[0].metrics&&Object.keys(c[0].metrics).map((e=>({value:e,content:e})));return{tablets:c,metrics:u}}(await Promise.all([window.api.getTabletsInfo({path:n,database:r},{signal:o}),window.api.getHeatmapData({path:n,database:r},{signal:o})]));if(null!==(s=e.metrics)&&void 0!==s&&s.length){const t=i().heatmap.currentMetric;t&&e.metrics.find((e=>e.value===t))||a(l({currentMetric:e.metrics[0].value}))}return{data:e}}catch(c){return{error:c}}},providesTags:["All"]})}),overrideExisting:"throw"})},89795:(e,t,n)=>{"use strict";n.d(t,{Z:()=>x,Q:()=>_});var r=n(38907),o=n(905),i=n(14146),a=n(77915),s=n(20163),l=n(83786),c=n(30667),u=n(56963),d=n(79061),f=n(93717),p=n(42703),h=n(89003),m=n(6748),g=n(80839),v=n(9345);const y=function(){return!(arguments.length>0&&void 0!==arguments[0])||arguments[0]};var b=n(8511),w=n(53809),E=n(3027);const _={[o.h.reducerPath]:o.h.reducer,singleClusterMode:y,cluster:a.ZP,tenant:b.ZP,tooltip:E.ZP,schema:m.ZP,tenants:w.ZP,partitions:p.ZP,executeQuery:l.ZP,heatmap:f.ZP,settings:g.ZP,executeTopQueries:c.ZP,shardsWorkload:v.ZP,authentication:i.ZP,header:d.Z,queryActions:h.ZP,fullscreen:u.ZP,clusters:s.ZP},x=(0,r.UY)({..._})},99337:(e,t,n)=>{"use strict";n.d(t,{W:()=>i,d:()=>s});var r=n(36313),o=n(51688);const i=n(905).h.injectEndpoints({endpoints:e=>({getNodesList:e.query({queryFn:async(e,t)=>{let{signal:n}=t;try{return{data:await window.api.getNodesList({signal:n})}}catch(r){return{error:r}}},providesTags:["All"]})}),overrideExisting:"throw"}),a=i.endpoints.getNodesList.select(void 0),s=(0,r.P1)((e=>a(e).data),(e=>(0,o.dn)(e)))},42703:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>d,TB:()=>f,M$:()=>u});var r=n(1399),o=n(905),i=n(81854),a=n(1504),s=n(55850);const l=e=>{const{partition_offsets:t,store_size_bytes:n="0",last_write_time:r,max_write_time_lag:o,bytes_written:s,partition_node_id:l=0}=e||{},{start:c="0",end:u="0"}=t||{};return{storeSize:n,writeSpeed:(0,i.c4)(s),partitionWriteLag:(0,a.DA)(o),partitionWriteIdleTime:(0,a.lE)(r),startOffset:c,endOffset:u,partitionNodeId:l}},c=(0,r.oM)({name:"partitions",initialState:{selectedConsumer:""},reducers:{setSelectedConsumer:(e,t)=>{e.selectedConsumer=t.payload}}}),{setSelectedConsumer:u}=c.actions,d=c.reducer,f=o.h.injectEndpoints({endpoints:e=>({getPartitions:e.query({queryFn:async(e,t)=>{let{path:n,database:r,consumerName:o}=e,{signal:c}=t;try{if(o){const e=await window.api.getConsumer({path:n,database:r,consumer:o},{signal:c}),t=(e=>null===e||void 0===e?void 0:e.map((e=>{const{partition_id:t="0",partition_stats:n,partition_consumer_stats:r}=e,o=l(n),{endOffset:c}=o,{last_read_offset:u="0",committed_offset:d="0",read_session_id:f,last_read_time:p,max_read_time_lag:h,max_write_time_lag:m,bytes_read:g,reader_name:v,connection_node_id:y=0}=r||{},b=(0,s.kE)(c)&&(0,s.kE)(d)?Number(c)-Number(d):0,w=(0,s.kE)(c)&&(0,s.kE)(u)?Number(c)-Number(u):0;return{...o,partitionId:t,readSpeed:(0,i.c4)(g),consumerWriteLag:(0,a.DA)(m),consumerReadLag:(0,a.DA)(h),consumerReadIdleTime:(0,a.lE)(p),uncommitedMessages:b,unreadMessages:w,commitedOffset:d,readSessionId:f,readerName:v,connectionNodeId:y}})))(e.partitions);return{data:t}}{const e=await window.api.getTopic({path:n,database:r},{signal:c}),t=(e=>null===e||void 0===e?void 0:e.map((e=>{const{partition_id:t="0",partition_stats:n}=e;return{partitionId:t,...l(n)}})))(e.partitions);return{data:t}}}catch(u){return{error:u}}},providesTags:["All"]})}),overrideExisting:"throw"})},89003:(e,t,n)=>{"use strict";n.d(t,{GC:()=>l,PM:()=>g,ZP:()=>s,b0:()=>d,g0:()=>f,lm:()=>u,oK:()=>p,qF:()=>m,y3:()=>c,zC:()=>h});var r=n(1399),o=n(52317),i=n(80839);const a=(0,r.oM)({name:"queryActions",initialState:{queryName:null,queryAction:"idle",savedQueriesFilter:""},reducers:{setQueryNameToEdit:(e,t)=>{e.queryName=t.payload},clearQueryNameToEdit:e=>{e.queryName=null},setQueryAction:(e,t)=>{e.queryAction=t.payload},setSavedQueriesFilter:(e,t)=>{e.savedQueriesFilter=t.payload}},selectors:{selectQueryName:e=>e.queryName,selectQueryAction:e=>e.queryAction,selectSavedQueriesFilter:e=>e.savedQueriesFilter}}),s=a.reducer,{setQueryNameToEdit:l,clearQueryNameToEdit:c,setQueryAction:u,setSavedQueriesFilter:d}=a.actions,{selectQueryName:f,selectQueryAction:p,selectSavedQueriesFilter:h}=a.selectors;function m(e){return function(t,n){var r;const a=n(),s=(null!==(r=(0,i.Cx)(a,o.DG))&&void 0!==r?r:[]).filter((t=>t.name.toLowerCase()!==e.toLowerCase()));t((0,i.xI)(o.DG,s))}}function g(e){return function(t,n){var r;const a=n(),s=null!==(r=(0,i.Cx)(a,o.DG))&&void 0!==r?r:[],l=a.executeQuery.input;if(null===e)return;const c=[...s],u=c.find((t=>t.name.toLowerCase()===e.toLowerCase()));u?u.body=l:c.push({name:e,body:l}),t((0,i.xI)(o.DG,c))}}},6748:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>u,eU:()=>m,hz:()=>g,m3:()=>d,m7:()=>c});var r=n(68963),o=n(36313),i=n(6523),a=n(905);const s="schema/SET_SHOW_PREVIEW",l={loading:!0,data:{},currentSchemaPath:void 0,showPreview:!1};function c(e){return{type:s,data:e}}const u=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l,t=arguments.length>1?arguments[1]:void 0;return t.type===s?{...e,showPreview:t.data}:e},d=a.h.injectEndpoints({endpoints:e=>({createDirectory:e.mutation({queryFn:async(e,t)=>{let{database:n,path:r}=e,{signal:o}=t;try{return{data:await window.api.createSchemaDirectory({database:n,path:r},{signal:o})}}catch(i){return{error:i}}}}),getSchema:e.query({queryFn:async(e,t)=>{let{path:n,database:r}=e,{signal:o}=t;try{const e=await window.api.getSchema({path:n,database:r},{signal:o});return e?{data:{[n]:e,...f(e)}}:{error:new Error("Schema is not available")}}catch(i){return{error:i}}},keepUnusedDataFor:1/0,serializeQueryArgs:e=>{let{queryArgs:{database:t}}=e;return{database:t}},merge:(e,t,n)=>{let{arg:{path:r}}=n;const{[r]:o,...i}=t;return o?{...i,...e,[r]:o}:e}})}),overrideExisting:"throw"});function f(e){const t={},{PathDescription:{Children:n=[]}={},Path:r}=e;for(const o of n){const{Name:e=""}=o,n=`${r}/${e}`;t[n]={PathDescription:{Self:o},Path:n,partial:!0}}return t}const p=(0,o.P1)((e=>e),((e,t)=>t),((e,t)=>d.endpoints.getSchema.select({path:e,database:t}))),h=(0,o.P1)((e=>e),((e,t)=>t),((e,t,n)=>p(t,n)),((e,t,n)=>{var r;return null===(r=n(e).data)||void 0===r?void 0:r[t]})),m=(0,o.P1)([(e,t)=>t,(e,t,n)=>n,(e,t,n,r)=>((e,t,n)=>{var r,o;return null===(r=h(e,t,n))||void 0===r||null===(o=r.PathDescription)||void 0===o?void 0:o.Children})(e,t,r)],((e,t,n)=>(0,i.St)(t)?null===n||void 0===n?void 0:n.map((t=>{let{Name:n}=t;return e+"/"+n})):void 0));function g(e){let{path:t,database:n}=e;const{currentData:o,isFetching:i,error:a,refetch:s,originalArgs:l}=d.useGetSchemaQuery({path:t,database:n}),c=null===o||void 0===o?void 0:o[t],u=i&&void 0===c,f=(null===l||void 0===l?void 0:l.path)===t?a:void 0,p=!u&&(!c&&!a||(null===c||void 0===c?void 0:c.partial));return r.useEffect((()=>{p&&s()}),[s,t,p]),{data:c,isLoading:u,error:f}}},80839:(e,t,n)=>{"use strict";n.d(t,{Cx:()=>f,E3:()=>c,M6:()=>d,ZP:()=>g,pu:()=>a,qz:()=>p,vD:()=>m,xI:()=>h});var r=n(1399),o=n(18193),i=n(55850);const a={ALL:"All",PROBLEMS:"With problems"},s=o.r.extractSettingsFromLS(o.t),l=window.systemSettings||{},c={problemFilter:a.ALL,userSettings:s,systemSettings:l},u=(0,r.oM)({name:"settings",initialState:c,reducers:e=>({changeFilter:e.reducer(((e,t)=>{e.problemFilter=t.payload})),setSettingValue:e.reducer(((e,t)=>{e.userSettings[t.payload.name]=t.payload.value}))}),selectors:{getSettingValue:(e,t)=>e.userSettings[t],selectProblemFilter:e=>e.problemFilter}}),{changeFilter:d}=u.actions,{getSettingValue:f,selectProblemFilter:p}=u.selectors,h=(e,t)=>n=>{n(u.actions.setSettingValue({name:e,value:t})),o.r.setUserSettingsValue(e,t)};function m(e){"undefined"!==typeof window&&window.addEventListener("storage",(t=>{if(t.key&&t.key in o.t){const n=t.key;let r=o.t[n];null!==t.newValue&&(r=(0,i.Mo)(t.newValue)),e.dispatch(u.actions.setSettingValue({name:n,value:r}))}}))}const g=u.reducer},9345:(e,t,n)=>{"use strict";n.d(t,{Ag:()=>h,K2:()=>f,ZP:()=>p});var r=n(396),o=n(1399),i=n(39623),a=n(905),s=n(58660);function l(e){let{columnId:t,order:n}=e;return`${t} ${n}`}function c(e,t,n,o){const i=o?`CAST(SUBSTRING(CAST(Path AS String), ${o.length}) AS Utf8) AS Path`:"Path";let a=`Path='${e}' OR Path LIKE '${e}/%'`;const s=function(e){var t,n;const o=[],i=null===(t=(0,r.J)(Number(null===e||void 0===e?void 0:e.to)||(null===e||void 0===e?void 0:e.to)))||void 0===t?void 0:t.valueOf(),a=null===(n=(0,r.J)(Number(null===e||void 0===e?void 0:e.from)||(null===e||void 0===e?void 0:e.from)))||void 0===n?void 0:n.valueOf();if(a&&i&&a>i)throw new Error("Invalid date range");if(a){const e=i===a?">=":">";o.push(`IntervalEnd ${e} Timestamp('${new Date(a).toISOString()}')`)}return i&&o.push(`IntervalEnd <= Timestamp('${new Date(i).toISOString()}')`),o.join(" AND ")}(t);s.length&&(a=`(${a}) AND ${s}`);return`SELECT\n ${i},\n TabletId,\n CPUCores,\n DataSize,\n NodeId,\n PeakTime,\n InFlightTxCount,\n IntervalEnd\nFROM \`.sys/top_partitions_one_hour\`\nWHERE ${a}\n${n?`ORDER BY ${n.map(l).join(", ")}`:""}\nLIMIT 20`}function u(e,t,n){return`SELECT\n ${n?`CAST(SUBSTRING(CAST(Path AS String), ${n.length}) AS Utf8) AS Path`:"Path"},\n TabletId,\n CPUCores,\n DataSize,\n NodeId,\n InFlightTxCount\nFROM \`.sys/partition_stats\`\nWHERE\n Path='${e}'\n OR Path LIKE '${e}/%'\n${t?`ORDER BY ${t.map(l).join(", ")}`:""}\nLIMIT 20`}const d=(0,o.oM)({name:"shardsWorkload",initialState:{},reducers:{setShardsQueryFilters:(e,t)=>({...e,...t.payload})}}),{setShardsQueryFilters:f}=d.actions,p=d.reducer,h=a.h.injectEndpoints({endpoints:e=>({sendShardQuery:e.query({queryFn:async(e,t)=>{let{database:n,path:r="",sortOrder:o,filters:a}=e,{signal:l}=t;try{const e=await window.api.sendQuery({schema:"modern",query:(null===a||void 0===a?void 0:a.mode)===s.F.Immediate?u(r,o,n):c(r,a,o,n),database:n,action:"execute-scan"},{signal:l,withRetries:!0});if((0,i.gW)(e))return{error:e};return{data:(0,i.gY)(e)}}catch(d){return{error:d}}},providesTags:["All"],forceRefetch:e=>{var t,n,o;let{currentArg:i}=e;return"immediate"===(null===i||void 0===i||null===(t=i.filters)||void 0===t?void 0:t.mode)||!(!(0,r.KN)(null===i||void 0===i||null===(n=i.filters)||void 0===n?void 0:n.from)&&!(0,r.KN)(null===i||void 0===i||null===(o=i.filters)||void 0===o?void 0:o.to))}})}),overrideExisting:"throw"})},58660:(e,t,n)=>{"use strict";let r;n.d(t,{F:()=>r}),function(e){e.Immediate="immediate",e.History="history"}(r||(r={}))},24015:(e,t,n)=>{"use strict";n.d(t,{Xk:()=>l,_0:()=>i,bS:()=>r,m2:()=>o,qQ:()=>a,uw:()=>s});const r="tenantPage",o={query:"query",diagnostics:"diagnostics"},i={newQuery:"newQuery",history:"history",saved:"saved"},a={overview:"overview",schema:"schema",topQueries:"topQueries",topShards:"topShards",nodes:"nodes",tablets:"tablets",storage:"storage",network:"network",describe:"describe",hotKeys:"hotKeys",graph:"graph",consumers:"consumers",partitions:"partitions",configs:"configs"},s={overview:"overview",acl:"acl",schema:"schema"},l={cpu:"cpu",storage:"storage",memory:"memory",healthcheck:"healthcheck"}},8511:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>d,$v:()=>h,jk:()=>p,Tu:()=>m,Cs:()=>f,$1:()=>v});var r=n(1399),o=n(18193),i=n(52317),a=n(905),s=n(95408),l=n(24015);const c={tenantPage:s.z.nativeEnum(l.m2).catch(o.t[i.pf]).parse(o.r.readUserSettingsValue(i.pf))},u=(0,r.oM)({name:"tenant",initialState:c,reducers:{setTenantPage:(e,t)=>{e.tenantPage=t.payload},setQueryTab:(e,t)=>{e.queryTab=t.payload},setDiagnosticsTab:(e,t)=>{e.diagnosticsTab=t.payload},setSummaryTab:(e,t)=>{e.summaryTab=t.payload},setMetricsTab:(e,t)=>{e.metricsTab=t.payload}}}),d=u.reducer,{setTenantPage:f,setQueryTab:p,setDiagnosticsTab:h,setSummaryTab:m,setMetricsTab:g}=u.actions,v=a.h.injectEndpoints({endpoints:e=>({getTenantInfo:e.query({queryFn:async(e,t)=>{let{path:n}=e,{signal:r}=t;try{var o,i;return{data:null!==(o=null===(i=(await window.api.getTenantInfo({path:n},{signal:r})).TenantInfo)||void 0===i?void 0:i[0])&&void 0!==o?o:null}}catch(a){return{error:a}}},providesTags:["All"]}),getClusterConfig:e.query({queryFn:async(e,t)=>{let{database:n}=e,{signal:r}=t;try{const e=await window.api.getClusterConfig(n,{signal:r});return{data:e.Databases[0].FeatureFlags}}catch(o){return{error:o}}}})}),overrideExisting:"throw"})},35240:(e,t,n)=>{"use strict";n.d(t,{L:()=>r,l:()=>o});const r={Unspecified:"Unspecified",Good:"Good",Warning:"Warning",Danger:"Danger"},o={[r.Unspecified]:0,[r.Good]:1,[r.Warning]:2,[r.Danger]:3}},53809:(e,t,n)=>{"use strict";n.d(t,{Xv:()=>c,ZP:()=>l,gI:()=>s});var r=n(1399),o=n(905),i=n(49687);const a=(0,r.oM)({name:"tenants",initialState:{searchValue:""},reducers:{setSearchValue:(e,t)=>{e.searchValue=t.payload}}}),{setSearchValue:s}=a.actions,l=a.reducer,c=o.h.injectEndpoints({endpoints:e=>({getTenantsInfo:e.query({queryFn:async(e,t)=>{let{clusterName:n}=e,{signal:r,getState:o}=t;try{const e=await window.api.getTenants(n,{signal:r});let t;if(Array.isArray(e.TenantInfo)){const{singleClusterMode:n}=o();t=(0,i.Rp)(e.TenantInfo,n)}else t=[];return{data:t}}catch(a){return{error:a}}},providesTags:["All"]})}),overrideExisting:"throw"})},49687:(e,t,n)=>{"use strict";let r,o,i;n.d(t,{Gz:()=>f,hJ:()=>p,nr:()=>g,B8:()=>v,nD:()=>h,_g:()=>m,HH:()=>c,Vn:()=>y,Lv:()=>w,Rp:()=>u,_W:()=>b}),function(e){e.STATE_UNSPECIFIED="STATE_UNSPECIFIED",e.CREATING="CREATING",e.RUNNING="RUNNING",e.REMOVING="REMOVING",e.PENDING_RESOURCES="PENDING_RESOURCES",e.CONFIGURING="CONFIGURING"}(r||(r={})),function(e){e.TABLET_VOLATILE_STATE_UNKNOWN="TABLET_VOLATILE_STATE_UNKNOWN",e.TABLET_VOLATILE_STATE_STOPPED="TABLET_VOLATILE_STATE_STOPPED",e.TABLET_VOLATILE_STATE_BOOTING="TABLET_VOLATILE_STATE_BOOTING",e.TABLET_VOLATILE_STATE_STARTING="TABLET_VOLATILE_STATE_STARTING",e.TABLET_VOLATILE_STATE_RUNNING="TABLET_VOLATILE_STATE_RUNNING"}(o||(o={})),function(e){e.None="None",e.HDD="HDD",e.SSD="SSD"}(i||(i={}));n(81854),n(34301);var a=n(55850),s=n(35240);const l=e=>{if(e)return e.map((e=>{if(e.Name){const t=Number(e.Usage)||0,n=Number(e.Threads),r=n*t;return{name:e.Name,usage:100*t,limit:n,used:r}}})).filter((e=>void 0!==e))},c=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{CoresUsed:t,MemoryUsed:n,StorageAllocatedSize:r,MemoryLimit:o,StorageAllocatedLimit:s,PoolStats:c,Metrics:u={},DatabaseQuotas:f={},StorageUsage:p,QuotaUsage:h}=e,m=1e6*Number(t)||0,g=Number(n)||0,v=Number(r)||0,y=Number(u.Storage)||0,b=(0,a.kE)(o)?Number(o):void 0,w=(0,a.kE)(s)?Number(s):void 0,E=(0,a.kE)(f.data_size_soft_quota)?Number(f.data_size_soft_quota):void 0,_=l(c);let x,S;x=p?p.map((e=>{const{Type:t,Size:n,Limit:r}=e,o=Number(n),i=Number(r);return{name:t,used:o,limit:i,usage:d(o,i)}})):[{name:i.SSD,used:v,limit:w,usage:d(v,w)}],h?S=h.map((e=>{const{Type:t,Size:n,Limit:r}=e,o=Number(n),i=Number(r);return{name:t,used:o,limit:i,usage:d(o,i)}})):E&&(S=[{name:i.SSD,used:y,limit:E,usage:d(y,E)}]);return{memory:g,blobStorage:v,tabletStorage:y,memoryLimit:b,blobStorageLimit:w,tabletStorageLimit:E,cpu:m,poolsStats:_,memoryStats:[{name:"Process",used:g,limit:b,usage:d(g,b)}],blobStorageStats:x,tabletStorageStats:S}},u=(e,t)=>e.map((n=>{var r;const o=t?(e=>{var t;const n=e.Nodes?e.Nodes[0]:{},r=n.Host&&n.Endpoints?null===(t=n.Endpoints.find((e=>"http-mon"===e.Name)))||void 0===t?void 0:t.Address:void 0;return n.Host?`${n.Host}${r||""}`:void 0})(n):void 0,i=null===(r=e.find((e=>e.Id===n.ResourceId)))||void 0===r?void 0:r.Name,s=(e=>{var t,n;const r=null===(t=e.Name)||void 0===t?void 0:t.split("/"),o=null!==r&&void 0!==r&&r.length?r[r.length-1]:"\u2014",i=null===(n=e.ControlPlane)||void 0===n?void 0:n.name;return null!==i&&void 0!==i?i:o})(n),{cpu:l,memory:u,blobStorage:d}=c(n),{nodesCount:f,groupsCount:p}=(e=>{var t;const{StorageGroups:n,NodeIds:r}=e;return{nodesCount:null!==(t=null===r||void 0===r?void 0:r.length)&&void 0!==t?t:0,groupsCount:(0,a.kE)(n)?Number(n):0}})(n);return{...n,backend:o,sharedTenantName:i,controlPlaneName:s,cpu:l,memory:u,storage:d,nodesCount:f,groupsCount:p}}));function d(e,t){if(e&&t)return 100*e/t}const f=70,p=60,h=85,m=75,g=70,v=60,y=e=>e?e>f?s.L.Danger:e>p?s.L.Warning:s.L.Good:s.L.Unspecified,b=e=>e?e>h?s.L.Danger:e>m?s.L.Warning:s.L.Good:s.L.Unspecified,w=e=>e?e>g?s.L.Danger:e>v?s.L.Warning:s.L.Good:s.L.Unspecified},3027:(e,t,n)=>{"use strict";n.d(t,{MB:()=>a,ZP:()=>u,hJ:()=>c,i8:()=>l});var r=n(85690),o=n.n(r);const i="tooltip/HIDE_TOOLTIP",a="tooltip/UPDATE_REF",s={toolTipVisible:!1,currentHoveredRef:void 0,data:void 0,templateType:"pool"},l=()=>({type:i}),c=(e,t,n,r,o)=>({type:a,node:e,data:t,templateType:n,additionalData:r,positions:o}),u=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case i:return{...e,currentHoveredRef:void 0,toolTipVisible:!1};case a:return"cell"===t.templateType&&o()(t.node,e.currentHoveredRef)?{...e,currentHoveredRef:void 0,toolTipVisible:!1}:{...e,toolTipVisible:!0,currentHoveredRef:t.node,positions:t.positions,data:t.data,additionalData:t.additionalData,templateType:t.templateType};default:return e}}},1558:(e,t,n)=>{"use strict";function r(e){return!!e&&("Version"in e&&2===e.Version)}n.d(t,{j:()=>r})},75850:(e,t,n)=>{"use strict";let r;n.d(t,{K:()=>r}),function(e){e.Grey="Grey",e.Green="Green",e.Blue="Blue",e.Yellow="Yellow",e.Orange="Orange",e.Red="Red"}(r||(r={}))},6544:(e,t,n)=>{"use strict";n.d(t,{u:()=>o});var r=n(39623);const o={[r.Rm.off]:0,[r.Rm.toplevel]:4,[r.Rm.basic]:9,[r.Rm.detailed]:13,[r.Rm.diagnostic]:14,[r.Rm.trace]:15}},35638:(e,t,n)=>{"use strict";var r,o;let i,a;var s;let l,c;var u,d,f,p,h;let m;var g,v,y,b,w,E,_;n.d(t,{C6:()=>l,tB:()=>m,mR:()=>a,gb:()=>i}),function(e){e.StatusSuccess="StatusSuccess",e.StatusAccepted="StatusAccepted",e.StatusPathDoesNotExist="StatusPathDoesNotExist",e.StatusPathIsNotDirectory="StatusPathIsNotDirectory",e.StatusAlreadyExists="StatusAlreadyExists",e.StatusSchemeError="StatusSchemeError",e.StatusNameConflict="StatusNameConflict",e.StatusInvalidParameter="StatusInvalidParameter",e.StatusMultipleModifications="StatusMultipleModifications",e.StatusReadOnly="StatusReadOnly",e.StatusTxIdNotExists="StatusTxIdNotExists",e.StatusTxIsNotCancellable="StatusTxIsNotCancellable",e.StatusAccessDenied="StatusAccessDenied",e.StatusNotAvailable="StatusNotAvailable",e.StatusPreconditionFailed="StatusPreconditionFailed",e.StatusRedirectDomain="StatusRedirectDomain",e.StatusQuotaExceeded="StatusQuotaExceeded",e.StatusResourceExhausted="StatusResourceExhausted"}(r||(r={})),function(e){e.UNKNOWN="UNKNOWN",e.USER="USER",e.GROUP="GROUP"}(o||(o={})),function(e){e.EPathTypeInvalid="EPathTypeInvalid",e.EPathTypeDir="EPathTypeDir",e.EPathTypeTable="EPathTypeTable",e.EPathTypePersQueueGroup="EPathTypePersQueueGroup",e.EPathTypeSubDomain="EPathTypeSubDomain",e.EPathTypeTableIndex="EPathTypeTableIndex",e.EPathTypeExtSubDomain="EPathTypeExtSubDomain",e.EPathTypeColumnStore="EPathTypeColumnStore",e.EPathTypeColumnTable="EPathTypeColumnTable",e.EPathTypeCdcStream="EPathTypeCdcStream",e.EPathTypeExternalDataSource="EPathTypeExternalDataSource",e.EPathTypeExternalTable="EPathTypeExternalTable",e.EPathTypeView="EPathTypeView",e.EPathTypeReplication="EPathTypeReplication"}(i||(i={})),function(e){e.EPathSubTypeEmpty="EPathSubTypeEmpty",e.EPathSubTypeSyncIndexImplTable="EPathSubTypeSyncIndexImplTable",e.EPathSubTypeAsyncIndexImplTable="EPathSubTypeAsyncIndexImplTable",e.EPathSubTypeStreamImpl="EPathSubTypeStreamImpl"}(a||(a={})),function(e){e.EPathStateNotExist="EPathStateNotExist",e.EPathStateNoChanges="EPathStateNoChanges",e.EPathStateCreate="EPathStateCreate",e.EPathStateAlter="EPathStateAlter",e.EPathStateDrop="EPathStateDrop",e.EPathStateCopying="EPathStateCopying",e.EPathStateBackup="EPathStateBackup",e.EPathStateUpgrade="EPathStateUpgrade",e.EPathStateMigrated="EPathStateMigrated",e.EPathStateRestore="EPathStateRestore",e.EPathStateMoving="EPathStateMoving"}(s||(s={})),function(e){e.ColumnCodecPlain="ColumnCodecPlain",e.ColumnCodecLZ4="ColumnCodecLZ4",e.ColumnCodecZSTD="ColumnCodecZSTD"}(l||(l={})),function(e){e.UNIT_AUTO="UNIT_AUTO",e.UNIT_SECONDS="UNIT_SECONDS",e.UNIT_MILLISECONDS="UNIT_MILLISECONDS",e.UNIT_MICROSECONDS="UNIT_MICROSECONDS",e.UNIT_NANOSECONDS="UNIT_NANOSECONDS"}(c||(c={})),function(e){e.ECdcStreamModeInvalid="ECdcStreamModeInvalid",e.ECdcStreamModeKeysOnly="ECdcStreamModeKeysOnly",e.ECdcStreamModeUpdate="ECdcStreamModeUpdate",e.ECdcStreamModeNewImage="ECdcStreamModeNewImage",e.ECdcStreamModeOldImage="ECdcStreamModeOldImage",e.ECdcStreamModeNewAndOldImages="ECdcStreamModeNewAndOldImages"}(u||(u={})),function(e){e.ECdcStreamFormatInvalid="ECdcStreamFormatInvalid",e.ECdcStreamFormatProto="ECdcStreamFormatProto",e.ECdcStreamFormatJson="ECdcStreamFormatJson"}(d||(d={})),function(e){e.ECdcStreamStateInvalid="ECdcStreamStateInvalid",e.ECdcStreamStateReady="ECdcStreamStateReady",e.ECdcStreamStateDisabled="ECdcStreamStateDisabled"}(f||(f={})),function(e){e.HASH_FUNCTION_MODULO_N="HASH_FUNCTION_MODULO_N",e.HASH_FUNCTION_CLOUD_LOGS="HASH_FUNCTION_CLOUD_LOGS"}(p||(p={})),function(e){e.COLUMN_ENGINE_NONE="COLUMN_ENGINE_NONE",e.COLUMN_ENGINE_REPLACING_TIMESERIES="COLUMN_ENGINE_REPLACING_TIMESERIES"}(h||(h={})),function(e){e.METERING_MODE_RESERVED_CAPACITY="METERING_MODE_RESERVED_CAPACITY",e.METERING_MODE_REQUEST_UNITS="METERING_MODE_REQUEST_UNITS"}(m||(m={})),function(e){e.SysLog="SysLog",e.Log="Log",e.Data="Data",e.External="External"}(g||(g={})),function(e){e.Unspecified="Unspecified",e.Freeze="Freeze",e.Unfreeze="Unfreeze"}(v||(v={})),function(e){e.ColumnCacheNone="ColumnCacheNone",e.ColumnCacheOnce="ColumnCacheOnce",e.ColumnCacheEver="ColumnCacheEver"}(y||(y={})),function(e){e.ColumnStorage1="ColumnStorage1",e.ColumnStorage2="ColumnStorage2",e.ColumnStorage1Ext1="ColumnStorage1Ext1",e.ColumnStorage1Ext2="ColumnStorage1Ext2",e.ColumnStorage2Ext1="ColumnStorage2Ext1",e.ColumnStorage2Ext2="ColumnStorage2Ext2",e.ColumnStorage1Med2Ext2="ColumnStorage1Med2Ext2",e.ColumnStorage2Med2Ext2="ColumnStorage2Med2Ext2",e.ColumnStorageTest_1_2_1k="ColumnStorageTest_1_2_1k"}(b||(b={})),function(e){e.CompactionStrategyUnset="CompactionStrategyUnset",e.CompactionStrategyGenerational="CompactionStrategyGenerational",e.CompactionStrategySharded="CompactionStrategySharded"}(w||(w={})),function(e){e.EIndexTypeInvalid="EIndexTypeInvalid",e.EIndexTypeGlobal="EIndexTypeGlobal",e.EIndexTypeGlobalAsync="EIndexTypeGlobalAsync"}(E||(E={})),function(e){e.EIndexStateInvalid="EIndexStateInvalid",e.EIndexStateReady="EIndexStateReady",e.EIndexStateNotReady="EIndexStateNotReady",e.EIndexStateWriteOnly="EIndexStateWriteOnly"}(_||(_={}))},28164:(e,t,n)=>{"use strict";let r,o;n.d(t,{F:()=>r,g:()=>o}),function(e){e.Unknown="Unknown",e.OldSchemeShard="OldSchemeShard",e.OldDataShard="OldDataShard",e.OldHive="OldHive",e.OldCoordinator="OldCoordinator",e.Mediator="Mediator",e.OldTxProxy="OldTxProxy",e.OldBSController="OldBSController",e.Dummy="Dummy",e.RTMRPartition="RTMRPartition",e.OldKeyValue="OldKeyValue",e.KeyValue="KeyValue",e.Coordinator="Coordinator",e.Hive="Hive",e.BSController="BSController",e.SchemeShard="SchemeShard",e.TxProxy="TxProxy",e.DataShard="DataShard",e.PersQueue="PersQueue",e.Cms="Cms",e.NodeBroker="NodeBroker",e.TxAllocator="TxAllocator",e.PersQueueReadBalancer="PersQueueReadBalancer",e.BlockStoreVolume="BlockStoreVolume",e.BlockStorePartition="BlockStorePartition",e.TenantSlotBroker="TenantSlotBroker",e.Console="Console",e.Kesus="Kesus",e.BlockStorePartition2="BlockStorePartition2",e.BlockStoreDiskRegistry="BlockStoreDiskRegistry",e.SysViewProcessor="SysViewProcessor",e.FileStore="FileStore",e.ColumnShard="ColumnShard",e.TestShard="TestShard",e.SequenceShard="SequenceShard",e.ReplicationController="ReplicationController",e.BlobDepot="BlobDepot",e.UserTypeStart="UserTypeStart",e.TypeInvalid="TypeInvalid"}(r||(r={})),function(e){e.Created="Created",e.ResolveStateStorage="ResolveStateStorage",e.Candidate="Candidate",e.BlockBlobStorage="BlockBlobStorage",e.RebuildGraph="RebuildGraph",e.WriteZeroEntry="WriteZeroEntry",e.Restored="Restored",e.Discover="Discover",e.Lock="Lock",e.Dead="Dead",e.Active="Active",e.ResolveLeader="ResolveLeader",e.Deleted="Deleted",e.Stopped="Stopped"}(o||(o={}))},90117:(e,t,n)=>{"use strict";let r;n.d(t,{X:()=>r}),function(e){e.EXECUTE="execute",e.EXPLAIN="explain"}(r||(r={}))},57510:(e,t,n)=>{"use strict";n.d(t,{t:()=>p,d:()=>d});var r=n(52317),o=n(34301),i=n(55850),a=n(30817);const s=JSON.parse('{"b":"B","kb":"KB","mb":"MB","gb":"GB","tb":"TB","perSecond":"/s"}'),l=JSON.parse('{"b":"\u0411","kb":"\u041a\u0411","mb":"\u041c\u0411","gb":"\u0413\u0411","tb":"\u0422\u0411","perSecond":"/\u0441"}'),c=(0,a.wZ)("ydb-bytes-parsers",{ru:l,en:s}),u={b:{value:1,label:c("b")},kb:{value:r.h0,label:c("kb")},mb:{value:r.nQ,label:c("mb")},gb:{value:r.GS,label:c("gb")},tb:{value:r.Bp,label:c("tb")}},d=(e,t)=>{const n=10**t,r=u.tb.value*n,o=u.gb.value*n,i=u.mb.value*n;let a="b";return e>=u.kb.value*n&&(a="kb"),e>=i&&(a="mb"),e>=o&&(a="gb"),e>=r&&(a="tb"),a},f=(e,t)=>e+` ${u[t].label}`,p=e=>{let{value:t,size:n,withSpeedLabel:r=!1,withSizeLabel:a=!0,significantDigits:s=0,...l}=e;if(!(0,i.kE)(t))return"";const p=Number(t),h=null!==n&&void 0!==n?n:d(p,s),m=(e=>{let{value:t,size:n="mb",precision:r=0}=e;const i=(0,o.W0)(Number(t)/u[n].value,r);return(0,o.uf)(i)})({value:p,size:h,...l});return r?((e,t)=>f(e,t)+c("perSecond"))(m,h):a?f(m,h):m}},81854:(e,t,n)=>{"use strict";n.d(t,{c4:()=>i,td:()=>r.t,dT:()=>r.d});var r=n(57510),o=n(52317);const i=e=>({perMinute:e&&e.per_minute?Math.round(Number(e.per_minute)/o.sU):0,perHour:e&&e.per_hour?Math.round(Number(e.per_hour)/o.RQ):0,perDay:e&&e.per_day?Math.round(Number(e.per_day)/o.ii):0})},90860:(e,t,n)=>{"use strict";n.d(t,{B_:()=>u,kn:()=>l,n$:()=>c});var r=n(60619),o=n.n(r),i=n(30601),a=n(94076);const s="__no_color__",l=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Map;return e.forEach((e=>{var n;let{version:r,version_base_color_index:o=s}=e;const a=(0,i.H)(r);t.has(o)||t.set(o,new Set),null===(n=t.get(o))||void 0===n||n.add(a)})),t},c=e=>{const t=new Map;for(const[n,r]of e)Array.from(r).sort(((e,t)=>(0,a.un)(t)-(0,a.un)(e))).forEach(((e,o)=>{if(n===s)t.set(e,a.HD);else{const i=Number(n)%a.DM.length,s=r.size,l=a.DM[i],c=Math.max(100-o*(100/s),20),u=`${l}${Math.round(255*c/100).toString(16)}`;t.set(e,u)}}));return t},u=function(){let e=arguments.length>1?arguments[1]:void 0;const t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).filter((e=>e.version));return o()(t,"version").map((e=>({...e,minorVersion:(0,i.H)(e.version)}))).reduce(((t,n)=>{const r=e.get(n.minorVersion);return t.push({...n,color:r}),t}),[])}},24362:(e,t,n)=>{"use strict";n.d(t,{cn:()=>r});const r=(0,n(5247).withNaming)({e:"__",m:"_"})},52317:(e,t,n)=>{"use strict";n.d(t,{Ac:()=>P,Ah:()=>S,Bp:()=>u,DG:()=>I,DO:()=>C,E6:()=>Z,FU:()=>k,GS:()=>c,HN:()=>v,IG:()=>ee,Ik:()=>oe,KS:()=>D,KU:()=>j,LE:()=>$,ME:()=>a,Mn:()=>B,N1:()=>A,NO:()=>d,Px:()=>T,Qy:()=>Q,RE:()=>V,RI:()=>re,RQ:()=>p,Rn:()=>W,Rq:()=>X,S7:()=>q,XN:()=>M,XX:()=>ne,ZY:()=>Y,Zi:()=>H,Zy:()=>J,bw:()=>O,eG:()=>U,fl:()=>_,h0:()=>s,if:()=>R,ii:()=>h,jX:()=>x,nQ:()=>l,nU:()=>m,pf:()=>K,qV:()=>b,sO:()=>F,sU:()=>f,sl:()=>E,tV:()=>y,t_:()=>i,w7:()=>G,wr:()=>L,x5:()=>w,y6:()=>te,yD:()=>g,yT:()=>N,z4:()=>z});var r=n(19812),o=n(28164);const i=1e4,a=3e4,s=1e3,l=1e6,c=1e9,u=1e12,d=1e3,f=60,p=60*f,h=24*p,m=7*h,g=1e6,v={Created:"grey",ResolveStateStorage:"lightgrey",Candidate:"lightgrey",BlockBlobStorage:"lightgrey",RebuildGraph:"yellow",Restored:"yellow",Discover:"orange",Lock:"lightblue",Dead:"black",Active:"lightgreen"},y={[o.F.OldTxProxy]:"P",[o.F.TxProxy]:"P",[o.F.BSController]:"BS",[o.F.Dummy]:"DY",[o.F.RTMRPartition]:"RP",[o.F.PersQueueReadBalancer]:"PB",[o.F.Cms]:"CM",[o.F.BlockStorePartition]:"BP",[o.F.BlockStoreVolume]:"BV",[o.F.Console]:"CN",[o.F.TenantSlotBroker]:"TB",[o.F.BlockStoreDiskRegistry]:"BDR"},b=e=>{var t;if(!e)return;const n=null===(t=e.match(/[A-Z]/g))||void 0===t?void 0:t.join("");return(e=>e in y)(e)?y[e]:n},w=["1 min","5 min","15 min"],E={green:5,yellow:4,orange:3,red:2,blue:1,grey:1},_=5,x="\u2014",S="Developer UI",C="Cluster",k="Database",O="theme",T="language",N="invertedDisks",I="saved_queries",P="asideHeaderCompact",R="queries_history",D="tune-columns-popup",A="binaryDataInPlainTextDisplay",j="auto-refresh-interval",M="default-size-result-pane",L="default-size-tenant-summary-pane",z="default-size-tenant-pane",F="default-is-tenant-summary-collapsed",B="default-is-tenant-common-info-collapsed",U="default-is-query-result-collapsed",q="default-cluster-tab",$={displayIndices:!1,stickyHead:r.ZP.MOVING,syncHeadOnResize:!0,dynamicRender:!0,highlightRows:!0},Z={...$,stickyHead:"fixed",dynamicRender:!1},H="queryExecutionSettings",V="last_query_execution_settings",W="querySettingsBannerLastClosed",G="last_used_query_action",Y="partitionsHiddenColumns",K="saved_tenant_initial_tab",Q="useBackendParamsForTables",J="showDomainDatabase",X="queryUseMultiSchema",ee="useClusterBalancerAsBacked",te="enableAutocomplete",ne="autocompleteOnEnter",re="isHotKeysHelpHidden",oe="enable_tracing_for_all_requests"},34301:(e,t,n)=>{"use strict";n.d(t,{fG:()=>O,OW:()=>k,t$:()=>f,td:()=>d,LO:()=>x,o0:()=>S,gC:()=>m,uf:()=>b,xh:()=>w,QO:()=>g,q3:()=>v,JD:()=>y,i$:()=>C,fm:()=>T,W0:()=>E,a2:()=>p});var r=n(396),o=n(57510),i=n(52317),a=n(24829),s=n(55850),l=n(30817);const c=JSON.parse('{"format-cpu.cores":["core","cores","cores","cores"]}'),u=JSON.parse('{"format-cpu.cores":["\u044f\u0434\u0440\u043e","\u044f\u0434\u0440\u0430","\u044f\u0434\u0435\u0440","\u044f\u0434\u0435\u0440"]}'),d=((0,l.wZ)("ydb-format-cpu",{ru:u,en:c}),e=>(0,s.kE)(e)?(0,a.X)(e).format("0 b"):""),f=e=>{const t=d(e);return t?t+"/s":""},p=e=>e?Object.values(e).join("-"):"",h=e=>{const t=Math.floor(e/i.ii),n=e%i.ii;return[t&&`${t}d`,(0,a.X)(n).format("00:00:00")].filter(Boolean).join(" ")},m=e=>e&&h(e/1e3),g=(e,t,n)=>{let r=(0,o.d)(Number(e),0),i=!0,a=0;(0,s.kE)(t)&&(r=(0,o.d)(Number(t),0),i=!1,a=1);return[(0,o.t)({value:e,withSizeLabel:i,size:n||r,precision:a}),(0,o.t)({value:t,size:n||r})]},v=(e,t)=>g(e,t,"gb"),y=(e,t)=>g(e,t,"tb"),b=e=>(0,s.kE)(e)?(0,a.X)(e).format("0,0.[00000]"):"",w=e=>{const t=(e/i.RQ).toFixed(2);return`${b(t)} hours`},E=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,[n]=String(e).split(".");return Number(e)<1&&(n=""),n.length>=t?Math.round(Number(e)):Number(Number(e).toFixed(t-n.length))},_=e=>{const t=Number(e)/1e6;return E(t,3)},x=e=>{if(void 0!==e)return(0,a.X)(_(e)).format("0.[000]")},S=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const o=null===(t=(0,r.J)(Number(e)))||void 0===t?void 0:t.format("YYYY-MM-DD HH:mm");return null!==o&&void 0!==o?o:n},C=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const o=null===(t=(0,r.J)(e))||void 0===t?void 0:t.format("YYYY-MM-DD HH:mm:ss.SSS");return null!==o&&void 0!==o?o:n},k=e=>{const t=(new Date).getTime()-Number(e);return t<=0?0:t/1e3},O=e=>h(k(Number(e)));function T(e){return void 0===e?"":"object"===typeof e?JSON.stringify(e):e.toString()}},48169:(e,t,n)=>{"use strict";n.d(t,{ok:()=>a,wq:()=>i,wz:()=>l,yf:()=>s});var r=n(27102),o=n(55850);const i=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.y3;const n=/\/node\/\d+\/?$/g;return n.test(String(t))?String(t).replace(n,`/node/${e}/`):`${null!==t&&void 0!==t?t:""}/node/${e}/`},a=e=>{let{nodeId:t,pDiskId:n,host:r}=e;const a="actors/pdisks/pdisk"+(0,o.bJ)(n);return i(t,r)+a},s=e=>{let{nodeId:t,pDiskId:n,vDiskSlotId:r,host:a}=e;const s="actors/vdisks/vdisk"+(0,o.bJ)(n)+"_"+(0,o.bJ)(r);return i(t,a)+s};function l(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"TabletID";return`${arguments.length>3&&void 0!==arguments[3]?arguments[3]:r.y3}/tablets${t?`/${t}`:""}?${n}=${e}`}},17096:(e,t,n)=>{"use strict";n.d(t,{Rj:()=>h,xd:()=>m,dU:()=>a.d,A3:()=>f,yu:()=>i.y,sC:()=>c,zL:()=>o.z,ix:()=>r.i});var r=n(97822),o=n(58876),i=n(14709),a=n(66213),s=n(68963),l=n(81413);const c=(e,t)=>{let{sortValue:n,sortOrder:r=l.hr}=e;return[s.useMemo((()=>{if(n)return{columnId:n,order:r}}),[n,r]),e=>{const n=Array.isArray(e)?e[0]:e;t({sortValue:null===n||void 0===n?void 0:n.columnId,sortOrder:null===n||void 0===n?void 0:n.order})}]};var u=n(86974),d=n(54665);const f=()=>{const e=(0,u.TH)();return(0,d.mB)(e)};var p=n(52317);function h(){return(0,i.y)(p.KU,0)}function m(e){const t=s.useRef(e);return s.useLayoutEffect((()=>{t.current=e}),[e]),s.useCallback((function(){for(var e,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return null===(e=t.current)||void 0===e?void 0:e.call(t,...r)}),[])}},42587:(e,t,n)=>{"use strict";n.d(t,{$:()=>o});var r=n(68963);function o(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:600;const[t,n]=r.useState(!1),[o,i]=r.useState(0);r.useEffect((()=>{n(!1);const t=setTimeout((()=>{n(!0)}),e);return()=>{clearTimeout(t)}}),[e,o]);return[t,r.useCallback((()=>{i((e=>e+1))}),[])]}},66213:(e,t,n)=>{"use strict";n.d(t,{d:()=>s});var r=n(17880),o=n(52317),i=n(39623),a=n(14709);const s=()=>{const e=(0,r.uY)(),[t,n]=(0,a.y)(o.Zi),s=i.nh.parse(t);return[{...s,tracingLevel:e?s.tracingLevel:i.hl.tracingLevel},n]}},14709:(e,t,n)=>{"use strict";n.d(t,{y:()=>s});var r=n(68963),o=n(80839),i=n(58876),a=n(97822);const s=(e,t)=>{const n=(0,i.z)();return[(0,a.i)((n=>{var r;return null!==(r=(0,o.Cx)(n,e))&&void 0!==r?r:t})),r.useCallback((t=>{n((0,o.xI)(e,t))}),[n,e])]}},58876:(e,t,n)=>{"use strict";n.d(t,{z:()=>r});const r=n(87555).I0},97822:(e,t,n)=>{"use strict";n.d(t,{i:()=>r});const r=n(87555).v9},30817:(e,t,n)=>{"use strict";n.d(t,{Uo:()=>r,Fp:()=>l,ag:()=>u,wZ:()=>d});var r,o=n(31329),i=n(24205),a=n(18193),s=n(52317);!function(e){e.En="en",e.Ru="ru"}(r||(r={}));const l=r.En,c=a.r.readUserSettingsValue(s.Px,l),u=new o.mb({lang:c,fallbackLang:r.En});function d(e,t){for(const n of Object.keys(t))u.registerKeyset(n,e,t[n]);return u.keyset(e)}(0,i.jQ)({lang:c})},5922:(e,t,n)=>{"use strict";n.d(t,{D:()=>o,Dc:()=>i,c$:()=>r});const r=e=>[...Array(e).keys()];function o(e){return null!==e&&void 0!==e}async function i(e){return new Promise((t=>{setTimeout(t,e)}))}},30410:(e,t,n)=>{"use strict";n.d(t,{k:()=>l});var r=n(68963),o=n(2982),i=n(40726),a=n(27710),s=n(75859);function l(e,t,n){const o=r.lazy((()=>e().then((e=>({default:e[t]}))).catch((e=>({default:()=>(0,s.jsx)(a.l2,{error:e})}))))),l=(e,t)=>{const a=(0,i.C)("ErrorBoundary");return(0,s.jsx)(a,{children:(0,s.jsx)(r.Suspense,{fallback:null!==n&&void 0!==n?n:(0,s.jsx)(c,{}),children:(0,s.jsx)(o,{ref:t,...e})})})};return l.displayName=t,r.forwardRef(l)}function c(){return(0,s.jsx)("div",{style:{width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center"},children:(0,s.jsx)(o.a,{size:"l"})})}},51688:(e,t,n)=>{"use strict";n.d(t,{Ns:()=>h,RW:()=>g,TA:()=>f,U8:()=>u,Uu:()=>c,dn:()=>p,eV:()=>m,oh:()=>y,qU:()=>d});var r=n(95408),o=n(80839),i=n(75850),a=n(52317),s=n(34301),l=n(5922);let c;!function(e){e.All="All",e.SmallUptime="SmallUptime"}(c||(c={}));const u=r.z.nativeEnum(c).catch(c.All),d={[c.All]:"All",[c.SmallUptime]:"Uptime < 1h"},f=e=>!e.SystemState||e.SystemState===i.K.Grey,p=e=>null===e||void 0===e?void 0:e.reduce(((e,t)=>(t.Id&&t.Host&&e.set(Number(t.Id),t.Host),e)),new Map);const h=function(){var e,t;let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const r=(null===(e=n.Location)||void 0===e?void 0:e.Rack)||n.Rack,o=(null===(t=n.Location)||void 0===t?void 0:t.DataCenter)||n.DataCenter,i=(0,s.fG)(n.StartTime),a=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{LoadAverage:t,NumberOfCpus:n}=e;if((0,l.D)(t)&&(0,l.D)(n))return t.map((e=>100*e/n))}(n);return{...n,Rack:r,DC:o,Uptime:i,LoadAveragePercents:a}},m=e=>e===o.pu.PROBLEMS,g=e=>e===c.SmallUptime?a.RQ:void 0,v=["NodeId","Host","NodeName","DC","Rack","Version","Uptime","CPU","LoadAverage","Memory","Missing","DiskSpaceUsage","Database"],y=e=>v.includes(e)},24829:(e,t,n)=>{"use strict";n.d(t,{X:()=>a});var r=n(36453),o=n.n(r),i=(n(40022),n(30817));Object.values(i.Uo).forEach((e=>{o().locales[e]&&(o().locales[e].delimiters.thousands=" ")})),o().locale(i.ag.lang);const a=o()},45535:(e,t,n)=>{"use strict";n.d(t,{M2:()=>r,p9:()=>o,q:()=>i});const r=e=>e.replace(/\/viewer\/json/,""),o=e=>{const t=r((e=>e.replace(/http[s]?:\/\//,""))(e)),n=t.split("/");if(1===n.length)return{balancer:n[0],proxy:void 0};const o=n[0];return{balancer:t.replace(o+"/",""),proxy:o}},i=e=>o(e).balancer.replace(/:\d+$/,"")},61293:(e,t,n)=>{"use strict";n.d(t,{pY:()=>a,sA:()=>i});var r=n(45535);const o="https://",i=(e,t)=>{const n=null!==(i=e)&&void 0!==i&&i.startsWith("vm-")?`u-${i}`:i;var i;const a=(0,r.p9)(t).proxy;return a?o+a+"/"+n:o+n},a=(e,t,n)=>{const{Host:o,Endpoints:a,NodeId:s}=e;if(n&&s){return`${(0,r.M2)(t)}/node/${s}/`}if(o&&a){var l;const e=null===(l=a.find((e=>"http-mon"===e.Name)))||void 0===l?void 0:l.Address;if(!e||!o)return null;return i(o+e,t)+"/"}return null}},39623:(e,t,n)=>{"use strict";n.d(t,{hl:()=>k,Jf:()=>f,wZ:()=>p,U4:()=>h,jM:()=>m,$E:()=>l,Ie:()=>c,Rm:()=>u,Vj:()=>d,cy:()=>a,Nf:()=>s,T$:()=>g,gW:()=>b,gY:()=>w,CC:()=>E,dt:()=>S,fV:()=>C,y5:()=>_,Xh:()=>x,nh:()=>R,J7:()=>P});var r=n(95408);let o;!function(e){e.Bool="Bool",e.Int8="Int8",e.Int16="Int16",e.Int32="Int32",e.Int64="Int64",e.Uint8="Uint8",e.Uint16="Uint16",e.Uint32="Uint32",e.Uint64="Uint64",e.Float="Float",e.Double="Double",e.Decimal="Decimal",e.String="String",e.Utf8="Utf8",e.Json="Json",e.JsonDocument="JsonDocument",e.Yson="Yson",e.Uuid="Uuid",e.Date="Date",e.Datetime="Datetime",e.Timestamp="Timestamp",e.Interval="Interval",e.TzDate="TzDate",e.TzDateTime="TzDateTime",e.TzTimestamp="TzTimestamp"}(o||(o={}));var i=n(30490);const a={serializable:"serializable-read-write",stalero:"stale-read-only",onlinero:"online-read-only",snapshot:"snapshot-read-only",implicit:"implicit"},s={[a.serializable]:"Serializable",[a.stalero]:"Stale Read-Only",[a.onlinero]:"Online Read-Only",[a.snapshot]:"Snapshot Read-Only",[a.implicit]:"Implicit"},l={none:"none",basic:"basic",full:"full",profile:"profile"},c={[l.none]:"None",[l.full]:"Full",[l.basic]:"Basic",[l.profile]:"Profile"},u={off:"off",toplevel:"toplevel",basic:"basic",detailed:"detailed",diagnostic:"diagnostic",trace:"trace"},d={[u.off]:"Off",[u.toplevel]:"TopLevel",[u.basic]:"Basic",[u.detailed]:"Detailed",[u.diagnostic]:"Diagnostic",[u.trace]:"Trace"},f={execute:"execute",explain:"explain"},p={scan:"scan",script:"script",data:"data",query:"query",pg:"pg"},h={scan:"Scan",script:"YQL Script",data:"Data",query:"YQL - QueryService",pg:"PostgreSQL"},m={yql:"yql_v1",pg:"pg"},g=e=>{switch(e.replace(/\?$/,"")){case o.Bool:return"boolean";case o.Int8:case o.Int16:case o.Int32:case o.Int64:case o.Uint8:case o.Uint16:case o.Uint32:case o.Uint64:case o.Float:case o.Double:case o.Decimal:return"number";case o.String:case o.Utf8:case o.Json:case o.JsonDocument:case o.Yson:case o.Uuid:return"string";case o.Date:case o.Datetime:case o.Timestamp:case o.Interval:case o.TzDate:case o.TzDateTime:case o.TzTimestamp:return"date";default:return}},v=(e,t)=>e.map((e=>e.reduce(((e,n,r)=>{const{name:o}=t[r];return e[o]=n,e}),{}))),y=e=>Boolean(!e||"object"!==typeof e||Array.isArray(e)||"result"in e&&!Array.isArray(e.result));function b(e){return Boolean(e&&"object"===typeof e&&"error"in e&&"issues"in e)}const w=e=>y(e)?{}:(e=>Boolean(e&&!Array.isArray(e)&&Array.isArray(e.result)&&"object"===typeof e.result[0]&&"rows"in e.result[0]&&"columns"in e.result[0]))(e)?(e=>{const{result:t,...n}=e;return{resultSets:null===t||void 0===t?void 0:t.map((e=>{const{rows:t,columns:n,truncated:r}=e;let o;return n&&(o=[]),t&&n&&(o=v(t,n)),{columns:n,result:o,truncated:r}})),...n}})(e):(e=>Boolean(e&&!Array.isArray(e)&&Array.isArray(e.result)&&Array.isArray(e.columns)))(e)?(e=>{const{result:t,columns:n,...r}=e;return{result:t&&n&&v(t,n),columns:n,...r}})(e):e,E=e=>y(e)?{}:e,_=e=>(e=>Boolean(e&&"queries"in e))(e)?e.queries&&e.queries.length?{Plan:e.queries[0].Plan,tables:e.queries[0].tables,meta:e.meta,SimplifiedPlan:e.queries[0].SimplifiedPlan}:{meta:e.meta}:e,x=e=>Array.isArray(e)?e.map((e=>{const t={};for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)){const r=typeof e[n];null!==e[n]&&"object"===r||"boolean"===r||Array.isArray(e[n])?t[n]=JSON.stringify(e[n]):t[n]=e[n]}return t})):[],S=e=>"string"===typeof e||b(e)?e:(0,i.eE)(e)?e.message:(0,i.$z)(e)?"data"in e&&b(e.data)?e.data:e.statusText:void 0,C=e=>{var t;const n=S(e);return"string"===typeof n?n:null===n||void 0===n||null===(t=n.error)||void 0===t?void 0:t.message},k={queryMode:p.query,transactionMode:a.implicit,timeout:60,limitRows:1e4,statisticsMode:l.none,tracingLevel:u.detailed},O=r.z.nativeEnum(p),T=r.z.nativeEnum(a),N=r.z.nativeEnum(l),I=r.z.nativeEnum(u),P=r.z.object({timeout:r.z.preprocess((e=>""===e?void 0:e),r.z.coerce.number().positive().or(r.z.undefined())),limitRows:r.z.preprocess((e=>""===e?void 0:e),r.z.coerce.number().gt(0).lte(1e4).or(r.z.undefined())),queryMode:O,transactionMode:T,statisticsMode:N,tracingLevel:I}),R=r.z.object({timeout:r.z.preprocess((e=>""===e?void 0:e),r.z.coerce.number().positive().optional().catch(k.timeout)),limitRows:r.z.preprocess((e=>""===e?void 0:e),r.z.coerce.number().gt(0).lte(1e4).optional().catch(k.limitRows)),queryMode:O.catch(k.queryMode),transactionMode:T.catch(k.transactionMode),statisticsMode:N.catch(k.statisticsMode),tracingLevel:I.catch(k.tracingLevel)}).catch(k)},30490:(e,t,n)=>{"use strict";n.d(t,{$z:()=>o,IZ:()=>i,eE:()=>r});const r=e=>Boolean(e&&"object"===typeof e&&"message"in e&&"Network Error"===e.message),o=e=>Boolean(e&&"object"===typeof e&&"status"in e);function i(e){return Boolean(e&&"object"===typeof e&&"name"in e&&"AxiosError"===e.name)}},1504:(e,t,n)=>{"use strict";n.d(t,{tt:()=>c,zm:()=>u,DA:()=>p,lE:()=>h,BO:()=>m});var r=n(52317),o=n(34301),i=n(30817);const a=JSON.parse('{"daysHours":"{{days}}\xa0d\xa0{{hours}}\xa0h","hoursMin":"{{hours}}\xa0h\xa0{{minutes}}\xa0m","minSec":"{{minutes}}\xa0m\xa0{{seconds}}\xa0s","secMs":"{{seconds}}\xa0s\xa0{{ms}}\xa0ms","days":"{{days}}\xa0d","hours":"{{hours}}\xa0h","min":"{{minutes}}\xa0m","sec":"{{seconds}}\xa0s","ms":"{{ms}}\xa0ms"}'),s=JSON.parse('{"daysHours":"{{days}}\xa0\u0434\xa0{{hours}}\xa0\u0447","hoursMin":"{{hours}}\xa0\u0447\xa0{{minutes}}\xa0\u043c","minSec":"{{minutes}}\xa0\u043c\xa0{{seconds}}\xa0\u0441","secMs":"{{seconds}}\xa0\u0441\xa0{{ms}}\xa0\u043c\u0441","days":"{{days}}\xa0\u0434","hours":"{{hours}}\xa0\u0447","min":"{{minutes}}\xa0\u043c","sec":"{{seconds}}\xa0\u0441","ms":"{{ms}}\xa0\u043c\u0441"}'),l=(0,i.wZ)("ydb-time-parsers",{ru:s,en:a}),c=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;const n=e%1e3;let o=Math.floor(e/1e3);const i=Math.floor(o/r.ii);o%=r.ii;const a=Math.floor(o/r.RQ);o%=r.RQ;const s=Math.floor(o/60);o%=60;const c=o,u={days:i,hours:a,minutes:s,seconds:c,ms:n};if(2===t){if(i>0)return l("daysHours",u);if(a>0)return l("hoursMin",u);if(s>0)return l("minSec",u);if(c>0)return l("secMs",u)}if(1===t){if(i>0)return l("days",u);if(a>0)return l("hours",u);if(s>0)return l("min",u);if(c>0)return l("sec",u)}return l("ms",u)},u=e=>l("ms",{ms:(0,o.uf)(e)}),d=e=>(e.seconds?1e3*Number(e.seconds):0)+(e.nanos?e.nanos/r.yD:0);var f=n(55850);const p=e=>e?(e=>"string"===typeof e?1e3*parseInt(e,10):d(e))(e):0,h=e=>{if(!e)return 0;const t=Date.now()-(e=>"string"===typeof e?Date.parse(e):d(e))(e);return t<0?0:t},m=e=>e&&(0,f.kE)(e)?Math.round(Number(e)/1e3):0},55850:(e,t,n)=>{"use strict";function r(e){if(e)try{return JSON.parse(e)}catch(t){return e}}n.d(t,{Mo:()=>r,Qt:()=>a,Uz:()=>s,bJ:()=>l,kE:()=>c,t_:()=>u});const o=[" B"," KB"," MB"," GB"," TB"," PB"," EB"],i=1e3;function a(e){return`${function(e){const t=Number(e);if(isNaN(t))return"";const n=t/i**2;return n<10?n.toFixed(2)+o[2]:n<100?n.toFixed(1)+o[2]:n.toFixed()+o[2]}(e)}${e?"ps":""}`}function s(e,t){const n=Number(e);if(isNaN(n))return"N/A";const r=n/1e9;return t?r.toFixed()+o[3]:r<10?r.toFixed(2)+o[3]:r<100?r.toFixed(1)+o[3]:r.toFixed()+o[3]}function l(e){const t=String(e);let n=t;for(let r=t.length;r<9;r++)n="0"+n;return n}function c(e){return"number"===typeof e?!isNaN(e):"string"===typeof e&&(!isNaN(Number(e))&&!isNaN(parseFloat(e)))}function u(e,t){return Number(e).toExponential(t)}},94076:(e,t,n)=>{"use strict";n.d(t,{DM:()=>i,HD:()=>a,ZP:()=>c,un:()=>o});var r=n(30601);const o=e=>e.split("").reduce(((e,t)=>{const n=(e<<5)-e+t.charCodeAt(0);return n&n}),0),i=["#008000","#4169e1","#ffd700","#ff8c00","#808000","#e9967a","#ff1493","#00bfff","#da70d6","#3cb371","#b22222"],a="#bfbfbf",s=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Map;return e.forEach((e=>{var n;const o=(0,r.X)(e),i=(0,r.H)(e);t.has(o)||t.set(o,new Set),null===(n=t.get(o))||void 0===n||n.add(i)})),t},l=e=>{const t=Array.from(e.keys()).map((e=>({version:e,hash:o(e)}))),n=new Map;let r=i.length-1;return t.sort(((e,t)=>e.hash-t.hash)).forEach((t=>{if(/^(\w+-)?stable/.test(t.version)){r=(r+1)%i.length,n.set(t.version,i[r]);const a=Array.from(e.get(t.version)||[]).filter((e=>e!==t.version)).map((e=>({version:e,hash:o(e)}))),s=a.length;a.sort(((e,t)=>t.hash-e.hash)).forEach(((e,t)=>{const o=i[r],a=Math.max(100-t*(100/s),20),l=`${o}${Math.round(255*a/100).toString(16)}`;n.set(e.version,l)}))}else n.set(t.version,a)})),n},c=function(){return l(s(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]))}},30601:(e,t,n)=>{"use strict";n.d(t,{H:()=>r,X:()=>o});const r=e=>{let t=e;/\d{1,}-\d{1,}(-\d){0,}(-hotfix-\d{1,}(-\d{1,})?)?\.[0-9a-zA-Z]+$/.test(e)&&(t=t.replace(/(-hotfix-\d{1,}(-\d{1,})?)?\.[0-9a-zA-Z]+$/,""));return/\d{1,}-\d{1,}-\d{1,}-\d{1,}$/.test(e)&&(t=t.replace(/-\d{1,}$/,"")),t},o=e=>{const t=r(e);return/\d{1,}-\d{1,}-\d{1,}/.test(t)?t.replace(/-\d{1,}$/,""):t}},36767:(e,t)=>{"use strict";function n(e){function t(t,o,i,a){var s=o?n+t+e.e+o:n+t,l=s;if(i){var c=" "+l+e.m;for(var u in i)if(i.hasOwnProperty(u)){var d=i[u];!0===d?l+=c+u:d&&(l+=c+u+r+d)}}if(void 0!==a)for(var f=0,p=(a=Array.isArray(a)?a:[a]).length;f<p;f++){var h=a[f];if(h&&"string"==typeof h.valueOf())for(var m=h.valueOf().split(" "),g=0;g<m.length;g++){var v=m[g];v!==s&&(l+=" "+v)}}return l}var n=e.n||"",r=e.v||e.m;return function(e,n){return function(r,o,i){return"string"==typeof r?"string"==typeof o||Array.isArray(o)?t(e,r,void 0,o):t(e,r,o,i):t(e,n,r,o)}}}n({e:"-",m:"_"}),t.withNaming=n},5247:(e,t,n)=>{"use strict";e.exports=n(36767)},66857:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.STRICT=void 0,t.STRICT=!0},85688:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HTML5_INPUT_FORMATS=t.englishFormats=t.INVALID_DATE_STRING=t.DEFAULT_SYSTEM_DATE_FORMAT=void 0,t.DEFAULT_SYSTEM_DATE_FORMAT="YYYY-MM-DD",t.INVALID_DATE_STRING="Invalid Date",t.englishFormats={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t.HTML5_INPUT_FORMATS={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"}},20843:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(66857),t),o(n(85688),t),o(n(38346),t)},38346:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UtcTimeZone=void 0,t.UtcTimeZone="UTC"},79376:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.dateTimeUtc=t.dateTime=t.isDateTime=void 0;var i=n(20843),a=o(n(4796)),s=n(98507),l=n(14783),c=n(87116),u=n(59318),d=n(17935),f=n(71571),p=n(53228),h=Symbol("isDateTime"),m=function(){function e(e){this._weekInfo=null,this[h]=!0,this._timestamp=e.ts,this._locale=e.locale,this._timeZone=e.timeZone,this._offset=e.offset,this._c=(0,u.tsToObject)(e.ts,e.offset),this._localeData=e.localeData,this._isValid=e.isValid}return e.isDateTime=function(e){return"object"===typeof e&&e&&h in e&&!0===e[h]||!1},e.prototype.format=function(e){return this.isValid()?void 0===e&&0===this._offset?this.format("YYYY-MM-DDTHH:mm:ss[Z]"):(0,d.formatDate)(this,e,this._localeData):this._localeData.invalidDate||i.INVALID_DATE_STRING},e.prototype.toISOString=function(e){return e?new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",this.format("Z")):this.toDate().toISOString()},e.prototype.utcOffset=function(e,t){var n=void 0!==e&&null!==e;if(!this.isValid())return n?this:NaN;if(n){var r=void 0;if("string"===typeof e){if(null===(r=(0,u.offsetFromString)(e)))return this}else r=Math.abs(e)<16?60*e:e;var o=this.valueOf();return t&&(o-=60*(r-this._offset)*1e3),y({ts:o,timeZone:i.UtcTimeZone,offset:r,locale:this._locale})}return this._offset},e.prototype.timeZone=function(e,t){var n;if(void 0===e)return"system"===this._timeZone?(0,c.guessUserTimeZone)():this._timeZone;if(!this.isValid())return this;var r=(0,c.normalizeTimeZone)(e,l.settings.getDefaultTimeZone()),o=this.valueOf(),i=(0,c.timeZoneOffset)(r,o);return t&&(o+=60*this._offset*1e3,o=(n=(0,c.fixOffset)(o,i,r))[0],i=n[1]),y({ts:o,timeZone:r,offset:i,locale:this._locale})},e.prototype.add=function(e,t){return this.addSubtract(e,t,1)},e.prototype.subtract=function(e,t){return this.addSubtract(e,t,-1)},e.prototype.startOf=function(e){if(!this.isValid())return this;var t={},n=(0,u.normalizeComponent)(e);switch(n){case"year":case"quarter":t.month="quarter"===n?this.month()-this.month()%3:0;case"month":case"weekNumber":case"isoWeekNumber":t.date="weekNumber"===n?this.date()-this.weekday():"isoWeekNumber"===n?this.date()-(this.isoWeekday()-1):1;case"day":case"date":case"weekday":case"isoWeekday":case"dayOfYear":t.hour=0;case"hour":t.minute=0;case"minute":t.second=0;case"second":t.millisecond=0}return this.set(t)},e.prototype.endOf=function(e){var t;if(!this.isValid())return this;var n={},r=(0,u.normalizeComponent)(e);switch(r){case"year":case"quarter":n.month="quarter"===r?this.month()-this.month()%3+2:11;case"month":case"weekNumber":case"isoWeekNumber":n.date="weekNumber"===r?this.date()-this.weekday()+6:"isoWeekNumber"===r?this.date()-(this.isoWeekday()-1)+6:(0,u.daysInMonth)(this.year(),null!==(t=n.month)&&void 0!==t?t:this.month());case"day":case"date":case"weekday":case"isoWeekday":case"dayOfYear":n.hour=23;case"hour":n.minute=59;case"minute":n.second=59;case"second":n.millisecond=999}return this.set(n)},e.prototype.local=function(e){return this.timeZone("system",e)},e.prototype.valueOf=function(){return this.isValid()?this._timestamp:NaN},e.prototype.isSame=function(e,t){var n=b(e,"system")[0];return!(!this.isValid()||isNaN(n))&&(!this.isBefore(n,t)&&!this.isAfter(n,t))},e.prototype.isBefore=function(e,t){var n=b(e,"system")[0];if(!this.isValid()||isNaN(n))return!1;var r=(0,u.normalizeDurationUnit)(null!==t&&void 0!==t?t:"millisecond");return("milliseconds"===r?this.valueOf():this.endOf(r).valueOf())<n},e.prototype.isAfter=function(e,t){var n=b(e,"system")[0];if(!this.isValid()||isNaN(n))return!1;var r=(0,u.normalizeDurationUnit)(null!==t&&void 0!==t?t:"millisecond");return("milliseconds"===r?this.valueOf():this.startOf(r).valueOf())>n},e.prototype.isValid=function(){return this._isValid},e.prototype.diff=function(t,n,r){if(!this.isValid())return NaN;var o=e.isDateTime(t)?t.timeZone(this._timeZone):y({ts:b(t,"system")[0],timeZone:this._timeZone,locale:this._locale,offset:this._offset});if(!o.isValid())return NaN;var i=(0,u.normalizeDurationUnit)(n||"millisecond"),a=6e4*(o.utcOffset()-this.utcOffset()),s=0;switch(i){case"years":s=(0,u.monthDiff)(this,o)/12;break;case"quarters":s=(0,u.monthDiff)(this,o)/3;break;case"months":s=(0,u.monthDiff)(this,o);break;case"weeks":s=(this.valueOf()-o.valueOf()-a)/6048e5;break;case"days":s=(this.valueOf()-o.valueOf()-a)/864e5;break;case"hours":s=(this.valueOf()-o.valueOf())/36e5;break;case"minutes":s=(this.valueOf()-o.valueOf())/6e4;break;case"seconds":s=(this.valueOf()-o.valueOf())/1e3;break;default:s=this.valueOf()-o.valueOf()}return r?s:Math.floor(Math.abs(s))*Math.sign(s)||0},e.prototype.fromNow=function(e){return this.from(E({timeZone:this._timeZone,lang:this._locale}),e)},e.prototype.from=function(e,t){return this.isValid()?(0,p.fromTo)(this,e,this._localeData.relativeTime,t,!0):this._localeData.invalidDate||i.INVALID_DATE_STRING},e.prototype.locale=function(e){return e?this.isValid()?y({ts:this.valueOf(),timeZone:this._timeZone,offset:this._offset,locale:a.default.locale(e,void 0,!0)}):this:this._locale},e.prototype.toDate=function(){return new Date(this.valueOf())},e.prototype.unix=function(){return this.isValid()?Math.floor(this.valueOf()/1e3):NaN},e.prototype.utc=function(e){return this.timeZone(i.UtcTimeZone,e)},e.prototype.daysInMonth=function(){return this.isValid()?(0,u.daysInMonth)(this._c.year,this._c.month):NaN},e.prototype.set=function(e,t){var n,o;if(!this.isValid())return this;var a,s=this._c,l=(0,u.normalizeDateComponents)("object"===typeof e?e:((n={})[e]=t,n),u.normalizeComponent),d=void 0!==l.day||void 0!==l.weekNumber||void 0!==l.weekYear||void 0!==l.isoWeekNumber||void 0!==l.weekday||void 0!==l.isoWeekday||void 0!==l.isoWeekYear,f=void 0!==l.dayOfYear,p=void 0!==l.year,h=void 0!==l.month||void 0!==l.date;if(d&&(p||h||f))throw new Error("Can't mix weekYear/weekNumber units with year/month/day");if(f&&h)throw new Error("Can't mix day of year with month/day");if(d){var m=l.weekday,v=l.weekNumber,b=l.weekYear,w=l.isoWeekday,E=l.isoWeekNumber,_=l.isoWeekYear,x=l.day,S=void 0!==m||void 0!==v||void 0!==b;if(S&&(void 0!==w||void 0!==E||void 0!==_||void 0!==x))throw new Error("Can't mix local week with ISO week");var C=this.weekInfo();if(S){var k=g(this._localeData),O=k.minDaysInFirstWeek,T=k.startOfWeek,N={weekday:(null!==m&&void 0!==m?m:C.weekday)+1,weekNumber:null!==v&&void 0!==v?v:C.weekNumber,weekYear:null!==b&&void 0!==b?b:C.weekYear};a=r(r(r({},s),l),(0,u.weekToGregorian)(N,O,T))}else{N={weekday:null!==w&&void 0!==w?w:void 0===x?C.isoWeekday:x||7,weekNumber:null!==E&&void 0!==E?E:C.isoWeekNumber,weekYear:null!==_&&void 0!==_?_:C.isoWeekYear};a=r(r(r({},s),l),(0,u.weekToGregorian)(N,4,1))}}else f?a=r(r(r({},s),l),(0,u.uncomputeOrdinal)(r(r({ordinal:this.dayOfYear()},s),l))):(a=r(r({},s),l),void 0===l.date&&(a.date=Math.min((0,u.daysInMonth)(a.year,a.month),a.date)));var I=(0,u.objToTS)(a),P=this._offset;return this._timeZone===i.UtcTimeZone?I-=60*P*1e3:(I=(o=(0,c.fixOffset)(I,P,this._timeZone))[0],P=o[1]),y({ts:I,timeZone:this._timeZone,offset:P,locale:this._locale})},e.prototype.date=function(e){return"number"===typeof e?this.set("date",e):this.isValid()?this._c.date:NaN},e.prototype.month=function(e){return"number"===typeof e?this.set("month",e):this.isValid()?this._c.month:NaN},e.prototype.quarter=function(e){return"number"===typeof e?this.set("quarter",e):this.isValid()?Math.ceil((this._c.month+1)/3):NaN},e.prototype.year=function(e){return"number"===typeof e?this.set("year",e):this.isValid()?this._c.year:NaN},e.prototype.day=function(e){return"number"===typeof e?this.set("day",e):this.isValid()?this.weekInfo().day:NaN},e.prototype.isoWeekday=function(e){return"number"===typeof e?this.set("isoWeekday",e):this.isValid()?this.weekInfo().isoWeekday:NaN},e.prototype.hour=function(e){return"number"===typeof e?this.set("hour",e):this.isValid()?this._c.hour:NaN},e.prototype.minute=function(e){return"number"===typeof e?this.set("minute",e):this.isValid()?this._c.minute:NaN},e.prototype.second=function(e){return"number"===typeof e?this.set("second",e):this.isValid()?this._c.second:NaN},e.prototype.millisecond=function(e){return"number"===typeof e?this.set("millisecond",e):this.isValid()?this._c.millisecond:NaN},e.prototype.week=function(e){return"number"===typeof e?this.set("week",e):this.isValid()?this.weekInfo().weekNumber:NaN},e.prototype.weekYear=function(e){return"number"===typeof e?this.set("weekYear",e):this.isValid()?this.weekInfo().weekYear:NaN},e.prototype.weeksInYear=function(){var e=g(this._localeData),t=e.minDaysInFirstWeek,n=e.startOfWeek;return this.isValid()?(0,u.weeksInWeekYear)(this.year(),t,n):NaN},e.prototype.isoWeek=function(e){return"number"===typeof e?this.set("isoWeek",e):this.isValid()?this.weekInfo().isoWeekNumber:NaN},e.prototype.isoWeekYear=function(e){return"number"===typeof e?this.set("isoWeekYear",e):this.isValid()?this.weekInfo().isoWeekYear:NaN},e.prototype.isoWeeksInYear=function(){return this.isValid()?(0,u.weeksInWeekYear)(this.year(),4,1):NaN},e.prototype.weekday=function(e){return"number"===typeof e?this.set("weekday",e):this.isValid()?this.weekInfo().weekday:NaN},e.prototype.dayOfYear=function(e){return"number"===typeof e?this.set("dayOfYear",e):this.isValid()?(0,u.computeOrdinal)(this._c):NaN},e.prototype.toString=function(){return this.isValid()?this.toDate().toUTCString():this._localeData.invalidDate||i.INVALID_DATE_STRING},e.prototype.toJSON=function(){return this.isValid()?this.toISOString():null},e.prototype[Symbol.for("nodejs.util.inspect.custom")]=function(){return this.isValid()?"DateTime { ts: ".concat(this.toISOString(),", zone: ").concat(this.timeZone(),", offset: ").concat(this.utcOffset(),", locale: ").concat(this.locale()," }"):"DateTime { ".concat(i.INVALID_DATE_STRING," }")},e.prototype.addSubtract=function(e,t,n){var o;if(!this.isValid())return this;var a=this._timeZone,l=this.valueOf(),d=this._offset,f=(0,s.duration)(e,t),p=(0,u.tsToObject)(l,d),h=v(f.months()+3*f.quarters()+12*f.years()),m=v(f.days()+7*f.weeks()),g=f.milliseconds()+1e3*f.seconds()+60*f.minutes()*1e3+60*f.hours()*60*1e3;if(h||m){var b=p.month+n*h,w=Math.min(p.date,(0,u.daysInMonth)(p.year,b))+n*m;l=(0,u.objToTS)(r(r({},p),{month:b,date:w})),a===i.UtcTimeZone?l-=60*d*1e3:(l=(o=(0,c.fixOffset)(l,d,a))[0],d=o[1])}return g&&(l+=n*g,a!==i.UtcTimeZone&&(d=(0,c.timeZoneOffset)(a,l))),y({ts:l,timeZone:a,offset:d,locale:this._locale})},e.prototype.weekInfo=function(){if(!this._weekInfo){var e=g(this._localeData),t=e.startOfWeek,n=e.minDaysInFirstWeek;this._weekInfo=(0,u.gregorianToWeek)(this._c,n,t)}return this._weekInfo},e}();function g(e){return{startOfWeek:e.weekStart||7,minDaysInFirstWeek:e.yearStart||1}}function v(e){var t=Math.sign(e);return Math.round(t*e)*t}function y(e){var t=e.ts,n=e.timeZone,r=e.offset,o=e.locale||"en",i=a.default.Ls[o],s=!isNaN(Number(new Date(t)));return new m({ts:t,timeZone:n,offset:r,locale:o,localeData:i,isValid:s})}function b(e,t,n,r,o){var s,u,d,p;if(void 0===o&&(o=!1),w(e)||"number"===typeof e||e instanceof Date)d=Number(e);else if(null===e||void 0===e)d=Date.now();else if(Array.isArray(e))d=(s=(0,f.getTimestampFromArray)(e,t))[0],p=s[1];else if("object"===typeof e)d=(u=(0,f.getTimestampFromObject)(e,t))[0],p=u[1];else if(o)d=a.default.utc(e,n,i.STRICT).valueOf();else{var h=a.default.locale(r||l.settings.getLocale(),void 0,!0);d=(n?(0,a.default)(e,n,h,i.STRICT):(0,a.default)(e,void 0,h)).valueOf()}return[d,p=null!==p&&void 0!==p?p:(0,c.timeZoneOffset)(t,d)]}function w(e){return m.isDateTime(e)}function E(e){var t=e||{},n=t.input,r=t.format,o=t.timeZone,i=t.lang,s=(0,c.normalizeTimeZone)(o,l.settings.getDefaultTimeZone()),u=a.default.locale(i||l.settings.getLocale(),void 0,!0),d=b(n,s,r,i);return y({ts:d[0],timeZone:s,offset:d[1],locale:u})}t.isDateTime=w,t.dateTime=E,t.dateTimeUtc=function(e){var t=e||{},n=t.input,r=t.format,o=t.lang,s=a.default.locale(o||l.settings.getLocale(),void 0,!0);return y({ts:b(n,i.UtcTimeZone,r,o,!0)[0],timeZone:i.UtcTimeZone,offset:0,locale:s})}},17935:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatDate=t.FORMAT_DEFAULT=t.expandFormat=void 0;var r=n(20843),o=n(14783),i=n(87116);function a(e,t){var n;return void 0===t&&(t=null!==(n=o.settings.getLocaleData().formats)&&void 0!==n?n:r.englishFormats),e.replace(/(\[[^\]]*])|(LTS?|l{1,4}|L{1,4})/g,(function(e,n,o){if(o){if(o in r.englishFormats)return t[o]||r.englishFormats[o];var i=o.toUpperCase();return(t[i]||r.englishFormats[i]).replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}return n}))}t.expandFormat=a,t.FORMAT_DEFAULT="YYYY-MM-DDTHH:mm:ssZ";var s=/(\[[^[]*\])|([Hh]mm(ss)?|Mo|M{1,4}|Do|DDDo|D{1,4}|d{2,4}|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|Y{4,6}|YY?|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,l={};function c(e){return e.replace(/^\[([\s\S)]*)\]$/g,"$1")}function u(e){return e%12||12}function d(e){return e||24}function f(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r}function p(e){var t=e.date,n=e.format,r=e.data,o=e.index,i=e.fullData,a=e.maxLength,s="";if(r&&(s="function"===typeof r?r(t,n):r[o]),!s&&i&&(s="function"===typeof i?i(t,n):i[o])&&(s=s.slice(0,a)),s)return s;throw new Error("Invalid locale data")}function h(e,t,n){void 0===n&&(n=!1);var r=String(Math.abs(e)),o="";return e<0?o="-":n&&(o="+"),"".concat(o).concat(r.padStart(t,"0"))}t.formatDate=function(e,n,r){void 0===n&&(n=t.FORMAT_DEFAULT),void 0===r&&(r=o.settings.getLocaleData());var i=a(n,r.formats);return i.replace(s,(function(t){return l[t]?l[t](e,r,i):c(t)}))},l.Y=function(e){var t=e.year();return t<=9999?h(t,4):"+"+t},l.YY=function(e){return h(e.year()%100,2)},l.YYYY=function(e){return h(e.year(),4)},l.YYYYY=function(e){return h(e.year(),5)},l.YYYYYY=function(e){return h(e.year(),6,!0)},l.M=function(e){return"".concat(e.month()+1)},l.MM=function(e){return h(e.month()+1,2)},l.Mo=function(e,t){var n;return c("".concat(null===(n=t.ordinal)||void 0===n?void 0:n.call(t,e.month()+1,"M")))},l.MMM=function(e,t,n){var r=e.month();return p({date:e,format:n,data:t.monthsShort,index:r,fullData:t.months,maxLength:3})},l.MMMM=function(e,t,n){var r=e.month();return p({date:e,format:n,data:t.months,index:r})},l.w=function(e){return"".concat(e.week())},l.ww=function(e){return h(e.week(),2)},l.wo=function(e,t){var n;return c("".concat(null===(n=t.ordinal)||void 0===n?void 0:n.call(t,e.week(),"w")))},l.W=function(e){return"".concat(e.isoWeek())},l.WW=function(e){return h(e.isoWeek(),2)},l.Wo=function(e,t){var n;return c("".concat(null===(n=t.ordinal)||void 0===n?void 0:n.call(t,e.isoWeek(),"W")))},l.d=function(e){return"".concat(e.day())},l.do=function(e,t){var n;return c("".concat(null===(n=t.ordinal)||void 0===n?void 0:n.call(t,e.day(),"d")))},l.dd=function(e,t,n){var r=e.day();return p({date:e,format:n,data:t.weekdaysMin,index:r,fullData:t.weekdays,maxLength:2})},l.ddd=function(e,t,n){var r=e.day();return p({date:e,format:n,data:t.weekdaysShort,index:r,fullData:t.weekdays,maxLength:3})},l.dddd=function(e,t,n){var r=e.day();return p({date:e,format:n,data:t.weekdays,index:r})},l.e=function(e){return"".concat(e.weekday())},l.E=function(e){return"".concat(e.isoWeekday())},l.H=function(e){return"".concat(e.hour())},l.HH=function(e){return h(e.hour(),2)},l.h=function(e){return"".concat(u(e.hour()))},l.hh=function(e){return h(u(e.hour()),2)},l.k=function(e){return"".concat(d(e.hour()))},l.kk=function(e){return h(d(e.hour()),2)},l.hmm=function(e){return"".concat(u(e.hour())).concat(h(e.minute(),2))},l.hmmss=function(e){return"".concat(u(e.hour())).concat(h(e.minute(),2)).concat(h(e.second(),2))},l.Hmm=function(e){return"".concat(e.hour()).concat(h(e.minute(),2))},l.Hmmss=function(e){return"".concat(e.hour()).concat(h(e.minute(),2)).concat(h(e.second(),2))},l.a=function(e,t){return(t.meridiem||f)(e.hour(),e.minute(),!0)},l.A=function(e,t){return(t.meridiem||f)(e.hour(),e.minute(),!1)},l.Z=function(e){var t=e.utcOffset(),n="+";return t<0&&(t=-t,n="-"),"".concat(n).concat(h(~~(t/60),2),":").concat(h(~~t%60,2))},l.ZZ=function(e){var t=e.utcOffset(),n="+";return t<0&&(t=-t,n="-"),"".concat(n).concat(h(~~(t/60),2)).concat(h(~~t%60,2))},l.Q=function(e){return"".concat(e.quarter())},l.Qo=function(e,t){var n;return c("".concat(null===(n=t.ordinal)||void 0===n?void 0:n.call(t,e.quarter(),"Q")))},l.D=function(e){return"".concat(e.date())},l.DD=function(e){return h(e.date(),2)},l.Do=function(e,t){var n;return c("".concat(null===(n=t.ordinal)||void 0===n?void 0:n.call(t,e.date(),"D")))},l.m=function(e){return"".concat(e.minute())},l.mm=function(e){return h(e.minute(),2)},l.s=function(e){return"".concat(e.second())},l.ss=function(e){return h(e.second(),2)},l.S=function(e){return"".concat(~~(e.millisecond()/100))},l.SS=function(e){return"".concat(~~(e.millisecond()/10))},l.SSS=function(e){return h(e.millisecond(),3)},l.SSSS=function(e){return h(10*e.millisecond(),4)},l.SSSSS=function(e){return h(100*e.millisecond(),5)},l.SSSSSS=function(e){return h(1e3*e.millisecond(),6)},l.SSSSSSS=function(e){return h(1e4*e.millisecond(),7)},l.SSSSSSSS=function(e){return h(1e5*e.millisecond(),8)},l.SSSSSSSSS=function(e){return h(1e6*e.millisecond(),9)},l.x=function(e){return"".concat(e.valueOf())},l.X=function(e){return"".concat(e.unix())},l.z=function(e){return(0,i.parseZoneInfo)({ts:e.valueOf(),locale:e.locale(),timeZone:e.timeZone(),offsetFormat:"short"})},l.zz=function(e){return(0,i.parseZoneInfo)({ts:e.valueOf(),locale:e.locale(),timeZone:e.timeZone(),offsetFormat:"long"})},l.DDD=function(e){return"".concat(e.dayOfYear())},l.DDDD=function(e){return h(e.dayOfYear(),3)},l.DDDo=function(e,t){var n;return c("".concat(null===(n=t.ordinal)||void 0===n?void 0:n.call(t,e.dayOfYear(),"DDD")))},l.gg=function(e){return h(e.weekYear()%100,2)},l.gggg=function(e){return h(e.weekYear(),4)},l.ggggg=function(e){return h(e.weekYear(),5)},l.GG=function(e){return h(e.isoWeekYear()%100,2)},l.GGGG=function(e){return h(e.isoWeekYear(),4)},l.GGGGG=function(e){return h(e.isoWeekYear(),5)}},18916:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(79376),t),o(n(17935),t)},71571:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getTimestampFromObject=t.getTimestampFromArray=void 0;var r=n(87116),o=n(59318);t.getTimestampFromArray=function(e,t){if(0===e.length)return s({},t);var n=e.map(Number),r=n[0],o=n[1],i=void 0===o?0:o,a=n[2],l=void 0===a?1:a,c=n[3],u=void 0===c?0:c,d=n[4],f=void 0===d?0:d,p=n[5],h=void 0===p?0:p,m=n[6];return s({year:r,month:i,date:l,hour:u,minute:f,second:h,millisecond:void 0===m?0:m},t)};var i={year:1,month:1,date:1,hour:0,minute:0,second:0,millisecond:0},a=["year","month","date","hour","minute","second","millisecond"];function s(e,t){var n,s=(0,o.normalizeDateComponents)(e,o.normalizeComponent);s.date=null!==(n=s.day)&&void 0!==n?n:s.date;for(var l=(0,o.tsToObject)(Date.now(),(0,r.timeZoneOffset)(t,Date.now())),c=!1,u=0,d=a;u<d.length;u++){var f=d[u];void 0!==s[f]?c=!0:s[f]=c?i[f]:l[f]}var p=(0,r.fixOffset)((0,o.objToTS)(s),(0,r.timeZoneOffset)(t,Date.now()),t);return[p[0],p[1]]}t.getTimestampFromObject=s},53228:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fromTo=void 0;var r=n(79376),o=[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",r:1/0,d:"year"}],i={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};t.fromTo=function(e,t,n,a,s){void 0===n&&(n=i),void 0===a&&(a=!1),void 0===s&&(s=!0);for(var l,c=0,u="",d=0;d<o.length;d+=1){var f=o[d];f.d&&(c=s?e.diff(t,f.d,!0):(0,r.dateTime)({input:t}).diff(e,f.d,!0));var p=Math.round(Math.abs(c));if(l=c>0,p<=f.r){p<=1&&d>0&&(f=o[d-1]);var h=n[f.l];u="string"===typeof h?h.replace("%d","".concat(p)):h(p,a,f.l,l);break}}if(a)return u;var m=l?n.future:n.past;return"function"===typeof m?m(u):m.replace("%s",u)}},43104:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseDateMath=t.parse=t.isLikeRelative=void 0;var r=n(18916),o=["y","Q","M","w","d","h","m","s"];function i(e,t,n){for(var r=e.replace(/\s/g,""),i=t,a=0,s=r.length;a<s;){var l=r.charAt(a++),c=void 0,u=void 0;if("/"===l)c=0;else if("+"===l)c=1;else{if("-"!==l)return;c=2}if(isNaN(parseInt(r.charAt(a),10)))u=1;else if(2===r.length)u=parseInt(r.charAt(a),10);else{for(var d=a;!isNaN(parseInt(r.charAt(a),10));)if(++a>10)return;u=parseInt(r.substring(d,a),10)}if(0===c&&1!==u)return;var f=r.charAt(a++);if(!o.includes(f))return;0===c?i=n?i.endOf(f):i.startOf(f):1===c?i=i.add(u,f):2===c&&(i=i.subtract(u,f))}return i}t.isLikeRelative=function(e){return e.startsWith("now")},t.parse=function(e,t){if(void 0===t&&(t={}),e){var n,o,a,s=t.roundUp,l=t.timeZone,c="";if("now"===e.substring(0,3)?(n=(0,r.dateTime)({timeZone:l}),c=e.substring("now".length)):(-1===(o=e.indexOf("||"))?(a=e,c=""):(a=e.substring(0,o),c=e.substring(o+2)),n=(0,r.dateTime)({input:a,timeZone:l})),n.isValid())return c.length?i(c,n,s):n}},t.parseDateMath=i},97553:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(43104),t)},4796:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(22877)),i=r(n(52703)),a=r(n(1035)),s=r(n(54591)),l=n(20843);o.default.extend(i.default),o.default.extend(s.default),o.default.extend(a.default),o.default.Ls.en.formats=l.englishFormats,t.default=o.default},48132:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createDuration=void 0;var r=n(39232),o=n(46808),i=n(90390),a=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9]+)(?:[.,]([0-9]+)?)?S)?)?$/;function s(e){var t=e?parseFloat(e.replace(",",".")):0;return isNaN(t)?0:t}t.createDuration=function(e,t,n){void 0===n&&(n={});var l={},c=null,u=(t&&"object"===typeof t?t:n).lang,d="string"===typeof t?t:"milliseconds";if((0,o.isDuration)(e))return e;if(isNaN(Number(e)))if("string"===typeof e&&(c=a.exec(e))){var f="-"===c[1]?-1:1,p=c[8]&&"-"===c[8][0]?-1:1;l=(0,i.removeZeros)({y:s(c[2])*f,M:s(c[3])*f,w:s(c[4])*f,d:s(c[5])*f,h:s(c[6])*f,m:s(c[7])*f,s:s(c[8])*f,ms:Math.floor(1e3*s(c[9]?"0.".concat(c[9]):c[9]))*p*f})}else{if(!e||"object"!==typeof e)throw new Error("Unknown duration: ".concat(e));l=e}else l[d]=Number(e);return new o.DurationImpl({values:(0,r.normalizeDateComponents)(l,r.normalizeDurationUnit),locale:u})}},46808:function(e,t,n){"use strict";var r,o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},o.apply(this,arguments)},i=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.isDuration=t.DurationImpl=void 0;var a=n(18916),s=n(14783),l=n(59318),c=n(55353),u=n(48132),d=n(90390),f=Symbol("isDuration"),p=function(){function e(e){this[r]=!0,this._values=e.values,this._locale=e.locale||s.settings.getLocale(),this._isValid=e.isValid||!0}return e.isDuration=function(e){return"object"===typeof e&&e&&f in e&&!0===e[f]||!1},e.prototype.get=function(e){if(!this.isValid())return NaN;var t=(0,l.normalizeDurationUnit)(e);return this._values[t]||0},e.prototype.set=function(t){return this.isValid()?new e({values:o(o({},this._values),(0,l.normalizeDateComponents)(t,l.normalizeDurationUnit)),locale:this._locale}):this},e.prototype.as=function(e){if(!this.isValid())return NaN;var t=(0,l.normalizeDurationUnit)(e),n=this.days()+7*this.weeks()+this.hours()/24+this.minutes()/1440+this.seconds()/86400,r=this.months()+3*this.quarters()+12*this.years(),o=this.milliseconds();if("months"===t||"quarters"===t||"years"===t){var i=r+function(e){return 4800*e/146097}(n+o/864e5);switch(t){case"months":return i;case"quarters":return i/3;case"years":return i/12}}var a=n+function(e){return 146097*e/4800}(r);switch(t){case"weeks":return a/7+o/6048e5;case"days":return a+o/864e5;case"hours":return 24*a+o/36e5;case"minutes":return 1440*a+o/6e4;case"seconds":return 86400*a+o/1e3;case"milliseconds":return Math.floor(864e5*a)+o;default:throw new Error("Unknown unit "+t)}},e.prototype.milliseconds=function(){return this.isValid()?this._values.milliseconds||0:NaN},e.prototype.asMilliseconds=function(){return this.as("milliseconds")},e.prototype.seconds=function(){return this.isValid()?this._values.seconds||0:NaN},e.prototype.asSeconds=function(){return this.as("seconds")},e.prototype.minutes=function(){return this.isValid()?this._values.minutes||0:NaN},e.prototype.asMinutes=function(){return this.as("minutes")},e.prototype.hours=function(){return this.isValid()?this._values.hours||0:NaN},e.prototype.asHours=function(){return this.as("hours")},e.prototype.days=function(){return this.isValid()?this._values.days||0:NaN},e.prototype.asDays=function(){return this.as("days")},e.prototype.weeks=function(){return this.isValid()?this._values.weeks||0:NaN},e.prototype.asWeeks=function(){return this.as("weeks")},e.prototype.months=function(){return this.isValid()?this._values.months||0:NaN},e.prototype.asMonths=function(){return this.as("months")},e.prototype.quarters=function(){return this.isValid()?this._values.quarters||0:NaN},e.prototype.asQuarters=function(){return this.as("quarters")},e.prototype.years=function(){return this.isValid()?this._values.years||0:NaN},e.prototype.asYears=function(){return this.as("years")},e.prototype.add=function(t,n){if(!this.isValid())return this;for(var r=this.toObject(),o=(0,u.createDuration)(t,n).toObject(),i=0,a=Object.entries(o);i<a.length;i++){var s=a[i],l=s[0],c=s[1],d=l;r[d]=(r[d]||0)+c}return new e({values:r,locale:this._locale})},e.prototype.subtract=function(e,t){var n=(0,u.createDuration)(e,t).negate();return this.add(n)},e.prototype.negate=function(){for(var t={},n=0,r=Object.entries(this._values);n<r.length;n++){var o=r[n],i=o[0],a=o[1];t[i]=a?-a:0}return new e({values:t,locale:this._locale})},e.prototype.normalize=function(t){return this.isValid()?new e({values:(0,d.normalizeValues)(this._values,t),locale:this._locale}):this},e.prototype.shiftTo=function(t,n){if(!this.isValid())return this;var r=t.map((function(e){return(0,l.normalizeDurationUnit)(e)}));return new e({values:(0,d.shiftTo)(this._values,r,n),locale:this._locale})},e.prototype.rescale=function(t){return this.isValid()?new e({values:(0,d.rescale)(this._values,t),locale:this._locale}):this},e.prototype.toISOString=function(){if(!this.isValid())return"Invalid Duration";var e="P";return 0!==this.years()&&(e+=this.years()+"Y"),0===this.months()&&0===this.quarters()||(e+=this.months()+3*this.quarters()+"M"),0!==this.weeks()&&(e+=this.weeks()+"W"),0!==this.days()&&(e+=this.days()+"D"),0===this.hours()&&0===this.minutes()&&0===this.seconds()&&0===this.milliseconds()||(e+="T"),0!==this.hours()&&(e+=this.hours()+"H"),0!==this.minutes()&&(e+=this.minutes()+"M"),0===this.seconds()&&0===this.milliseconds()||(e+=Math.round(1e3*this.seconds()+this.milliseconds())/1e3+"S"),"P"===e&&(e+="T0S"),e},e.prototype.toJSON=function(){return this.toISOString()},e.prototype.toObject=function(){return this.isValid()?o({},this._values):{}},e.prototype.toString=function(){return this.toISOString()},e.prototype.valueOf=function(){return this.asMilliseconds()},e.prototype[(r=f,Symbol.for("nodejs.util.inspect.custom"))]=function(){return this.isValid()?"Duration { values: ".concat(JSON.stringify(this._values)," }"):"Duration { Invalid Duration }"},e.prototype.humanize=function(e){if(!this.isValid())return"Invalid Duration";var t=(0,a.dateTimeUtc)({lang:this._locale});return t.add(this.valueOf(),"ms").from(t,!e)},e.prototype.humanizeIntl=function(e){var t=this;if(void 0===e&&(e={}),!this.isValid())return"Invalid Duration";var n=d.orderedUnits.map((function(n){var r=t._values[n];return void 0===r?null:(0,c.getNumberFormat)(t._locale,o(o({style:"unit",unitDisplay:"long"},e),{unit:n.slice(0,-1)})).format(r)})).filter(Boolean);return(0,c.getListFormat)(this._locale,{type:"conjunction",style:e.listStyle||"narrow"}).format(n)},e.prototype.format=function(e,t){if(void 0===t&&(t={}),!this.isValid())return"Invalid Duration";for(var n,r=/(\[[^[]*\])|y+|M+|w+|d+|h+|m+|s+|S+|./g,a=[],s=[];n=r.exec(e);){var l=n[0],u=n[1],d=h(l[0]);d?(a.push({literal:!1,padTo:l.length,unit:d}),s.push(d)):u?a.push({literal:!0,value:u.slice(1,-1)}):a.push({literal:!0,value:l})}for(var f=this.shiftTo(s),p="",m=t.floor,g=void 0===m||m,v=t.forceSimple,y=i(t,["floor","forceSimple"]),b=!v||Object.keys(y).length>0,w=0,E=a;w<E.length;w++){var _=E[w];if(_.literal)p+=_.value;else{var x=f.get(_.unit);if(b){var S=(0,c.getNumberFormat)(this._locale,o(o({useGrouping:!1},y),{minimumIntegerDigits:_.padTo})),C=g?Math.floor(x):x;p+=S.format(C)}else{C=g?Math.floor(x):Math.round(1e3*x)/1e3;p+="".concat(C<0?"-":"").concat(Math.abs(C).toString().padStart(_.padTo,"0"))}}}return p},e.prototype.isValid=function(){return this._isValid},e.prototype.locale=function(t){return t?new e({values:this._values,locale:t}):this._locale},e}();function h(e){switch(e[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}}t.DurationImpl=p,t.isDuration=function(e){return p.isDuration(e)}},98507:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isDuration=t.duration=void 0;var r=n(48132);Object.defineProperty(t,"duration",{enumerable:!0,get:function(){return r.createDuration}});var o=n(46808);Object.defineProperty(t,"isDuration",{enumerable:!0,get:function(){return o.isDuration}})},90390:function(e,t){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.rescale=t.shiftTo=t.removeZeros=t.normalizeValues=t.orderedUnits=void 0;var r=365.2425,o=30.436875,i=n({years:{quarters:4,months:12,weeks:52.1775,days:r,hours:8765.82,minutes:525949.2,seconds:525949.2*60,milliseconds:525949.2*60*1e3},quarters:{months:3,weeks:13.044375,days:91.310625,hours:2191.455,minutes:131487.3,seconds:525949.2*60/4,milliseconds:7889237999.999999},months:{weeks:4.3481250000000005,days:o,hours:730.485,minutes:43829.1,seconds:2629746,milliseconds:2629746e3}},{weeks:{days:7,hours:168,minutes:10080,seconds:604800,milliseconds:6048e5},days:{hours:24,minutes:1440,seconds:86400,milliseconds:864e5},hours:{minutes:60,seconds:3600,milliseconds:36e5},minutes:{seconds:60,milliseconds:6e4},seconds:{milliseconds:1e3}});t.orderedUnits=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"];var a=t.orderedUnits.slice(0).reverse();function s(e,r){for(var o,s,l,c,u,d,f,p=(void 0===r?{}:r).roundUp,h=n({},e),m=function(e){for(var t,n=null!==(t=e.milliseconds)&&void 0!==t?t:0,r=0,o=a.slice(1);r<o.length;r++){var s=o[r],l=e[s];l&&(n+=l*i[s].milliseconds)}return n}(e)<0?-1:1,g=null,v=0;v<a.length;v++){if(void 0!==h[E=a[v]]&&null!==h[E])if(g){var y=(null!==(o=h[g])&&void 0!==o?o:0)*m,b=i[E][g],w=Math.floor(y/b);h[E]=(null!==(s=h[E])&&void 0!==s?s:0)+w*m,h[g]=(null!==(l=h[g])&&void 0!==l?l:0)-w*b*m,g=E}else g=E}g=null;for(v=0;v<t.orderedUnits.length;v++){var E;if(void 0!==h[E=t.orderedUnits[v]]&&null!==h[E])if(g){var _=(null!==(c=h[g])&&void 0!==c?c:0)%1;h[g]=(null!==(u=h[g])&&void 0!==u?u:0)-_,h[E]=(null!==(d=h[E])&&void 0!==d?d:0)+_*i[g][E],g=E}else g=E}return p&&g&&h[g]&&(h[g]=Math.round(null!==(f=h[g])&&void 0!==f?f:0)),h}function l(e){for(var t={},n=0,r=Object.entries(e);n<r.length;n++){var o=r[n],i=o[0],a=o[1];0!==a&&(t[i]=a)}return t}function c(e,n,r){var o;if(!n.length)return e;for(var a,l={},c={},u=0,d=t.orderedUnits;u<d.length;u++){var f=d[u];if(n.includes(f)){a=f;for(var p=0,h=0,m=Object.keys(c);h<m.length;h++){var g=m[h];p+=i[g][f]*c[g],c[g]=0}(x=e[f])&&(p+=x);var v=Math.trunc(p);l[f]=v,c[f]=(1e3*p-1e3*v)/1e3}else e[f]&&(c[f]=e[f])}if(a){for(var y=0,b=Object.entries(c);y<b.length;y++){var w=b[y],E=w[0],_=w[1];0!==_&&(l[a]=(null!==(o=l[a])&&void 0!==o?o:0)+(E===a?_:_/i[a][E]))}var x;(x=l[a])&&(l[a]=Math.round(1e3*x)/1e3)}return s(l,r)}t.normalizeValues=s,t.removeZeros=l,t.shiftTo=c,t.rescale=function(e,t){return l(c(s(e),["years","months","weeks","days","hours","minutes","seconds","milliseconds"],t))}},396:(e,t,n)=>{"use strict";t.x9=t.m3=t.KN=t.JY=t.J=t._u=t.CQ=void 0,n(14783).settings;var r=n(18916);Object.defineProperty(t,"CQ",{enumerable:!0,get:function(){return r.dateTime}}),Object.defineProperty(t,"_u",{enumerable:!0,get:function(){return r.expandFormat}});var o=n(97553);var i=n(77757);Object.defineProperty(t,"J",{enumerable:!0,get:function(){return i.dateTimeParse}}),Object.defineProperty(t,"JY",{enumerable:!0,get:function(){return i.isValid}}),Object.defineProperty(t,"KN",{enumerable:!0,get:function(){return i.isLikeRelative}});var a=n(87116);Object.defineProperty(t,"m3",{enumerable:!0,get:function(){return a.getTimeZonesList}});var s=n(20843);var l=n(98507);Object.defineProperty(t,"x9",{enumerable:!0,get:function(){return l.duration}})},77757:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(4093),t)},4093:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isValid=t.dateTimeParse=t.isLikeRelative=void 0;var r=n(18916),o=n(14783);function i(e){return"string"===typeof e&&o.settings.getRelativeParser().isLikeRelative(e)}t.isLikeRelative=i;t.dateTimeParse=function(e,t){if(e){var n=function(e,t){var n;if(i(e)){if(null!==(n=null===t||void 0===t?void 0:t.allowRelative)&&void 0!==n&&!n)return;return o.settings.getRelativeParser().parse(e,t)}var a=t||{},s=a.format,l=a.lang,c=(0,r.dateTime)({input:e,format:s,lang:l,timeZone:null===t||void 0===t?void 0:t.timeZone});return c.isValid()?c:void 0}(e,t);return n}},t.isValid=function(e){if((0,r.isDateTime)(e))return e.isValid();var n=(0,t.dateTimeParse)(e,{allowRelative:!0});return!!n&&n.isValid()}},14783:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(82936),t)},24033:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.localeLoaders=void 0,t.localeLoaders={af:function(){return n.e(6392).then(n.t.bind(n,46392,23))},am:function(){return n.e(4618).then(n.t.bind(n,24618,23))},"ar-dz":function(){return n.e(704).then(n.t.bind(n,704,23))},"ar-iq":function(){return n.e(515).then(n.t.bind(n,60515,23))},"ar-kw":function(){return n.e(8858).then(n.t.bind(n,48858,23))},"ar-ly":function(){return n.e(6887).then(n.t.bind(n,96887,23))},"ar-ma":function(){return n.e(4848).then(n.t.bind(n,94848,23))},"ar-sa":function(){return n.e(4198).then(n.t.bind(n,34198,23))},"ar-tn":function(){return n.e(620).then(n.t.bind(n,20620,23))},ar:function(){return n.e(9204).then(n.t.bind(n,89204,23))},az:function(){return n.e(1736).then(n.t.bind(n,11736,23))},be:function(){return n.e(8747).then(n.t.bind(n,38747,23))},bg:function(){return n.e(1528).then(n.t.bind(n,31528,23))},bi:function(){return n.e(6877).then(n.t.bind(n,36877,23))},bm:function(){return n.e(4814).then(n.t.bind(n,34814,23))},"bn-bd":function(){return n.e(202).then(n.t.bind(n,10202,23))},bn:function(){return n.e(9280).then(n.t.bind(n,9280,23))},bo:function(){return n.e(5863).then(n.t.bind(n,65863,23))},br:function(){return n.e(6058).then(n.t.bind(n,46058,23))},bs:function(){return n.e(632).then(n.t.bind(n,70632,23))},ca:function(){return n.e(7202).then(n.t.bind(n,47202,23))},cs:function(){return n.e(7999).then(n.t.bind(n,47999,23))},cv:function(){return n.e(2367).then(n.t.bind(n,52367,23))},cy:function(){return n.e(5373).then(n.t.bind(n,45373,23))},da:function(){return n.e(6393).then(n.t.bind(n,66393,23))},"de-at":function(){return n.e(5448).then(n.t.bind(n,45448,23))},"de-ch":function(){return n.e(6679).then(n.t.bind(n,96679,23))},de:function(){return n.e(4132).then(n.t.bind(n,84132,23))},dv:function(){return n.e(9219).then(n.t.bind(n,29219,23))},el:function(){return n.e(556).then(n.t.bind(n,20556,23))},"en-au":function(){return n.e(8850).then(n.t.bind(n,98850,23))},"en-ca":function(){return n.e(9297).then(n.t.bind(n,29297,23))},"en-gb":function(){return n.e(3630).then(n.t.bind(n,63630,23))},"en-ie":function(){return n.e(3231).then(n.t.bind(n,83231,23))},"en-il":function(){return n.e(6815).then(n.t.bind(n,6815,23))},"en-in":function(){return n.e(2620).then(n.t.bind(n,12620,23))},"en-nz":function(){return n.e(6961).then(n.t.bind(n,96961,23))},"en-sg":function(){return n.e(7257).then(n.t.bind(n,7257,23))},"en-tt":function(){return n.e(8702).then(n.t.bind(n,58702,23))},en:function(){return n.e(3304).then(n.t.bind(n,73304,23))},eo:function(){return n.e(1508).then(n.t.bind(n,11508,23))},"es-do":function(){return n.e(3271).then(n.t.bind(n,53271,23))},"es-mx":function(){return n.e(30).then(n.t.bind(n,50030,23))},"es-pr":function(){return n.e(5117).then(n.t.bind(n,85117,23))},"es-us":function(){return n.e(5387).then(n.t.bind(n,95387,23))},es:function(){return n.e(5670).then(n.t.bind(n,5670,23))},et:function(){return n.e(7388).then(n.t.bind(n,27388,23))},eu:function(){return n.e(3333).then(n.t.bind(n,3333,23))},fa:function(){return n.e(1278).then(n.t.bind(n,61278,23))},fi:function(){return n.e(178).then(n.t.bind(n,10178,23))},fo:function(){return n.e(6892).then(n.t.bind(n,46892,23))},"fr-ca":function(){return n.e(2229).then(n.t.bind(n,62229,23))},"fr-ch":function(){return n.e(4326).then(n.t.bind(n,94326,23))},fr:function(){return n.e(7276).then(n.t.bind(n,97276,23))},fy:function(){return n.e(7803).then(n.t.bind(n,67803,23))},ga:function(){return n.e(5720).then(n.t.bind(n,85720,23))},gd:function(){return n.e(6954).then(n.t.bind(n,6954,23))},gl:function(){return n.e(9413).then(n.t.bind(n,19413,23))},"gom-latn":function(){return n.e(3945).then(n.t.bind(n,53945,23))},gu:function(){return n.e(2981).then(n.t.bind(n,72981,23))},he:function(){return n.e(1150).then(n.t.bind(n,11150,23))},hi:function(){return n.e(3926).then(n.t.bind(n,3926,23))},hr:function(){return n.e(5643).then(n.t.bind(n,45643,23))},ht:function(){return n.e(5161).then(n.t.bind(n,25161,23))},hu:function(){return n.e(2238).then(n.t.bind(n,42238,23))},"hy-am":function(){return n.e(8133).then(n.t.bind(n,18133,23))},id:function(){return n.e(4949).then(n.t.bind(n,84949,23))},is:function(){return n.e(383).then(n.t.bind(n,20383,23))},"it-ch":function(){return n.e(2701).then(n.t.bind(n,32701,23))},it:function(){return n.e(3645).then(n.t.bind(n,73645,23))},ja:function(){return n.e(2677).then(n.t.bind(n,92677,23))},jv:function(){return n.e(2477).then(n.t.bind(n,22477,23))},ka:function(){return n.e(5399).then(n.t.bind(n,45399,23))},kk:function(){return n.e(4985).then(n.t.bind(n,34985,23))},km:function(){return n.e(674).then(n.t.bind(n,10674,23))},kn:function(){return n.e(9207).then(n.t.bind(n,89207,23))},ko:function(){return n.e(7779).then(n.t.bind(n,77779,23))},ku:function(){return n.e(1148).then(n.t.bind(n,61148,23))},ky:function(){return n.e(8011).then(n.t.bind(n,8011,23))},lb:function(){return n.e(96).then(n.t.bind(n,80096,23))},lo:function(){return n.e(8167).then(n.t.bind(n,68167,23))},lt:function(){return n.e(4347).then(n.t.bind(n,64347,23))},lv:function(){return n.e(2223).then(n.t.bind(n,62223,23))},me:function(){return n.e(2033).then(n.t.bind(n,2033,23))},mi:function(){return n.e(8695).then(n.t.bind(n,68695,23))},mk:function(){return n.e(8140).then(n.t.bind(n,18140,23))},ml:function(){return n.e(6227).then(n.t.bind(n,36227,23))},mn:function(){return n.e(148).then(n.t.bind(n,50148,23))},mr:function(){return n.e(9572).then(n.t.bind(n,59572,23))},"ms-my":function(){return n.e(1179).then(n.t.bind(n,81179,23))},ms:function(){return n.e(1746).then(n.t.bind(n,81746,23))},mt:function(){return n.e(3466).then(n.t.bind(n,33466,23))},my:function(){return n.e(4684).then(n.t.bind(n,44684,23))},nb:function(){return n.e(5226).then(n.t.bind(n,45226,23))},ne:function(){return n.e(115).then(n.t.bind(n,50115,23))},"nl-be":function(){return n.e(4964).then(n.t.bind(n,14964,23))},nl:function(){return n.e(1869).then(n.t.bind(n,11869,23))},nn:function(){return n.e(9917).then(n.t.bind(n,59917,23))},"oc-lnc":function(){return n.e(163).then(n.t.bind(n,51343,23))},"pa-in":function(){return n.e(3025).then(n.t.bind(n,73025,23))},pl:function(){return n.e(6156).then(n.t.bind(n,26156,23))},"pt-br":function(){return n.e(6361).then(n.t.bind(n,56361,23))},pt:function(){return n.e(4663).then(n.t.bind(n,74663,23))},rn:function(){return n.e(7992).then(n.t.bind(n,17992,23))},ro:function(){return n.e(3756).then(n.t.bind(n,83756,23))},ru:function(){return n.e(678).then(n.t.bind(n,40678,23))},rw:function(){return n.e(436).then(n.t.bind(n,75643,23))},sd:function(){return n.e(5112).then(n.t.bind(n,5112,23))},se:function(){return n.e(9555).then(n.t.bind(n,49555,23))},si:function(){return n.e(5809).then(n.t.bind(n,25809,23))},sk:function(){return n.e(5450).then(n.t.bind(n,95450,23))},sl:function(){return n.e(5491).then(n.t.bind(n,75491,23))},sq:function(){return n.e(8591).then(n.t.bind(n,98591,23))},"sr-cyrl":function(){return n.e(7016).then(n.t.bind(n,77016,23))},sr:function(){return n.e(9308).then(n.t.bind(n,69308,23))},ss:function(){return n.e(9411).then(n.t.bind(n,99411,23))},"sv-fi":function(){return n.e(6521).then(n.t.bind(n,86521,23))},sv:function(){return n.e(4159).then(n.t.bind(n,14159,23))},sw:function(){return n.e(9528).then(n.t.bind(n,99528,23))},ta:function(){return n.e(4826).then(n.t.bind(n,14826,23))},te:function(){return n.e(5352).then(n.t.bind(n,45352,23))},tet:function(){return n.e(9292).then(n.t.bind(n,49292,23))},tg:function(){return n.e(7684).then(n.t.bind(n,77684,23))},th:function(){return n.e(9212).then(n.t.bind(n,89212,23))},tk:function(){return n.e(6065).then(n.t.bind(n,16065,23))},"tl-ph":function(){return n.e(5341).then(n.t.bind(n,45341,23))},tlh:function(){return n.e(4583).then(n.t.bind(n,4583,23))},tr:function(){return n.e(3920).then(n.t.bind(n,33920,23))},tzl:function(){return n.e(7119).then(n.t.bind(n,97119,23))},"tzm-latn":function(){return n.e(6144).then(n.t.bind(n,36144,23))},tzm:function(){return n.e(1350).then(n.t.bind(n,31350,23))},"ug-cn":function(){return n.e(2590).then(n.t.bind(n,92590,23))},uk:function(){return n.e(6291).then(n.t.bind(n,26291,23))},ur:function(){return n.e(3397).then(n.t.bind(n,53397,23))},"uz-latn":function(){return n.e(1168).then(n.t.bind(n,51168,23))},uz:function(){return n.e(8853).then(n.t.bind(n,8853,23))},vi:function(){return n.e(4535).then(n.t.bind(n,44535,23))},"x-pseudo":function(){return n.e(9101).then(n.t.bind(n,79101,23))},yo:function(){return n.e(2986).then(n.t.bind(n,42986,23))},"zh-cn":function(){return n.e(4080).then(n.t.bind(n,4080,23))},"zh-hk":function(){return n.e(3898).then(n.t.bind(n,73898,23))},"zh-tw":function(){return n.e(1616).then(n.t.bind(n,33739,23))},zh:function(){return n.e(7522).then(n.t.bind(n,87522,23))}}},82936:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(t){i(t)}}function s(e){try{l(r.throw(e))}catch(t){i(t)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(l){s=[6,l],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.settings=void 0;var a=i(n(63585)),s=n(97553),l=i(n(4796)),c=n(87116),u=n(24033),d=function(){function e(){this.loadedLocales=new Set(["en"]),this.defaultLocale="en",this.defaultTimeZone="system",this.parser={parse:s.parse,isLikeRelative:s.isLikeRelative},this.updateLocale({weekStart:1,yearStart:1})}return e.prototype.loadLocale=function(e){return r(this,void 0,void 0,(function(){var t;return o(this,(function(n){switch(n.label){case 0:if(this.isLocaleLoaded(e))return[3,4];n.label=1;case 1:return n.trys.push([1,3,,4]),t=e.toLocaleLowerCase(),[4,(0,u.localeLoaders[t])()];case 2:return n.sent(),this.loadedLocales.add(t),[3,4];case 3:throw n.sent(),new Error("Can't load locale \"".concat(e,'". Either it does not exist, or there was a connection problem. Check the dayjs locations list: https://github.com/iamkun/dayjs/tree/dev/src/locale'));case 4:return[2]}}))}))},e.prototype.getLocale=function(){return this.defaultLocale},e.prototype.getLocaleData=function(){var e=l.default.Ls,t=e[this.getLocale()];if(t||(t=e.en),!t)throw new Error("There is something really wrong happening. Locale data is absent.");return(0,a.default)(t)},e.prototype.setLocale=function(e){if(!this.isLocaleLoaded(e))throw new Error('Seems you are trying to set an unloaded locale "'.concat(e,"\". Load it first by calling settings.loadLocale('").concat(e,"'). Check the dayjs locations list: https://github.com/iamkun/dayjs/tree/dev/src/locale"));this.defaultLocale=e},e.prototype.updateLocale=function(e){var t=this.getLocale();l.default.updateLocale(t,e)},e.prototype.setDefaultTimeZone=function(e){this.defaultTimeZone=(0,c.normalizeTimeZone)(e,"system")},e.prototype.getDefaultTimeZone=function(){return this.defaultTimeZone},e.prototype.setRelativeParser=function(e){this.parser=e},e.prototype.getRelativeParser=function(){return this.parser},e.prototype.isLocaleLoaded=function(e){var t=e.toLocaleLowerCase();return this.loadedLocales.has(t)},e}();t.settings=new d},87116:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(94693),t)},94693:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.parseZoneInfo=t.fixOffset=t.normalizeTimeZone=t.timeZoneOffset=t.isValidTimeZone=t.getTimeZonesList=t.guessUserTimeZone=void 0;var o=n(20843),i=n(55353);t.guessUserTimeZone=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone};t.getTimeZonesList=function(){var e;return(null===(e=Intl.supportedValuesOf)||void 0===e?void 0:e.call(Intl,"timeZone"))||[]};var a={};function s(e){if(!e)return!1;if(Object.prototype.hasOwnProperty.call(a,e))return a[e];try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),a[e]=!0,!0}catch(t){return a[e]=!1,!1}}t.isValidTimeZone=s;var l=["year","month","day","hour","minute","second","era"];function c(e,t){var n=new Date(t);if(isNaN(n.valueOf())||"system"!==e&&!s(e))return NaN;if("system"===e)return-n.getTimezoneOffset()||0;for(var r,o={year:1,month:1,day:1,hour:0,minute:0,second:0,era:"AD"},a=0,c=(0,i.getDateTimeFormat)("en-US",{hour12:!1,timeZone:"system"===e?void 0:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"}).formatToParts(n);a<c.length;a++){var u=c[a],d=u.type,f=u.value;"era"===d?o.era=f:(r=d,l.includes(r)&&(o[d]=parseInt(f,10)))}var p="BC"===o.era?1-Math.abs(o.year):o.year,h=o.month-1,m=24===o.hour?0:o.hour,g=Date.UTC(p,h,o.day,m,o.minute,o.second,0);if(p<100&&p>=0){var v=new Date(g);v.setUTCFullYear(p,h,o.day),g=v.valueOf()}var y=n.valueOf(),b=y%1e3;return(g-(y-=b>=0?b:1e3+b))/6e4}function u(e,t){if(void 0===e||null===e)return t;var n=e.toLowerCase();if("utc"===n||"gmt"===n)return o.UtcTimeZone;if("system"===n)return"system";if("default"===n)return t;if(s(e))return e;throw new Error("InvalidZone: ".concat(e))}t.timeZoneOffset=c,t.normalizeTimeZone=u,t.fixOffset=function(e,t,n){var r=e-60*t*1e3,o=c(n,r);if(t===o)return[r,t];var i=c(n,r-=60*(o-t)*1e3);return o===i?[r,o]:[e-60*Math.min(o,i)*1e3,Math.min(o,i)]},t.parseZoneInfo=function(e){var t=e.timeZone,n=e.ts,o=e.locale,i=e.offsetFormat,a=new Date(n),s={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};t&&(s.timeZone=u(t,t));var l=r({timeZoneName:i},s),c=new Intl.DateTimeFormat(o,l).formatToParts(a).find((function(e){return"timezonename"===e.type.toLowerCase()}));return c?c.value:""}},59318:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(39232),t)},55353:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getNumberFormat=t.getListFormat=t.getDateTimeFormat=void 0;var n=new Map;t.getDateTimeFormat=function(e,t){void 0===t&&(t={});var r=JSON.stringify([e,t]),o=n.get(r);return o||(o=new Intl.DateTimeFormat(e,t),n.set(r,o)),o};var r=new Map;t.getListFormat=function(e,t){void 0===t&&(t={});var n=JSON.stringify([e,t]),o=r.get(n);return o||(o=new Intl.ListFormat(e,t),r.set(n,o)),o};var o=new Map;t.getNumberFormat=function(e,t){void 0===t&&(t={});var n=JSON.stringify([e,t]),r=o.get(n);return r||(r=new Intl.NumberFormat(e,t),o.set(n,r)),r}},39232:(e,t)=>{"use strict";function n(e,t){return e-t*Math.floor(e/t)}function r(e){return e%4===0&&(e%100!==0||e%400===0)}function o(e){return r(e)?366:365}Object.defineProperty(t,"__esModule",{value:!0}),t.monthDiff=t.weekToGregorian=t.weeksInWeekYear=t.gregorianToWeek=t.isoWeekdayToLocal=t.uncomputeOrdinal=t.computeOrdinal=t.offsetFromString=t.normalizeDateComponents=t.normalizeComponent=t.normalizeDurationUnit=t.objToTS=t.tsToObject=t.daysInMonth=t.daysInYear=t.isLeapYear=t.floorMod=void 0,t.floorMod=n,t.isLeapYear=r,t.daysInYear=o,t.daysInMonth=function(e,t){var o=n(t,12);return 1===o?r(e+(t-o)/12)?29:28:[31,-1,31,30,31,30,31,31,30,31,30,31][o]},t.tsToObject=function(e,t){var n=new Date(e+60*t*1e3);return{year:n.getUTCFullYear(),month:n.getUTCMonth(),date:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}},t.objToTS=function(e){var t=Date.UTC(e.year,e.month,e.date,e.hour,e.minute,e.second,e.millisecond);if(e.year<100&&e.year>=0){var n=new Date(t);return n.setUTCFullYear(e.year,e.month,e.date),n.valueOf()}return t};var i={y:"years",year:"years",years:"years",Q:"quarters",quarter:"quarters",quarters:"quarters",M:"months",month:"months",months:"months",w:"weeks",week:"weeks",weeks:"weeks",d:"days",day:"days",days:"days",h:"hours",hour:"hours",hours:"hours",m:"minutes",minute:"minutes",minutes:"minutes",s:"seconds",second:"seconds",seconds:"seconds",ms:"milliseconds",millisecond:"milliseconds",milliseconds:"milliseconds"};t.normalizeDurationUnit=function(e){var t=["d","D","m","M","w","W","E","Q"].includes(e)?e:e.toLowerCase();if(t in i)return i[t];throw new Error("Invalid unit ".concat(e))};var a={y:"year",year:"year",years:"year",M:"month",month:"month",months:"month",D:"date",date:"date",dates:"date",h:"hour",hour:"hour",hours:"hour",m:"minute",minute:"minute",minutes:"minute",Q:"quarter",quarter:"quarter",quarters:"quarter",s:"second",second:"second",seconds:"second",ms:"millisecond",millisecond:"millisecond",milliseconds:"millisecond",d:"day",day:"day",days:"day",weeknumber:"weekNumber",w:"weekNumber",week:"weekNumber",weeks:"weekNumber",isoweeknumber:"isoWeekNumber",W:"isoWeekNumber",isoweek:"isoWeekNumber",isoweeks:"isoWeekNumber",E:"isoWeekday",isoweekday:"isoWeekday",isoweekdays:"isoWeekday",weekday:"weekday",weekdays:"weekday",e:"weekday",dayOfYear:"dayOfYear",dayOfYears:"dayOfYear",DDD:"dayOfYear",weekyear:"weekYear",isoweekyear:"isoWeekYear"};function s(e){var t=Number(e);if("boolean"===typeof e||""===e||Number.isNaN(t))throw new Error("Invalid unit value ".concat(e));return t}t.normalizeComponent=function(e){var t=["d","D","m","M","w","W","e","E","Q"].includes(e)?e:e.toLowerCase();if(t in a)return a[t];throw new Error("Invalid unit ".concat(e))},t.normalizeDateComponents=function(e,t){for(var n={},r=0,o=Object.entries(e);r<o.length;r++){var i=o[r],a=i[0],l=i[1];void 0!==l&&null!==l&&(n[t(a)]=s(l))}return n};var l=/Z|[+-]\d\d(?::?\d\d)?/gi,c=/([+-]|\d\d)/gi;function u(e,t,n){var r=new Date(Date.UTC(e,t,n));return e<100&&e>=0&&r.setUTCFullYear(r.getUTCFullYear()-1900),r.getUTCDay()}function d(e,t,n){var r=u(e,t,n);return 0===r?7:r}t.offsetFromString=function(e){var t=(e||"").match(l);if(null===t)return null;var n=t[t.length-1]||"",r=String(n).match(c)||["-",0,0],o=r[0],i=r[1],a=r[2],s=Number(60*Number(i))+(isFinite(Number(a))?Number(a):0);return"+"===o?s:-s};var f=[0,31,59,90,120,151,181,212,243,273,304,334],p=[0,31,60,91,121,152,182,213,244,274,305,335];function h(e){var t=e.year,n=e.month;return e.date+(r(t)?p:f)[n]}function m(e){var t=e.year,n=e.ordinal,o=r(t)?p:f,i=o.findIndex((function(e){return e<n}));return{month:i,date:n-o[i]}}function g(e,t){return(e-t+7)%7+1}function v(e,t,n){var r,o=e.year,i=e.month,a=e.date,s=g(d(o,i,a),n),l=h({year:o,month:i,date:a}),c=Math.floor((l-s+14-t)/7);return c<1?c=b(r=o-1,t,n):c>b(o,t,n)?(r=o+1,c=1):r=o,{weekYear:r,weekNumber:c,weekday:s}}function y(e,t,n){return-g(d(e,0,t),n)+t-1}function b(e,t,n){void 0===t&&(t=4),void 0===n&&(n=1);var r=y(e,t,n),i=y(e+1,t,n);return(o(e)-r+i)/7}t.computeOrdinal=h,t.uncomputeOrdinal=m,t.isoWeekdayToLocal=g,t.gregorianToWeek=function(e,t,n){var r=u(e.year,e.month,e.date),o=v(e,t,n),i=o.weekYear,a=o.weekNumber,s=o.weekday,l=v(e,4,1);return{day:r,weekYear:i,weekNumber:a,weekday:s-1,isoWeekYear:l.weekYear,isoWeekNumber:l.weekNumber,isoWeekday:l.weekday}},t.weeksInWeekYear=b,t.weekToGregorian=function(e,t,n){var r,i=e.weekYear,a=e.weekNumber,s=e.weekday,l=g(d(i,0,t),n),c=o(i),u=7*a+s-l-7+t;u<1?u+=o(r=i-1):u>c?(r=i+1,u-=o(i)):r=i;var f=m({year:r,ordinal:u});return{year:r,month:f.month,date:f.date}},t.monthDiff=function e(t,n){if(t.date()<n.date())return-e(n,t);var r,o=12*(n.year()-t.year())+(n.month()-t.month()),i=t.add(o,"months");if(n.valueOf()-i.valueOf()<0){var a=t.add(o-1,"months");r=(n.valueOf()-i.valueOf())/(i.valueOf()-a.valueOf())}else{a=t.add(o+1,"months");r=(n.valueOf()-i.valueOf())/(a.valueOf()-i.valueOf())}return-(o+r)||0}},31329:(e,t,n)=>{"use strict";n.d(t,{mb:()=>u});const r=/{{(.*?)}}/g;const o={EmptyKeyset:"EMPTY_KEYSET",EmptyLanguageData:"EMPTY_LANGUAGE_DATA",KeysetNotFound:"KEYSET_NOT_FOUND",MissingKey:"MISSING_KEY",MissingKeyFor0:"MISSING_KEY_FOR_0",MissingKeyParamsCount:"MISSING_KEY_PARAMS_COUNT",MissingKeyPlurals:"MISSING_KEY_PLURALS",NoLanguageData:"NO_LANGUAGE_DATA"};Object.values(o);function i(e){const{code:t,fallbackLang:n,lang:r}=e;let i=`Using language ${r}. `;switch(t){case o.EmptyKeyset:i+="Keyset is empty.";break;case o.EmptyLanguageData:i+="Language data is empty.";break;case o.KeysetNotFound:i+="Keyset not found.";break;case o.MissingKey:i+="Missing key.";break;case o.MissingKeyFor0:return i+="Missing key for 0",i;case o.MissingKeyParamsCount:i+="Missing params.count for key.";break;case o.MissingKeyPlurals:i+="Missing required plurals.";break;case o.NoLanguageData:i=`Language "${r}" is not defined, make sure you call setLang for the same language you called registerKeysets for!`}return n&&(i+=` Trying to use fallback language "${n}"...`),i}var a;function s(e,t){return 0===e?t.None:1===e||-1===e?t.One:t.Many}function l(e,t){const n=Math.abs(e%10),r=Math.abs(e%100);return 0===e?t.None:1===n&&11!==r?t.One:n>1&&n<5&&(r<10||r>20)?t.Few:t.Many}function c(e){let{value:t,count:n,lang:r,pluralizers:o,log:i,key:s}=e;if(!Array.isArray(t))return function(e,t,n){if(e.zero&&0===t)return e.zero;if(!Intl.PluralRules)throw new Error("Intl.PluralRules is not available. Use polyfill.");const r=new Intl.PluralRules(n).select(t);return"other"===r&&"undefined"===typeof e.other?e.many||e.few:e[r]||e.other}(t,n,r)||s;if(!o)return i("Can not use deprecated plural format without pluralizers"),s;if(o[r]||i(`Pluralization is not configured for language '${r}', falling back to the english ruleset`),t.length<3)return i("Missing required plurals"),s;const l=o[r]||o.en;return l?t[l(n,a)]||t[a.Many]||s:(i("Fallback pluralization is not configured!"),s)}!function(e){e[e.One=0]="One",e[e.Few=1]="Few",e[e.Many=2]="Many",e[e.None=3]="None"}(a||(a={}));class u{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.data={},this.pluralizers={en:s,ru:l},this.logger=null;const{data:t,fallbackLang:n,lang:r,logger:o=null}=e;this.fallbackLang=n,this.lang=r,this.logger=o,t&&Object.entries(t).forEach((e=>{let[t,n]=e;this.registerKeysets(t,n)}))}setLang(e){this.lang=e}setFallbackLang(e){this.fallbackLang=e}configurePluralization(e){this.pluralizers=Object.assign({},this.pluralizers,e)}registerKeyset(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=this.data[e]&&Object.prototype.hasOwnProperty.call(this.data[e],t);if(r)throw new Error(`Keyset '${t}' is already registered, aborting!`);r&&this.warn(`Keyset '${t}' is already registered.`),this.data[e]=Object.assign({},this.data[e],{[t]:n})}registerKeysets(e,t){Object.keys(t).forEach((n=>{this.registerKeyset(e,n,t[n])}))}has(e,t,n){var r;const o=this.getLanguageData(n);return Boolean(o&&o[e]&&(null===(r=o[e])||void 0===r?void 0:r[t]))}i18n(e,t,n){if(!this.lang&&!this.fallbackLang)throw new Error('Language is not specified. You should set at least one of these: "lang", "fallbackLang"');let r,o;if(this.lang){if(({text:r,details:o}=this.getTranslationData({keysetName:e,key:t,params:n,lang:this.lang})),o){const e=i({code:o.code,lang:this.lang,fallbackLang:this.fallbackLang===this.lang?void 0:this.fallbackLang});this.warn(e,o.keysetName,o.key)}}else this.warn("Target language is not specified.");if(void 0===r&&this.fallbackLang&&this.fallbackLang!==this.lang&&(({text:r,details:o}=this.getTranslationData({keysetName:e,key:t,params:n,lang:this.fallbackLang})),o)){const e=i({code:o.code,lang:this.fallbackLang});this.warn(e,o.keysetName,o.key)}return null!==r&&void 0!==r?r:t}keyset(e){return(t,n)=>this.i18n(e,t,n)}warn(e,t,n){var r;let o="";t?(o+=t,n&&(o+=`.${n}`)):o="languageData",null===(r=this.logger)||void 0===r||r.log(`I18n: ${e}`,{level:"info",logger:o,extra:{type:"i18n"}})}getLanguageData(e){const t=e||this.lang;return t?this.data[t]:void 0}getTranslationData(e){const{lang:t,key:n,keysetName:i,params:a}=e,s=this.getLanguageData(t);if("undefined"===typeof s)return{details:{code:o.NoLanguageData}};if(0===Object.keys(s).length)return{details:{code:o.EmptyLanguageData}};const l=s[i];if(!l)return{details:{code:o.KeysetNotFound,keysetName:i}};if(0===Object.keys(l).length)return{details:{code:o.EmptyKeyset,keysetName:i}};const u=l&&l[n],d={};if(void 0===u)return{details:{code:o.MissingKey,keysetName:i,key:n}};if("string"!==typeof u){const e=Number(null===a||void 0===a?void 0:a.count);if(Number.isNaN(e))return{details:{code:o.MissingKeyParamsCount,keysetName:i,key:n}};d.text=c({key:n,value:u,count:e,lang:this.lang||"en",pluralizers:this.pluralizers,log:e=>this.warn(e,i,n)})}else d.text=u;return a&&(d.text=function(e,t){let n,o="",i=r.lastIndex=0;for(;n=r.exec(e);){i!==n.index&&(o+=e.slice(i,n.index)),i=r.lastIndex;const[a,s]=n;s&&Object.prototype.hasOwnProperty.call(t,s)?o+=t[s]:o+=a}return i<e.length&&(o+=e.slice(i)),o}(d.text,a)),d}}},39683:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(68963);const o=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M10 1.5A.75.75 0 0 0 10 3h1.94L6.97 7.97a.75.75 0 0 0 1.06 1.06L13 4.06V6a.75.75 0 0 0 1.5 0V2.25a.75.75 0 0 0-.75-.75H10ZM7.5 3.25a.75.75 0 0 0-.75-.75H4.5a3 3 0 0 0-3 3v6a3 3 0 0 0 3 3h6a3 3 0 0 0 3-3V9.25a.75.75 0 0 0-1.5 0v2.25a1.5 1.5 0 0 1-1.5 1.5h-6A1.5 1.5 0 0 1 3 11.5v-6A1.5 1.5 0 0 1 4.5 4h2.25a.75.75 0 0 0 .75-.75Z",clipRule:"evenodd"}))},57542:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(68963);const o=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M2.97 5.47a.75.75 0 0 1 1.06 0L8 9.44l3.97-3.97a.75.75 0 1 1 1.06 1.06l-4.5 4.5a.75.75 0 0 1-1.06 0l-4.5-4.5a.75.75 0 0 1 0-1.06Z",clipRule:"evenodd"}))},30755:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(68963);const o=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M10.53 2.97a.75.75 0 0 1 0 1.06L6.56 8l3.97 3.97a.75.75 0 1 1-1.06 1.06l-4.5-4.5a.75.75 0 0 1 0-1.06l4.5-4.5a.75.75 0 0 1 1.06 0Z",clipRule:"evenodd"}))},44821:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(68963);const o=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M5.47 13.03a.75.75 0 0 1 0-1.06L9.44 8 5.47 4.03a.75.75 0 0 1 1.06-1.06l4.5 4.5a.75.75 0 0 1 0 1.06l-4.5 4.5a.75.75 0 0 1-1.06 0Z",clipRule:"evenodd"}))},96261:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(68963);const o=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M13.5 8a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0ZM15 8A7 7 0 1 1 1 8a7 7 0 0 1 14 0Zm-3.9-1.55a.75.75 0 1 0-1.2-.9L7.419 8.858 6.03 7.47a.75.75 0 0 0-1.06 1.06l2 2a.75.75 0 0 0 1.13-.08l3-4Z",clipRule:"evenodd"}))},68010:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(68963);const o=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 13.5a5.5 5.5 0 1 0 0-11 5.5 5.5 0 0 0 0 11ZM8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14Zm1-9.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0Zm-.25 3a.75.75 0 0 0-1.5 0V11a.75.75 0 0 0 1.5 0V8.5Z",clipRule:"evenodd"}))},32257:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(68963);const o=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 13.5a5.5 5.5 0 1 0 0-11 5.5 5.5 0 0 0 0 11ZM8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14ZM6.44 4.54c.43-.354.994-.565 1.56-.565 1.217 0 2.34.82 2.34 2.14 0 .377-.079.745-.298 1.1-.208.339-.513.614-.875.867-.217.153-.326.257-.379.328-.038.052-.038.07-.038.089a.75.75 0 0 1-1.5 0c0-.794.544-1.286 1.057-1.645.28-.196.4-.332.458-.426a.543.543 0 0 0 .074-.312c0-.3-.243-.641-.839-.641a.997.997 0 0 0-.608.223c-.167.138-.231.287-.231.418a.75.75 0 1 1-1.5 0c0-.674.345-1.22.78-1.577ZM8 12a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z",clipRule:"evenodd"}))},98409:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(68963);const o=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M3 9.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3ZM9.5 8a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Zm5 0a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Z",clipRule:"evenodd"}))},21645:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(68963);const o=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("g",{clipPath:"url(#a)"},r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M7.199 2H8.8a.2.2 0 0 1 .2.2c0 1.808 1.958 2.939 3.524 2.034a.199.199 0 0 1 .271.073l.802 1.388a.199.199 0 0 1-.073.272c-1.566.904-1.566 3.164 0 4.069a.199.199 0 0 1 .073.271l-.802 1.388a.199.199 0 0 1-.271.073C10.958 10.863 9 11.993 9 13.8a.2.2 0 0 1-.199.2H7.2a.199.199 0 0 1-.2-.2c0-1.808-1.958-2.938-3.524-2.034a.199.199 0 0 1-.272-.073l-.8-1.388a.199.199 0 0 1 .072-.271c1.566-.905 1.566-3.165 0-4.07a.199.199 0 0 1-.073-.271l.801-1.388a.199.199 0 0 1 .272-.073C5.042 5.138 7 4.007 7 2.2c0-.11.089-.199.199-.199ZM5.5 2.2c0-.94.76-1.7 1.699-1.7H8.8c.94 0 1.7.76 1.7 1.7a.85.85 0 0 0 1.274.735 1.699 1.699 0 0 1 2.32.622l.802 1.388c.469.813.19 1.851-.622 2.32a.85.85 0 0 0 0 1.472 1.7 1.7 0 0 1 .622 2.32l-.802 1.388a1.699 1.699 0 0 1-2.32.622.85.85 0 0 0-1.274.735c0 .939-.76 1.7-1.699 1.7H7.2a1.7 1.7 0 0 1-1.699-1.7.85.85 0 0 0-1.274-.735 1.698 1.698 0 0 1-2.32-.622l-.802-1.388a1.699 1.699 0 0 1 .622-2.32.85.85 0 0 0 0-1.471 1.699 1.699 0 0 1-.622-2.321l.801-1.388a1.699 1.699 0 0 1 2.32-.622A.85.85 0 0 0 5.5 2.2Zm4 5.8a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0ZM11 8a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z",clipRule:"evenodd"})),r.createElement("defs",null,r.createElement("clipPath",{id:"a"},r.createElement("path",{fill:"currentColor",d:"M0 0h16v16H0z"}))))},20397:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(68963);const o=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M7 3a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0ZM5.5 9.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Zm5 0a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Zm0-5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3ZM7 13a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Zm3.5 1.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z",clipRule:"evenodd"}))},3442:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(68963);const o=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"m7.835 6 .76-2.027L9.336 2H5.5a.716.716 0 0 0-.664.45L2.513 8.257a.177.177 0 0 0 .164.243h4.965l-.732 2.013-1.082 2.975a.382.382 0 0 0 .637.392l6.956-7.391A.29.29 0 0 0 13.21 6H7.835Zm1.558-4.154ZM10.563 3l.235-.627A1.386 1.386 0 0 0 9.5.5h-4c-.906 0-1.72.552-2.057 1.393L1.12 7.7A1.677 1.677 0 0 0 2.677 10H5.5l-.545 1.5-.537 1.475a1.882 1.882 0 0 0 3.14 1.933l6.956-7.391A1.79 1.79 0 0 0 13.21 4.5H10l.563-1.5Z",clipRule:"evenodd"}))},93316:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(68963);const o=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M7.134 2.994 2.217 11.5a1 1 0 0 0 .866 1.5h9.834a1 1 0 0 0 .866-1.5L8.866 2.993a1 1 0 0 0-1.732 0Zm3.03-.75c-.962-1.665-3.366-1.665-4.328 0L.919 10.749c-.964 1.666.239 3.751 2.164 3.751h9.834c1.925 0 3.128-2.085 2.164-3.751l-4.917-8.505ZM8 5a.75.75 0 0 1 .75.75v2a.75.75 0 0 1-1.5 0v-2A.75.75 0 0 1 8 5Zm1 5.75a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z",clipRule:"evenodd"}))},77280:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(68963);const o=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M3.47 3.47a.75.75 0 0 1 1.06 0L8 6.94l3.47-3.47a.75.75 0 1 1 1.06 1.06L9.06 8l3.47 3.47a.75.75 0 1 1-1.06 1.06L8 9.06l-3.47 3.47a.75.75 0 0 1-1.06-1.06L6.94 8 3.47 4.53a.75.75 0 0 1 0-1.06Z",clipRule:"evenodd"}))},5718:(e,t,n)=>{"use strict";n.d(t,{N:()=>o,b:()=>i});var r=n(5247);const o="gn-";(0,r.withNaming)({e:"__",m:"_"});const i=(0,r.withNaming)({n:o,e:"__",m:"_"})},5687:(e,t,n)=>{"use strict";n.d(t,{d:()=>Z});var r="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:"undefined"!==typeof self?self:{};var o=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},i="object"==typeof r&&r&&r.Object===Object&&r,a="object"==typeof self&&self&&self.Object===Object&&self,s=i||a||Function("return this")(),l=s,c=function(){return l.Date.now()},u=/\s/;var d=function(e){for(var t=e.length;t--&&u.test(e.charAt(t)););return t},f=/^\s+/;var p=function(e){return e?e.slice(0,d(e)+1).replace(f,""):e},h=s.Symbol,m=h,g=Object.prototype,v=g.hasOwnProperty,y=g.toString,b=m?m.toStringTag:void 0;var w=function(e){var t=v.call(e,b),n=e[b];try{e[b]=void 0;var r=!0}catch(i){}var o=y.call(e);return r&&(t?e[b]=n:delete e[b]),o},E=Object.prototype.toString;var _=w,x=function(e){return E.call(e)},S="[object Null]",C="[object Undefined]",k=h?h.toStringTag:void 0;var O=function(e){return null==e?void 0===e?C:S:k&&k in Object(e)?_(e):x(e)},T=function(e){return null!=e&&"object"==typeof e},N="[object Symbol]";var I=p,P=o,R=function(e){return"symbol"==typeof e||T(e)&&O(e)==N},D=NaN,A=/^[-+]0x[0-9a-f]+$/i,j=/^0b[01]+$/i,M=/^0o[0-7]+$/i,L=parseInt;var z=o,F=c,B=function(e){if("number"==typeof e)return e;if(R(e))return D;if(P(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=P(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=I(e);var n=j.test(e);return n||M.test(e)?L(e.slice(2),n?2:8):A.test(e)?D:+e},U="Expected a function",q=Math.max,$=Math.min;var Z=function(e,t,n){var r,o,i,a,s,l,c=0,u=!1,d=!1,f=!0;if("function"!=typeof e)throw new TypeError(U);function p(t){var n=r,i=o;return r=o=void 0,c=t,a=e.apply(i,n)}function h(e){var n=e-l;return void 0===l||n>=t||n<0||d&&e-c>=i}function m(){var e=F();if(h(e))return g(e);s=setTimeout(m,function(e){var n=t-(e-l);return d?$(n,i-(e-c)):n}(e))}function g(e){return s=void 0,f&&r?p(e):(r=o=void 0,a)}function v(){var e=F(),n=h(e);if(r=arguments,o=this,l=e,n){if(void 0===s)return function(e){return c=e,s=setTimeout(m,t),u?p(e):a}(l);if(d)return clearTimeout(s),s=setTimeout(m,t),p(l)}return void 0===s&&(s=setTimeout(m,t)),a}return t=B(t)||0,z(n)&&(u=!!n.leading,i=(d="maxWait"in n)?q(B(n.maxWait)||0,t):i,f="trailing"in n?!!n.trailing:f),v.cancel=function(){void 0!==s&&clearTimeout(s),c=0,r=l=o=s=void 0},v.flush=function(){return void 0===s?a:g(F())},v}},50528:(e,t,n)=>{"use strict";n.d(t,{b:()=>r});const r=(0,n(5718).b)("aside-header")},81413:(e,t,n)=>{"use strict";n.d(t,{RL:()=>i,dv:()=>a,hA:()=>l,hr:()=>o,oc:()=>u,pX:()=>s,qA:()=>c,zE:()=>r});const r=1,o=-1,i="left",a="center",s="right",l="fixed",c="moving",u="__index__"},19812:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>D});var r=n(95097),o=n(68963),i=n(83570),a=n.n(i),s=n(5247),l=n(81413);const c=(0,s.withNaming)({e:"__",m:"_"})("data-table");function u(e,t){let{name:n,defaultOrder:o}=e,{sortOrder:i={},sortColumns:a=[]}=t,s=arguments.length>2&&void 0!==arguments[2]&&arguments[2],{defaultOrder:c,disableSortReset:u}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const d=o||c,f={sortOrder:{},sortColumns:[]};if(!n)return s?{sortOrder:i,sortColumns:a}:f;let p=a;const h=i[n];let m=d;if(h&&(m=h===d||u?h===l.zE?l.hr:l.zE:void 0),!s)return m?{sortOrder:{[n]:m},sortColumns:[n]}:f;const g=i,v=n,y=(g[v],(0,r._T)(g,["symbol"===typeof v?v:v+""]));return m?(y[n]=m,new Set(a).has(n)||(p=[...a,n])):p=a.filter((e=>e!==n)),{sortOrder:y,sortColumns:p}}function d(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=t,{sortAscending:o}=e;return"function"===typeof o?(e,t)=>r*o(e,t):(t,o)=>{const i=e._getSortValue(t.row),a=e._getSortValue(o.row);return null==i&&null!=a?n.nullBeforeNumbers?-r:1:null==a&&null!=i?n.nullBeforeNumbers?r:-1:i<a?Number(-r):i>a?Number(r):0}}function f(e,t,n,r){let{sortOrder:o,sortColumns:i}=n;const a={};t.forEach((e=>{o[e.name]?a[e.name]=d(e,o[e.name],r):e.group&&e.autogroup&&(a[e.name]=d(e,l.zE,r))}));const s=t.filter((e=>e.group)),c=s.length>0,u=[...s.map((e=>a[e.name])).filter(Boolean),...i.map((e=>a[e])).filter(Boolean)],f=e.map(((e,t)=>c?{row:e,index:t,span:{}}:{row:e,index:t}));if(u.length&&!r.externalSort&&f.sort(((e,t)=>{let n=0;return u.some((r=>(n=r(e,t),Boolean(n)))),n||e.index-t.index})),f.length>1&&c){const e=[],t=[];f.forEach((n=>{s.every(((r,o)=>{const i=r._getValue(n.row);return e[o]&&i===t[o]?(e[o].span[r.name]+=1,n.span[r.name]=0,!0):(s.slice(o).forEach(((r,i)=>{e[o+i]=n,t[o+i]=r._getValue(n.row),n.span[r.name]=1})),!1)}))}))}return f}function p(e,t){return(Array.isArray(e)?e:[e]).reduce(((e,n)=>{let{columnId:r,order:o}=n;return u({name:r,defaultOrder:o},e,!0,t)}),{sortOrder:{},sortColumns:[]})}function h(e){let{getColumn:t,columnIndex:n,columnId:r,minWidth:i,maxWidth:a,onResize:s}=e;const l=o.useRef(null),[u,d]=o.useState(!1);return o.useEffect((()=>{const e=l.current;if(!e)return;let o,c,u;const f=function(e){let t,n=null;return function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];t=o,"number"!==typeof n&&(n=requestAnimationFrame((()=>{e(...t),n=null})))}}((e=>{if(m(e),"number"!==typeof o||"number"!==typeof c)return;const t=e.clientX-o,n=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:40,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0;return Math.max(t,Math.min(e,n))}(c+t,i,a);n!==u&&(u=n,null===s||void 0===s||s(r,u))})),p=e=>{m(e),void 0!==u&&(null===s||void 0===s||s(r,u)),d(!1),o=void 0,document.removeEventListener("mousemove",f),document.removeEventListener("mouseup",p)},h=e=>{var r;c=null===(r=t(n))||void 0===r?void 0:r.getBoundingClientRect().width,m(e),o=e.clientX,d(!0),document.addEventListener("mousemove",f),document.addEventListener("mouseup",p)};return e.addEventListener("mousedown",h),()=>{e.removeEventListener("mousedown",h),document.removeEventListener("mousemove",f),document.removeEventListener("mouseup",p)}}),[r,s,i,a,t,n]),o.createElement("span",{ref:l,className:c("resize-handler",{resizing:u}),onClick:e=>m(e)})}function m(e){e.preventDefault(),e.stopPropagation()}const g=function(){const e=document.createElement("a").style;return e.cssText="position:sticky; position:-webkit-sticky;",-1!==e.position.indexOf("sticky")}(),v={getSrcElement:()=>null,onHeightChange:()=>{}};class y{constructor(e){this.prevHeight=0,this.params=v,this.checkAndUpdateHeight=()=>{this.node?requestAnimationFrame((()=>{const e=this.node;e?this.updateHeight(e.offsetHeight):this.updateHeight(0)})):this.updateHeight(0)},this.params=Object.assign({},e)}destroy(){this.updateHeight(0),this.params=v}get node(){return this.params.getSrcElement()}updateHeight(e){this.prevHeight!==e&&(this.prevHeight=e,this.params.onHeightChange(e))}}const b=o.createElement("svg",{className:c("icon"),viewBox:"0 0 10 6",width:"10",height:"6"},o.createElement("path",{fill:"currentColor",d:"M0 5h10l-5 -5z"})),w=o.createElement("svg",{className:c("icon"),viewBox:"0 0 10 6",width:"10",height:"6"},o.createElement("path",{fill:"currentColor",d:"M0 1h10l-5 5z"})),E={ICON_ASC:b,ICON_DESC:w};const _=e=>{let{sortOrder:t,sortIndex:n,sortable:r,defaultOrder:i}=e;return r?o.createElement("span",{className:c("sort-icon",{shadow:!t}),"data-index":n},function(e){switch(e){case l.zE:return E.ICON_ASC;case l.hr:return E.ICON_DESC;default:return!1}}(t||i)):null};class x extends o.PureComponent{constructor(){super(...arguments),this.onClick=e=>{if(this.props.onClick){const{row:t,index:n}=this.props;this.props.onClick(t,n,e)}}}render(){const{className:e,columns:t,row:n,index:r,odd:i,footer:a,span:s,getColSpansOfRow:l,headerData:u}=this.props,d=l?l(this.props):void 0;let f=0;return o.createElement("tr",{className:c("row",{odd:i,footer:a,"header-data":u},e),onClick:this.onClick},t.map(((e,t)=>{if(d){if(--f>0)return null;d[e.name]>1&&(f=d[e.name])}let i;if(s){if(0===s[e.name])return null;i=s[e.name]}const l=e._getValue(n);let c=e.customStyle({row:n,index:r,name:e.name,header:!1,footer:a,headerData:u});return e.resizeable&&(c=Object.assign(Object.assign({},c),{width:e.width,maxWidth:e.width})),o.createElement("td",{key:t,className:e._className,title:e._getTitle(n),style:c,colSpan:d?d[e.name]:void 0,rowSpan:i,onClick:e._getOnClick({row:n,index:r,footer:a,headerData:u})},e._renderValue({value:l,row:n,index:r,footer:a,headerData:u}))})))}}x.defaultProps={footer:!1};class S extends o.Component{constructor(){super(...arguments),this._dataRowsRef=null,this.renderedColumns=[],this.renderHeadCell=e=>{var t;const{onResize:n}=this.props,{column:r,rowSpan:i,colSpan:a}=e,{sortable:s=!1,header:l=r.name,className:u,index:d,columnIndex:f,align:p,name:m,width:g,resizeable:v,resizeMinWidth:y,resizeMaxWidth:b}=r,{headerTitle:w="string"===typeof l&&l||void 0}=r;let E=null===(t=r.customStyle)||void 0===t?void 0:t.call(r,{header:!0,name:m});return v&&(E=Object.assign(Object.assign({},E),{width:g,maxWidth:g})),o.createElement("th",{ref:r.dataColumn?this._getColumnRef(f):null,className:c("th",{sortable:s,align:p},u),key:m,title:w,"data-index":d,colSpan:a,rowSpan:i,style:E,onClick:this._getOnSortClick(r)},o.createElement("div",{className:c("head-cell")},l,o.createElement(_,Object.assign({},r))),v&&o.createElement(h,{getColumn:this._getRenderedColumn,columnIndex:f,onResize:n,columnId:m,minWidth:y,maxWidth:b}))},this.renderHeadLevel=(e,t)=>o.createElement("tr",{key:t,className:c("head-row")},e.map(this.renderHeadCell)),this.dataRowsRef=e=>{var t;this._dataRowsRef=e,e&&(null===(t=this.dataRowsHeightObserver)||void 0===t||t.checkAndUpdateHeight())},this._getColumnRef=e=>t=>{this.renderedColumns[e]=t},this._getRenderedColumn=e=>{if(void 0!==e)return this.renderedColumns[e]}}componentDidMount(){this._calculateColumnsWidth(),"function"===typeof this.props.onDataRowsHeightChange&&(this.dataRowsHeightObserver=new y({getSrcElement:()=>this._dataRowsRef,onHeightChange:e=>{"function"===typeof this.props.onDataRowsHeightChange&&this.props.onDataRowsHeightChange(e)}}))}componentDidUpdate(){var e;this._calculateColumnsWidth(),null===(e=this.dataRowsHeightObserver)||void 0===e||e.checkAndUpdateHeight()}componentWillUnmount(){var e;null===(e=this.dataRowsHeightObserver)||void 0===e||e.destroy()}render(){const{headColumns:e,dataColumns:t,renderedDataRows:n}=this.props;return this.renderedColumns.length=t.length,o.createElement(o.Fragment,null,o.createElement("thead",{className:c("head")},e.map(this.renderHeadLevel)),void 0===n?null:o.createElement("tbody",{ref:this.dataRowsRef},n))}_calculateColumnsWidth(){const{onColumnsUpdated:e}=this.props;"function"===typeof e&&requestAnimationFrame((()=>{const t=this.renderedColumns.map((e=>e&&e.getBoundingClientRect().width));e(t)}))}onSort(e,t){const{onSort:n}=this.props;"function"===typeof n&&n(e,t)}_getOnSortClick(e){const{sortable:t=!1,name:n}=e;return n===l.oc?()=>{this.onSort()}:t?t=>{this.onSort(e,t.ctrlKey||t.metaKey)}:void 0}}class C extends o.Component{constructor(){super(...arguments),this.state={style:{top:C.defaultProps.top}},this.onDataRowsHeightChange=e=>{this.props.onDataRowsHeightChange(e+1)},this._nodeRef=e=>{this._node=e}}static getDerivedStateFromProps(e,t){var n;return e.top!==(null===(n=t.style)||void 0===n?void 0:n.top)?void 0===e.top?null:{style:{top:e.top}}:null}render(){const e=this.props,{mode:t,top:n}=e,i=(0,r._T)(e,["mode","top"]);if(t===l.qA){const{style:e}=this.state;return o.createElement("div",{className:c("sticky",{moving:!0,head:!0}),style:e},this.renderHeader(i))}{const{widths:e=[],right:t=0}=this.state,n=e.reduce(((e,t)=>e+t),0);return o.createElement("div",{ref:this._nodeRef,className:c("sticky",{fixed:!0,head:!0}),style:{right:t,display:n?void 0:"none"}},this.renderHeader(i))}}setScrollLeft(e){requestAnimationFrame((()=>{this._node&&(this._node.scrollLeft=e)}))}setRightPosition(e){this.state.right===e||this.props.top||this.props.mode===l.qA||this.setState({right:e})}renderHeader(e){const{widths:t=[]}=this.state,n=t.reduce(((e,t)=>e+t),0);return o.createElement("div",{className:c("table-wrapper",{sticky:!0})},o.createElement("table",{className:c("table",{sticky:!0}),style:{width:n||"auto"}},o.createElement("colgroup",null,t.map(((e,t)=>o.createElement("col",{key:t,style:{width:e}})))),o.createElement(S,Object.assign({},e,{onDataRowsHeightChange:this.onDataRowsHeightChange}))))}updateWidths(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];const{widths:t=[]}=this.state;e.some(((e,n)=>e!==t[n]))&&this.setState({widths:e})}}C.defaultProps={top:0};class k extends o.PureComponent{constructor(){super(...arguments),this.state={style:{bottom:0}},this._nodeFixed=null,this._nodeMoving=null,this._nodeFixedRef=e=>{this._nodeFixed=e},this._nodeMovingRef=e=>{var t;this._nodeMoving=e,e&&(null===(t=this.heightObserver)||void 0===t||t.checkAndUpdateHeight())}}static getDerivedStateFromProps(e,t){var n;return e.bottom!==(null===(n=t.style)||void 0===n?void 0:n.bottom)?void 0===e.bottom?null:{style:{bottom:e.bottom}}:null}componentDidMount(){this.heightObserver=new y({getSrcElement:()=>this._nodeMoving,onHeightChange:this.props.onMovingHeightChange})}componentDidUpdate(){var e;null===(e=this.heightObserver)||void 0===e||e.checkAndUpdateHeight()}componentWillUnmount(){var e;null===(e=this.heightObserver)||void 0===e||e.destroy()}render(){if(!this.props.renderedRows)return null;const{mode:e,renderedRows:t}=this.props;if(e===l.qA){const{style:e}=this.state;return o.createElement("div",{ref:this._nodeMovingRef,className:c("sticky",{footer:!0,moving:!0}),style:e},this.renderFooter(t))}{const{widths:e=[],right:n=0}=this.state,r=e.reduce(((e,t)=>e+t),0);return o.createElement("div",{ref:this._nodeFixedRef,className:c("sticky",{footer:!0,fixed:!0}),style:{right:n,display:r?void 0:"none"}},this.renderFooter(t))}}setScrollLeft(e){requestAnimationFrame((()=>{this._nodeFixed&&(this._nodeFixed.scrollLeft=e)}))}setRightPosition(e){this.state.right!==e&&!this.props.bottom&&this._nodeFixed&&this.setState({right:e})}renderFooter(e){const{widths:t=[]}=this.state,n=t.reduce(((e,t)=>e+t),0);return o.createElement("div",{className:c("table-wrapper",{sticky:!0})},o.createElement("table",{className:c("table",{sticky:!0}),style:{width:n||"auto"}},o.createElement("colgroup",null,t.map(((e,t)=>o.createElement("col",{key:t,style:{width:e}})))),o.createElement("tbody",null,e)))}updateWidths(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];const{widths:t=[]}=this.state;e.some(((e,n)=>e!==t[n]))&&this.setState({widths:e})}}k.defaultProps={bottom:0};class O extends o.PureComponent{constructor(){var e;super(...arguments),e=this,this.state={},this._refBody=e=>{this._body=e},this._refBox=e=>{this._box=e},this._refHead=e=>{this._head=e},this._refStickyHead=e=>{this._stickyHead=e},this._refStickyFooter=e=>{this._stickyFooter=e},this._onBoxScroll=()=>{this._updateBoxConstraints()},this._onColumnsUpdated=e=>{this._stickyHead&&this._stickyHead.updateWidths(e),this._stickyFooter&&this._stickyFooter.updateWidths(e)},this.onMovingHeaderDataRowsHeightChange=e=>{var t;-e!==(null===(t=this.state.movingHeaderStyle)||void 0===t?void 0:t.marginTop)&&this.setState({movingHeaderStyle:{marginTop:-e}})},this.onMovingFooterHeightChange=e=>{var t;-e!==(null===(t=this.state.movingFooterStyle)||void 0===t?void 0:t.marginBottom)&&this.setState({movingFooterStyle:{marginBottom:-e}})},this.renderRow=e=>{const{data:t,onRowClick:n}=this.props,{row:r,index:o,span:i}=t[e];return this.renderRowImpl(r,o,{onRowClick:n,odd:e%2===0,span:i})},this.renderFooterRow=(e,t)=>this.renderRowImpl(e,t,{footer:!0}),this.renderHeaderRow=(e,t)=>this.renderRowImpl(e,t,{headerData:!0}),this.renderRowImpl=function(t,n){let{onRowClick:r,odd:i,span:a,footer:s,headerData:l}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{columns:{dataColumns:c},rowClassName:u,rowKey:d,getColSpansOfRow:f}=e.props,p="function"===typeof u?u(t,n,s,l):"";return o.createElement(x,{getColSpansOfRow:f,key:d(t,n),className:p,columns:c,row:t,index:n,span:a,odd:i,onClick:r,footer:s,headerData:l})},this.renderTable=(e,t)=>{const{footerData:n,columns:{dataColumns:r},settings:{stickyHead:i}}=this.props,{movingHeaderStyle:a,movingFooterStyle:s}=this.state,u=this.getStickyFooterMode();return o.createElement("div",{className:c("table-wrapper"),style:u===l.qA?s:void 0},o.createElement("table",{className:c("table"),style:i===l.qA?a:void 0},o.createElement("colgroup",null,r.map(((e,t)=>{let{width:n}=e;return o.createElement("col",{key:t,width:n})}))),this.renderHead(),o.createElement("tbody",{ref:t},e.length?e:this._getEmptyRow()),n&&o.createElement("tfoot",{className:c("foot",{"has-sticky-footer":u})},n.map(this.renderFooterRow))))}}componentDidMount(){const{stickyHead:e,syncHeadOnResize:t}=this.props.settings;this._updateBoxConstraints(),e&&t&&!this._onWindowResize&&(this._onWindowResize=()=>{this.syncHeadWidths()},window.addEventListener("resize",this._onWindowResize))}componentDidUpdate(){this._updateBoxConstraints()}componentWillUnmount(){this._onWindowResize&&(window.removeEventListener("resize",this._onWindowResize),delete this._onWindowResize)}render(){const{className:e}=this.props,{stickyHead:t,dynamicRender:n}=this.props.settings,r=this.getStickyFooterMode();return o.createElement("div",{className:e,ref:this._refBody},t&&this.renderStickyHead(),o.createElement("div",{ref:this._refBox,className:c("box",{"sticky-head":t,"sticky-footer":r}),onScroll:this._onBoxScroll},n?this.renderTableDynamic():this.renderTableSimple()),r&&this.renderStickyFooter())}_updateBoxConstraints(){const e=this._stickyHead||this._stickyFooter;if(this._box&&e){const e=this._box.offsetWidth-this._box.clientWidth;this._stickyHead&&(this._stickyHead.setRightPosition(e),this._stickyHead.setScrollLeft(this._box.scrollLeft)),this._stickyFooter&&(this._stickyFooter.setRightPosition(e),this._stickyFooter.setScrollLeft(this._box.scrollLeft))}}syncHeadWidths(){this._head&&this._head._calculateColumnsWidth()}_getEmptyRow(){const{columns:{dataColumns:e},emptyDataMessage:t,renderEmptyRow:n}=this.props;return"function"===typeof n?n(e):o.createElement("tr",{className:c("row")},o.createElement("td",{className:c("td",c("no-data")),colSpan:e.length},t))}renderHead(){const{columns:e,onSort:t,onResize:n}=this.props,{displayIndices:r}=this.props.settings,i=this.renderHeaderRows();return o.createElement(S,Object.assign({ref:this._refHead},e,{displayIndices:Boolean(r),onSort:t,onResize:n,onColumnsUpdated:this._onColumnsUpdated,renderedDataRows:i}))}renderStickyHead(){const{columns:e,onSort:t,onResize:n}=this.props,{displayIndices:r,stickyTop:i,stickyHead:a}=this.props.settings,s="auto"===i&&this._body&&this._body.parentNode?this._body.parentNode.offsetTop:Number(i)||0,l=this.renderHeaderRows();return o.createElement(C,Object.assign({mode:a,top:s,ref:this._refStickyHead},e,{displayIndices:r,onSort:t,onResize:n,renderedDataRows:l,onDataRowsHeightChange:this.onMovingHeaderDataRowsHeightChange}))}renderStickyFooter(){const{columns:e}=this.props,{stickyBottom:t}=this.props.settings;let n=Number(t)||0;if("auto"===t&&this._body&&this._body.parentNode){const e=this._body.parentNode;n=e.offsetTop+e.offsetHeight}const r=this.renderFooterRows();return o.createElement(k,{ref:this._refStickyFooter,mode:this.getStickyFooterMode(),bottom:n,dataColumns:e.dataColumns,renderedRows:r,onMovingHeightChange:this.onMovingFooterHeightChange})}renderTableDynamic(){const{data:e,settings:{dynamicInnerRef:t,dynamicRenderType:n="uniform",dynamicRenderUseStaticSize:r,dynamicRenderThreshold:i,dynamicRenderMinSize:s,dynamicRenderScrollParentGetter:l,dynamicRenderScrollParentViewportSizeGetter:c,dynamicItemSizeEstimator:u,dynamicItemSizeGetter:d}={}}=this.props;return o.createElement(a(),{ref:t,type:n,useStaticSize:r,threshold:i,minSize:s,itemSizeEstimator:u,itemSizeGetter:d,length:e.length,itemRenderer:this.renderRow,itemsRenderer:this.renderTable,scrollParentGetter:l,scrollParentViewportSizeGetter:c})}renderTableSimple(){const{data:e}=this.props,t=e.map(((e,t)=>this.renderRow(t)));return this.renderTable(t,null)}renderHeaderRows(){const{headerData:e}=this.props;return e&&e.map(this.renderHeaderRow)}renderFooterRows(){const{footerData:e}=this.props;return null===e||void 0===e?void 0:e.map(this.renderFooterRow)}getStickyFooterMode(){const{footerData:e}=this.props;if(!(null===e||void 0===e?void 0:e.length))return!1;const{stickyFooter:t}=this.props.settings;return t}}const T=o.memo((function(e){const{column:t,value:n,row:r,index:i,footer:a,headerData:s}=e;return o.createElement(o.Fragment,null,t.render({value:n,row:r,index:i,footer:a,headerData:s}))}));class N extends o.Component{constructor(){super(...arguments),this.state=Object.assign({settings:{}},p(this.props.initialSortOrder,this.props.settings)),this._tableRef=e=>{this.table=e},this.renderMemoizedCell=e=>{let{column:t,value:n,row:r,index:i,footer:a,headerData:s}=e;return o.createElement(T,{column:t,value:n,row:r,index:i,footer:a,headerData:s})},this.getColumn=(e,t)=>{var n;const{onResize:r}=this.props,{settings:o}=this.state,{defaultOrder:i}=o,{sortOrder:a={},sortColumns:s,indexColumn:l}=this.state,u=Number(Boolean(l)),d=this.isSortEnabled(),{name:f,accessor:p=e.name,align:h,sortable:m=o.sortable,group:g,autogroup:v=!0}=e,{sortAccessor:y,onClick:b}=e,w=c("td",{align:h},e.className),E=(null!==(n=e.resizeable)&&void 0!==n?n:o.defaultResizeable)&&Boolean(r),_="function"===typeof p?e=>p(e):e=>Object.prototype.hasOwnProperty.call(e,p)?e[p]:void 0,x="function"===typeof e.title?t=>e.title(t):()=>"string"===typeof e.title&&e.title||void 0,S="function"===typeof y?e=>y(e):_,C="function"===typeof e.render?t=>{let{value:n,row:r,index:o,footer:i,headerData:a}=t;return this.renderMemoizedCell({column:e,value:n,row:r,index:o,footer:i,headerData:a})}:e=>{let{value:t}=e;return t},k="function"===typeof e.customStyle?e.customStyle:()=>{},O="function"===typeof b?t=>n=>b(t,e,n):()=>{};return Object.assign(Object.assign({index:t-u,columnIndex:t,dataColumn:!0,defaultOrder:i},e),{resizeable:E,sortable:m&&d,_className:w,_getValue:_,_getTitle:x,_getSortValue:S,_renderValue:C,_getOnClick:O,customStyle:k,group:g,autogroup:v,sortOrder:a[f]||void 0,sortIndex:s.length>1?s.indexOf(f)+1:void 0})},this.isSortEnabled=()=>{const{data:e}=this.props;return Array.isArray(e)&&e.length>1},this.onSort=(e,t)=>{if(e){const{sortOrder:n,sortColumns:r}=u(e,this.state,t,this.props.settings);this.setState({sortOrder:n,sortColumns:r});const{onSort:o}=this.props;if("function"===typeof o){const e=function(e){return Object.keys(e).map((t=>({columnId:t,order:e[t]})))}(n);o(e)}}else{this.setState({sortOrder:{},sortColumns:[]});const{onSort:e}=this.props;"function"===typeof e&&e([])}}}static normalizeStickyHead(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return e!==l.qA||g?e:(console.warn("Your browser does not support position: sticky, moving sticky headers will be disabled."),!1)}static calculateSettings(e){return Object.assign(Object.assign(Object.assign({},N.defaultProps.settings),e),{stickyHead:N.normalizeStickyHead(e.stickyHead),stickyFooter:N.normalizeStickyHead(e.stickyFooter)})}static getIndexColumn(e){let{startIndex:t,data:n,visibleRowIndex:r}=e;const o=t+n.length+1;return{name:l.oc,header:"#",className:c("index"),render:e=>{let{row:n,index:o,footer:i,headerData:a}=e;var s,l;return a?null!==(s=n.headerIndex)&&void 0!==s?s:t+o:i?null!==(l=n.footerIndex)&&void 0!==l?l:t+o:"function"===typeof r?r(n,o):t+o},sortable:!1,resizeable:!1,width:20+10*Math.ceil(Math.log10(o))}}static getDerivedStateFromProps(e){const t=N.calculateSettings(e.settings);return Object.assign({settings:t,indexColumn:Boolean(t.displayIndices)&&N.getIndexColumn(e)},e.sortOrder?Object.assign({},p(e.sortOrder,e.settings)):void 0)}render(){const{getColSpansOfRow:e,headerData:t,data:n,footerData:r,columns:i,startIndex:a,emptyDataMessage:s,rowClassName:l,rowKey:u,onRowClick:d,onResize:p,theme:h,renderEmptyRow:m,nullBeforeNumbers:g}=this.props,{settings:v,sortOrder:y,sortColumns:b}=this.state,{highlightRows:w=!1,stripedRows:E=!1,headerMod:_=!1}=v,x=c({"highlight-rows":w,"striped-rows":E,header:_,theme:h}),S=this.getComplexColumns(i);return v.dynamicRender&&S.dataColumns.some((e=>e.group))&&console.warn("Simultaneously used grouping cells and dynamic render. The table will render unpredictable."),o.createElement(O,{ref:this._tableRef,getColSpansOfRow:e,className:x,settings:v,startIndex:a,columns:S,emptyDataMessage:s,renderEmptyRow:m,rowClassName:l,rowKey:u||N.defaultProps.rowKey,onRowClick:d,headerData:t,data:f(n,S.dataColumns,{sortOrder:y,sortColumns:b},{nullBeforeNumbers:g,externalSort:null===v||void 0===v?void 0:v.externalSort}),footerData:r,onSort:this.onSort,onResize:p})}getComplexColumns(e){const t=[],n=[],r=[],{indexColumn:o}=this.state,i=o?[o,...e]:e,a=(e,o)=>{t[o]||(t[o]=[]);const i=t[o];return e.reduce(((e,t)=>{let s=1,l=-1,c=t;if(Array.isArray(t.sub))s=a(t.sub,o+1);else{const e=this.getColumn(t,n.length);n.push(e),l=o,c=e}const u={column:c,itemLevel:l,colSpan:s,rowSpan:0};return r.push(u),i.push(u),s+e}),0)};return a(i,0),r.forEach((e=>{e.rowSpan=e.itemLevel<0?1:t.length-e.itemLevel})),{headColumns:t,dataColumns:n}}resize(){this.table&&this.table.syncHeadWidths()}}function I(e){return new Set(e.map((e=>e.name))).size!==e.length}N.defaultProps={startIndex:0,emptyDataMessage:"No data",settings:{displayIndices:!0,dynamicRenderMinSize:1,stickyHead:!1,stickyFooter:!1,sortable:!0,externalSort:!1,defaultOrder:l.zE,defaultResizeable:!1},rowKey:(e,t)=>Object.prototype.hasOwnProperty.call(e,"id")?e.id:t,initialSortOrder:{},initialSortColumns:[],theme:"yandex-cloud"},N.getSortedData=f;const P="It is strongly recommended against using duplicate column names. They act as default accessors and titles, so doing so may lead to confusing titles and the wrong data being extracted.";class R extends o.PureComponent{constructor(){super(...arguments),this.state={},this._tableRef=e=>{this.table=e}}static setCustomIcons(e){E.ICON_ASC=e.ICON_ASC||b,E.ICON_DESC=e.ICON_DESC||w}componentDidMount(){I(this.props.columns)&&console.warn(P)}componentDidUpdate(e){const{columns:t}=this.props;t!==e.columns&&I(t)&&console.warn(P)}componentDidCatch(e){console.error(e),this.setState({error:e});const{onError:t}=this.props;"function"===typeof t&&t(e)}render(){const{error:e}=this.state;return e?o.createElement("pre",{className:c("error")},"DataTable got stuck in invalid state. Please tell developers about it.","\n\n",e.stack&&String(e.stack)||String(e)):o.createElement(N,Object.assign({ref:this._tableRef},this.props))}resize(){this.table&&this.table.resize()}}R.FIXED=l.hA,R.MOVING=l.qA,R.ASCENDING=l.zE,R.DESCENDING=l.hr,R.LEFT=l.RL,R.CENTER=l.dv,R.RIGHT=l.pX;const D=R},2266:(e,t,n)=>{"use strict";n.d(t,{M:()=>C});var r=n(95097),o=n(68963),i=n(48027),a=n(79004),s=n(36951);const l={pc:{NormalizeMap:{arrowup:"up",arrowdown:"down",arrowleft:"left",arrowright:"right",esc:"escape",return:"enter",mod:"ctrl",control:"ctrl",opt:"alt",option:"alt",cmd:"ctrl",command:"ctrl"},Priority:{shift:200,alt:300,ctrl:400},DisplayName:{up:"\u2191",down:"\u2193",left:"\u2190",right:"\u2192",escape:"Esc",plus:"\uff0b",enter:"Enter",ctrl:"Ctrl",alt:"Alt",shift:"Shift",tab:"Tab",backspace:"Backspace"}},mac:{NormalizeMap:{arrowup:"up",arrowdown:"down",arrowleft:"left",arrowright:"right",esc:"escape",enter:"return",mod:"command",ctrl:"control",alt:"option",opt:"option",cmd:"command"},Priority:{command:100,shift:200,option:300,control:400},DisplayName:{up:"\u25b2",down:"\u25bc",left:"\u25c0",right:"\u25b6",escape:"\u238b",plus:"\uff0b",return:"\u23ce",command:"\u2318",option:"\u2325",control:"\u2303",shift:"\u21e7",backspace:"\u232b",tab:"\u21e5"}}};var c=n(6381),u=n.n(c),d=n(60619),f=n.n(d);const p=()=>"undefined"!==typeof navigator&&/Mac|iP(hone|[oa]d)/.test(navigator.platform);function h(e,t){return e.trim().split(t).filter(Boolean)}const m=/\s/,g="+";function v(e,t){return h(t,m).map((t=>f()(h(t,g).map(function(e){return function(t){var n;const r=function(e,t){var n;return t=t.toLowerCase(),null!==(n=e.NormalizeMap[t])&&void 0!==n?n:t}(e,t);return{raw:t,id:r,priority:null!==(n=e.Priority[r])&&void 0!==n?n:0,displayName:e.DisplayName[r]}}}(e)).sort(((e,t)=>t.priority-e.priority)),(e=>e.id)).map(y)))}function y(e){var t;return null!==(t=e.displayName)&&void 0!==t?t:u()(e.id)}const b=(0,s.Ge)("hotkey"),w={BetweenGroups:String.fromCharCode(160),BetweenKeys:String.fromCharCode(8239)},E=o.forwardRef((function(e,t){const{value:n,platform:r,view:i="light",qa:a,style:s,className:c}=e,u=function(e,t){var n;const r=null!==(n=t.platform)&&void 0!==n?n:p()?"mac":"pc",o=l[r];return v(o,e)}(n,{platform:r}),d=[];let f=!1;return u.forEach(((e,t)=>{0!==e.length&&(f?d.push(w.BetweenGroups):f=!0,e.forEach(((e,n)=>{0===n||d.push(w.BetweenKeys,o.createElement("span",{key:`${e}_${t}_${n}_plus`,className:b("plus")},"+"),w.BetweenKeys),d.push(o.createElement("kbd",{key:`${e}_${t}_${n}`},e))})))})),0===d.length?null:o.createElement("kbd",{ref:t,style:s,"data-qa":a,className:b({view:i},c)},d)}));var _=n(44920);const x=["bottom","top"],S=(0,s.Ge)("action-tooltip");function C(e){const{placement:t=x,title:n,hotkey:s,children:l,className:c,contentClassName:u,description:d,disabled:f=!1,style:p,qa:h,id:m,disablePortal:g}=e,v=(0,r._T)(e,["placement","title","hotkey","children","className","contentClassName","description","disabled","style","qa","id","disablePortal"]),[y,b]=o.useState(null),w=(0,a.p)(y,v),C=o.Children.only(l),k=C.ref,O=(0,i.c)(b,k);return o.createElement(o.Fragment,null,o.cloneElement(C,{ref:O}),y?o.createElement(_.G,{id:m,disablePortal:g,role:"tooltip",className:S(null,c),style:p,open:w&&!f,placement:t,anchorRef:{current:y},disableEscapeKeyDown:!0,disableOutsideClick:!0,disableLayer:!0,qa:h},o.createElement("div",{className:S("content",u)},o.createElement("div",{className:S("heading")},o.createElement("div",{className:S("title")},n),s&&o.createElement(E,{view:"dark",value:s,className:S("hotkey")})),d&&o.createElement("div",{className:S("description")},d))):null)}},33569:(e,t,n)=>{"use strict";n.d(t,{F:()=>s});var r=n(68963),o=n(57542),i=n(88776);const a=(0,n(36951).Ge)("arrow-toggle");function s(e){let{size:t=16,direction:n="bottom",className:s,qa:l}=e;return r.createElement("span",{style:{width:t,height:t},className:a({direction:n},s),"data-qa":l},r.createElement(i.J,{data:o.Z,size:t}))}},17176:(e,t,n)=>{"use strict";n.d(t,{z:()=>m});var r=n(68963),o=n(36951),i=n(99742),a=n(93404),s=n(70292),l=n(12913);const c=(0,o.Ge)("button");function u(){(0,l.O)('[Button.Icon] Physical values (left, right) of "side" property are deprecated. Use logical values (start, end) instead.')}const d=e=>{let{side:t,className:n,children:o}=e;return r.createElement("span",{className:c("icon",{side:f(t)},n)},r.createElement("span",{className:c("icon-inner")},o))};function f(e){let t=e;return"left"===t&&(u(),t="start"),"right"===t&&(u(),t="end"),t}d.displayName="Button.Icon";const p=(0,o.Ge)("button"),h=r.forwardRef((function(e,t){let{view:n="normal",size:o="m",pin:i="round-round",selected:s,disabled:l=!1,loading:c=!1,width:u,title:d,tabIndex:f,type:h="button",component:m,href:g,target:v,rel:y,extraProps:w,onClick:E,onMouseEnter:_,onMouseLeave:x,onFocus:S,onBlur:C,children:k,id:O,style:T,className:N,qa:I}=e;const P={title:d,tabIndex:f,onClick:E,onClickCapture:r.useCallback((e=>{a.P.publish({componentId:"Button",eventId:"click",domEvent:e,meta:{content:e.currentTarget.textContent,view:n}})}),[n]),onMouseEnter:_,onMouseLeave:x,onFocus:S,onBlur:C,id:O,style:T,className:p({view:n,size:o,pin:i,selected:s,disabled:l||c,loading:c,width:u},N),"data-qa":I};if("string"===typeof g||m){const e={href:g,target:v,rel:"_blank"!==v||y?y:"noopener noreferrer"};return r.createElement(m||"a",Object.assign(Object.assign(Object.assign(Object.assign({},w),P),m?{}:e),{ref:t,"aria-disabled":l||c}),b(k))}return r.createElement("button",Object.assign({},w,P,{ref:t,type:h,disabled:l||c,"aria-pressed":s}),b(k))}));h.displayName="Button";const m=Object.assign(h,{Icon:d}),g=(0,s.s)(d),v=(0,s.s)("span"),y=RegExp(`^${p("icon")}($|\\s+\\w)`);function b(e){const t=r.Children.toArray(e);if(1===t.length){const e=t[0];return g(e)||v(e)&&y.test(e.props.className||"")?e:(0,i.yb)(e)||(0,i.Dc)(e)?r.createElement(m.Icon,{key:"icon"},e):r.createElement("span",{key:"text",className:p("text")},e)}{let e,n,o;const a=[];for(const s of t){const t=(0,i.yb)(s)||(0,i.Dc)(s),o=g(s),l=v(s)&&y.test(s.props.className||"");if(t||o||l)if(e||0!==a.length){if(!n&&0!==a.length){const e="icon-end",i="end";n=t?r.createElement(m.Icon,{key:e,side:i},s):o?r.cloneElement(s,{side:i}):r.cloneElement(s,{className:p("icon",{side:f(i)},s.props.className)})}}else{const n="icon-start",i="start";e=t?r.createElement(m.Icon,{key:n,side:i},s):o?r.cloneElement(s,{side:i}):r.cloneElement(s,{className:p("icon",{side:f(i)},s.props.className)})}else a.push(s)}return a.length>0&&(o=r.createElement("span",{key:"text",className:p("text")},a)),[e,n,o]}}},19797:(e,t,n)=>{"use strict";n.d(t,{m:()=>g});var r=n(95097),o=n(68963),i=n(2266),a=n(17176),s=n(11050),l=n(81434),c=n(54973);const u=JSON.parse('{"startCopy":"Copy","endCopy":"Copied!"}'),d=JSON.parse('{"startCopy":"\u041a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c","endCopy":"\u0421\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u043e!"}'),f=(0,c.e)({en:u,ru:d},"ClipboardButton"),p=1e3,h={xs:12,s:16,m:16,l:16,xl:20},m=e=>{const{size:t="m",hasTooltip:n=!0,tooltipInitialText:l=f("startCopy"),tooltipSuccessText:c=f("endCopy"),status:u,view:d="flat",extraProps:p={}}=e,m=(0,r._T)(e,["size","hasTooltip","tooltipInitialText","tooltipSuccessText","status","view","extraProps"]);return o.createElement(i.M,{disabled:!n,title:"success"===u?c:l},o.createElement(a.z,Object.assign({view:d,size:t,extraProps:Object.assign({"aria-label":l},p)},m),o.createElement(a.z.Icon,null,o.createElement(s.K,{size:h[t],status:u}))))};function g(e){const{text:t,timeout:n=p,onCopy:i,options:a}=e,s=(0,r._T)(e,["text","timeout","onCopy","options"]);return o.createElement(l.h,{text:t,timeout:n,onCopy:i,options:a},(e=>o.createElement(m,Object.assign({},s,{status:e}))))}},11050:(e,t,n)=>{"use strict";n.d(t,{K:()=>c});var r=n(95097),o=n(68963);const i=e=>o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),o.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M9.5 12c0 .414-.168.79-.44 1.06A1.49 1.49 0 0 1 8 13.5H4a1.49 1.49 0 0 1-1.06-.44A1.496 1.496 0 0 1 2.5 12V8c0-.414.168-.79.44-1.06A1.49 1.49 0 0 1 4 6.5h4c.414 0 .79.168 1.06.44.272.27.44.646.44 1.06v4Zm-1.47-1.03s.001 0 0 0L7.06 10l.97-.97a.75.75 0 0 0-1.06-1.06L6 8.94l-.97-.97a.75.75 0 0 0-1.06 1.06l.97.97-.97.97a.75.75 0 0 0 1.06 1.06c0 .001 0 0 0 0l.97-.97.97.97a.75.75 0 0 0 1.06-1.06ZM6.5 5H8a3 3 0 0 1 3 3v1.5h1A1.498 1.498 0 0 0 13.5 8V4A1.5 1.5 0 0 0 12 2.5H8A1.5 1.5 0 0 0 6.5 4v1ZM5 4a3 3 0 0 1 3-3h4a3 3 0 0 1 3 3v4a3 3 0 0 1-3 3h-1v1a3 3 0 0 1-3 3H4a3 3 0 0 1-3-3V8a3 3 0 0 1 3-3h1V4Z",clipRule:"evenodd"})),a=e=>o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),o.createElement("g",{fill:"currentColor"},o.createElement("path",{d:"m8 9.076.085-.107a.751.751 0 1 0-1.171-.937L5.438 9.877 5.03 9.47a.747.747 0 0 0-1.06 0 .75.75 0 0 0 0 1.06l.407.408.593.592a.75.75 0 0 0 1.116-.061l.522-.654h.001L8 9.074Z"}),o.createElement("path",{fillRule:"evenodd",d:"M12 11a3 3 0 0 0 3-3V4a3 3 0 0 0-3-3H8a3 3 0 0 0-3 3v1H4a3 3 0 0 0-3 3v4a3 3 0 0 0 3 3h4a3 3 0 0 0 3-3v-1h1ZM4 6.5A1.5 1.5 0 0 0 2.5 8v4A1.5 1.5 0 0 0 4 13.5h4A1.5 1.5 0 0 0 9.5 12V8A1.498 1.498 0 0 0 8 6.5H4ZM13.5 4A1.5 1.5 0 0 0 12 2.5H8A1.5 1.5 0 0 0 6.5 4v1H8a3 3 0 0 1 3 3v1.5h1A1.498 1.498 0 0 0 13.5 8V4Z",clipRule:"evenodd"}))),s=e=>o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),o.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 2.5H8A1.5 1.5 0 0 0 6.5 4v1H8a3 3 0 0 1 3 3v1.5h1A1.5 1.5 0 0 0 13.5 8V4A1.5 1.5 0 0 0 12 2.5ZM11 11h1a3 3 0 0 0 3-3V4a3 3 0 0 0-3-3H8a3 3 0 0 0-3 3v1H4a3 3 0 0 0-3 3v4a3 3 0 0 0 3 3h4a3 3 0 0 0 3-3v-1ZM4 6.5h4A1.5 1.5 0 0 1 9.5 8v4A1.5 1.5 0 0 1 8 13.5H4A1.5 1.5 0 0 1 2.5 12V8A1.5 1.5 0 0 1 4 6.5Z",clipRule:"evenodd"}));var l=n(88776);function c(e){var{status:t}=e,n=(0,r._T)(e,["status"]);return"error"===t?o.createElement(l.J,Object.assign({data:i},n)):"success"===t?o.createElement(l.J,Object.assign({data:a},n)):o.createElement(l.J,Object.assign({data:s},n))}},24288:(e,t,n)=>{"use strict";n.d(t,{J:()=>i});var r=n(68963);const o=(0,n(36951).Ge)("control-label"),i=r.forwardRef(((e,t)=>{let{children:n,className:i,labelClassName:a,title:s,style:l,disabled:c=!1,control:u,size:d="m",qa:f}=e;const p=r.cloneElement(u,{className:o("indicator",u.props.className)});return r.createElement("label",{ref:t,title:s,style:l,className:o({size:d,disabled:c},i),"data-qa":f},p,n?r.createElement("span",{className:o("text",a)},n):null)}));i.displayName="ControlLabel"},81434:(e,t,n)=>{"use strict";n.d(t,{h:()=>s});var r=n(68963),o=n(15942),i=n.n(o);const a="pending";function s(e){const{children:t,text:n,options:o,timeout:s,onCopy:l}=e,[c,u]=r.useState(a),d=r.useRef(),f=r.useMemo((()=>t(c)),[t,c]),p=r.useCallback(((e,t)=>{u(t?"success":"error"),window.clearTimeout(d.current),d.current=window.setTimeout((()=>u(a)),s),null===l||void 0===l||l(e,t)}),[l,s]);if(r.useEffect((()=>()=>window.clearTimeout(d.current)),[]),!r.isValidElement(f))throw new Error("Content must be a valid react element");return r.createElement(i(),{text:n,onCopy:p,options:o},f)}},30831:(e,t,n)=>{"use strict";n.d(t,{h:()=>B});var r=n(68963),o=n(98409),i=n(68512),a=n(17176),s=n(88776),l=n(36951);const c=(0,l.Ge)("dropdown-menu"),u=r.createContext({toggle(){},data:void 0});u.displayName="DropdownMenu.Context";var d=n(95097),f=n(30755),p=n(44821),h=n(89646);const m=(0,l.Ge)("menu"),g=r.forwardRef((function(e,t){let{label:n,children:o,style:i,className:a,qa:s}=e;const l=(0,h.u)();return r.createElement("li",{ref:t,className:m("list-group-item")},r.createElement("div",{style:i,className:m("group",a),"data-qa":s},n&&r.createElement("div",{id:l,className:m("group-label")},n),r.createElement("ul",{role:"group","aria-labelledby":l,className:m("group-list")},o)))}));var v=n(93404);const y=(0,l.Ge)("menu"),b=r.forwardRef((function(e,t){let{icon:n,iconStart:o=n,iconEnd:a,title:s,disabled:l,active:c,selected:u,href:d,target:f,rel:p,onClick:h,style:m,className:g,theme:b,extraProps:w,children:E,qa:_}=e;const{onKeyDown:x}=(0,i.b)(h),S=r.useCallback((e=>{v.P.publish({componentId:"MenuItem",eventId:"click",domEvent:e})}),[]),C={role:"menuitem",onKeyDown:h&&!l?x:void 0},k={title:s,onClick:l?void 0:h,onClickCapture:l?void 0:S,style:m,tabIndex:l?-1:0,className:y("item",{disabled:l,active:c,selected:u,theme:b,interactive:Boolean(h)||Boolean(d)},g),"data-qa":_},O=[o&&r.createElement("div",{key:"icon-start",className:y("item-icon")},o),r.createElement("div",{key:"content",className:y("item-content")},E),a&&r.createElement("div",{key:"icon-end",className:y("item-icon-end")},a)];let T;return T=d?r.createElement("a",Object.assign({},C,w,k,{href:d,target:f,rel:p}),O):r.createElement("div",Object.assign({},C,w,k),O),r.createElement("li",{ref:t,className:y("list-item")},T)})),w=(0,l.Ge)("menu"),E=r.forwardRef((function(e,t){let{size:n="m",children:o,style:i,className:a,qa:s}=e;return r.createElement("ul",{ref:t,role:"menu",style:i,className:w({size:n},a),"data-qa":s},o)}));E.Item=b,E.Group=g;var _=n(72644);function x(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3?arguments[3]:void 0;const o=(e.length+t-n%e.length)%e.length;return r&&r(e[o])?x(e,o,1,r):o}function S(e,t){let n=arguments.length>3?arguments[3]:void 0;const r=(t+(arguments.length>2&&void 0!==arguments[2]?arguments[2]:1))%e.length;return n&&n(e[r])?S(e,r,1,n):r}var C=n(44920);const k=[],O=r.createContext({activeMenuPath:k,setActiveMenuPath:()=>{},anchorRef:{current:null}}),T=e=>{let{anchorRef:t,children:n,disabled:o}=e;const[i,a]=r.useState(k);r.useEffect((()=>{o&&a(k)}),[o]);const s=r.useMemo((()=>({activeMenuPath:i,setActiveMenuPath:a,anchorRef:t})),[i,t]);return r.createElement(O.Provider,{value:s},n)},N={text:"",action:()=>{},path:[]};function I(e){return e===N}function P(e){return e.disabled||I(e)}function R(e){var t;return null!==(t=null===e||void 0===e?void 0:e.join(" "))&&void 0!==t?t:""}const D=e=>{let{items:t,open:n,anchorRef:o,onClose:i,size:a,menuProps:s,children:l,popupProps:d,path:f=[]}=e;const{toggle:p,data:h}=r.useContext(u),{activeMenuPath:m,setActiveMenuPath:g,anchorRef:v}=r.useContext(O),y=f.length>0,b=r.useCallback((()=>{g(f.slice(0,f.length-1))}),[g,f]),w=r.useCallback((e=>{var t;g(f),null===(t=null===d||void 0===d?void 0:d.onMouseEnter)||void 0===t||t.call(d,e)}),[f,d,g]),_=r.useCallback((e=>{var t;b(),null===(t=null===d||void 0===d?void 0:d.onMouseLeave)||void 0===t||t.call(d,e)}),[b,d]),k=r.useCallback(((e,t)=>{var n;e.items&&e.path?g(e.path):(null===(n=e.action)||void 0===n||n.call(e,t,h),p(!1))}),[h,g,p]),T=r.useCallback(((e,n)=>{switch(n.key){case"Escape":return y&&(n.stopPropagation(),null===b||void 0===b||b()),!1;case"Enter":case" ":{const r=t[e],o=null===r||void 0===r?void 0:r.items;return(y||o)&&(n.stopPropagation(),n.preventDefault()),r&&k(r,n),!1}}return!0}),[b,k,y,t]),N=n&&R(f)===R(m),{activeItemIndex:D,setActiveItemIndex:A,reset:j}=function(e){let{items:t,skip:n,pageSize:o,processHomeKey:i=!0,processEndKey:a=!0,anchorRef:s,disabled:l=!1,initialValue:c=-1,onAnchorKeyDown:u}=e;const[d,f]=r.useState(c),p=r.useCallback((()=>{f(c)}),[c]);return r.useEffect((()=>{t&&p()}),[t,p]),r.useLayoutEffect((()=>{if(l)return;if(!t.some((e=>!(null===n||void 0===n?void 0:n(e)))))return;const e=null===s||void 0===s?void 0:s.current;if(!e)return;const r=e=>{if(!1!==(null===u||void 0===u?void 0:u(d,e)))switch(e.key){case"ArrowDown":e.preventDefault(),f((e=>S(t,e,1,n)));break;case"ArrowUp":e.preventDefault(),f((e=>x(t,e,1,n)));break;case"PageDown":if(!o)return;e.preventDefault(),f((e=>S(t,e,o,n)));break;case"PageUp":if(!o)return;e.preventDefault(),f((e=>x(t,e,o,n)));break;case"Home":if(!i)return;e.preventDefault(),f((e=>x(t,e,e,n)));break;case"End":if(!a)return;e.preventDefault(),f((e=>x(t,e,e+1,n)))}};return e.addEventListener("keydown",r),()=>{e.removeEventListener("keydown",r)}}),[d,s,l,t,u,o,a,i,n]),{activeItemIndex:d,setActiveItemIndex:f,reset:p}}({items:t,skip:P,anchorRef:v,onAnchorKeyDown:T,disabled:!N,initialValue:y?0:-1});return r.useEffect((()=>{n||j()}),[n,j]),r.createElement(C.G,Object.assign({open:n,anchorRef:o,onClose:i},d,{onMouseEnter:w,onMouseLeave:_}),l||r.createElement(E,Object.assign({className:c("menu"),size:a},s),t.map(((e,t)=>{var o;const a=N&&D===t,s=n&&!a&&0!==m.length&&R(e.path)===R(m.slice(0,e.path.length)),l=Object.assign(Object.assign({},e.extraProps),{onMouseEnter:()=>A(t)});return r.createElement(M,Object.assign({key:t,className:c("menu-item",{separator:I(e),"active-parent":s,"with-submenu":Boolean(null===(o=e.items)||void 0===o?void 0:o.length)},e.className),selected:a,popupProps:d,closeMenu:i},e,{extraProps:l}))}))))};function A(e,t){var n;return null!==(n=null===e||void 0===e?void 0:e.every(((e,n)=>e===(null===t||void 0===t?void 0:t[n]))))&&void 0!==n&&n}function j(e){let{items:t,path:n}=e;const{activeMenuPath:o,setActiveMenuPath:i}=r.useContext(O),a=Boolean(n)&&Boolean(null===t||void 0===t?void 0:t.length),s=r.useCallback((()=>{n&&i(n.slice(0,n.length-1))}),[n,i]),l=r.useCallback((()=>{n&&i(n)}),[n,i]);return{hasSubmenu:a,isSubmenuOpen:A(n,o),openSubmenu:l,closeSubmenu:s}}const M=e=>{var{text:t,action:n,items:o,popupProps:i,closeMenu:a,children:l,path:h}=e,m=(0,d._T)(e,["text","action","items","popupProps","closeMenu","children","path"]);const{toggle:g,data:v}=r.useContext(u),y=r.useRef(null),b=(0,_.g)(),{hasSubmenu:w,isSubmenuOpen:x,closeSubmenu:S,openSubmenu:C}=j({items:o,path:h}),k=r.useCallback((()=>{const e=()=>{a?a():g(!1)};w?(S(),requestAnimationFrame(e)):e()}),[a,S,w,g]),O=r.useCallback((e=>{w||(null===n||void 0===n||n(e,v),k())}),[n,v,k,w]),T=r.useMemo((()=>Object.assign(Object.assign({},m.extraProps),{onMouseEnter:e=>{var t,n;null===(n=null===(t=m.extraProps)||void 0===t?void 0:t.onMouseEnter)||void 0===n||n.call(t,e),w&&C()},onMouseLeave:e=>{var t,n;null===(n=null===(t=m.extraProps)||void 0===t?void 0:t.onMouseLeave)||void 0===n||n.call(t,e),w&&S()}})),[m.extraProps,S,w,C]),N=r.useMemo((()=>"rtl"===b?["left-start","right-start"]:["right-start","left-start"]),[b]),I=r.useMemo((()=>w?r.createElement(s.J,{data:"rtl"===b?f.Z:p.Z,size:10,className:c("sub-menu-arrow")}):m.iconEnd),[w,b,m.iconEnd]);return r.createElement(r.Fragment,null,r.createElement(E.Item,Object.assign({ref:y},m,{extraProps:T,onClick:O,iconEnd:I}),t||l),w&&o&&r.createElement(D,{popupProps:Object.assign(Object.assign({},i),{className:c("sub-menu",null===i||void 0===i?void 0:i.className),placement:N}),items:o,path:h,open:x,anchorRef:y,onClose:k}))},L=e=>"function"===typeof e;function z(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0!==e&&void 0!==t;const i=function(e,t){const[n,o]=r.useState(e);return[n,r.useCallback((e=>{L(e)?o((n=>{const r=e(n);return null===t||void 0===t||t(r),r})):(null===t||void 0===t||t(e),o(e))}),[t])]}(e||n,t);return o?[e,t]:i}function F(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];const r=[];let o=!1,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;for(const a of e)if(Array.isArray(a)){const e=F(a,t,n,i);0!==r.length&&r.push(t),r.push(...e),i+=e.length,o=!0}else{if(a.hidden)continue;o&&r.push(t);const e=Object.assign(Object.assign({},a),{path:[...n,i++]});a.items&&(e.items=F(a.items,t,e.path)),r.push(e),o=!1}return r}const B=Object.assign((e=>{let{items:t=[],size:n="m",icon:l=r.createElement(s.J,{data:o.Z}),open:d,onOpenToggle:f,hideOnScroll:p=!0,data:h,disabled:m,switcher:g,renderSwitcher:v,switcherWrapperClassName:y,defaultSwitcherProps:b,defaultSwitcherClassName:w,onSwitcherClick:E,menuProps:_,popupProps:x,children:S}=e;const C=r.useRef(null),{isPopupShown:k,togglePopup:O,closePopup:I}=function(e,t,n){const[o,i]=z(e,t,!1),a=r.useCallback((e=>{i((t=>"boolean"===typeof e?e:!t))}),[i]),s=r.useCallback((()=>{i(!1)}),[i]);return r.useEffect((()=>{n&&o&&s()}),[s,n,o]),{isPopupShown:o,togglePopup:a,closePopup:s}}(d,f,m);!function(e,t,n){r.useEffect((()=>{if(n)return;const r=n=>{n.target.contains(t.current)&&e(n)};return document.addEventListener("scroll",r,!0),()=>{document.removeEventListener("scroll",r,!0)}}),[t,e,n])}(I,C,!k||!p);const P=r.useMemo((()=>({toggle:O,data:h})),[h,O]),R=r.useMemo((()=>F(t,N)),[t]),A=r.useCallback((e=>{m||(null===E||void 0===E||E(e),O())}),[m,E,O]),{onKeyDown:j}=(0,i.b)(A),M=r.useMemo((()=>({onClick:A,onKeyDown:j})),[A,j]);return r.createElement(u.Provider,{value:P},r.createElement("div",Object.assign({ref:C,className:c("switcher-wrapper",y)},v?{}:M),(null===v||void 0===v?void 0:v(M))||g||r.createElement(a.z,Object.assign({view:"flat",size:n},b,{className:c("switcher-button",w),disabled:m}),l)),r.createElement(T,{anchorRef:C,disabled:!k},r.createElement(D,{items:R,open:k,size:n,menuProps:_,anchorRef:C,onClose:I,popupProps:x},S)))}),{Item:M})},88776:(e,t,n)=>{"use strict";n.d(t,{J:()=>c});var r=n(68963),o=n(36951);const i={"aria-hidden":!0};function a(e){return"object"===typeof e}function s(e){return"string"===typeof e}const l=(0,o.Ge)("icon"),c=r.forwardRef(((e,t)=>{let n,o,u,{data:d,width:f,height:p,size:h,className:m,fill:g="currentColor",stroke:v="none",qa:y}=e;if(h&&(n=h,o=h),f&&(n=f),p&&(o=p),a(d))({viewBox:u}=d);else if(s(d))u=function(e){const t=e.match(/viewBox=(["']?)([\d\s,-]+)\1/);return t?t[2]:void 0}(d);else if(function(e){return"object"===typeof e&&"defaultProps"in e}(d))({viewBox:u}=d.defaultProps);else if(function(e){return"function"===typeof e&&(!e.prototype||!e.prototype.render)}(d)){const e=d({});e&&({viewBox:u}=e.props)}if(u&&(!n||!o)){const e=u.split(/\s+|\s*,\s*/);n||(n=e[2]),o||(o=e[3])}const b=Object.assign({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:n,height:o,className:l(null,m),fill:g,stroke:v,"data-qa":y},i);if(s(d)){const e=function(e){return e.replace(/<svg[^>]*>/,(e=>e.replace(/(width|height)=(["']?)\d+\2/g,"").replace(/(\s){2,}\b/g,"$1").replace(/(\s)+>/g,">")))}(d);return r.createElement("svg",Object.assign({},b,{ref:t,dangerouslySetInnerHTML:{__html:e}}))}if(a(d)){const e=c.prefix+(d.url||`#${d.id}`);return r.createElement("svg",Object.assign({},b,{viewBox:u,ref:t}),r.createElement("use",{href:e,xlinkHref:e}))}const w=d;return w.defaultProps&&(w.defaultProps.width=w.defaultProps.height=void 0),r.createElement("svg",Object.assign({},b,{ref:t}),r.createElement(w,{width:void 0,height:void 0}))}));c.displayName="Icon",c.prefix=""},14979:(e,t,n)=>{"use strict";n.d(t,{_:()=>u});var r=n(68963),o=n(77280),i=n(11050),a=n(81434),s=n(88776);const l=(0,n(36951).Ge)("label"),c={xs:{copyIconSize:12,closeIconSize:12},s:{copyIconSize:14,closeIconSize:14},m:{copyIconSize:16,closeIconSize:16}},u=r.forwardRef((function(e,t){const{type:n="default",theme:u="normal",size:d="xs",icon:f,children:p,onCloseClick:h,className:m,disabled:g,copyText:v,closeButtonLabel:y,copyButtonLabel:b,interactive:w=!1,value:E,onCopy:_,onClick:x,qa:S}=e,C=Boolean(""!==p&&r.Children.count(p)>0),k="close"===n&&C,O="copy"===n&&C,T="function"===typeof x,N=Boolean(O&&v),I=(T||N||w)&&!g,{copyIconSize:P,closeIconSize:R}=c[d],D=f&&r.createElement("div",{className:l("addon",{side:C?"start":void 0,type:"icon"})},f),A=C&&r.createElement("div",{className:l("text")},r.createElement("div",{className:l("content")},p),Boolean(E)&&r.createElement("div",{className:l("value")},r.createElement("div",{className:l("separator")},":"),r.createElement("div",{className:l("key")},E))),j=e=>{let n;return O?n=r.createElement("button",{type:"button","aria-label":b||void 0,onClick:T?x:void 0,disabled:g,className:l("addon",{side:"end",type:"button"})},r.createElement(i.K,{status:e||"pending",size:P})):k&&(n=r.createElement("button",{type:"button",onClick:h,"aria-label":y||void 0,disabled:g,className:l("addon",{side:"end",type:"button"})},r.createElement(s.J,{size:R,data:o.Z}))),r.createElement("div",{ref:t,className:l({theme:u,size:d,interactive:I,disabled:g},m),"data-qa":S},D,T?r.createElement("button",{disabled:g,type:"button",onClick:x,className:l("main-button")},A):A,n)};return N&&v&&!T?r.createElement(a.h,{text:v,onCopy:_,timeout:1e3},(e=>j(e))):j()}))},86017:(e,t,n)=>{"use strict";n.d(t,{r:()=>s});var r=n(68963),o=n(36951),i=n(93404);const a=(0,o.Ge)("link"),s=r.forwardRef((function(e,t){let{view:n="normal",visitable:o,underline:s,href:l,target:c,rel:u,title:d,children:f,extraProps:p,onClick:h,onFocus:m,onBlur:g,id:v,style:y,className:b,qa:w}=e;const E={title:d,onClick:h,onClickCapture:r.useCallback((e=>{i.P.publish({componentId:"Link",eventId:"click",domEvent:e})}),[]),onFocus:m,onBlur:g,id:v,style:y,className:a({view:n,visitable:o,underline:s},b),"data-qa":w},_="_blank"!==c||u?u:"noopener noreferrer";return r.createElement("a",Object.assign({},p,E,{ref:t,href:l,target:c,rel:_}),f)}))},24917:(e,t,n)=>{"use strict";n.d(t,{a:()=>ce});var r=n(68963),o=n(85690),i=n.n(o),a=n(95188),s=n.n(a),l=n(90966);let c;c="undefined"!==typeof window?window:"undefined"!==typeof self?self:n.g;let u=null,d=null;const f=c.clearTimeout,p=c.setTimeout,h=c.cancelAnimationFrame||c.mozCancelAnimationFrame||c.webkitCancelAnimationFrame,m=c.requestAnimationFrame||c.mozRequestAnimationFrame||c.webkitRequestAnimationFrame;function g(e){let t,n,r,o,i,a,s;const l="undefined"!==typeof document&&document.attachEvent;if(!l){a=function(e){const t=e.__resizeTriggers__,n=t.firstElementChild,r=t.lastElementChild,o=n.firstElementChild;r.scrollLeft=r.scrollWidth,r.scrollTop=r.scrollHeight,o.style.width=n.offsetWidth+1+"px",o.style.height=n.offsetHeight+1+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight},i=function(e){return e.offsetWidth!==e.__resizeLast__.width||e.offsetHeight!==e.__resizeLast__.height},s=function(e){if(e.target.className&&"function"===typeof e.target.className.indexOf&&e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)return;const t=this;a(this),this.__resizeRAF__&&u(this.__resizeRAF__),this.__resizeRAF__=d((function(){i(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach((function(n){n.call(t,e)})))}))};let e=!1,l="";r="animationstart";const c="Webkit Moz O ms".split(" ");let f="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),p="";{const t=document.createElement("fakeelement");if(void 0!==t.style.animationName&&(e=!0),!1===e)for(let n=0;n<c.length;n++)if(void 0!==t.style[c[n]+"AnimationName"]){p=c[n],l="-"+p.toLowerCase()+"-",r=f[n],e=!0;break}}n="resizeanim",t="@"+l+"keyframes "+n+" { from { opacity: 0; } to { opacity: 0; } } ",o=l+"animation: 1ms "+n+"; "}return{addResizeListener:function(i,u){if(l)i.attachEvent("onresize",u);else{if(!i.__resizeTriggers__){const l=i.ownerDocument,u=c.getComputedStyle(i);u&&"static"===u.position&&(i.style.position="relative"),function(n){if(!n.getElementById("detectElementResize")){const r=(t||"")+".resize-triggers { "+(o||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',i=n.head||n.getElementsByTagName("head")[0],a=n.createElement("style");a.id="detectElementResize",a.type="text/css",null!=e&&a.setAttribute("nonce",e),a.styleSheet?a.styleSheet.cssText=r:a.appendChild(n.createTextNode(r)),i.appendChild(a)}}(l),i.__resizeLast__={},i.__resizeListeners__=[],(i.__resizeTriggers__=l.createElement("div")).className="resize-triggers";const d=l.createElement("div");d.className="expand-trigger",d.appendChild(l.createElement("div"));const f=l.createElement("div");f.className="contract-trigger",i.__resizeTriggers__.appendChild(d),i.__resizeTriggers__.appendChild(f),i.appendChild(i.__resizeTriggers__),a(i),i.addEventListener("scroll",s,!0),r&&(i.__resizeTriggers__.__animationListener__=function(e){e.animationName===n&&a(i)},i.__resizeTriggers__.addEventListener(r,i.__resizeTriggers__.__animationListener__))}i.__resizeListeners__.push(u)}},removeResizeListener:function(e,t){if(l)e.detachEvent("onresize",t);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",s,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(r,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(n){}}}}}null==h||null==m?(u=f,d=function(e){return p(e,20)}):(u=function(e){let[t,n]=e;h(t),f(n)},d=function(e){const t=m((function(){f(n),e()})),n=p((function(){h(t),e()}),20);return[t,n]});class v extends r.Component{constructor(){super(...arguments),this.state={height:this.props.defaultHeight||0,scaledHeight:this.props.defaultHeight||0,scaledWidth:this.props.defaultWidth||0,width:this.props.defaultWidth||0},this._autoSizer=null,this._detectElementResize=null,this._parentNode=null,this._resizeObserver=null,this._timeoutId=null,this._onResize=()=>{this._timeoutId=null;const{disableHeight:e,disableWidth:t,onResize:n}=this.props;if(this._parentNode){const r=window.getComputedStyle(this._parentNode)||{},o=parseFloat(r.paddingLeft||"0"),i=parseFloat(r.paddingRight||"0"),a=parseFloat(r.paddingTop||"0"),s=parseFloat(r.paddingBottom||"0"),l=this._parentNode.getBoundingClientRect(),c=l.height-a-s,u=l.width-o-i,d=this._parentNode.offsetHeight-a-s,f=this._parentNode.offsetWidth-o-i;(e||this.state.height===d&&this.state.scaledHeight===c)&&(t||this.state.width===f&&this.state.scaledWidth===u)||(this.setState({height:d,width:f,scaledHeight:c,scaledWidth:u}),"function"===typeof n&&n({height:d,scaledHeight:c,scaledWidth:u,width:f}))}},this._setRef=e=>{this._autoSizer=e}}componentDidMount(){const{nonce:e}=this.props,t=this._autoSizer?this._autoSizer.parentNode:null;if(null!=t&&t.ownerDocument&&t.ownerDocument.defaultView&&t instanceof t.ownerDocument.defaultView.HTMLElement){this._parentNode=t;const n=t.ownerDocument.defaultView.ResizeObserver;null!=n?(this._resizeObserver=new n((()=>{this._timeoutId=setTimeout(this._onResize,0)})),this._resizeObserver.observe(t)):(this._detectElementResize=g(e),this._detectElementResize.addResizeListener(t,this._onResize)),this._onResize()}}componentWillUnmount(){this._parentNode&&(this._detectElementResize&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize),null!==this._timeoutId&&clearTimeout(this._timeoutId),this._resizeObserver&&this._resizeObserver.disconnect())}render(){const{children:e,defaultHeight:t,defaultWidth:n,disableHeight:o=!1,disableWidth:i=!1,doNotBailOutOnEmptyChildren:a=!1,nonce:s,onResize:l,style:c={},tagName:u="div",...d}=this.props,{height:f,scaledHeight:p,scaledWidth:h,width:m}=this.state,g={overflow:"visible"},v={};let y=!1;return o||(0===f&&(y=!0),g.height=0,v.height=f,v.scaledHeight=p),i||(0===m&&(y=!0),g.width=0,v.width=m,v.scaledWidth=h),a&&(y=!1),(0,r.createElement)(u,{ref:this._setRef,style:{...g,...c},...d},!y&&e(v))}}var y=n(87462),b=n(97326),w=n(51721),E=n(90083),_="object"===typeof performance&&"function"===typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function x(e){cancelAnimationFrame(e.id)}function S(e,t){var n=_();var r={id:requestAnimationFrame((function o(){_()-n>=t?e.call(null):r.id=requestAnimationFrame(o)}))};return r}var C=-1;function k(e){if(void 0===e&&(e=!1),-1===C||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),C=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return C}var O=null;function T(e){if(void 0===e&&(e=!1),null===O||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),o=r.style;return o.width="100px",o.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?O="positive-descending":(t.scrollLeft=1,O=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),O}return O}var N=150,I=function(e,t){return e};function P(e){var t,n=e.getItemOffset,o=e.getEstimatedTotalSize,i=e.getItemSize,a=e.getOffsetForIndexAndAlignment,s=e.getStartIndexForOffset,l=e.getStopIndexForStartIndex,c=e.initInstanceProps,u=e.shouldResetStyleCacheOnItemSizeChange,d=e.validateProps;return t=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=c(r.props,(0,b.Z)(r)),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:(0,b.Z)(r),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"===typeof r.props.initialScrollOffset?r.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},r._callOnItemsRendered=void 0,r._callOnItemsRendered=(0,E.Z)((function(e,t,n,o){return r.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:o})})),r._callOnScroll=void 0,r._callOnScroll=(0,E.Z)((function(e,t,n){return r.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:n})})),r._getItemStyle=void 0,r._getItemStyle=function(e){var t,o=r.props,a=o.direction,s=o.itemSize,l=o.layout,c=r._getItemStyleCache(u&&s,u&&l,u&&a);if(c.hasOwnProperty(e))t=c[e];else{var d=n(r.props,e,r._instanceProps),f=i(r.props,e,r._instanceProps),p="horizontal"===a||"horizontal"===l,h="rtl"===a,m=p?d:0;c[e]=t={position:"absolute",left:h?void 0:m,right:h?m:void 0,top:p?0:d,height:p?"100%":f,width:p?f:"100%"}}return t},r._getItemStyleCache=void 0,r._getItemStyleCache=(0,E.Z)((function(e,t,n){return{}})),r._onScrollHorizontal=function(e){var t=e.currentTarget,n=t.clientWidth,o=t.scrollLeft,i=t.scrollWidth;r.setState((function(e){if(e.scrollOffset===o)return null;var t=r.props.direction,a=o;if("rtl"===t)switch(T()){case"negative":a=-o;break;case"positive-descending":a=i-n-o}return a=Math.max(0,Math.min(a,i-n)),{isScrolling:!0,scrollDirection:e.scrollOffset<a?"forward":"backward",scrollOffset:a,scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._onScrollVertical=function(e){var t=e.currentTarget,n=t.clientHeight,o=t.scrollHeight,i=t.scrollTop;r.setState((function(e){if(e.scrollOffset===i)return null;var t=Math.max(0,Math.min(i,o-n));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._outerRefSetter=function(e){var t=r.props.outerRef;r._outerRef=e,"function"===typeof t?t(e):null!=t&&"object"===typeof t&&t.hasOwnProperty("current")&&(t.current=e)},r._resetIsScrollingDebounced=function(){null!==r._resetIsScrollingTimeoutId&&x(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=S(r._resetIsScrolling,N)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1,null)}))},r}(0,w.Z)(t,e),t.getDerivedStateFromProps=function(e,t){return R(e,t),d(e),null};var f=t.prototype;return f.scrollTo=function(e){e=Math.max(0,e),this.setState((function(t){return t.scrollOffset===e?null:{scrollDirection:t.scrollOffset<e?"forward":"backward",scrollOffset:e,scrollUpdateWasRequested:!0}}),this._resetIsScrollingDebounced)},f.scrollToItem=function(e,t){void 0===t&&(t="auto");var n=this.props,r=n.itemCount,o=n.layout,i=this.state.scrollOffset;e=Math.max(0,Math.min(e,r-1));var s=0;if(this._outerRef){var l=this._outerRef;s="vertical"===o?l.scrollWidth>l.clientWidth?k():0:l.scrollHeight>l.clientHeight?k():0}this.scrollTo(a(this.props,e,t,i,this._instanceProps,s))},f.componentDidMount=function(){var e=this.props,t=e.direction,n=e.initialScrollOffset,r=e.layout;if("number"===typeof n&&null!=this._outerRef){var o=this._outerRef;"horizontal"===t||"horizontal"===r?o.scrollLeft=n:o.scrollTop=n}this._callPropsCallbacks()},f.componentDidUpdate=function(){var e=this.props,t=e.direction,n=e.layout,r=this.state,o=r.scrollOffset;if(r.scrollUpdateWasRequested&&null!=this._outerRef){var i=this._outerRef;if("horizontal"===t||"horizontal"===n)if("rtl"===t)switch(T()){case"negative":i.scrollLeft=-o;break;case"positive-ascending":i.scrollLeft=o;break;default:var a=i.clientWidth,s=i.scrollWidth;i.scrollLeft=s-a-o}else i.scrollLeft=o;else i.scrollTop=o}this._callPropsCallbacks()},f.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&x(this._resetIsScrollingTimeoutId)},f.render=function(){var e=this.props,t=e.children,n=e.className,i=e.direction,a=e.height,s=e.innerRef,l=e.innerElementType,c=e.innerTagName,u=e.itemCount,d=e.itemData,f=e.itemKey,p=void 0===f?I:f,h=e.layout,m=e.outerElementType,g=e.outerTagName,v=e.style,b=e.useIsScrolling,w=e.width,E=this.state.isScrolling,_="horizontal"===i||"horizontal"===h,x=_?this._onScrollHorizontal:this._onScrollVertical,S=this._getRangeToRender(),C=S[0],k=S[1],O=[];if(u>0)for(var T=C;T<=k;T++)O.push((0,r.createElement)(t,{data:d,key:p(T,d),index:T,isScrolling:b?E:void 0,style:this._getItemStyle(T)}));var N=o(this.props,this._instanceProps);return(0,r.createElement)(m||g||"div",{className:n,onScroll:x,ref:this._outerRefSetter,style:(0,y.Z)({position:"relative",height:a,width:w,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:i},v)},(0,r.createElement)(l||c||"div",{children:O,ref:s,style:{height:_?"100%":N,pointerEvents:E?"none":void 0,width:_?N:"100%"}}))},f._callPropsCallbacks=function(){if("function"===typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],n=e[1],r=e[2],o=e[3];this._callOnItemsRendered(t,n,r,o)}if("function"===typeof this.props.onScroll){var i=this.state,a=i.scrollDirection,s=i.scrollOffset,l=i.scrollUpdateWasRequested;this._callOnScroll(a,s,l)}},f._getRangeToRender=function(){var e=this.props,t=e.itemCount,n=e.overscanCount,r=this.state,o=r.isScrolling,i=r.scrollDirection,a=r.scrollOffset;if(0===t)return[0,0,0,0];var c=s(this.props,a,this._instanceProps),u=l(this.props,c,a,this._instanceProps),d=o&&"backward"!==i?1:Math.max(1,n),f=o&&"forward"!==i?1:Math.max(1,n);return[Math.max(0,c-d),Math.max(0,Math.min(t-1,u+f)),c,u]},t}(r.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var R=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},D=function(e,t,n){var r=e.itemSize,o=n.itemMetadataMap,i=n.lastMeasuredIndex;if(t>i){var a=0;if(i>=0){var s=o[i];a=s.offset+s.size}for(var l=i+1;l<=t;l++){var c=r(l);o[l]={offset:a,size:c},a+=c}n.lastMeasuredIndex=t}return o[t]},A=function(e,t,n,r,o){for(;r<=n;){var i=r+Math.floor((n-r)/2),a=D(e,i,t).offset;if(a===o)return i;a<o?r=i+1:a>o&&(n=i-1)}return r>0?r-1:0},j=function(e,t,n,r){for(var o=e.itemCount,i=1;n<o&&D(e,n,t).offset<r;)n+=i,i*=2;return A(e,t,Math.min(n,o-1),Math.floor(n/2),r)},M=function(e,t){var n=e.itemCount,r=t.itemMetadataMap,o=t.estimatedItemSize,i=t.lastMeasuredIndex,a=0;if(i>=n&&(i=n-1),i>=0){var s=r[i];a=s.offset+s.size}return a+(n-i-1)*o},L=P({getItemOffset:function(e,t,n){return D(e,t,n).offset},getItemSize:function(e,t,n){return n.itemMetadataMap[t].size},getEstimatedTotalSize:M,getOffsetForIndexAndAlignment:function(e,t,n,r,o,i){var a=e.direction,s=e.height,l=e.layout,c=e.width,u="horizontal"===a||"horizontal"===l?c:s,d=D(e,t,o),f=M(e,o),p=Math.max(0,Math.min(f-u,d.offset)),h=Math.max(0,d.offset-u+d.size+i);switch("smart"===n&&(n=r>=h-u&&r<=p+u?"auto":"center"),n){case"start":return p;case"end":return h;case"center":return Math.round(h+(p-h)/2);default:return r>=h&&r<=p?r:r<h?h:p}},getStartIndexForOffset:function(e,t,n){return function(e,t,n){var r=t.itemMetadataMap,o=t.lastMeasuredIndex;return(o>0?r[o].offset:0)>=n?A(e,t,o,0,n):j(e,t,Math.max(0,o),n)}(e,n,t)},getStopIndexForStartIndex:function(e,t,n,r){for(var o=e.direction,i=e.height,a=e.itemCount,s=e.layout,l=e.width,c="horizontal"===o||"horizontal"===s?l:i,u=D(e,t,r),d=n+c,f=u.offset+u.size,p=t;p<a-1&&f<d;)p++,f+=D(e,p,r).size;return p},initInstanceProps:function(e,t){var n={itemMetadataMap:{},estimatedItemSize:e.estimatedItemSize||50,lastMeasuredIndex:-1};return t.resetAfterIndex=function(e,r){void 0===r&&(r=!0),n.lastMeasuredIndex=Math.min(n.lastMeasuredIndex,e-1),t._getItemStyleCache(-1),r&&t.forceUpdate()},n},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.itemSize}});var z=n(77264),F=n(84584),B=n(72644),U=n(36951),q=n(99742),$=n(63096),Z=n(2982);const H=(0,U.Ge)("list"),V=e=>{const t=r.useRef(null);return(0,$.s)({element:t.current,onIntersect:null===e||void 0===e?void 0:e.onIntersect}),r.createElement("div",{ref:t,className:H("loading-indicator")},r.createElement(Z.a,{qa:"list-loader"}))};var W=n(20397),G=n(88776),Y=n(93404),K=n(59926);const Q="list-active-item",J=[K.V.TAB],X=(0,U.Ge)("list"),ee=e=>String(e);function te(e,t){return t?Object.assign(Object.assign({},null===e||void 0===e?void 0:e.draggableProps.style),t):null===e||void 0===e?void 0:e.draggableProps.style}class ne extends r.Component{constructor(){super(...arguments),this.node=null,this.getNode=()=>this.node,this.setRef=e=>{var t;this.node=e,null===(t=this.props.provided)||void 0===t||t.innerRef(e)},this.onClick=e=>{this.props.onClick&&this.props.onClick(this.props.item,this.props.itemIndex,!1,e)},this.onClickCapture=e=>{ne.publishEvent({domEvent:e,eventId:"click"})},this.onMouseEnter=()=>!this.props.item.disabled&&this.props.onActivate(this.props.itemIndex),this.onMouseLeave=()=>this.props.onActivate(void 0)}render(){var e,t;const{item:n,style:o,sortable:i,sortHandleAlign:a,itemClassName:s,selected:l,active:c,role:u="listitem",isDragging:d=!1}=this.props,f=Object.assign(Object.assign({},o),{right:void 0});return r.createElement("div",Object.assign({role:u,"aria-selected":l,"data-qa":c?Q:void 0,className:X("item",{sortable:i,active:c,selected:l,inactive:n.disabled,"sort-handle-align":a,dragging:d},s)},null===(e=this.props.provided)||void 0===e?void 0:e.draggableProps,null===(t=this.props.provided)||void 0===t?void 0:t.dragHandleProps,{style:te(this.props.provided,f),onClick:n.disabled?void 0:this.onClick,onClickCapture:n.disabled?void 0:this.onClickCapture,onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave,ref:this.setRef,id:`${this.props.listId}-item-${this.props.itemIndex}`}),this.renderSortIcon(),this.renderContent())}renderSortIcon(){const{sortable:e}=this.props;return e?r.createElement("div",{className:X("item-sort-icon")},r.createElement(G.J,{data:W.Z,size:12})):null}renderContent(){const{renderItem:e=ee,item:t,active:n,itemIndex:o}=this.props;return r.createElement("div",{className:X("item-content")},e(t,n,o))}}ne.publishEvent=Y.P.withEventPublisher("List");var re=n(28925),oe=n.n(re);function ie(e){return oe()(e).reduce(((e,t)=>(e[t]=r.createRef(),e)),{})}class ae extends r.Component{static getDerivedStateFromProps(e,t){let{itemCount:n}=e;return n===Object.keys(t.refsList).length?t:{refsList:ie(n)}}constructor(e){super(e),this.node=null,this.setRef=e=>{var t;this.node=e,null===(t=this.props.provided)||void 0===t||t.innerRef(e)},this.state={refsList:ie(e.itemCount)}}render(){const e=r.Children.map(this.props.children,((e,t)=>r.cloneElement(e,{ref:this.state.refsList[t]})));return r.createElement("div",{ref:this.setRef},e)}scrollToItem(e){var t,n;const r=null===(t=this.state.refsList[e])||void 0===t?void 0:t.current;if(r&&"function"===typeof r.getNode){const e=r.getNode();e&&(null===(n=e.scrollIntoView)||void 0===n||n.call(e,{block:"nearest"}))}}}const se=(0,U.Ge)("list"),le=r.forwardRef(((e,t)=>r.createElement(L,Object.assign({ref:t},e,{direction:(0,B.g)()}))));le.displayName="ListContainer";class ce extends r.Component{constructor(){super(...arguments),this.state={items:this.props.items,filter:""},this.refFilter=r.createRef(),this.refContainer=r.createRef(),this.blurTimer=null,this.loadingItem={value:"__LIST_ITEM_LOADING__",disabled:!1},this.uniqId=(0,q.xA)(),this.onKeyDown=e=>{const{activeItem:t,pageSize:n}=this.state;if(J.includes(e.key))return;const r=e.target instanceof HTMLInputElement;switch(e.key){case"ArrowDown":this.handleKeyMove(e,1,-1);break;case"ArrowUp":this.handleKeyMove(e,-1);break;case"PageDown":this.handleKeyMove(e,n);break;case"PageUp":this.handleKeyMove(e,-n);break;case"Home":if(r)return;this.handleKeyMove(e,this.state.items.length-(t||0));break;case"End":if(r)return;this.handleKeyMove(e,-(t||0)-1);break;case"Enter":"number"===typeof t&&this.props.onItemClick&&this.props.onItemClick(this.state.items[t],t,!0,e);break;default:this.refFilter.current&&this.refFilter.current.focus()}},this.renderItemContent=(e,t,n)=>{const{onLoadMore:o}=this.props;return s()(e)&&"value"in e&&e.value===this.loadingItem.value?r.createElement(V,{onIntersect:0===n?void 0:o}):this.props.renderItem?this.props.renderItem(e,t,n):ee(e)},this.renderItem=e=>{let{index:t,style:n,provided:o,isDragging:i}=e;var a;const{sortHandleAlign:s,role:l}=this.props,{items:c,activeItem:u}=this.state,d=this.getItemsWithLoading()[t],f=this.props.sortable&&c.length>1&&!this.getFilter(),p=t===u||t===this.props.activeItemIndex,h=Array.isArray(this.props.selectedItemIndex)?this.props.selectedItemIndex.includes(t):t===this.props.selectedItemIndex;return r.createElement(ne,{key:t,style:n,itemIndex:t,item:d,sortable:f,sortHandleAlign:s,renderItem:this.renderItemContent,itemClassName:this.props.itemClassName,active:p,selected:h,onActivate:this.onItemActivate,onClick:this.props.onItemClick,role:"listbox"===l?"option":"listitem",listId:null!==(a=this.props.id)&&void 0!==a?a:this.uniqId,provided:o,isDragging:i})},this.renderVirtualizedItem=e=>{let{index:t,style:n}=e;return r.createElement(l._l,{draggableId:String(t),index:t,key:`item-key-${t}`},(e=>this.renderItem({index:t,style:n,provided:e})))},this.filterItem=e=>t=>String(t).includes(e),this.scrollToIndex=e=>{const t=this.refContainer.current;t&&t.scrollToItem(e)},this.deactivate=()=>{this.blurTimer&&this.props.deactivateOnLeave&&this.setState({activeItem:void 0})},this.handleFocus=()=>{this.blurTimer&&(clearTimeout(this.blurTimer),this.blurTimer=null)},this.handleBlur=()=>{this.blurTimer||(this.blurTimer=setTimeout(this.deactivate,50))},this.onUpdateFilterInternal=e=>{const{items:t,filterItem:n=this.filterItem,onFilterEnd:r}=this.props;this.setState({filter:e,items:e?t.filter(n(e)):t},(()=>{r&&r({items:this.state.items})}))},this.onFilterUpdate=e=>{this.props.onFilterUpdate?this.props.onFilterUpdate(e):this.onUpdateFilterInternal(e)},this.onItemsRendered=e=>{let{visibleStartIndex:t,visibleStopIndex:n}=e;this.setState({pageSize:n-t})},this.onItemActivate=e=>{this.state.sorting||this.activateItem(e,!1)},this.onMouseLeave=()=>{this.deactivate()},this.onSortStart=()=>{this.setState({sorting:!0})},this.onSortEnd=e=>{if(!e.destination)return void this.setState({sorting:!1});if(e.source.index===e.destination.index)return void this.setState({sorting:!1});const t=e.source.index,n=e.destination.index;this.props.onSortEnd&&this.props.onSortEnd({oldIndex:t,newIndex:n});const r=((e,t,n)=>{const r=Array.from(e),[o]=r.splice(t,1);return r.splice(n,0,o),r})(this.getItems(),t,n);this.setState({activeItem:n,items:r,sorting:!1})},this.getItemHeight=e=>{const{itemHeight:t}=this.props;if("function"===typeof t){const{items:n}=this.state;return t(n[e],e)}return t},this.getVirtualizedItemHeight=e=>this.getItemHeight(e)||28}static moveListElement(e,t,n){if(t!==n){const[r]=e.splice(t,1);e.splice(n,0,r)}return e}static findNextIndex(e,t,n){const r=e.length;let o=(t+r)%r;for(let i=0;i<r;i+=1){if(e[o]&&!e[o].disabled)return o;o=(o+r+n)%r}}componentDidUpdate(e,t){if(!i()(this.props.items,e.items)){const e=this.getFilter();e&&!this.props.onFilterUpdate?this.onUpdateFilterInternal(e):this.setState({items:this.props.items})}this.props.activeItemIndex!==e.activeItemIndex&&this.activateItem(this.props.activeItemIndex),this.props.onChangeActive&&this.state.activeItem!==t.activeItem&&this.props.onChangeActive(this.state.activeItem)}componentWillUnmount(){this.blurTimer=null}render(){const{id:e,emptyPlaceholder:t,virtualized:n,className:o,itemsClassName:i,qa:a,role:s="list"}=this.props,{items:l}=this.state;return r.createElement(F.z.Consumer,null,(c=>{let{mobile:u}=c;return r.createElement("div",{className:se({mobile:u},o),"data-qa":a,tabIndex:-1,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyDown:this.onKeyDown},this.renderFilter(),r.createElement("div",{id:e,className:se("items",{virtualized:n},i),style:this.getItemsStyle(),onMouseLeave:this.onMouseLeave,role:s},this.renderItems(),0===l.length&&Boolean(t)&&r.createElement("div",{className:se("empty-placeholder")},t)))}))}getItems(){return this.state.items}getItemsWithLoading(){return this.props.sortable?this.getItems():this.props.loading?[...this.state.items,this.loadingItem]:this.getItems()}getActiveItem(){return"number"===typeof this.state.activeItem?this.state.activeItem:null}activateItem(e){"number"===typeof e&&(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])&&this.scrollToIndex(e),this.setState({activeItem:e})}renderFilter(){const{size:e,filterable:t,filter:n=this.state.filter,filterPlaceholder:o,filterClassName:i="",autoFocus:a}=this.props;return t?r.createElement("div",{className:se("filter",i)},r.createElement(z.o,{controlRef:this.refFilter,size:e,placeholder:o,value:n,hasClear:!0,onUpdate:this.onFilterUpdate,autoFocus:a})):null}renderSimpleContainer(){const{sortable:e}=this.props,t=this.getItemsWithLoading();return e?r.createElement(l.Z5,{onDragStart:this.onSortStart,onDragEnd:this.onSortEnd},r.createElement(l.bK,{droppableId:"droppable",renderClone:(e,t,n)=>this.renderItem({index:n.source.index,provided:e,isDragging:t.isDragging})},(e=>r.createElement(ae,{ref:this.refContainer,itemCount:t.length,provided:e},t.map(((e,t)=>r.createElement(l._l,{draggableId:String(t),index:t,key:`item-key-${t}`},((e,n)=>this.renderItem({index:t,isDragging:n.isDragging,provided:e,style:{height:this.getItemHeight(t)}}))))))))):r.createElement(ae,{itemCount:t.length,ref:this.refContainer},t.map(((e,t)=>this.renderItem({index:t,style:{height:this.getItemHeight(t)}}))))}renderVirtualizedContainer(){const e=[...this.getItemsWithLoading()];return this.props.sortable?r.createElement(l.Z5,{onDragStart:this.onSortStart,onDragEnd:this.onSortEnd},r.createElement(l.bK,{droppableId:"droppable",mode:"virtual",renderClone:(e,t,n)=>this.renderItem({index:n.source.index,provided:e,isDragging:t.isDragging})},(t=>r.createElement(v,null,(n=>{let{width:o,height:i}=n;return r.createElement(le,{ref:this.refContainer,outerRef:t.innerRef,width:o,height:i,itemSize:this.getVirtualizedItemHeight,itemData:e,itemCount:e.length,overscanCount:10,onItemsRendered:this.onItemsRendered,activeItem:this.state.activeItem},this.renderVirtualizedItem)}))))):r.createElement(v,null,(t=>{let{width:n,height:o}=t;return r.createElement(le,{ref:this.refContainer,width:n,height:o,itemSize:this.getVirtualizedItemHeight,itemData:e,itemCount:e.length,overscanCount:10,onItemsRendered:this.onItemsRendered,activeItem:this.state.activeItem},this.renderItem)}))}renderItems(){return this.props.virtualized?this.renderVirtualizedContainer():this.renderSimpleContainer()}getFilter(){const{filter:e=this.state.filter}=this.props;return e}getItemsStyle(){let{itemsHeight:e}=this.props;return"function"===typeof e&&(e=e(this.state.items)),e?{height:e}:void 0}handleKeyMove(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const{activeItem:r=n}=this.state;e.preventDefault();const o=this.getItemsWithLoading();this.activateItem(ce.findNextIndex(o,r+t,Math.sign(t)))}}ce.defaultProps={items:[],itemClassName:"",filterable:!0,sortable:!1,virtualized:!0,deactivateOnLeave:!0}},2982:(e,t,n)=>{"use strict";n.d(t,{a:()=>i});var r=n(68963);const o=(0,n(36951).Ge)("loader");function i(e){let{size:t="s",className:n,qa:i}=e;return r.createElement("div",{className:o({size:t},n),"data-qa":i},r.createElement("div",{className:o("left")}),r.createElement("div",{className:o("center")}),r.createElement("div",{className:o("right")}))}},68330:(e,t,n)=>{"use strict";n.d(t,{J:()=>w});var r=n(68963),o=n(77280),i=n(17176),a=n(88776),s=n(44920),l=n(72644),c=n(12913);const u=(0,n(36951).Ge)("popover"),d=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];switch(e){case"special":return t?"normal-contrast":"flat-contrast";case"announcement":return t?"normal-contrast":"outlined";default:return t?"normal":"flat"}},f=e=>{let{theme:t,tooltipActionButton:n,tooltipCancelButton:o}=e;return n||o?r.createElement("div",{className:u("tooltip-buttons")},n&&r.createElement(i.z,{view:d(t,!0),width:"max",onClick:n.onClick,className:u("tooltip-button")},n.text),o&&r.createElement(i.z,{view:d(t,!1),width:"max",onClick:o.onClick,className:u("tooltip-button")},o.text)):null},p=e=>{let{secondary:t,htmlContent:n,content:o,className:i}=e;return n||o?n?r.createElement("div",{className:u("tooltip-content",{secondary:t},i),dangerouslySetInnerHTML:{__html:n}}):o?r.createElement("div",{className:u("tooltip-content",{secondary:t},i)},o):null:null};var h=n(86017);const m=e=>{let{links:t}=e;return 0===t.length?null:r.createElement("div",{className:u("tooltip-links")},t.map(((e,t)=>{const{text:n,href:o,target:i="_blank",onClick:a}=e;return r.createElement(r.Fragment,{key:`link-${t}`},r.createElement(h.r,{href:o,target:i,onClick:a,className:u("tooltip-link")},n),r.createElement("br",null))})))};var g=n(68512);const v=e=>{let{open:t,openOnHover:n,disabled:o,className:i,openTooltip:a,closeTooltip:s,closedManually:l,onClick:c,children:u}=e;const d=async e=>{if(o||t&&n)return;if(!(!c||await c(e)))return;t?(s(),l.current=!0):(a(),l.current=!1)},{onKeyDown:f}=(0,g.b)(d);return"function"===typeof u?r.createElement(r.Fragment,null,u({onClick:d,onKeyDown:f,open:t})):r.createElement("div",{className:i,onClick:d,onKeyDown:c?f:void 0},u)};var y=n(10502);const b=e=>{let{initialOpen:t,disabled:n,autoclosable:o,onOpenChange:i,delayOpening:a,delayClosing:s,behavior:l,shouldBeOpen:c}=e;const u=r.useRef(null),d=r.useRef(null),[f,p]=r.useState(t),h=r.useCallback((()=>{u.current&&(clearTimeout(u.current),u.current=null)}),[]),m=r.useCallback((()=>{d.current&&(clearTimeout(d.current),d.current=null)}),[]);r.useEffect((()=>()=>{h(),m()}),[m,h]);const g=r.useCallback((e=>{p(e),c.current=e,null===i||void 0===i||i(e)}),[i,c]),v=r.useCallback((()=>{h(),g(!0)}),[g,h]),b=r.useCallback((()=>{m(),g(!1)}),[g,m]);r.useEffect((()=>{n&&b()}),[n,b]),((e,t)=>{const n=r.useRef(!0);r.useEffect((()=>{n.current?n.current=!1:e()}),t)})((()=>{o&&!c.current&&b()}),[o,b,c]);const[w,E]=y.q[l],_=r.useCallback((()=>{u.current=setTimeout((()=>{u.current=null,v()}),null!==a&&void 0!==a?a:w)}),[w,a,v]),x=r.useCallback((()=>{d.current=setTimeout((()=>{d.current=null,b()}),null!==s&&void 0!==s?s:E)}),[b,E,s]);return{isOpen:f,closingTimeout:d,openTooltip:v,openTooltipDelayed:_,unsetOpeningTimeout:h,closeTooltip:b,closeTooltipDelayed:x,unsetClosingTimeout:m}},w=r.forwardRef((function(e,t){let{initialOpen:n=!1,disabled:d=!1,autoclosable:h=!0,openOnHover:g=!0,delayOpening:w,delayClosing:E,behavior:_=y.x.Delayed,placement:x,offset:S={},tooltipOffset:C,tooltipClassName:k,tooltipContentClassName:O,theme:T="info",size:N="s",hasArrow:I=!0,hasClose:P=!1,className:R,children:D,title:A,content:j,htmlContent:M,contentClassName:L,links:z,forceLinksAppearance:F=!1,tooltipActionButton:B,tooltipCancelButton:U,onOpenChange:q,onCloseClick:$,onClick:Z,anchorRef:H,strategy:V,qa:W,disablePortal:G=!1,tooltipId:Y,focusTrap:K,autoFocus:Q,restoreFocusRef:J,modifiers:X}=e;const ee=(0,l.g)(),te=r.useRef(null),ne=r.useRef(!1),re=r.useRef(n),{isOpen:oe,closingTimeout:ie,openTooltip:ae,openTooltipDelayed:se,unsetOpeningTimeout:le,closeTooltip:ce,closeTooltipDelayed:ue,unsetClosingTimeout:de}=b({initialOpen:n,disabled:d,autoclosable:h,onOpenChange:q,delayOpening:w,delayClosing:E,behavior:_,shouldBeOpen:re}),fe=r.useMemo((()=>x||("rtl"===ee?["left","bottom"]:["right","bottom"])),[ee,x]);r.useImperativeHandle(t,(()=>({openTooltip:ae,closeTooltip:ce})),[ae,ce]);const pe=Boolean(A),he=r.createElement(s.G,{id:Y,role:g?"tooltip":"dialog",strategy:V,anchorRef:H||te,className:u("tooltip",{theme:T,size:N,"with-close":P,"force-links-appearance":F},k),contentClassName:u("tooltip-popup-content",O),open:oe,placement:fe,hasArrow:I,offset:C,onClose:H?void 0:ce,qa:W?`${W}-tooltip`:"",disablePortal:G,focusTrap:K,autoFocus:Q,restoreFocus:!0,restoreFocusRef:J||te,modifiers:X},r.createElement(r.Fragment,null,A&&r.createElement("h3",{className:u("tooltip-title")},A),r.createElement(p,{secondary:!!pe&&"announcement"!==T,content:j,htmlContent:M,className:L}),z&&r.createElement(m,{links:z}),r.createElement(f,{theme:T,tooltipActionButton:B,tooltipCancelButton:U}),P&&r.createElement("div",{className:u("tooltip-close")},r.createElement(i.z,{size:"s",view:"flat-secondary",onClick:async e=>{ce(),null===$||void 0===$||$(e)},extraProps:{"aria-label":"Close"}},r.createElement(a.J,{data:o.Z,size:16})))));if(H)return he;const me=()=>{de(),oe||d||ne.current?re.current=!0:se()},ge=()=>{!h||ne.current||ie.current?re.current=!1:(le(),ue()),ne.current=!1};return!S||"number"!==typeof S.top&&"number"!==typeof S.left||(0,c.O)('[Popover] Physical names (top, left) of "offset" property are deprecated. Use logical names (block, inline) instead.'),r.createElement("div",{ref:te,className:u({disabled:d},R),onMouseEnter:g?me:void 0,onMouseLeave:g?ge:void 0,onFocus:g?me:void 0,onBlur:g?ge:void 0,style:{top:S.top,left:S.left,insetBlockStart:S.block,insetInlineStart:S.inline},"data-qa":W},r.createElement(v,{closeTooltip:ce,openTooltip:ae,open:oe,openOnHover:g,className:u("handler"),disabled:d,onClick:Z,closedManually:ne},D),he)}));w.displayName="Popover"},10502:(e,t,n)=>{"use strict";var r;n.d(t,{q:()=>o,x:()=>r}),function(e){e.Immediate="immediate",e.Delayed="delayed",e.DelayedClosing="delayedClosing"}(r||(r={}));const o={[r.Immediate]:[0,0],[r.Delayed]:[300,300],[r.DelayedClosing]:[0,300]}},44920:(e,t,n)=>{"use strict";n.d(t,{G:()=>$e});var r=n(68963),o=n(62685),i=n(48027),a=n(38886);function s(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function l(e){return e instanceof s(e).Element||e instanceof Element}function c(e){return e instanceof s(e).HTMLElement||e instanceof HTMLElement}function u(e){return"undefined"!==typeof ShadowRoot&&(e instanceof s(e).ShadowRoot||e instanceof ShadowRoot)}var d=Math.max,f=Math.min,p=Math.round;function h(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function m(){return!/^((?!chrome|android).)*safari/i.test(h())}function g(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&c(e)&&(o=e.offsetWidth>0&&p(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&p(r.height)/e.offsetHeight||1);var a=(l(e)?s(e):window).visualViewport,u=!m()&&n,d=(r.left+(u&&a?a.offsetLeft:0))/o,f=(r.top+(u&&a?a.offsetTop:0))/i,h=r.width/o,g=r.height/i;return{width:h,height:g,top:f,right:d+h,bottom:f+g,left:d,x:d,y:f}}function v(e){var t=s(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function y(e){return e?(e.nodeName||"").toLowerCase():null}function b(e){return((l(e)?e.ownerDocument:e.document)||window.document).documentElement}function w(e){return g(b(e)).left+v(e).scrollLeft}function E(e){return s(e).getComputedStyle(e)}function _(e){var t=E(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function x(e,t,n){void 0===n&&(n=!1);var r=c(t),o=c(t)&&function(e){var t=e.getBoundingClientRect(),n=p(t.width)/e.offsetWidth||1,r=p(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),i=b(t),a=g(e,o,n),l={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(r||!r&&!n)&&(("body"!==y(t)||_(i))&&(l=function(e){return e!==s(e)&&c(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:v(e);var t}(t)),c(t)?((u=g(t,!0)).x+=t.clientLeft,u.y+=t.clientTop):i&&(u.x=w(i))),{x:a.left+l.scrollLeft-u.x,y:a.top+l.scrollTop-u.y,width:a.width,height:a.height}}function S(e){var t=g(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 C(e){return"html"===y(e)?e:e.assignedSlot||e.parentNode||(u(e)?e.host:null)||b(e)}function k(e){return["html","body","#document"].indexOf(y(e))>=0?e.ownerDocument.body:c(e)&&_(e)?e:k(C(e))}function O(e,t){var n;void 0===t&&(t=[]);var r=k(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=s(r),a=o?[i].concat(i.visualViewport||[],_(r)?r:[]):r,l=t.concat(a);return o?l:l.concat(O(C(a)))}function T(e){return["table","td","th"].indexOf(y(e))>=0}function N(e){return c(e)&&"fixed"!==E(e).position?e.offsetParent:null}function I(e){for(var t=s(e),n=N(e);n&&T(n)&&"static"===E(n).position;)n=N(n);return n&&("html"===y(n)||"body"===y(n)&&"static"===E(n).position)?t:n||function(e){var t=/firefox/i.test(h());if(/Trident/i.test(h())&&c(e)&&"fixed"===E(e).position)return null;var n=C(e);for(u(n)&&(n=n.host);c(n)&&["html","body"].indexOf(y(n))<0;){var r=E(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}var P="top",R="bottom",D="right",A="left",j="auto",M=[P,R,D,A],L="start",z="end",F="clippingParents",B="viewport",U="popper",q="reference",$=M.reduce((function(e,t){return e.concat([t+"-"+L,t+"-"+z])}),[]),Z=[].concat(M,[j]).reduce((function(e,t){return e.concat([t,t+"-"+L,t+"-"+z])}),[]),H=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function V(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}function W(e){var t;return function(){return t||(t=new Promise((function(n){Promise.resolve().then((function(){t=void 0,n(e())}))}))),t}}var G={placement:"bottom",modifiers:[],strategy:"absolute"};function Y(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"===typeof e.getBoundingClientRect)}))}function K(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,i=void 0===o?G:o;return function(e,t,n){void 0===n&&(n=i);var o={placement:"bottom",orderedModifiers:[],options:Object.assign({},G,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},a=[],s=!1,c={state:o,setOptions:function(n){var s="function"===typeof n?n(o.options):n;u(),o.options=Object.assign({},i,o.options,s),o.scrollParents={reference:l(e)?O(e):e.contextElement?O(e.contextElement):[],popper:O(t)};var d=function(e){var t=V(e);return H.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}(function(e){var t=e.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}([].concat(r,o.options.modifiers)));return o.orderedModifiers=d.filter((function(e){return e.enabled})),o.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,i=e.effect;if("function"===typeof i){var s=i({state:o,name:t,instance:c,options:r}),l=function(){};a.push(s||l)}})),c.update()},forceUpdate:function(){if(!s){var e=o.elements,t=e.reference,n=e.popper;if(Y(t,n)){o.rects={reference:x(t,I(n),"fixed"===o.options.strategy),popper:S(n)},o.reset=!1,o.placement=o.options.placement,o.orderedModifiers.forEach((function(e){return o.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<o.orderedModifiers.length;r++)if(!0!==o.reset){var i=o.orderedModifiers[r],a=i.fn,l=i.options,u=void 0===l?{}:l,d=i.name;"function"===typeof a&&(o=a({state:o,options:u,name:d,instance:c})||o)}else o.reset=!1,r=-1}}},update:W((function(){return new Promise((function(e){c.forceUpdate(),e(o)}))})),destroy:function(){u(),s=!0}};if(!Y(e,t))return c;function u(){a.forEach((function(e){return e()})),a=[]}return c.setOptions(n).then((function(e){!s&&n.onFirstUpdate&&n.onFirstUpdate(e)})),c}}var Q={passive:!0};function J(e){return e.split("-")[0]}function X(e){return e.split("-")[1]}function ee(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function te(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?J(o):null,a=o?X(o):null,s=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(i){case P:t={x:s,y:n.y-r.height};break;case R:t={x:s,y:n.y+n.height};break;case D:t={x:n.x+n.width,y:l};break;case A:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var c=i?ee(i):null;if(null!=c){var u="y"===c?"height":"width";switch(a){case L:t[c]=t[c]-(n[u]/2-r[u]/2);break;case z:t[c]=t[c]+(n[u]/2-r[u]/2)}}return t}var ne={top:"auto",right:"auto",bottom:"auto",left:"auto"};function re(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,l=e.position,c=e.gpuAcceleration,u=e.adaptive,d=e.roundOffsets,f=e.isFixed,h=a.x,m=void 0===h?0:h,g=a.y,v=void 0===g?0:g,y="function"===typeof d?d({x:m,y:v}):{x:m,y:v};m=y.x,v=y.y;var w=a.hasOwnProperty("x"),_=a.hasOwnProperty("y"),x=A,S=P,C=window;if(u){var k=I(n),O="clientHeight",T="clientWidth";if(k===s(n)&&"static"!==E(k=b(n)).position&&"absolute"===l&&(O="scrollHeight",T="scrollWidth"),o===P||(o===A||o===D)&&i===z)S=R,v-=(f&&k===C&&C.visualViewport?C.visualViewport.height:k[O])-r.height,v*=c?1:-1;if(o===A||(o===P||o===R)&&i===z)x=D,m-=(f&&k===C&&C.visualViewport?C.visualViewport.width:k[T])-r.width,m*=c?1:-1}var N,j=Object.assign({position:l},u&&ne),M=!0===d?function(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:p(n*o)/o||0,y:p(r*o)/o||0}}({x:m,y:v},s(n)):{x:m,y:v};return m=M.x,v=M.y,c?Object.assign({},j,((N={})[S]=_?"0":"",N[x]=w?"0":"",N.transform=(C.devicePixelRatio||1)<=1?"translate("+m+"px, "+v+"px)":"translate3d("+m+"px, "+v+"px, 0)",N)):Object.assign({},j,((t={})[S]=_?v+"px":"",t[x]=w?m+"px":"",t.transform="",t))}const oe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=void 0===o?[0,0]:o,a=Z.reduce((function(e,n){return e[n]=function(e,t,n){var r=J(e),o=[A,P].indexOf(r)>=0?-1:1,i="function"===typeof n?n(Object.assign({},t,{placement:e})):n,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[A,D].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}(n,t.rects,i),e}),{}),s=a[t.placement],l=s.x,c=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=a}};var ie={left:"right",right:"left",bottom:"top",top:"bottom"};function ae(e){return e.replace(/left|right|bottom|top/g,(function(e){return ie[e]}))}var se={start:"end",end:"start"};function le(e){return e.replace(/start|end/g,(function(e){return se[e]}))}function ce(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&u(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ue(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function de(e,t,n){return t===B?ue(function(e,t){var n=s(e),r=b(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,l=0,c=0;if(o){i=o.width,a=o.height;var u=m();(u||!u&&"fixed"===t)&&(l=o.offsetLeft,c=o.offsetTop)}return{width:i,height:a,x:l+w(e),y:c}}(e,n)):l(t)?function(e,t){var n=g(e,!1,"fixed"===t);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}(t,n):ue(function(e){var t,n=b(e),r=v(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=d(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=d(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+w(e),l=-r.scrollTop;return"rtl"===E(o||n).direction&&(s+=d(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}(b(e)))}function fe(e,t,n,r){var o="clippingParents"===t?function(e){var t=O(C(e)),n=["absolute","fixed"].indexOf(E(e).position)>=0&&c(e)?I(e):e;return l(n)?t.filter((function(e){return l(e)&&ce(e,n)&&"body"!==y(e)})):[]}(e):[].concat(t),i=[].concat(o,[n]),a=i[0],s=i.reduce((function(t,n){var o=de(e,n,r);return t.top=d(o.top,t.top),t.right=f(o.right,t.right),t.bottom=f(o.bottom,t.bottom),t.left=d(o.left,t.left),t}),de(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 pe(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function he(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function me(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,i=n.strategy,a=void 0===i?e.strategy:i,s=n.boundary,c=void 0===s?F:s,u=n.rootBoundary,d=void 0===u?B:u,f=n.elementContext,p=void 0===f?U:f,h=n.altBoundary,m=void 0!==h&&h,v=n.padding,y=void 0===v?0:v,w=pe("number"!==typeof y?y:he(y,M)),E=p===U?q:U,_=e.rects.popper,x=e.elements[m?E:p],S=fe(l(x)?x:x.contextElement||b(e.elements.popper),c,d,a),C=g(e.elements.reference),k=te({reference:C,element:_,strategy:"absolute",placement:o}),O=ue(Object.assign({},_,k)),T=p===U?O:C,N={top:S.top-T.top+w.top,bottom:T.bottom-S.bottom+w.bottom,left:S.left-T.left+w.left,right:T.right-S.right+w.right},I=e.modifiersData.offset;if(p===U&&I){var A=I[o];Object.keys(N).forEach((function(e){var t=[D,R].indexOf(e)>=0?1:-1,n=[P,R].indexOf(e)>=0?"y":"x";N[e]+=A[n]*t}))}return N}const ge={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=void 0===o||o,a=n.altAxis,s=void 0===a||a,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,h=void 0===p||p,m=n.allowedAutoPlacements,g=t.options.placement,v=J(g),y=l||(v===g||!h?[ae(g)]:function(e){if(J(e)===j)return[];var t=ae(e);return[le(e),t,le(t)]}(g)),b=[g].concat(y).reduce((function(e,n){return e.concat(J(n)===j?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?Z:l,u=X(r),d=u?s?$:$.filter((function(e){return X(e)===u})):M,f=d.filter((function(e){return c.indexOf(e)>=0}));0===f.length&&(f=d);var p=f.reduce((function(t,n){return t[n]=me(e,{placement:n,boundary:o,rootBoundary:i,padding:a})[J(n)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}(t,{placement:n,boundary:u,rootBoundary:d,padding:c,flipVariations:h,allowedAutoPlacements:m}):n)}),[]),w=t.rects.reference,E=t.rects.popper,_=new Map,x=!0,S=b[0],C=0;C<b.length;C++){var k=b[C],O=J(k),T=X(k)===L,N=[P,R].indexOf(O)>=0,I=N?"width":"height",z=me(t,{placement:k,boundary:u,rootBoundary:d,altBoundary:f,padding:c}),F=N?T?D:A:T?R:P;w[I]>E[I]&&(F=ae(F));var B=ae(F),U=[];if(i&&U.push(z[O]<=0),s&&U.push(z[F]<=0,z[B]<=0),U.every((function(e){return e}))){S=k,x=!1;break}_.set(k,U)}if(x)for(var q=function(e){var t=b.find((function(t){var n=_.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return S=t,"break"},H=h?3:1;H>0;H--){if("break"===q(H))break}t.placement!==S&&(t.modifiersData[r]._skip=!0,t.placement=S,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function ve(e,t,n){return d(e,f(t,n))}const ye={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=void 0===o||o,a=n.altAxis,s=void 0!==a&&a,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,p=n.padding,h=n.tether,m=void 0===h||h,g=n.tetherOffset,v=void 0===g?0:g,y=me(t,{boundary:l,rootBoundary:c,padding:p,altBoundary:u}),b=J(t.placement),w=X(t.placement),E=!w,_=ee(b),x="x"===_?"y":"x",C=t.modifiersData.popperOffsets,k=t.rects.reference,O=t.rects.popper,T="function"===typeof v?v(Object.assign({},t.rects,{placement:t.placement})):v,N="number"===typeof T?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),j=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,M={x:0,y:0};if(C){if(i){var z,F="y"===_?P:A,B="y"===_?R:D,U="y"===_?"height":"width",q=C[_],$=q+y[F],Z=q-y[B],H=m?-O[U]/2:0,V=w===L?k[U]:O[U],W=w===L?-O[U]:-k[U],G=t.elements.arrow,Y=m&&G?S(G):{width:0,height:0},K=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},Q=K[F],te=K[B],ne=ve(0,k[U],Y[U]),re=E?k[U]/2-H-ne-Q-N.mainAxis:V-ne-Q-N.mainAxis,oe=E?-k[U]/2+H+ne+te+N.mainAxis:W+ne+te+N.mainAxis,ie=t.elements.arrow&&I(t.elements.arrow),ae=ie?"y"===_?ie.clientTop||0:ie.clientLeft||0:0,se=null!=(z=null==j?void 0:j[_])?z:0,le=q+oe-se,ce=ve(m?f($,q+re-se-ae):$,q,m?d(Z,le):Z);C[_]=ce,M[_]=ce-q}if(s){var ue,de="x"===_?P:A,fe="x"===_?R:D,pe=C[x],he="y"===x?"height":"width",ge=pe+y[de],ye=pe-y[fe],be=-1!==[P,A].indexOf(b),we=null!=(ue=null==j?void 0:j[x])?ue:0,Ee=be?ge:pe-k[he]-O[he]-we+N.altAxis,_e=be?pe+k[he]+O[he]-we-N.altAxis:ye,xe=m&&be?function(e,t,n){var r=ve(e,t,n);return r>n?n:r}(Ee,pe,_e):ve(m?Ee:ge,pe,m?_e:ye);C[x]=xe,M[x]=xe-pe}t.modifiersData[r]=M}},requiresIfExists:["offset"]};var be=function(e,t){return pe("number"!==typeof(e="function"===typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:he(e,M))};const we={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,s=J(n.placement),l=ee(s),c=[A,D].indexOf(s)>=0?"height":"width";if(i&&a){var u=be(o.padding,n),d=S(i),f="y"===l?P:A,p="y"===l?R:D,h=n.rects.reference[c]+n.rects.reference[l]-a[l]-n.rects.popper[c],m=a[l]-n.rects.reference[l],g=I(i),v=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,y=h/2-m/2,b=u[f],w=v-d[c]-u[p],E=v/2-d[c]/2+y,_=ve(b,E,w),x=l;n.modifiersData[r]=((t={})[x]=_,t.centerOffset=_-E,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!==typeof r||(r=t.elements.popper.querySelector(r)))&&ce(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ee(e,t,n){return void 0===n&&(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 _e(e){return[P,D,R,A].some((function(t){return e[t]>=0}))}var xe=K({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=void 0===o||o,a=r.resize,l=void 0===a||a,c=s(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach((function(e){e.addEventListener("scroll",n.update,Q)})),l&&c.addEventListener("resize",n.update,Q),function(){i&&u.forEach((function(e){e.removeEventListener("scroll",n.update,Q)})),l&&c.removeEventListener("resize",n.update,Q)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=te({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,i=n.adaptive,a=void 0===i||i,s=n.roundOffsets,l=void 0===s||s,c={placement:J(t.placement),variation:X(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,re(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,re(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})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];c(o)&&y(o)&&(Object.assign(o.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(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(e){var r=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});c(r)&&y(r)&&(Object.assign(r.style,i),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]},oe,ge,ye,we,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=me(t,{elementContext:"reference"}),s=me(t,{altBoundary:!0}),l=Ee(a,r),c=Ee(s,o,i),u=_e(l),d=_e(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}}]}),Se=n(77808),Ce=n.n(Se),ke=function(e){return e.reduce((function(e,t){var n=t[0],r=t[1];return e[n]=r,e}),{})},Oe="undefined"!==typeof window&&window.document&&window.document.createElement?r.useLayoutEffect:r.useEffect,Te=[],Ne=function(e,t,n){void 0===n&&(n={});var o=r.useRef(null),i={onFirstUpdate:n.onFirstUpdate,placement:n.placement||"bottom",strategy:n.strategy||"absolute",modifiers:n.modifiers||Te},s=r.useState({styles:{popper:{position:i.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),l=s[0],c=s[1],u=r.useMemo((function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(e){var t=e.state,n=Object.keys(t.elements);a.flushSync((function(){c({styles:ke(n.map((function(e){return[e,t.styles[e]||{}]}))),attributes:ke(n.map((function(e){return[e,t.attributes[e]]})))})}))},requires:["computeStyles"]}}),[]),d=r.useMemo((function(){var e={onFirstUpdate:i.onFirstUpdate,placement:i.placement,strategy:i.strategy,modifiers:[].concat(i.modifiers,[u,{name:"applyStyles",enabled:!1}])};return Ce()(o.current,e)?o.current||e:(o.current=e,e)}),[i.onFirstUpdate,i.placement,i.strategy,i.modifiers,u]),f=r.useRef();return Oe((function(){f.current&&f.current.setOptions(d)}),[d]),Oe((function(){if(null!=e&&null!=t){var r=(n.createPopper||xe)(e,t,d);return f.current=r,function(){r.destroy(),f.current=null}}}),[e,t,n.createPopper]),{state:f.current?f.current.state:null,styles:l.styles,attributes:l.attributes,update:f.current?f.current.update:null,forceUpdate:f.current?f.current.forceUpdate:null}},Ie=n(72644);const Pe=["bottom-start","bottom","bottom-end","top-start","top","top-end","right-start","right","right-end","left-start","left","left-end"],Re={name:"rtlOffsetFix",enabled:!0,phase:"main",requires:["offset"],fn(e){let{state:t}=e;var n;if(!t.placement.startsWith("top")&&!t.placement.startsWith("bottom"))return;const r=null===(n=t.modifiersData.offset)||void 0===n?void 0:n[t.placement];r&&(t.modifiersData.popperOffsets.x-=2*r.x)}};var De=n(95753),Ae=n(57107),je=n(89459),Me=n(36951),Le=n(3262),ze=n(31445);const Fe=(0,Me.Ge)("popup");function Be(e){let{styles:t,attributes:n,setArrowRef:o}=e;return r.createElement("div",Object.assign({"data-popper-arrow":!0,ref:o,className:Fe("arrow"),style:t},n),r.createElement("div",{className:Fe("arrow-content")},r.createElement("div",{className:Fe("arrow-circle-wrapper")},r.createElement("div",{className:Fe("arrow-circle",{left:!0})})),r.createElement("div",{className:Fe("arrow-circle-wrapper")},r.createElement("div",{className:Fe("arrow-circle",{right:!0})}))))}const Ue=(0,Me.Ge)("popup"),qe=8;function $e(e){let{keepMounted:t=!1,hasArrow:n=!1,offset:a=[0,4],open:s,placement:l,anchorRef:c,disableEscapeKeyDown:u,disableOutsideClick:d,disableLayer:f,style:p,className:h,contentClassName:m,modifiers:g=[],children:v,onEscapeKeyDown:y,onOutsideClick:b,onClose:w,onClick:E,onMouseEnter:_,onMouseLeave:x,onFocus:S,onBlur:C,onTransitionEnter:k,onTransitionEntered:O,onTransitionExit:T,onTransitionExited:N,disablePortal:I,container:P,strategy:R,qa:D,restoreFocus:A,restoreFocusRef:j,"aria-label":M,"aria-labelledby":L,role:z,id:F,focusTrap:B=!1,autoFocus:U=!1}=e;const q=r.useRef(null);(0,Le.s)({open:s,disableEscapeKeyDown:u,disableOutsideClick:d,onEscapeKeyDown:y,onOutsideClick:b,onClose:w,contentRefs:[c,q],enabled:!f,type:"popup"});const{attributes:$,styles:Z,setPopperRef:H,setArrowRef:V}=function(e){let{anchorRef:t,placement:n=Pe,offset:o,modifiers:i=[],strategy:a,altBoundary:s}=e;const[l,c]=r.useState(null),[u,d]=r.useState(null),f=(0,Ie.g)(),p=r.useMemo((()=>{let e=Array.isArray(n)?n:[n];return"rtl"===f&&(e=e.map((e=>e.replace(/(top|bottom)-(start|end)/g,((e,t,n)=>"start"===n?t+"-end":"end"===n?t+"-start":e))))),e}),[n,f]),{attributes:h,styles:m}=Ne(null===t||void 0===t?void 0:t.current,l,{strategy:a,modifiers:[{name:"arrow",options:{element:u}},{name:"offset",options:{offset:o,altBoundary:s}},{name:"flip",options:{fallbackPlacements:p.slice(1),altBoundary:s}},..."rtl"===f?[Re]:[],...i],placement:p[0]});return{attributes:h,styles:m,setPopperRef:c,setArrowRef:d}}({anchorRef:c,placement:l,offset:n?[a[0],a[1]+qe]:a,strategy:R,altBoundary:I,modifiers:[{name:"arrow",options:{enabled:n,padding:4}},{name:"preventOverflow",options:{padding:1,altBoundary:I}},...g]}),W=(0,i.c)(H,q,(0,je.e)()),G=(0,De.H)({enabled:Boolean(A&&s),restoreFocusRef:j});return r.createElement(o.Z,{nodeRef:q,in:s,addEndListener:e=>{var t;return null===(t=q.current)||void 0===t?void 0:t.addEventListener("animationend",e)},classNames:(0,ze.Y)(Ue),mountOnEnter:!t,unmountOnExit:!t,appear:!0,onEnter:()=>{null===k||void 0===k||k()},onEntered:()=>{null===O||void 0===O||O()},onExit:()=>{null===T||void 0===T||T()},onExited:()=>{null===N||void 0===N||N()}},r.createElement(Ae.h,{container:P,disablePortal:I},r.createElement("div",Object.assign({ref:W,style:Z.popper},$.popper,G,{className:Ue({open:s},h),"data-qa":D,id:F,role:z,"aria-label":M,"aria-labelledby":L}),r.createElement(je.i,{enabled:B&&s,disableAutoFocus:!U},r.createElement("div",{onClick:E,onMouseEnter:_,onMouseLeave:x,onFocus:S,onBlur:C,className:Ue("content",m),style:p,tabIndex:-1},n&&r.createElement(Be,{styles:Z.arrow,attributes:$.arrow,setArrowRef:V}),v)))))}},57107:(e,t,n)=>{"use strict";n.d(t,{h:()=>c});var r=n(68963),o=n(38886);const i=r.createContext({current:null});i.displayName="PortalContext";var a=n(78761),s=n(40797);const l=(0,n(36951).Ge)("portal");function c(e){let{container:t,children:n,disablePortal:c}=e;const u=function(){var e;const t=r.useContext(i);let n=null;return"object"===typeof window&&(n=window.document.body),null!==(e=t.current)&&void 0!==e?e:n}(),{scoped:d}=(0,s.T)(),f=null!==t&&void 0!==t?t:u;return c?r.createElement(r.Fragment,null,n):f?o.createPortal(d?r.createElement(a.f,{rootClassName:l("theme-wrapper"),scoped:!0},n):n,f):null}},79734:(e,t,n)=>{"use strict";n.d(t,{E:()=>y});var r=n(68963),o=n(89646),i=n(56407);const a=new Set(["id"]),s=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),l=/^(data-.*)$/;var c=n(92006);function u(e){var t,n;const{name:r,value:u,defaultValue:d,options:f=[],disabled:p,onUpdate:h,onChange:m,onFocus:g,onBlur:v}=e,y=(0,o.u)(),[b,w]=(0,i.z)(u,null!==(n=null!==d&&void 0!==d?d:null===(t=f[0])||void 0===t?void 0:t.value)&&void 0!==n?n:null,h),E=(0,c.q)({initialValue:b,onReset:w}),_=e=>{w(e.target.value),m&&m(e)},x=Object.assign(Object.assign({},function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{labelable:n,propNames:r}=t,o={};for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(a.has(i)||n&&s.has(i)||(null===r||void 0===r?void 0:r.has(i))||l.test(i))&&(o[i]=e[i]);return o}(e,{labelable:!0})),{role:"radiogroup","aria-disabled":p});return{containerProps:x,optionsProps:f.map((e=>({name:r||y,value:e.value,content:e.content,title:e.title,checked:b===String(e.value),disabled:p||e.disabled,onChange:_,onFocus:g,onBlur:v,ref:E})))}}var d=n(36951),f=n(48027),p=n(93404);var h=n(99742);const m=(0,d.Ge)("radio-button"),g=r.forwardRef((function(e,t){const{disabled:n=!1,content:a,children:s,title:l}=e,{checked:u,inputProps:d}=function(e){let{name:t,value:n,checked:a,defaultChecked:s,disabled:l,controlRef:u,controlProps:d,onUpdate:h,onChange:m,onFocus:g,onBlur:v,id:y}=e;const b=(0,o.u)(),w=r.useRef(null),[E,_]=(0,i.z)(a,null!==s&&void 0!==s&&s,h),x=(0,c.q)({initialValue:E,onReset:_}),S=(0,f.c)(u,w,x);return{checked:E,inputProps:Object.assign(Object.assign({},d),{name:t||b,value:n,id:y,onFocus:g,onBlur:v,disabled:l,type:"radio",onChange:e=>{_(e.target.checked),m&&m(e)},onChangeCapture:e=>{p.P.publish({componentId:"Radio",eventId:"click",domEvent:e})},checked:a,defaultChecked:s,"aria-checked":E,ref:S})}}(e),g=a||s,v=(0,h.yb)(g)||(0,h.Dc)(g);return r.createElement("label",{className:m("option",{disabled:n,checked:u}),ref:t,title:l},r.createElement("input",Object.assign({},d,{className:m("option-control")})),r.createElement("span",{className:m("option-outline")}),g&&r.createElement("span",{className:m("option-text",{icon:v})},g))})),v=(0,d.Ge)("radio-button"),y=r.forwardRef((function(e,t){const{size:n="m",width:o,style:i,className:a,qa:s,children:l}=e;let c=e.options;c||(c=r.Children.toArray(l).map((e=>{let{props:t}=e;return{value:t.value,content:t.content||t.children,disabled:t.disabled,title:t.title}})));const d=r.useRef(null),f=r.useRef(),p=r.useCallback((e=>{if(!e)return;const t=d.current;if(!t)return;const n=f.current;if(n&&n!==e){const r=e=>{t.style.left=`${e.offsetLeft}px`,t.style.width=`${e.offsetWidth}px`};r(n),t.hidden=!1,r(e)}f.current=e}),[]),{containerProps:h,optionsProps:m}=u(Object.assign(Object.assign({},e),{options:c}));return r.createElement("div",Object.assign({},h,{ref:t,style:i,className:v({size:n,width:o},a),"data-qa":s}),r.createElement("div",{ref:d,className:v("plate"),onTransitionEnd:e=>{e.currentTarget.hidden=!0},hidden:!0}),m.map((e=>r.createElement(g,Object.assign({},e,{key:e.value,ref:e.checked?p:void 0})))))}));y.Option=g},68291:(e,t,n)=>{"use strict";n.d(t,{r:()=>s});var r=n(68963),o=n(33180),i=n(24288);const a=(0,n(36951).Ge)("switch"),s=r.forwardRef((function(e,t){const{size:n="m",disabled:s=!1,content:l,children:c,title:u,style:d,className:f,qa:p}=e,{checked:h,inputProps:m}=(0,o.O)(Object.assign(Object.assign({},e),{controlProps:Object.assign(Object.assign({},e.controlProps),{role:"switch"})})),g=l||c,v=r.createElement("span",{className:a("indicator")},r.createElement("input",Object.assign({},m,{className:a("control")})),r.createElement("span",{className:a("outline")}),r.createElement("span",{className:a("slider")}));return r.createElement(i.J,{ref:t,title:u,style:d,size:n,disabled:s,className:a({size:n,disabled:s,checked:h},f),labelClassName:a("text"),qa:p,control:v},g)}))},8179:(e,t,n)=>{"use strict";n.d(t,{m:()=>p});var r=n(68963),o=n(36951);const i=r.createContext({activeTabId:void 0});i.displayName="TabsContext";var a=n(14979);const s=(0,o.Ge)("tabs");function l(e){let{id:t,className:n,title:o,meta:l,hint:c,icon:u,counter:d,label:f,active:p,disabled:h,hasOverflow:m,extraProps:g,onClick:v}=e;const{activeTabId:y}=r.useContext(i),b="boolean"===typeof p?p:y===t,w=r.useMemo((()=>void 0!==c?c:"string"===typeof o?o:void 0),[c,o]);return r.createElement("div",Object.assign({},g,{role:"tab","aria-selected":b,"aria-disabled":!0===h,tabIndex:h?-1:0,className:s("item",{active:b,disabled:h,overflow:Boolean(m)},n),title:w,onClick:()=>{v(t)},onKeyDown:e=>{" "===e.key&&v(t)}}),r.createElement("div",{className:s("item-content")},u&&r.createElement("div",{className:s("item-icon")},u),r.createElement("div",{className:s("item-title")},o||t),"number"===typeof d&&r.createElement("div",{className:s("item-counter")},d),f&&r.createElement(a._,{className:s("item-label"),theme:f.theme},f.content)),l&&r.createElement("div",{className:s("item-meta")},l))}l.displayName="Tabs.Item";const c=(0,o.Ge)("tabs");var u;!function(e){e.Horizontal="horizontal",e.Vertical="vertical"}(u||(u={}));const d=[],f=r.forwardRef(((e,t)=>{let{direction:n=u.Horizontal,size:o="m",activeTab:a,allowNotSelected:s=!1,items:f=d,children:p,className:h,onSelectTab:m,wrapTo:g,qa:v}=e;const y=((e,t,n)=>{var r;return e||(t||0===(null===n||void 0===n?void 0:n.length)||null===(r=null===n||void 0===n?void 0:n[0])||void 0===r?void 0:r.id)})(a,s,f),b=r.useMemo((()=>({activeTabId:y})),[y]),w=r.useMemo((()=>{const e=e=>{m&&m(e)};return f.map(((t,n)=>{const o=r.createElement(l,Object.assign({key:t.id},t,{onClick:e}));return g?g(t,o,n):o}))}),[f,m,g]);return r.createElement("div",{role:"tablist",className:c({direction:n,size:o},h),"data-qa":v,ref:t},r.createElement(i.Provider,{value:b},p||w))}));f.displayName="Tabs";const p=Object.assign(f,{Item:l})},10288:(e,t,n)=>{"use strict";n.d(t,{x:()=>l});var r=n(95097),o=n(68963),i=n(39137);const a=(0,n(36951).Ge)("text"),s=(e,t)=>{let{variant:n="body-1",ellipsis:r,ellipsisLines:o,whiteSpace:i,wordBreak:s}=e;return a({variant:n,ellipsis:r,ws:i,wb:s,"ellipsis-lines":o},t)},l=o.forwardRef((function(e,t){var{as:n,children:a,variant:l,className:c,ellipsis:u,color:d,whiteSpace:f,wordBreak:p,ellipsisLines:h,style:m,qa:g}=e,v=(0,r._T)(e,["as","children","variant","className","ellipsis","color","whiteSpace","wordBreak","ellipsisLines","style","qa"]);const y=n||"span",b=Object.assign({},m);return"number"===typeof h&&(b.WebkitLineClamp=h),o.createElement(y,Object.assign({ref:t,className:s({variant:l,ellipsis:u,whiteSpace:f,wordBreak:p,ellipsisLines:"number"===typeof h},d?(0,i.V)({color:d},c):c),style:b,"data-qa":g},v),a)}));l.displayName="Text"},39137:(e,t,n)=>{"use strict";n.d(t,{V:()=>o});const r=(0,n(36951).Ge)("color-text"),o=(e,t)=>{let{color:n}=e;return r({color:n},t)}},77264:(e,t,n)=>{"use strict";n.d(t,{o:()=>j});var r=n(68963),o=n(93316),i=n(56407),a=n(48027),s=n(89646),l=n(92006),c=n(54466),u=n.n(c),d=n(43832),f=n.n(d);const p=16,h=2;function m(e,t){const[n,o]=r.useState({width:0,height:0});return r.useLayoutEffect((()=>{if(!(null===e||void 0===e?void 0:e.current))return;const t=new ResizeObserver(f()((e=>{if(!Array.isArray(e))return;const t=e[0];if(t.borderBoxSize){const e=t.borderBoxSize[0]?t.borderBoxSize[0]:t.borderBoxSize;o({width:u()(e.inlineSize,h),height:u()(e.blockSize,h)})}else{const e=t.target;o({width:u()(e.offsetWidth,h),height:u()(e.offsetHeight,h)})}}),p));return t.observe(e.current),()=>{t.disconnect()}}),[e,t]),n}var g=n(88776),v=n(68330),y=n(36951),b=n(77280),w=n(17176),E=n(54973);const _=JSON.parse('{"label_clear-button":"Clear"}'),x=JSON.parse('{"label_clear-button":"\u041e\u0447\u0438\u0441\u0442\u0438\u0442\u044c"}'),S=(0,E.e)({en:_,ru:x},`${y.A7}clear-button`),C=(0,y.Ge)("clear-button"),k=e=>{switch(e){case"s":return"xs";case"m":return"s";case"l":return"m";case"xl":return"l";default:throw new Error(`Unknown text input size "${e}"`)}},O=e=>{const{size:t,className:n,onClick:o}=e;return r.createElement(w.z,{size:t,className:C(null,n),onClick:o,extraProps:{onMouseDown:e=>{e.preventDefault()},"aria-label":S("label_clear-button")}},r.createElement(g.J,{data:b.Z,size:16}))};var T=n(85636),N=n(97908);const I=(0,y.Ge)("text-input"),P=r.forwardRef((function(e,t){let{placement:n,children:o,onClick:i}=e;return o?r.createElement("div",{ref:t,className:I("additional-content",{placement:n}),onClick:i},o):null})),R=(0,y.Ge)("text-input");function D(e){const{controlProps:t,controlRef:n,type:o,name:i,id:a,tabIndex:s,autoComplete:l,placeholder:c,value:u,defaultValue:d,autoFocus:f,disabled:p,onChange:h,onFocus:m,onBlur:g,onKeyDown:v,onKeyUp:y,onKeyPress:b}=e;return r.createElement("input",Object.assign({},t,{ref:n,className:R("control",{type:"input"},t.className),type:o,name:i,id:a,tabIndex:s,placeholder:c,value:u,defaultValue:d,autoFocus:f,autoComplete:l,onChange:h,onFocus:m,onBlur:g,onKeyDown:v,onKeyUp:y,onKeyPress:b,disabled:null!==p&&void 0!==p?p:t.disabled}))}const A=(0,y.Ge)("text-input"),j=r.forwardRef((function(e,t){const{view:n="normal",size:c="m",pin:u="round-round",name:d,value:f,defaultValue:p,label:h,disabled:y=!1,hasClear:b=!1,error:w,errorMessage:E,errorPlacement:_="outside",validationState:x,autoComplete:S,id:C,tabIndex:I,style:R,className:j,qa:M,controlProps:L,leftContent:z,rightContent:F,startContent:B=z,endContent:U=F,note:q,onUpdate:$,onChange:Z}=e,{errorMessage:H,errorPlacement:V,validationState:W}=(0,N.II)({error:w,errorMessage:E,errorPlacement:_,validationState:x}),[G,Y]=(0,i.z)(f,null!==p&&void 0!==p?p:"",$),K=r.useRef(null),Q=(0,l.q)({initialValue:G,onReset:Y}),J=(0,a.c)(e.controlRef,K,Q),X=r.useRef(null),ee=r.useRef(null),te=(0,N.O_)(W),ne=Boolean(h),re="invalid"===W&&Boolean(H)&&"outside"===V,oe="invalid"===W&&Boolean(H)&&"inside"===V,ie=Boolean(b&&!y&&G),ae=Boolean(B),se=Boolean(U),le=ne&&!C&&!d&&"undefined"===typeof S,ce=(0,s.u)(),ue=ne?C||ce:C,de=m(ne?X:null,c),fe=m(ae?ee:null,c),pe=(0,s.u)(),he=(0,s.u)(),me=[null===L||void 0===L?void 0:L["aria-describedby"],q?he:void 0,re?pe:void 0].filter(Boolean).join(" "),ge=Object.assign(Object.assign({},L),{style:Object.assign(Object.assign({},null===L||void 0===L?void 0:L.style),ne&&de.width?{paddingInlineStart:`${de.width}px`}:{}),"aria-invalid":"invalid"===W||void 0,"aria-describedby":me||void 0}),ve={id:ue,tabIndex:I,name:d,onChange(e){Y(e.target.value),Z&&Z(e)},autoComplete:le?"off":(0,N.xp)(S),controlProps:ge},ye=e=>{var t,n;const r=!e.currentTarget.contains(document.activeElement)&&e.currentTarget.contains(e.target),o=Boolean(null===(t=document.getSelection())||void 0===t?void 0:t.toString());r&&!o&&(null===(n=K.current)||void 0===n||n.focus())};return r.createElement("span",{ref:t,style:R,className:A({view:n,size:c,disabled:y,state:te,pin:"clear"===n?void 0:u,"has-clear":ie,"has-start-content":ae,"has-end-content":ie||se},j),"data-qa":M},r.createElement("span",{className:A("content")},ae&&r.createElement(P,{ref:ee,placement:"start",onClick:ye},B),ne&&r.createElement("label",{ref:X,style:{insetInlineStart:ae?fe.width:void 0,maxWidth:`calc(50% - ${fe.width}px)`},className:A("label"),title:h,htmlFor:ue},`${h}`),r.createElement(D,Object.assign({},e,ve,{controlRef:J})),ie&&r.createElement(O,{size:k(c),onClick:e=>{Y("");const t=K.current;if(t){const n=Object.create(e);n.target=t,n.currentTarget=t,t.value="",Z&&Z(n)}},className:A("clear",{size:c})}),se&&r.createElement(P,{placement:"end",onClick:ye},U),oe&&r.createElement(v.J,{content:H},r.createElement("span",{"data-qa":N.eP},r.createElement(g.J,{data:o.Z,className:A("error-icon"),size:"s"===c?12:16})))),r.createElement(T.Z,{note:q,errorMessage:re?H:null,noteId:he,errorMessageId:pe}))}))},85636:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(68963),o=n(36951),i=n(97908);const a=(0,o.Ge)("outer-additional-content"),s=e=>{let{errorMessage:t,note:n,noteId:o,errorMessageId:s}=e;return t||n?r.createElement("div",{className:a()},t&&r.createElement("div",{className:a("error"),id:s,"data-qa":i.fz},t),n&&r.createElement("div",{className:a("note"),id:o},n)):null}},97908:(e,t,n)=>{"use strict";n.d(t,{II:()=>s,O_:()=>a,eP:()=>o,fz:()=>r,xp:()=>i});const r="control-error-message-qa",o="control-error-icon-qa",i=e=>"boolean"===typeof e?e?"on":"off":e,a=e=>"invalid"===e?"error":void 0,s=e=>{const{error:t,errorMessage:n,errorPlacement:r,validationState:o}=e;let i,a;return"string"===typeof t&&(i=t),n&&(i=n),("invalid"===o||Boolean(t))&&(a="invalid"),{errorMessage:i,errorPlacement:r,validationState:a}}},28989:(e,t,n)=>{"use strict";n.d(t,{x:()=>l});var r=n(95097),o=n(68963),i=n(36951),a=n(95216);const s=(0,i.Ge)("box"),l=o.forwardRef((function(e,t){var{as:n,children:i,qa:l,className:c,width:u,height:d,minWidth:f,minHeight:p,maxHeight:h,maxWidth:m,position:g,style:v,spacing:y,overflow:b}=e,w=(0,r._T)(e,["as","children","qa","className","width","height","minWidth","minHeight","maxHeight","maxWidth","position","style","spacing","overflow"]);const E=n||"div",_=Object.assign({width:u,height:d,minWidth:f,minHeight:p,maxHeight:h,maxWidth:m,position:g},v);return o.createElement(E,Object.assign({},w,{"data-qa":l,style:_,ref:t,className:s({overflow:b},y?(0,a.sp)(y,c):c)}),i)}))},77796:(e,t,n)=>{"use strict";n.d(t,{k:()=>u});var r=n(95097),o=n(68963),i=n(36951),a=n(28989),s=n(35490),l=n(34293);const c=(0,i.Ge)("flex"),u=o.forwardRef((function(e,t){const{as:n,direction:i,grow:u,basis:d,children:f,style:p,alignContent:h,alignItems:m,alignSelf:g,justifyContent:v,justifyItems:y,justifySelf:b,shrink:w,wrap:E,inline:_,gap:x,gapRow:S,className:C,space:k,centerContent:O}=e,T=(0,r._T)(e,["as","direction","grow","basis","children","style","alignContent","alignItems","alignSelf","justifyContent","justifyItems","justifySelf","shrink","wrap","inline","gap","gapRow","className","space","centerContent"]),N=n||"div",{getClosestMediaProps:I,theme:{spaceBaseSize:P}}=(()=>{const{activeMediaQuery:e,theme:t}=o.useContext(s.V),{isMediaActive:n,getClosestMediaProps:r}=o.useMemo((()=>({isMediaActive:(0,l.ur)(e),getClosestMediaProps:(0,l.GD)(e)})),[e]);return{theme:t,activeMediaQuery:e,isMediaActive:n,getClosestMediaProps:r}})(),R=e=>"object"===typeof e&&null!==e?I(e):e,D=R(x),A=D?P*Number(D):void 0,j=R(S)||D,M=j?P*Number(j):void 0,L=R(k),z=x||S||!L?void 0:(0,l.cA)(L);return o.createElement(a.x,Object.assign({as:N,className:c({"center-content":O,inline:_,s:z},C),ref:t,style:Object.assign({flexDirection:R(i),flexGrow:!0===u?1:u,flexWrap:!0===E?"wrap":E,flexBasis:d,flexShrink:w,columnGap:A,rowGap:M,alignContent:R(h),alignItems:R(m),alignSelf:R(g),justifyContent:R(v),justifyItems:R(y),justifySelf:R(b)},p)},T),k?o.Children.map(f,(e=>e?o.createElement("div",{className:c("wr")},e):e)):f)}))},14399:(e,t,n)=>{"use strict";n.d(t,{A:()=>o,Q:()=>r});const r={.5:"half"},o={breakpoints:{s:576,m:768,l:1080,xl:1200,xxl:1400,xxxl:1920},spaceBaseSize:4,components:{container:{gutters:"3",media:{l:{gutters:"5"}}}}}},35490:(e,t,n)=>{"use strict";n.d(t,{V:()=>i});var r=n(68963),o=n(14399);const i=r.createContext({theme:o.A,activeMediaQuery:"s"})},95216:(e,t,n)=>{"use strict";n.d(t,{sp:()=>s,W:()=>a});var r=n(36951),o=n(34293);const i=(0,r.Ge)("s"),a=(e,t)=>{const n=[];for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)){const t=e[r];"undefined"!==typeof t&&n.push(i(`${r}_${(0,o.cA)(t)}`))}return t&&n.push(t),n.join(" ")},s=a},34293:(e,t,n)=>{"use strict";n.d(t,{GD:()=>s,cA:()=>l,ur:()=>i});var r=n(14399);const o={s:0,m:1,l:2,xl:3,xxl:4,xxxl:5},i=e=>t=>e in o&&o[e]-o[t]>=0,a=["s","m","l","xl","xxl","xxxl"],s=e=>function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!e)return;let n=e;for(;n;){if(t[n])return t[n];n=a[o[n]-1]}},l=e=>e in r.Q?r.Q[e]:String(e)},84584:(e,t,n)=>{"use strict";n.d(t,{z:()=>i});var r=n(68963);const o={mobile:!1,platform:n(66573).t.BROWSER,useHistory:()=>({action:"",replace(){},push(){},goBack(){}}),useLocation:()=>({pathname:"",search:"",hash:""})},i=r.createContext(o)},66573:(e,t,n)=>{"use strict";n.d(t,{t:()=>r});var r,o=n(36951);!function(e){e.IOS="ios",e.ANDROID="android",e.BROWSER="browser"}(r||(r={}));(0,o.Ge)("root")({mobile:!0}).split(/\s+/)[1]},79805:(e,t,n)=>{"use strict";n.d(t,{X:()=>i});var r=n(68963),o=n(84584);function i(){return r.useContext(o.z).mobile}},57840:(e,t,n)=>{"use strict";n.d(t,{N:()=>r});const r=n(68963).createContext(void 0);r.displayName="ThemeContext"},78761:(e,t,n)=>{"use strict";n.d(t,{f:()=>O});var r=n(68963),o=n(35490);const i={media:"",matches:!1,onchange:()=>{},addListener:()=>{},removeListener:()=>{},addEventListener:()=>{},removeEventListener:()=>{},dispatchEvent:e=>!0},a=e=>"undefined"===typeof window||"function"!==typeof window.matchMedia?i:window.matchMedia(e);class s{constructor(e){this.queryListsDecl=[];const t={s:`(max-width: ${(n=e).m-1}px)`,m:`(min-width: ${n.m}px) and (max-width: ${n.l-1}px)`,l:`(min-width: ${n.l}px) and (max-width: ${n.xl-1}px)`,xl:`(min-width: ${n.xl}px) and (max-width: ${n.xxl-1}px)`,xxl:`(min-width: ${n.xxl}px) and (max-width: ${n.xxxl-1}px)`,xxxl:`(min-width: ${n.xxxl}px)`};var n;this.queryListsDecl=[["s",a(t.s)],["m",a(t.m)],["l",a(t.l)],["xl",a(t.xl)],["xxl",a(t.xxl)],["xxxl",a(t.xxxl)]]}getCurrentActiveMedia(){const e=this.queryListsDecl.find((e=>{let[t,n]=e;return n.matches}));return e?e[0]:"s"}addListeners(e){this.queryListsDecl.forEach((t=>{let[n,r]=t;return r.addEventListener("change",e)}))}removeListeners(e){this.queryListsDecl.forEach((t=>{let[n,r]=t;return r.removeEventListener("change",e)}))}}const l=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"s";const[n,o]=r.useState(t);return r.useLayoutEffect((()=>{const t=new s(e),n=()=>{o(t.getCurrentActiveMedia())};return t.addListeners(n),n(),()=>{t.removeListeners(n)}}),[e]),n};var c=n(3186),u=n.n(c);function d(e){let{children:t,config:n,initialMediaQuery:i}=e;const a=r.useContext(o.V),s=r.useMemo((()=>function(e){let{theme:t,override:n}=e;return u()(t,n)}({theme:a.theme,override:n})),[n,a.theme]),c=l(s.breakpoints,i),d=r.useMemo((()=>({activeMediaQuery:c,theme:s})),[c,s]);return r.createElement(o.V.Provider,{value:d},t)}var f=n(36951),p=n(57840);const h=r.createContext(void 0);h.displayName="ThemeSettingsContext";const m="system",g="light",v="dark",y="root",b="ltr",w=(0,f.Ge)(y),E=w();function _(e){let{theme:t,nativeScrollbar:n=!1,className:r,prevClassName:o}=e;const i=document.body;if(i.classList.contains(E)||i.classList.add(E),o){o.split(" ").forEach((e=>{e&&i.classList.remove(e)}))}if(r){r.split(" ").forEach((e=>{e&&!i.classList.contains(e)&&i.classList.add(e)}))}[...i.classList].forEach((e=>{e.startsWith((0,f.Ui)(w({theme:!0})))&&i.classList.remove(e)})),i.classList.add((0,f.Ui)(w({theme:t})));const a={"native-scrollbar":n};for(const[s,l]of Object.entries(a))i.classList.toggle((0,f.Ui)(w({[s]:!0})),l)}const x="undefined"!==typeof window&&"function"===typeof window.matchMedia,S=()=>window.matchMedia("(prefers-color-scheme: dark)");function C(){const[e,t]=r.useState(x&&S().matches?"dark":"light");return r.useEffect((()=>{if(!x)return;const e=function(e,t){const n="function"!==typeof e.addEventListener;return n?e.addListener(t):e.addEventListener("change",t),()=>{n?e.removeListener(t):e.removeEventListener("change",t)}}(S(),(function(e){t(e.matches?"dark":"light")}));return()=>e()}),[]),e}const k=(0,f.Ge)(y);function O(e){let{theme:t,systemLightTheme:n,systemDarkTheme:o,direction:i,nativeScrollbar:a,scoped:s=!1,rootClassName:l="",children:c,layout:u}=e;var f,y,w,E;const x=r.useContext(p.N),S=r.useContext(h),O=void 0!==x||s,T=null!==(f=null===x||void 0===x?void 0:x.theme)&&void 0!==f?f:m,N=null!==t&&void 0!==t?t:T,I=null!==(y=null!==n&&void 0!==n?n:null===S||void 0===S?void 0:S.systemLightTheme)&&void 0!==y?y:g,P=null!==(w=null!==o&&void 0!==o?o:null===S||void 0===S?void 0:S.systemDarkTheme)&&void 0!==w?w:v,R=null!==(E=null===x||void 0===x?void 0:x.direction)&&void 0!==E?E:b,D=null!==i&&void 0!==i?i:R,A="light"===C()?I:P,j="system"===N?A:N,M=r.useRef("");r.useLayoutEffect((()=>{O||(_({theme:j,nativeScrollbar:a,className:l,prevClassName:M.current}),function(e){const t=document.body;e===b?t.removeAttribute("dir"):t.setAttribute("dir",e)}(D),M.current=l)}),[O,j,D,a,l]);const L=r.useMemo((()=>({theme:N,themeValue:j,direction:D,scoped:O})),[N,j,D,O]),z=r.useMemo((()=>({systemLightTheme:I,systemDarkTheme:P})),[I,P]);return r.createElement(d,Object.assign({},u),r.createElement(p.N.Provider,{value:L},r.createElement(h.Provider,{value:z},O?r.createElement("div",{className:k({theme:j,"native-scrollbar":!1!==a},l),dir:D},c):c)))}O.displayName="ThemeProvider"},72644:(e,t,n)=>{"use strict";n.d(t,{g:()=>o});var r=n(40797);function o(){return(0,r.T)().direction}},40797:(e,t,n)=>{"use strict";n.d(t,{T:()=>i});var r=n(68963),o=n(57840);function i(){const e=r.useContext(o.N);if(void 0===e)throw new Error("useTheme* hooks must be used within ThemeProvider");return e}},64270:(e,t,n)=>{"use strict";n.d(t,{C:()=>o});var r=n(40797);function o(){return(0,r.T)().themeValue}},89459:(e,t,n)=>{"use strict";n.d(t,{i:()=>_,e:()=>x});var r=n(68963),o=n(35503);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var l=function(e,t){if(e.length>0){var n=e[e.length-1];n!==t&&n.pause()}var r=e.indexOf(t);-1===r||e.splice(r,1),e.push(t)},c=function(e,t){var n=e.indexOf(t);-1!==n&&e.splice(n,1),e.length>0&&e[e.length-1].unpause()},u=function(e){return"Tab"===(null===e||void 0===e?void 0:e.key)||9===(null===e||void 0===e?void 0:e.keyCode)},d=function(e){return u(e)&&!e.shiftKey},f=function(e){return u(e)&&e.shiftKey},p=function(e){return setTimeout(e,0)},h=function(e,t){var n=-1;return e.every((function(e,r){return!t(e)||(n=r,!1)})),n},m=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return"function"===typeof e?e.apply(void 0,n):e},g=function(e){return e.target.shadowRoot&&"function"===typeof e.composedPath?e.composedPath()[0]:e.target},v=[],y=function(e,t){var n,r=(null===t||void 0===t?void 0:t.document)||document,i=(null===t||void 0===t?void 0:t.trapStack)||v,s=a({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:d,isKeyBackward:f},t),y={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},b=function(e,t,n){return e&&void 0!==e[t]?e[t]:s[n||t]},w=function(e,t){var n="function"===typeof(null===t||void 0===t?void 0:t.composedPath)?t.composedPath():void 0;return y.containerGroups.findIndex((function(t){var r=t.container,o=t.tabbableNodes;return r.contains(e)||(null===n||void 0===n?void 0:n.includes(r))||o.find((function(t){return t===e}))}))},E=function(e){var t=s[e];if("function"===typeof t){for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];t=t.apply(void 0,o)}if(!0===t&&(t=void 0),!t){if(void 0===t||!1===t)return t;throw new Error("`".concat(e,"` was specified but was not a node, or did not return a node"))}var a=t;if("string"===typeof t&&!(a=r.querySelector(t)))throw new Error("`".concat(e,"` as selector refers to no known node"));return a},_=function(){var e=E("initialFocus");if(!1===e)return!1;if(void 0===e||!(0,o.EB)(e,s.tabbableOptions))if(w(r.activeElement)>=0)e=r.activeElement;else{var t=y.tabbableGroups[0];e=t&&t.firstTabbableNode||E("fallbackFocus")}if(!e)throw new Error("Your focus-trap needs to have at least one focusable element");return e},x=function(){if(y.containerGroups=y.containers.map((function(e){var t=(0,o.ht)(e,s.tabbableOptions),n=(0,o.KW)(e,s.tabbableOptions),r=t.length>0?t[0]:void 0,i=t.length>0?t[t.length-1]:void 0,a=n.find((function(e){return(0,o.Wq)(e)})),l=n.slice().reverse().find((function(e){return(0,o.Wq)(e)})),c=!!t.find((function(e){return(0,o.pN)(e)>0}));return{container:e,tabbableNodes:t,focusableNodes:n,posTabIndexesFound:c,firstTabbableNode:r,lastTabbableNode:i,firstDomTabbableNode:a,lastDomTabbableNode:l,nextTabbableNode:function(e){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=t.indexOf(e);return i<0?r?n.slice(n.indexOf(e)+1).find((function(e){return(0,o.Wq)(e)})):n.slice(0,n.indexOf(e)).reverse().find((function(e){return(0,o.Wq)(e)})):t[i+(r?1:-1)]}}})),y.tabbableGroups=y.containerGroups.filter((function(e){return e.tabbableNodes.length>0})),y.tabbableGroups.length<=0&&!E("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(y.containerGroups.find((function(e){return e.posTabIndexesFound}))&&y.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},S=function e(t){var n=t.activeElement;if(n)return n.shadowRoot&&null!==n.shadowRoot.activeElement?e(n.shadowRoot):n},C=function e(t){!1!==t&&t!==S(document)&&(t&&t.focus?(t.focus({preventScroll:!!s.preventScroll}),y.mostRecentlyFocusedNode=t,function(e){return e.tagName&&"input"===e.tagName.toLowerCase()&&"function"===typeof e.select}(t)&&t.select()):e(_()))},k=function(e){var t=E("setReturnFocus",e);return t||!1!==t&&e},O=function(e){var t=e.target,n=e.event,r=e.isBackward,i=void 0!==r&&r;t=t||g(n),x();var a=null;if(y.tabbableGroups.length>0){var l=w(t,n),c=l>=0?y.containerGroups[l]:void 0;if(l<0)a=i?y.tabbableGroups[y.tabbableGroups.length-1].lastTabbableNode:y.tabbableGroups[0].firstTabbableNode;else if(i){var d=h(y.tabbableGroups,(function(e){var n=e.firstTabbableNode;return t===n}));if(d<0&&(c.container===t||(0,o.EB)(t,s.tabbableOptions)&&!(0,o.Wq)(t,s.tabbableOptions)&&!c.nextTabbableNode(t,!1))&&(d=l),d>=0){var f=0===d?y.tabbableGroups.length-1:d-1,p=y.tabbableGroups[f];a=(0,o.pN)(t)>=0?p.lastTabbableNode:p.lastDomTabbableNode}else u(n)||(a=c.nextTabbableNode(t,!1))}else{var m=h(y.tabbableGroups,(function(e){var n=e.lastTabbableNode;return t===n}));if(m<0&&(c.container===t||(0,o.EB)(t,s.tabbableOptions)&&!(0,o.Wq)(t,s.tabbableOptions)&&!c.nextTabbableNode(t))&&(m=l),m>=0){var v=m===y.tabbableGroups.length-1?0:m+1,b=y.tabbableGroups[v];a=(0,o.pN)(t)>=0?b.firstTabbableNode:b.firstDomTabbableNode}else u(n)||(a=c.nextTabbableNode(t))}}else a=E("fallbackFocus");return a},T=function(e){var t=g(e);w(t,e)>=0||(m(s.clickOutsideDeactivates,e)?n.deactivate({returnFocus:s.returnFocusOnDeactivate}):m(s.allowOutsideClick,e)||e.preventDefault())},N=function(e){var t=g(e),n=w(t,e)>=0;if(n||t instanceof Document)n&&(y.mostRecentlyFocusedNode=t);else{var r;e.stopImmediatePropagation();var i=!0;if(y.mostRecentlyFocusedNode)if((0,o.pN)(y.mostRecentlyFocusedNode)>0){var a=w(y.mostRecentlyFocusedNode),l=y.containerGroups[a].tabbableNodes;if(l.length>0){var c=l.findIndex((function(e){return e===y.mostRecentlyFocusedNode}));c>=0&&(s.isKeyForward(y.recentNavEvent)?c+1<l.length&&(r=l[c+1],i=!1):c-1>=0&&(r=l[c-1],i=!1))}}else y.containerGroups.some((function(e){return e.tabbableNodes.some((function(e){return(0,o.pN)(e)>0}))}))||(i=!1);else i=!1;i&&(r=O({target:y.mostRecentlyFocusedNode,isBackward:s.isKeyBackward(y.recentNavEvent)})),C(r||(y.mostRecentlyFocusedNode||_()))}y.recentNavEvent=void 0},I=function(e){if(("Escape"===(null===(t=e)||void 0===t?void 0:t.key)||"Esc"===(null===t||void 0===t?void 0:t.key)||27===(null===t||void 0===t?void 0:t.keyCode))&&!1!==m(s.escapeDeactivates,e))return e.preventDefault(),void n.deactivate();var t;(s.isKeyForward(e)||s.isKeyBackward(e))&&function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];y.recentNavEvent=e;var n=O({event:e,isBackward:t});n&&(u(e)&&e.preventDefault(),C(n))}(e,s.isKeyBackward(e))},P=function(e){var t=g(e);w(t,e)>=0||m(s.clickOutsideDeactivates,e)||m(s.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())},R=function(){if(y.active)return l(i,n),y.delayInitialFocusTimer=s.delayInitialFocus?p((function(){C(_())})):C(_()),r.addEventListener("focusin",N,!0),r.addEventListener("mousedown",T,{capture:!0,passive:!1}),r.addEventListener("touchstart",T,{capture:!0,passive:!1}),r.addEventListener("click",P,{capture:!0,passive:!1}),r.addEventListener("keydown",I,{capture:!0,passive:!1}),n},D=function(){if(y.active)return r.removeEventListener("focusin",N,!0),r.removeEventListener("mousedown",T,!0),r.removeEventListener("touchstart",T,!0),r.removeEventListener("click",P,!0),r.removeEventListener("keydown",I,!0),n},A="undefined"!==typeof window&&"MutationObserver"in window?new MutationObserver((function(e){e.some((function(e){return Array.from(e.removedNodes).some((function(e){return e===y.mostRecentlyFocusedNode}))}))&&C(_())})):void 0,j=function(){A&&(A.disconnect(),y.active&&!y.paused&&y.containers.map((function(e){A.observe(e,{subtree:!0,childList:!0})})))};return(n={get active(){return y.active},get paused(){return y.paused},activate:function(e){if(y.active)return this;var t=b(e,"onActivate"),n=b(e,"onPostActivate"),o=b(e,"checkCanFocusTrap");o||x(),y.active=!0,y.paused=!1,y.nodeFocusedBeforeActivation=r.activeElement,null===t||void 0===t||t();var i=function(){o&&x(),R(),j(),null===n||void 0===n||n()};return o?(o(y.containers.concat()).then(i,i),this):(i(),this)},deactivate:function(e){if(!y.active)return this;var t=a({onDeactivate:s.onDeactivate,onPostDeactivate:s.onPostDeactivate,checkCanReturnFocus:s.checkCanReturnFocus},e);clearTimeout(y.delayInitialFocusTimer),y.delayInitialFocusTimer=void 0,D(),y.active=!1,y.paused=!1,j(),c(i,n);var r=b(t,"onDeactivate"),o=b(t,"onPostDeactivate"),l=b(t,"checkCanReturnFocus"),u=b(t,"returnFocus","returnFocusOnDeactivate");null===r||void 0===r||r();var d=function(){p((function(){u&&C(k(y.nodeFocusedBeforeActivation)),null===o||void 0===o||o()}))};return u&&l?(l(k(y.nodeFocusedBeforeActivation)).then(d,d),this):(d(),this)},pause:function(e){if(y.paused||!y.active)return this;var t=b(e,"onPause"),n=b(e,"onPostPause");return y.paused=!0,null===t||void 0===t||t(),D(),j(),null===n||void 0===n||n(),this},unpause:function(e){if(!y.paused||!y.active)return this;var t=b(e,"onUnpause"),n=b(e,"onPostUnpause");return y.paused=!1,null===t||void 0===t||t(),x(),R(),j(),null===n||void 0===n||n(),this},updateContainerElements:function(e){var t=[].concat(e).filter(Boolean);return y.containers=t.map((function(e){return"string"===typeof e?r.querySelector(e):e})),y.active&&x(),j(),this}}).updateContainerElements(e),n},b=n(48027),w=n(89646);const E=r.createContext(void 0);function _(e){let{children:t,enabled:n=!0,disableAutoFocus:o,autoFocus:i=!0}=e;const a=r.useRef(null),s=r.useRef(!o&&i);r.useEffect((()=>{s.current=!o&&i}));const l=r.useRef(),c=r.useRef({}),u=r.useCallback((()=>{var e;null===(e=l.current)||void 0===e||e.updateContainerElements([a.current,...Object.values(c.current)])}),[]),d=r.useMemo((()=>({addNode(e,t){var n;c.current[e]===t||(null===(n=a.current)||void 0===n?void 0:n.contains(t))||(c.current[e]=t,u())},removeNode(e){c.current[e]&&(delete c.current[e],u())}})),[u]),f=r.useCallback((e=>{var t;n&&e?(a.current=e,l.current||(l.current=y([],{initialFocus:()=>s.current&&function(e){if(!(document.activeElement instanceof HTMLElement)||!e.contains(document.activeElement))return e.hasAttribute("tabIndex")||e.setAttribute("tabIndex","-1"),e;return document.activeElement}(e),fallbackFocus:()=>e,returnFocusOnDeactivate:!1,escapeDeactivates:!1,clickOutsideDeactivates:!1,allowOutsideClick:!0})),u(),l.current.activate()):(null===(t=l.current)||void 0===t||t.deactivate(),a.current=null)}),[n,u]),p=r.Children.only(t);if(!r.isValidElement(p))throw new Error("Children must contain only one valid element");const h=p.ref,m=(0,b.c)(f,h);return r.createElement(E.Provider,{value:d},r.cloneElement(p,{ref:m}))}function x(){const e=r.useContext(E),t=(0,w.u)();return r.useMemo((()=>{if(e)return n=>{n?e.addNode(t,n):e.removeNode(t)}}),[e,t])}},54973:(e,t,n)=>{"use strict";n.d(t,{e:()=>s});var r=n(31329),o=n(24205);const i=(0,o.iE)().lang,a=new r.mb({lang:i,fallbackLang:i});function s(e,t){return Object.entries(e).forEach((e=>{let[n,r]=e;return a.registerKeyset(n,t,r)})),a.keyset(t)}(0,o.Pe)((e=>{a.setLang(e.lang)}))},36951:(e,t,n)=>{"use strict";n.d(t,{A7:()=>o,Ge:()=>i,Ui:()=>a});var r=n(5247);const o="g-",i=((0,r.withNaming)({e:"__",m:"_"}),(0,r.withNaming)({n:o,e:"__",m:"_"}));function a(e){return e.split(/\s(.*)/)[1]}},99742:(e,t,n)=>{"use strict";n.d(t,{Dc:()=>l,xA:()=>s,yb:()=>c});var r=n(88776),o=n(36951),i=n(70292);let a=1;function s(){return`${o.A7}uniq-${a++}`}const l=(0,i.s)("svg"),c=(0,i.s)(r.J)},24205:(e,t,n)=>{"use strict";var r;n.d(t,{Pe:()=>s,iE:()=>l,jQ:()=>a}),function(e){e.Ru="ru",e.En="en"}(r||(r={}));let o=[];const i={lang:r.En},a=e=>{Object.assign(i,e),o.forEach((e=>{e(i)}))},s=e=>(o.push(e),()=>{o=o.filter((t=>t!==e))}),l=()=>i},93404:(e,t,n)=>{"use strict";n.d(t,{P:()=>i});var r=n(95097),o=n(36951);const i=new class{constructor(e){this.subscriptions=[],this.componentPrefix=e}subscribe(e){this.subscriptions.push(e)}unsubscribe(e){const t=this.subscriptions.indexOf(e);t>-1&&this.subscriptions.splice(t,1)}publish(e){var{componentId:t}=e,n=(0,r._T)(e,["componentId"]);this.subscriptions.forEach((e=>e(Object.assign(Object.assign({},n),{componentId:this.componentPrefix?`${this.componentPrefix}${t}`:t}))))}withEventPublisher(e,t){return n=>{this.publish(Object.assign(Object.assign({},n),{componentId:e,qa:t}))}}}(o.A7)},70292:(e,t,n)=>{"use strict";n.d(t,{s:()=>o});var r=n(68963);function o(e){return function(t){if(!r.isValidElement(t))return!1;const{type:n}=t;if(n===e)return!0;if("string"===typeof e||"string"===typeof n)return!1;const o=n.displayName;return Boolean(o&&o===e.displayName)}}},3262:(e,t,n)=>{"use strict";n.d(t,{s:()=>s});var r=n(68963),o=n(59926),i=n(93404);const a=new class{constructor(){this.stack=[],this.handleDocumentKeyDown=e=>{var t,n,r;if(e.code===o.V.ESCAPE){const r=this.getTopLayer();r.disableEscapeKeyDown||(null===(t=r.onEscapeKeyDown)||void 0===t||t.call(r,e),null===(n=r.onClose)||void 0===n||n.call(r,e,"escapeKeyDown"))}if("Enter"===e.code){const t=this.getTopLayer();null===(r=t.onEnterKeyDown)||void 0===r||r.call(t,e)}},this.handleDocumentClick=e=>{var t,n;if(this.isToastClick(e))return;let r,o=null;if(this.mouseDownLayerTarget){if(r=this.mouseDownLayerTarget.layer,o=this.mouseDownLayerTarget.target,this.mouseDownLayerTarget=void 0,!this.stack.includes(r))return}else r=this.getTopLayer();!r.disableOutsideClick&&this.isOutsideClick(r,e,o)&&(null===(t=r.onOutsideClick)||void 0===t||t.call(r,e),null===(n=r.onClose)||void 0===n||n.call(r,e,"outsideClick"))},this.handleDocumentMouseDown=e=>{const t=this.getTopLayer();t&&(this.mouseDownLayerTarget={layer:t,target:e.target})}}add(e){this.stack.push(e),1===this.stack.length&&this.addListeners(),this.notifyLayersChange()}remove(e){const t=this.stack.indexOf(e);this.stack.splice(t,1),0===this.stack.length&&this.removeListeners(),this.notifyLayersChange()}getLayersCount(){return this.stack.length}getLayers(){return this.stack.map((e=>{let{type:t}=e;return{type:t}}))}addListeners(){document.addEventListener("keydown",this.handleDocumentKeyDown),document.addEventListener("click",this.handleDocumentClick,!0),document.addEventListener("mousedown",this.handleDocumentMouseDown,!0)}removeListeners(){document.removeEventListener("keydown",this.handleDocumentKeyDown),document.removeEventListener("click",this.handleDocumentClick,!0),document.removeEventListener("mousedown",this.handleDocumentMouseDown,!0)}notifyLayersChange(){i.P.publish({componentId:"LayerManager",eventId:"layerschange",meta:{layersCount:this.getLayersCount(),layers:this.getLayers()}})}getTopLayer(){return this.stack[this.stack.length-1]}isOutsideClick(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;const r=e.contentRefs||[],{target:o}=t,i="function"===typeof t.composedPath?t.composedPath():[];if(r.length>0){return!r.some((e=>{var t,r,a,s;return(null===(r=null===(t=null===e||void 0===e?void 0:e.current)||void 0===t?void 0:t.contains)||void 0===r?void 0:r.call(t,o))||(null===(s=null===(a=null===e||void 0===e?void 0:e.current)||void 0===a?void 0:a.contains)||void 0===s?void 0:s.call(a,n))||i.includes(null===e||void 0===e?void 0:e.current)}))}return!1}isToastClick(e){return("function"===typeof e.composedPath?e.composedPath():[]).some((e=>{var t;return Boolean(null===(t=null===e||void 0===e?void 0:e.dataset)||void 0===t?void 0:t.toast)}))}};function s(e){let{open:t,disableEscapeKeyDown:n,disableOutsideClick:o,onEscapeKeyDown:i,onEnterKeyDown:s,onOutsideClick:l,onClose:c,contentRefs:u,enabled:d=!0,type:f}=e;const p=r.useRef({disableEscapeKeyDown:n,disableOutsideClick:o,onEscapeKeyDown:i,onEnterKeyDown:s,onOutsideClick:l,onClose:c,contentRefs:u,type:f});r.useEffect((()=>{Object.assign(p.current,{disableEscapeKeyDown:n,disableOutsideClick:o,onEscapeKeyDown:i,onEnterKeyDown:s,onOutsideClick:l,onClose:c,contentRefs:u,enabled:d})}),[n,o,i,s,l,c,u,d]),r.useEffect((()=>{if(t&&d){const e=p.current;return a.add(e),()=>{a.remove(e)}}}),[t,d])}},31445:(e,t,n)=>{"use strict";n.d(t,{Y:()=>o});var r=n(36951);function o(e){return{appear:(0,r.Ui)(e({appear:!0})),appearActive:(0,r.Ui)(e({appear:"active"})),appearDone:(0,r.Ui)(e({appear:"done"})),enter:(0,r.Ui)(e({enter:!0})),enterActive:(0,r.Ui)(e({enter:"active"})),enterDone:(0,r.Ui)(e({enter:"done"})),exit:(0,r.Ui)(e({exit:!0})),exitActive:(0,r.Ui)(e({exit:"active"})),exitDone:(0,r.Ui)(e({exit:"done"}))}}},12913:(e,t,n)=>{"use strict";n.d(t,{O:()=>o});const r=new Map;function o(e){!e||r.has(e)}},59926:(e,t,n)=>{"use strict";n.d(t,{V:()=>r});const r={BACKSPACE:"Backspace",ENTER:"Enter",TAB:"Tab",SPACEBAR:" ",SPACEBAR_OLD:"Spacebar",ESCAPE:"Escape",ARROW_UP:"ArrowUp",ARROW_DOWN:"ArrowDown",ARROW_LEFT:"ArrowLeft",ARROW_RIGHT:"ArrowRight"}},33180:(e,t,n)=>{"use strict";n.d(t,{O:()=>l});var r=n(68963),o=n(56407),i=n(48027),a=n(93404),s=n(92006);function l(e){let{name:t,value:n,id:l,defaultChecked:c,checked:u,indeterminate:d,onUpdate:f,onChange:p,controlRef:h,controlProps:m,onFocus:g,onBlur:v,disabled:y}=e;const b=r.useRef(null),[w,E]=(0,o.z)(u,null!==c&&void 0!==c&&c,f),_=!d&&u,x=d?"mixed":w,S=(0,s.q)({initialValue:w,onReset:E}),C=(0,i.c)(h,b,S);r.useLayoutEffect((()=>{b.current&&(b.current.indeterminate=Boolean(d))}),[d]);const k=r.useCallback((e=>{a.P.publish({componentId:"Checkbox",eventId:"click",domEvent:e,meta:{checked:e.target.checked}})}),[]);return{checked:w,inputProps:Object.assign(Object.assign({},m),{name:t,value:n,id:l,onFocus:g,onBlur:v,disabled:y,type:"checkbox",onChange:e=>{E(e.target.checked),p&&p(e)},onClickCapture:k,defaultChecked:c,checked:_,"aria-checked":x,ref:C})}}},92006:(e,t,n)=>{"use strict";n.d(t,{q:()=>o});var r=n(68963);function o(e){let{initialValue:t,onReset:n}=e;const[o,i]=r.useState(null),a=r.useRef(t);r.useEffect((()=>{if(!o)return;const e=()=>{n(a.current)};return o.addEventListener("reset",e),()=>{o.removeEventListener("reset",e)}}),[o,n]);return r.useCallback((e=>{var t;i(null!==(t=null===e||void 0===e?void 0:e.form)&&void 0!==t?t:null)}),[])}},95753:(e,t,n)=>{"use strict";n.d(t,{H:()=>i});var r=n(68963),o=n(35503);function i(e){let{enabled:t,restoreFocusRef:n,focusTrapped:i}=e;const a=r.useRef(null),s=r.useRef(null),l=r.useRef(null);return r.useEffect((()=>{if(!t)return;const e=e=>{const t=e.target;!i&&t instanceof HTMLElement&&(0,o.Wq)(t)&&(l.current=t)},n=e=>{const t=e.target;t instanceof HTMLElement&&(0,o.Wq)(t)?l.current=t:l.current=null};return window.addEventListener("focusin",e),window.addEventListener("mousedown",n),window.addEventListener("touchstart",n),()=>{window.removeEventListener("focusin",e),window.removeEventListener("mousedown",n),window.removeEventListener("touchstart",n)}}),[t,i]),r.useEffect((()=>{var e;a.current=t&&null!==(e=(null===n||void 0===n?void 0:n.current)||s.current)&&void 0!==e?e:null})),r.useEffect((()=>{if(t)return()=>{let e=a.current;const t=l.current;t&&document.contains(t)&&(0,o.Wq)(t)&&(e=t),e&&"function"===typeof e.focus&&document.contains(e)&&(0,o.EB)(e)&&(e!==document.activeElement&&setTimeout((()=>{null===e||void 0===e||e.focus()}),0),s.current=null,l.current=null)}}),[t]),{onFocus:e=>{var r;t&&null===s.current&&(s.current=e.relatedTarget,l.current=s.current,a.current=null!==(r=(null===n||void 0===n?void 0:n.current)||s.current)&&void 0!==r?r:null)}}}},79004:(e,t,n)=>{"use strict";n.d(t,{p:()=>i});var r=n(68963),o=n(59926);const i=(e,t)=>{let{openDelay:n=250,closeDelay:i,preventTriggerOnFocus:a=!1}=t;const[s,l,c]=function(e){const[t,n]=r.useState(e);return[t,r.useCallback((()=>n(!0)),[]),r.useCallback((()=>n(!1)),[]),r.useCallback((()=>n((e=>!e))),[])]}(!1),u=r.useRef(),d=r.useRef(!1);return r.useEffect((()=>{if(e)return e.addEventListener("mouseenter",t),e.addEventListener("mouseleave",r),e.addEventListener("keydown",p),a||(e.addEventListener("focus",s),e.addEventListener("blur",f)),()=>{e.removeEventListener("mouseenter",t),e.removeEventListener("mouseleave",r),e.removeEventListener("focus",s),e.removeEventListener("blur",f),e.removeEventListener("keydown",p)};function t(){clearTimeout(u.current),u.current=window.setTimeout(l,n)}function r(){clearTimeout(u.current),u.current=window.setTimeout(c,i)}function s(e){d.current||document.activeElement!==e.target||(d.current=!0,clearTimeout(u.current),l())}function f(e){d.current&&!e.currentTarget.contains(e.relatedTarget)&&(d.current=!1,clearTimeout(u.current),c())}function p(e){e.key===o.V.ESCAPE&&(clearTimeout(u.current),c())}}),[e,l,c,n,i,a]),s}},68512:(e,t,n)=>{"use strict";n.d(t,{S:()=>i,b:()=>a});var r=n(68963),o=n(59926);function i(e){return t=>{e&&[o.V.ENTER,o.V.SPACEBAR,o.V.SPACEBAR_OLD].includes(t.key)&&(t.preventDefault(),e(t))}}function a(e){return{onKeyDown:r.useMemo((()=>i(e)),[e])}}},74100:(e,t,n)=>{"use strict";n.d(t,{y:()=>a});var r=n(68963);let o,i=0;function a(e){let{enabled:t}=e;r.useLayoutEffect((()=>{if(t)return i++,1===i&&function(){const e=window.innerWidth-document.documentElement.clientWidth,t=window.innerHeight-document.documentElement.clientHeight,n=function(){const e=window.getComputedStyle(document.body);return{top:Number.parseFloat(e.paddingTop),right:Number.parseFloat(e.paddingRight),bottom:Number.parseFloat(e.paddingBottom),left:Number.parseFloat(e.paddingLeft)}}();o=document.body.style.cssText,document.body.style.overflow="hidden",e&&(document.body.style.paddingRight=`${n.right+e}px`);t&&(document.body.style.paddingBottom=`${n.bottom+t}px`)}(),()=>{i--,0===i&&(o?document.body.style.cssText=o:document.body.removeAttribute("style"))}}),[t])}},56407:(e,t,n)=>{"use strict";n.d(t,{z:()=>o});var r=n(68963);function o(e,t,n){const[o,i]=r.useState(null!==e&&void 0!==e?e:t),a=r.useRef(void 0!==e),s=void 0!==e;r.useEffect((()=>{const e=a.current;e!==s&&console.error(`[useControlledState] A component changed from ${e?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}.`),a.current=s}),[s]);let l=s?e:o;const c=r.useCallback((function(e){if(!Object.is(l,e)){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];null===n||void 0===n||n(e,...r)}s||(l=e,i(e))}),[s,n,l]);return[l,c]}},9704:(e,t,n)=>{"use strict";function r(e,t){"function"===typeof e?e(t):e&&(e.current=t)}n.d(t,{k:()=>r})},48027:(e,t,n)=>{"use strict";n.d(t,{c:()=>i});var r=n(68963),o=n(9704);function i(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.useMemo((()=>t.every((e=>null===e||void 0===e))?null:e=>{for(const n of t)(0,o.k)(n,e)}),t)}},63096:(e,t,n)=>{"use strict";n.d(t,{s:()=>o});var r=n(68963);const o=e=>{let{element:t,options:n,onIntersect:o}=e;r.useEffect((()=>{const e=new IntersectionObserver((e=>{let[t]=e;t.isIntersecting&&(null===o||void 0===o||o())}),n);return t&&e.observe(t),()=>null===t?void 0:e.unobserve(t)}),[t,n,o])}},89646:(e,t,n)=>{"use strict";n.d(t,{u:()=>a});var r=n(68963),o=n(36951),i=n(99742);const a="function"===typeof r.useId?function(){return`${o.A7}${r.useId()}`}:function(){const e=r.useRef();return void 0===e.current&&(e.current=(0,i.xA)()),e.current}},63660:(e,t,n)=>{"use strict";n.d(t,{m:()=>re});var r=n(63609),o=n(68963),i=n(63639),a=n.n(i),s=n(38886),l=n(36951);function c(e,t){return e.findIndex((e=>e.name===t))}function u(e,t){return-1!==c(e,t)}function d(e,t){return u(e,t)?e.filter((e=>e.name!==t)):e}const f=o.createContext(null);f.displayName="ToasterContext";const p=o.createContext([]);p.displayName="ToastsContext";const h=o.forwardRef((function(e,t){let{children:n}=e;const[r,i]=o.useState([]),a=o.useCallback((e=>{const{name:t}=e;i((n=>{let r=n;return u(n,t)&&(r=d(n,t)),[...r,Object.assign(Object.assign({},e),{addedAt:Date.now(),ref:o.createRef()})]}))}),[]),s=o.useCallback((e=>{i((t=>d(t,e)))}),[]),l=o.useCallback((()=>{i((()=>[]))}),[]),h=o.useCallback(((e,t)=>{i((n=>{if(!u(n,e))return n;const r=c(n,e);return[...n.slice(0,r),Object.assign(Object.assign({},n[r]),t),...n.slice(r+1)]}))}),[]),m=o.useRef(r);o.useEffect((()=>{m.current=r}),[r]);const g=o.useCallback((e=>!!m.current&&u(m.current,e)),[]),v=o.useMemo((()=>({add:a,remove:s,removeAll:l,update:h,has:g})),[a,s,l,h,g]);return o.useImperativeHandle(t,(()=>({add:a,remove:s,removeAll:l,update:h,has:g}))),o.createElement(f.Provider,{value:v},o.createElement(p.Provider,{value:r},n))}));h.displayName="ToasterProvider";var m=n(79805),g=n(63366),v=n(87462),y=n(97326),b=n(51721),w=n(24330);function E(e,t){var n=Object.create(null);return e&&o.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&(0,o.isValidElement)(e)?t(e):e}(e)})),n}function _(e,t,n){return null!=n[t]?n[t]:e.props[t]}function x(e,t,n){var r=E(e.children),i=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var s={};for(var l in t){if(o[l])for(r=0;r<o[l].length;r++){var c=o[l][r];s[o[l][r]]=n(c)}s[l]=n(l)}for(r=0;r<i.length;r++)s[i[r]]=n(i[r]);return s}(t,r);return Object.keys(i).forEach((function(a){var s=i[a];if((0,o.isValidElement)(s)){var l=a in t,c=a in r,u=t[a],d=(0,o.isValidElement)(u)&&!u.props.in;!c||l&&!d?c||!l||d?c&&l&&(0,o.isValidElement)(u)&&(i[a]=(0,o.cloneElement)(s,{onExited:n.bind(null,s),in:u.props.in,exit:_(s,"exit",e),enter:_(s,"enter",e)})):i[a]=(0,o.cloneElement)(s,{in:!1}):i[a]=(0,o.cloneElement)(s,{onExited:n.bind(null,s),in:!0,exit:_(s,"exit",e),enter:_(s,"enter",e)})}})),i}var S=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},C=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind((0,y.Z)(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}(0,b.Z)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,i=t.children,a=t.handleExited;return{children:t.firstRender?(n=e,r=a,E(n.children,(function(e){return(0,o.cloneElement)(e,{onExited:r.bind(null,e),in:!0,appear:_(e,"appear",n),enter:_(e,"enter",n),exit:_(e,"exit",n)})}))):x(e,i,a),firstRender:!1}},n.handleExited=function(e,t){var n=E(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=(0,v.Z)({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=(0,g.Z)(e,["component","childFactory"]),i=this.state.contextValue,a=S(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?o.createElement(w.Z.Provider,{value:i},a):o.createElement(w.Z.Provider,{value:i},o.createElement(t,r,a))},t}(o.Component);C.propTypes={},C.defaultProps={component:"div",childFactory:function(e){return e}};const k=C;var O=n(62685),T=n(31445),N=n(68010),I=n(96261),P=n(93316),R=n(3442),D=n(77280);function A(e){let{onClose:t,timeout:n}=e;const[r,i,a]=function(){const[e,t]=o.useState(!1);return[o.useCallback((()=>{t(!0)}),[]),o.useCallback((()=>{t(!1)}),[]),e]}();var s,l;return s=t,l=a?null:n,o.useEffect((()=>{if("number"!==typeof l)return;const e=setTimeout((()=>{s()}),l);return()=>{clearTimeout(e)}}),[s,l]),{onMouseOver:r,onMouseLeave:i}}var j=n(17176),M=n(88776),L=n(54973);const z=JSON.parse('{"label_close-button":"Close"}'),F=JSON.parse('{"label_close-button":"\u0417\u0430\u043a\u0440\u044b\u0442\u044c"}'),B=(0,L.e)({en:z,ru:F},"Toaster"),U=(0,l.Ge)("toast"),q=5e3,$={normal:null,info:N.Z,success:I.Z,warning:P.Z,danger:P.Z,utility:R.Z};const Z=o.forwardRef((function(e,t){const{name:n,content:r,actions:i,title:a,className:s,theme:l="normal",renderIcon:c,autoHiding:u=q,isClosable:d=!0,mobile:f=!1,removeCallback:p}=e,h=o.useCallback((()=>p(n)),[p,n]),m=A({onClose:h,timeout:"number"===typeof u?u:void 0}),g={mobile:f,theme:l},v=Boolean(a),y=Boolean(r),b=c?c(e):function(e){let{theme:t}=e;return t&&$[t]?o.createElement(M.J,{data:$[t],size:20,className:U("icon",{[t]:!0})}):null}({theme:l});return o.createElement("div",Object.assign({ref:t,className:U(g,s)},m,{"data-toast":!0}),b&&o.createElement("div",{className:U("icon-container")},b),o.createElement("div",{className:U("container")},v&&o.createElement("h3",{className:U("title")},a),d&&o.createElement(j.z,{size:"s",view:"flat",className:U("btn-close"),onClick:h,extraProps:{"aria-label":B("label_close-button")}},o.createElement(M.J,{data:D.Z})),y&&o.createElement("div",{className:U("content",{"without-title":!v})},r),function(e){let{actions:t,onClose:n}=e;return t&&t.length?o.createElement("div",{className:U("actions")},t.map(((e,t)=>{let{label:r,onClick:i,view:a="outlined",removeAfterClick:s=!0}=e;return o.createElement(j.z,{key:`${r}__${t}`,className:U("action"),onClick:()=>{i(),s&&n()},type:"button",size:"l",view:a,width:"auto"},r)}))):null}({actions:i,onClose:h})))})),H=(0,T.Y)((0,l.Ge)("toast-animation-desktop")),V=(0,T.Y)((0,l.Ge)("toast-animation-mobile"));function W(e){const{toasts:t,mobile:n,removeCallback:r}=e;return o.createElement(k,{component:null},t.map((e=>o.createElement(O.Z,{key:`${e.name}_${e.addedAt}`,nodeRef:e.ref,classNames:n?V:H,addEndListener:t=>{var n,r;return null===(r=null===(n=e.ref)||void 0===n?void 0:n.current)||void 0===r?void 0:r.addEventListener("animationend",t)},onEnter:()=>G(e),onExit:()=>G(e)},o.createElement(Z,Object.assign({},e,{mobile:n,removeCallback:r}))))))}function G(e){var t;(null===(t=e.ref)||void 0===t?void 0:t.current)&&e.ref.current.style.setProperty("--_--item-height",`${e.ref.current.offsetHeight}px`)}var Y=n(57107);const K=(0,l.Ge)("toaster");function Q(e){let{children:t,className:n,mobile:r}=e;const i=o.useRef("undefined"===typeof document?void 0:document.createElement("div"));return o.useEffect((()=>{const e=i.current;if(e)return document.body.appendChild(e),()=>{document.body.removeChild(e)}}),[]),o.useEffect((()=>{i.current&&(i.current.className=K({mobile:r},n))}),[n,r]),o.createElement(Y.h,{container:i.current},t)}function J(e){let{className:t,mobile:n,hasPortal:r=!0}=e;const i=(0,m.X)(),{remove:a}=function(){const e=o.useContext(f);if(null===e)throw new Error("Toaster: `useToaster` hook is used out of context");return o.useMemo((()=>e),[e])}(),s=o.useContext(p),l=o.createElement(W,{toasts:s,removeCallback:a,mobile:null!==n&&void 0!==n?n:i});return r?o.createElement(Q,{className:t||"",mobile:null!==n&&void 0!==n?n:i},l):l}Q.displayName="ToasterPortal",J.displayName="ToasterComponent";const X=Symbol("Toaster instance key"),ee=(0,l.Ge)("toaster");let te;class ne{static injectReactDOMClient(e){te=e}constructor(e){this.className="",this.mobile=!1,this.componentAPI=null,this.add=e=>{var t;null===(t=this.componentAPI)||void 0===t||t.add(e)},this.remove=e=>{var t;null===(t=this.componentAPI)||void 0===t||t.remove(e)},this.removeAll=()=>{var e;null===(e=this.componentAPI)||void 0===e||e.removeAll()},this.update=(e,t)=>{var n;null===(n=this.componentAPI)||void 0===n||n.update(e,t)},this.has=e=>{var t,n;return null!==(n=null===(t=this.componentAPI)||void 0===t?void 0:t.has(e))&&void 0!==n&&n};const t=a()(e,["className"],""),n=a()(e,["mobile"],!1);if(window[X]instanceof ne){const e=window[X];return e.className=t,e.mobile=n,e.setRootNodeClassName(),e}this.className=t,this.mobile=n,this.createRootNode(),this.createReactRoot(),this.render(),window[X]=this}destroy(){s.unmountComponentAtNode(this.rootNode),document.body.removeChild(this.rootNode)}createRootNode(){this.rootNode=document.createElement("div"),this.setRootNodeClassName(),document.body.appendChild(this.rootNode)}createReactRoot(){te&&(this.reactRoot=te.createRoot(this.rootNode))}render(){const e=o.createElement(h,{ref:e=>{this.componentAPI=e}},o.createElement(J,{hasPortal:!1,mobile:this.mobile}));this.reactRoot?this.reactRoot.render(e):s.render(e,this.rootNode,(()=>Promise.resolve()))}setRootNodeClassName(){this.rootNode.className=ee({mobile:this.mobile},this.className)}}ne.injectReactDOMClient(r);const re="object"===typeof window?new ne:{}},69039:(e,t,n)=>{"use strict";var r=n(42780),o=n(9371),i=o(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"===typeof n&&i(e,".prototype.")>-1?o(n):n}},9371:(e,t,n)=>{"use strict";var r=n(88050),o=n(42780),i=n(18083),a=n(84968),s=o("%Function.prototype.apply%"),l=o("%Function.prototype.call%"),c=o("%Reflect.apply%",!0)||r.call(l,s),u=n(85122),d=o("%Math.max%");e.exports=function(e){if("function"!==typeof e)throw new a("a function is required");var t=c(r,l,arguments);return i(t,1+d(0,e.length-(arguments.length-1)),!0)};var f=function(){return c(r,s,arguments)};u?u(e.exports,"apply",{value:f}):e.exports.apply=f},69886:(e,t,n)=>{"use strict";var r=n(21034),o={"text/plain":"Text","text/html":"Url",default:"Text"},i="Copy to clipboard: #{key}, Enter";e.exports=function(e,t){var n,a,s,l,c,u,d=!1;t||(t={}),n=t.debug||!1;try{if(s=r(),l=document.createRange(),c=document.getSelection(),(u=document.createElement("span")).textContent=e,u.ariaHidden="true",u.style.all="unset",u.style.position="fixed",u.style.top=0,u.style.clip="rect(0, 0, 0, 0)",u.style.whiteSpace="pre",u.style.webkitUserSelect="text",u.style.MozUserSelect="text",u.style.msUserSelect="text",u.style.userSelect="text",u.addEventListener("copy",(function(r){if(r.stopPropagation(),t.format)if(r.preventDefault(),"undefined"===typeof r.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var i=o[t.format]||o.default;window.clipboardData.setData(i,e)}else r.clipboardData.clearData(),r.clipboardData.setData(t.format,e);t.onCopy&&(r.preventDefault(),t.onCopy(r.clipboardData))})),document.body.appendChild(u),l.selectNodeContents(u),c.addRange(l),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");d=!0}catch(f){n&&console.error("unable to copy using execCommand: ",f),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),d=!0}catch(f){n&&console.error("unable to copy using clipboardData: ",f),n&&console.error("falling back to prompt"),a=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:i),window.prompt(a,e)}}finally{c&&("function"==typeof c.removeRange?c.removeRange(l):c.removeAllRanges()),u&&document.body.removeChild(u),s()}return d}},44937:(e,t,n)=>{"use strict";var r=n(29335),o={};var i=function(e){};function a(e,t,n,r,o,a,s,l){if(i(t),!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,o,a,s,l],d=0;(c=new Error(t.replace(/%s/g,(function(){return u[d++]})))).name="Invariant Violation"}throw c.framesToPop=1,c}}var s="mixins";e.exports=function(e,t,n){var i=[],l={mixins:"DEFINE_MANY",statics:"DEFINE_MANY",propTypes:"DEFINE_MANY",contextTypes:"DEFINE_MANY",childContextTypes:"DEFINE_MANY",getDefaultProps:"DEFINE_MANY_MERGED",getInitialState:"DEFINE_MANY_MERGED",getChildContext:"DEFINE_MANY_MERGED",render:"DEFINE_ONCE",componentWillMount:"DEFINE_MANY",componentDidMount:"DEFINE_MANY",componentWillReceiveProps:"DEFINE_MANY",shouldComponentUpdate:"DEFINE_ONCE",componentWillUpdate:"DEFINE_MANY",componentDidUpdate:"DEFINE_MANY",componentWillUnmount:"DEFINE_MANY",UNSAFE_componentWillMount:"DEFINE_MANY",UNSAFE_componentWillReceiveProps:"DEFINE_MANY",UNSAFE_componentWillUpdate:"DEFINE_MANY",updateComponent:"OVERRIDE_BASE"},c={getDerivedStateFromProps:"DEFINE_MANY_MERGED"},u={displayName:function(e,t){e.displayName=t},mixins:function(e,t){if(t)for(var n=0;n<t.length;n++)f(e,t[n])},childContextTypes:function(e,t){e.childContextTypes=r({},e.childContextTypes,t)},contextTypes:function(e,t){e.contextTypes=r({},e.contextTypes,t)},getDefaultProps:function(e,t){e.getDefaultProps?e.getDefaultProps=h(e.getDefaultProps,t):e.getDefaultProps=t},propTypes:function(e,t){e.propTypes=r({},e.propTypes,t)},statics:function(e,t){!function(e,t){if(!t)return;for(var n in t){var r=t[n];if(t.hasOwnProperty(n)){if(a(!(n in u),'ReactClass: You are attempting to define a reserved property, `%s`, that shouldn\'t be on the "statics" key. Define it as an instance property instead; it will still be accessible on the constructor.',n),n in e)return a("DEFINE_MANY_MERGED"===(c.hasOwnProperty(n)?c[n]:null),"ReactClass: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",n),void(e[n]=h(e[n],r));e[n]=r}}}(e,t)},autobind:function(){}};function d(e,t){var n=l.hasOwnProperty(t)?l[t]:null;b.hasOwnProperty(t)&&a("OVERRIDE_BASE"===n,"ReactClassInterface: You are attempting to override `%s` from your class specification. Ensure that your method names do not overlap with React methods.",t),e&&a("DEFINE_MANY"===n||"DEFINE_MANY_MERGED"===n,"ReactClassInterface: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",t)}function f(e,n){if(n){a("function"!==typeof n,"ReactClass: You're attempting to use a component class or function as a mixin. Instead, just use a regular object."),a(!t(n),"ReactClass: You're attempting to use a component as a mixin. Instead, just use a regular object.");var r=e.prototype,o=r.__reactAutoBindPairs;for(var i in n.hasOwnProperty(s)&&u.mixins(e,n.mixins),n)if(n.hasOwnProperty(i)&&i!==s){var c=n[i],f=r.hasOwnProperty(i);if(d(f,i),u.hasOwnProperty(i))u[i](e,c);else{var p=l.hasOwnProperty(i);if("function"===typeof c&&!p&&!f&&!1!==n.autobind)o.push(i,c),r[i]=c;else if(f){var g=l[i];a(p&&("DEFINE_MANY_MERGED"===g||"DEFINE_MANY"===g),"ReactClass: Unexpected spec policy %s for key %s when mixing in component specs.",g,i),"DEFINE_MANY_MERGED"===g?r[i]=h(r[i],c):"DEFINE_MANY"===g&&(r[i]=m(r[i],c))}else r[i]=c}}}else;}function p(e,t){for(var n in a(e&&t&&"object"===typeof e&&"object"===typeof t,"mergeIntoWithNoDuplicateKeys(): Cannot merge non-objects."),t)t.hasOwnProperty(n)&&(a(void 0===e[n],"mergeIntoWithNoDuplicateKeys(): Tried to merge two objects with the same key: `%s`. This conflict may be due to a mixin; in particular, this may be caused by two getInitialState() or getDefaultProps() methods returning objects with clashing keys.",n),e[n]=t[n]);return e}function h(e,t){return function(){var n=e.apply(this,arguments),r=t.apply(this,arguments);if(null==n)return r;if(null==r)return n;var o={};return p(o,n),p(o,r),o}}function m(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function g(e,t){return t.bind(e)}var v={componentDidMount:function(){this.__isMounted=!0}},y={componentWillUnmount:function(){this.__isMounted=!1}},b={replaceState:function(e,t){this.updater.enqueueReplaceState(this,e,t)},isMounted:function(){return!!this.__isMounted}},w=function(){};return r(w.prototype,e.prototype,b),function(e){var t=function(e,r,i){this.__reactAutoBindPairs.length&&function(e){for(var t=e.__reactAutoBindPairs,n=0;n<t.length;n+=2){var r=t[n],o=t[n+1];e[r]=g(e,o)}}(this),this.props=e,this.context=r,this.refs=o,this.updater=i||n,this.state=null;var s=this.getInitialState?this.getInitialState():null;a("object"===typeof s&&!Array.isArray(s),"%s.getInitialState(): must return an object or null",t.displayName||"ReactCompositeComponent"),this.state=s};for(var r in t.prototype=new w,t.prototype.constructor=t,t.prototype.__reactAutoBindPairs=[],i.forEach(f.bind(null,t)),f(t,v),f(t,e),f(t,y),t.getDefaultProps&&(t.defaultProps=t.getDefaultProps()),a(t.prototype.render,"createClass(...): Class specification must implement a `render` method."),l)t.prototype[r]||(t.prototype[r]=null);return t}}},77065:(e,t,n)=>{"use strict";var r=n(68963),o=n(44937);if("undefined"===typeof r)throw Error("create-react-class could not find the React object. If you are using script tags, make sure that React is being loaded before create-react-class.");var i=(new r.Component).updater;e.exports=o(r.Component,r.isValidElement,i)},75812:e=>{e.exports=Date.now||function(){return(new Date).getTime()}},22877:function(e){e.exports=function(){"use strict";var e=1e3,t=6e4,n=36e5,r="millisecond",o="second",i="minute",a="hour",s="day",l="week",c="month",u="quarter",d="year",f="date",p="Invalid Date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},v=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},y={s:v,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),o=n%60;return(t<=0?"+":"-")+v(r,2,"0")+":"+v(o,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),o=t.clone().add(r,c),i=n-o<0,a=t.clone().add(r+(i?-1:1),c);return+(-(r+(n-o)/(i?o-a:a-o))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:c,y:d,w:l,d:s,D:f,h:a,m:i,s:o,ms:r,Q:u}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},b="en",w={};w[b]=g;var E="$isDayjsObject",_=function(e){return e instanceof k||!(!e||!e[E])},x=function e(t,n,r){var o;if(!t)return b;if("string"==typeof t){var i=t.toLowerCase();w[i]&&(o=i),n&&(w[i]=n,o=i);var a=t.split("-");if(!o&&a.length>1)return e(a[0])}else{var s=t.name;w[s]=t,o=s}return!r&&o&&(b=o),o||!r&&b},S=function(e,t){if(_(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new k(n)},C=y;C.l=x,C.i=_,C.w=function(e,t){return S(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var k=function(){function g(e){this.$L=x(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[E]=!0}var v=g.prototype;return v.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(C.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(h);if(r){var o=r[2]-1||0,i=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)):new Date(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)}}return new Date(t)}(e),this.init()},v.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},v.$utils=function(){return C},v.isValid=function(){return!(this.$d.toString()===p)},v.isSame=function(e,t){var n=S(e);return this.startOf(t)<=n&&n<=this.endOf(t)},v.isAfter=function(e,t){return S(e)<this.startOf(t)},v.isBefore=function(e,t){return this.endOf(t)<S(e)},v.$g=function(e,t,n){return C.u(e)?this[t]:this.set(n,e)},v.unix=function(){return Math.floor(this.valueOf()/1e3)},v.valueOf=function(){return this.$d.getTime()},v.startOf=function(e,t){var n=this,r=!!C.u(t)||t,u=C.p(e),p=function(e,t){var o=C.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?o:o.endOf(s)},h=function(e,t){return C.w(n.toDate()[e].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},m=this.$W,g=this.$M,v=this.$D,y="set"+(this.$u?"UTC":"");switch(u){case d:return r?p(1,0):p(31,11);case c:return r?p(1,g):p(0,g+1);case l:var b=this.$locale().weekStart||0,w=(m<b?m+7:m)-b;return p(r?v-w:v+(6-w),g);case s:case f:return h(y+"Hours",0);case a:return h(y+"Minutes",1);case i:return h(y+"Seconds",2);case o:return h(y+"Milliseconds",3);default:return this.clone()}},v.endOf=function(e){return this.startOf(e,!1)},v.$set=function(e,t){var n,l=C.p(e),u="set"+(this.$u?"UTC":""),p=(n={},n[s]=u+"Date",n[f]=u+"Date",n[c]=u+"Month",n[d]=u+"FullYear",n[a]=u+"Hours",n[i]=u+"Minutes",n[o]=u+"Seconds",n[r]=u+"Milliseconds",n)[l],h=l===s?this.$D+(t-this.$W):t;if(l===c||l===d){var m=this.clone().set(f,1);m.$d[p](h),m.init(),this.$d=m.set(f,Math.min(this.$D,m.daysInMonth())).$d}else p&&this.$d[p](h);return this.init(),this},v.set=function(e,t){return this.clone().$set(e,t)},v.get=function(e){return this[C.p(e)]()},v.add=function(r,u){var f,p=this;r=Number(r);var h=C.p(u),m=function(e){var t=S(p);return C.w(t.date(t.date()+Math.round(e*r)),p)};if(h===c)return this.set(c,this.$M+r);if(h===d)return this.set(d,this.$y+r);if(h===s)return m(1);if(h===l)return m(7);var g=(f={},f[i]=t,f[a]=n,f[o]=e,f)[h]||1,v=this.$d.getTime()+r*g;return C.w(v,this)},v.subtract=function(e,t){return this.add(-1*e,t)},v.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=e||"YYYY-MM-DDTHH:mm:ssZ",o=C.z(this),i=this.$H,a=this.$m,s=this.$M,l=n.weekdays,c=n.months,u=n.meridiem,d=function(e,n,o,i){return e&&(e[n]||e(t,r))||o[n].slice(0,i)},f=function(e){return C.s(i%12||12,e,"0")},h=u||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(m,(function(e,r){return r||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return C.s(t.$y,4,"0");case"M":return s+1;case"MM":return C.s(s+1,2,"0");case"MMM":return d(n.monthsShort,s,c,3);case"MMMM":return d(c,s);case"D":return t.$D;case"DD":return C.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return d(n.weekdaysMin,t.$W,l,2);case"ddd":return d(n.weekdaysShort,t.$W,l,3);case"dddd":return l[t.$W];case"H":return String(i);case"HH":return C.s(i,2,"0");case"h":return f(1);case"hh":return f(2);case"a":return h(i,a,!0);case"A":return h(i,a,!1);case"m":return String(a);case"mm":return C.s(a,2,"0");case"s":return String(t.$s);case"ss":return C.s(t.$s,2,"0");case"SSS":return C.s(t.$ms,3,"0");case"Z":return o}return null}(e)||o.replace(":","")}))},v.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},v.diff=function(r,f,p){var h,m=this,g=C.p(f),v=S(r),y=(v.utcOffset()-this.utcOffset())*t,b=this-v,w=function(){return C.m(m,v)};switch(g){case d:h=w()/12;break;case c:h=w();break;case u:h=w()/3;break;case l:h=(b-y)/6048e5;break;case s:h=(b-y)/864e5;break;case a:h=b/n;break;case i:h=b/t;break;case o:h=b/e;break;default:h=b}return p?h:C.a(h)},v.daysInMonth=function(){return this.endOf(c).$D},v.$locale=function(){return w[this.$L]},v.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=x(e,t,!0);return r&&(n.$L=r),n},v.clone=function(){return C.w(this.$d,this)},v.toDate=function(){return new Date(this.valueOf())},v.toJSON=function(){return this.isValid()?this.toISOString():null},v.toISOString=function(){return this.$d.toISOString()},v.toString=function(){return this.$d.toUTCString()},g}(),O=k.prototype;return S.prototype=O,[["$ms",r],["$s",o],["$m",i],["$H",a],["$W",s],["$M",c],["$y",d],["$D",f]].forEach((function(e){O[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),S.extend=function(e,t){return e.$i||(e(t,k,S),e.$i=!0),S},S.locale=x,S.isDayjs=_,S.unix=function(e){return S(1e3*e)},S.en=w[b],S.Ls=w,S.p={},S}()},52703:function(e){e.exports=function(){"use strict";var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d\d/,r=/\d\d?/,o=/\d*[^-_:/,()\s\d]+/,i={},a=function(e){return(e=+e)+(e>68?1900:2e3)},s=function(e){return function(t){this[e]=+t}},l=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e)return 0;if("Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return 0===n?0:"+"===t[0]?-n:n}(e)}],c=function(e){var t=i[e];return t&&(t.indexOf?t:t.s.concat(t.f))},u=function(e,t){var n,r=i.meridiem;if(r){for(var o=1;o<=24;o+=1)if(e.indexOf(r(o,0,t))>-1){n=o>12;break}}else n=e===(t?"pm":"PM");return n},d={A:[o,function(e){this.afternoon=u(e,!1)}],a:[o,function(e){this.afternoon=u(e,!0)}],S:[/\d/,function(e){this.milliseconds=100*+e}],SS:[n,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[r,s("seconds")],ss:[r,s("seconds")],m:[r,s("minutes")],mm:[r,s("minutes")],H:[r,s("hours")],h:[r,s("hours")],HH:[r,s("hours")],hh:[r,s("hours")],D:[r,s("day")],DD:[n,s("day")],Do:[o,function(e){var t=i.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,"")===e&&(this.day=r)}],M:[r,s("month")],MM:[n,s("month")],MMM:[o,function(e){var t=c("months"),n=(c("monthsShort")||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(n<1)throw new Error;this.month=n%12||n}],MMMM:[o,function(e){var t=c("months").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t}],Y:[/[+-]?\d+/,s("year")],YY:[n,function(e){this.year=a(e)}],YYYY:[/\d{4}/,s("year")],Z:l,ZZ:l};function f(n){var r,o;r=n,o=i&&i.formats;for(var a=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,r){var i=r&&r.toUpperCase();return n||o[r]||e[r]||o[i].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))).match(t),s=a.length,l=0;l<s;l+=1){var c=a[l],u=d[c],f=u&&u[0],p=u&&u[1];a[l]=p?{regex:f,parser:p}:c.replace(/^\[|\]$/g,"")}return function(e){for(var t={},n=0,r=0;n<s;n+=1){var o=a[n];if("string"==typeof o)r+=o.length;else{var i=o.regex,l=o.parser,c=e.slice(r),u=i.exec(c)[0];l.call(t,u),e=e.replace(u,"")}}return function(e){var t=e.afternoon;if(void 0!==t){var n=e.hours;t?n<12&&(e.hours+=12):12===n&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,n){n.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(a=e.parseTwoDigitYear);var r=t.prototype,o=r.parse;r.parse=function(e){var t=e.date,r=e.utc,a=e.args;this.$u=r;var s=a[1];if("string"==typeof s){var l=!0===a[2],c=!0===a[3],u=l||c,d=a[2];c&&(d=a[2]),i=this.$locale(),!l&&d&&(i=n.Ls[d]),this.$d=function(e,t,n){try{if(["x","X"].indexOf(t)>-1)return new Date(("X"===t?1e3:1)*e);var r=f(t)(e),o=r.year,i=r.month,a=r.day,s=r.hours,l=r.minutes,c=r.seconds,u=r.milliseconds,d=r.zone,p=new Date,h=a||(o||i?1:p.getDate()),m=o||p.getFullYear(),g=0;o&&!i||(g=i>0?i-1:p.getMonth());var v=s||0,y=l||0,b=c||0,w=u||0;return d?new Date(Date.UTC(m,g,h,v,y,b,w+60*d.offset*1e3)):n?new Date(Date.UTC(m,g,h,v,y,b,w)):new Date(m,g,h,v,y,b,w)}catch(e){return new Date("")}}(t,s,r),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),u&&t!=this.format(s)&&(this.$d=new Date("")),i={}}else if(s instanceof Array)for(var p=s.length,h=1;h<=p;h+=1){a[1]=s[h-1];var m=n.apply(this,a);if(m.isValid()){this.$d=m.$d,this.$L=m.$L,this.init();break}h===p&&(this.$d=new Date(""))}else o.call(this,e)}}}()},1035:function(e){e.exports=function(){"use strict";return function(e,t,n){n.updateLocale=function(e,t){var r=n.Ls[e];if(r)return(t?Object.keys(t):[]).forEach((function(e){r[e]=t[e]})),r}}}()},54591:function(e){e.exports=function(){"use strict";var e="minute",t=/[+-]\d\d(?::?\d\d)?/g,n=/([+-]|\d\d)/g;return function(r,o,i){var a=o.prototype;i.utc=function(e){return new o({date:e,utc:!0,args:arguments})},a.utc=function(t){var n=i(this.toDate(),{locale:this.$L,utc:!0});return t?n.add(this.utcOffset(),e):n},a.local=function(){return i(this.toDate(),{locale:this.$L,utc:!1})};var s=a.parse;a.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),s.call(this,e)};var l=a.init;a.init=function(){if(this.$u){var e=this.$d;this.$y=e.getUTCFullYear(),this.$M=e.getUTCMonth(),this.$D=e.getUTCDate(),this.$W=e.getUTCDay(),this.$H=e.getUTCHours(),this.$m=e.getUTCMinutes(),this.$s=e.getUTCSeconds(),this.$ms=e.getUTCMilliseconds()}else l.call(this)};var c=a.utcOffset;a.utcOffset=function(r,o){var i=this.$utils().u;if(i(r))return this.$u?0:i(this.$offset)?c.call(this):this.$offset;if("string"==typeof r&&(r=function(e){void 0===e&&(e="");var r=e.match(t);if(!r)return null;var o=(""+r[0]).match(n)||["-",0,0],i=o[0],a=60*+o[1]+ +o[2];return 0===a?0:"+"===i?a:-a}(r),null===r))return this;var a=Math.abs(r)<=16?60*r:r,s=this;if(o)return s.$offset=a,s.$u=0===r,s;if(0!==r){var l=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(s=this.local().add(a+l,e)).$offset=a,s.$x.$localOffset=l}else s=this.utc();return s};var u=a.format;a.format=function(e){var t=e||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return u.call(this,t)},a.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*e},a.isUTC=function(){return!!this.$u},a.toISOString=function(){return this.toDate().toISOString()},a.toString=function(){return this.toDate().toUTCString()};var d=a.toDate;a.toDate=function(e){return"s"===e&&this.$offset?i(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():d.call(this)};var f=a.diff;a.diff=function(e,t,n){if(e&&this.$u===e.$u)return f.call(this,e,t,n);var r=this.local(),o=i(e).local();return f.call(r,o,t,n)}}}()},60305:(e,t,n)=>{var r=n(75812);e.exports=function(e,t,n){var o,i,a,s,l;function c(){var u=r()-s;u<t&&u>0?o=setTimeout(c,t-u):(o=null,n||(l=e.apply(a,i),o||(a=i=null)))}return null==t&&(t=100),function(){a=this,i=arguments,s=r();var u=n&&!o;return o||(o=setTimeout(c,t)),u&&(l=e.apply(a,i),a=i=null),l}}},10854:(e,t,n)=>{"use strict";var r=n(85122),o=n(47849),i=n(84968),a=n(81687);e.exports=function(e,t,n){if(!e||"object"!==typeof e&&"function"!==typeof e)throw new i("`obj` must be an object or a function`");if("string"!==typeof t&&"symbol"!==typeof t)throw new i("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!==typeof arguments[3]&&null!==arguments[3])throw new i("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!==typeof arguments[4]&&null!==arguments[4])throw new i("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!==typeof arguments[5]&&null!==arguments[5])throw new i("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!==typeof arguments[6])throw new i("`loose`, if provided, must be a boolean");var s=arguments.length>3?arguments[3]:null,l=arguments.length>4?arguments[4]:null,c=arguments.length>5?arguments[5]:null,u=arguments.length>6&&arguments[6],d=!!a&&a(e,t);if(r)r(e,t,{configurable:null===c&&d?d.configurable:!c,enumerable:null===s&&d?d.enumerable:!s,value:n,writable:null===l&&d?d.writable:!l});else{if(!u&&(s||l||c))throw new o("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[t]=n}}},85122:(e,t,n)=>{"use strict";var r=n(42780)("%Object.defineProperty%",!0)||!1;if(r)try{r({},"a",{value:1})}catch(o){r=!1}e.exports=r},16101:e=>{"use strict";e.exports=EvalError},41830:e=>{"use strict";e.exports=Error},69715:e=>{"use strict";e.exports=RangeError},64546:e=>{"use strict";e.exports=ReferenceError},47849:e=>{"use strict";e.exports=SyntaxError},84968:e=>{"use strict";e.exports=TypeError},68344:e=>{"use strict";e.exports=URIError},12406:e=>{"use strict";var t="Function.prototype.bind called on incompatible ",n=Object.prototype.toString,r=Math.max,o="[object Function]",i=function(e,t){for(var n=[],r=0;r<e.length;r+=1)n[r]=e[r];for(var o=0;o<t.length;o+=1)n[o+e.length]=t[o];return n},a=function(e,t){for(var n=[],r=t||0,o=0;r<e.length;r+=1,o+=1)n[o]=e[r];return n},s=function(e,t){for(var n="",r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n};e.exports=function(e){var l=this;if("function"!==typeof l||n.apply(l)!==o)throw new TypeError(t+l);for(var c,u=a(arguments,1),d=r(0,l.length-u.length),f=[],p=0;p<d;p++)f[p]="$"+p;if(c=Function("binder","return function ("+s(f,",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof c){var t=l.apply(this,i(u,arguments));return Object(t)===t?t:this}return l.apply(e,i(u,arguments))})),l.prototype){var h=function(){};h.prototype=l.prototype,c.prototype=new h,h.prototype=null}return c}},88050:(e,t,n)=>{"use strict";var r=n(12406);e.exports=Function.prototype.bind||r},42780:(e,t,n)=>{"use strict";var r,o=n(41830),i=n(16101),a=n(69715),s=n(64546),l=n(47849),c=n(84968),u=n(68344),d=Function,f=function(e){try{return d('"use strict"; return ('+e+").constructor;")()}catch(t){}},p=Object.getOwnPropertyDescriptor;if(p)try{p({},"")}catch(M){p=null}var h=function(){throw new c},m=p?function(){try{return h}catch(e){try{return p(arguments,"callee").get}catch(t){return h}}}():h,g=n(83895)(),v=n(29571)(),y=Object.getPrototypeOf||(v?function(e){return e.__proto__}:null),b={},w="undefined"!==typeof Uint8Array&&y?y(Uint8Array):r,E={__proto__:null,"%AggregateError%":"undefined"===typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"===typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":g&&y?y([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":b,"%AsyncGenerator%":b,"%AsyncGeneratorFunction%":b,"%AsyncIteratorPrototype%":b,"%Atomics%":"undefined"===typeof Atomics?r:Atomics,"%BigInt%":"undefined"===typeof BigInt?r:BigInt,"%BigInt64Array%":"undefined"===typeof BigInt64Array?r:BigInt64Array,"%BigUint64Array%":"undefined"===typeof BigUint64Array?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"===typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":o,"%eval%":eval,"%EvalError%":i,"%Float32Array%":"undefined"===typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"===typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"===typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":d,"%GeneratorFunction%":b,"%Int8Array%":"undefined"===typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"===typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"===typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":g&&y?y(y([][Symbol.iterator]())):r,"%JSON%":"object"===typeof JSON?JSON:r,"%Map%":"undefined"===typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!==typeof Map&&g&&y?y((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"===typeof Promise?r:Promise,"%Proxy%":"undefined"===typeof Proxy?r:Proxy,"%RangeError%":a,"%ReferenceError%":s,"%Reflect%":"undefined"===typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"===typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!==typeof Set&&g&&y?y((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"===typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":g&&y?y(""[Symbol.iterator]()):r,"%Symbol%":g?Symbol:r,"%SyntaxError%":l,"%ThrowTypeError%":m,"%TypedArray%":w,"%TypeError%":c,"%Uint8Array%":"undefined"===typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"===typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"===typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"===typeof Uint32Array?r:Uint32Array,"%URIError%":u,"%WeakMap%":"undefined"===typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"===typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"===typeof WeakSet?r:WeakSet};if(y)try{null.error}catch(M){var _=y(y(M));E["%Error.prototype%"]=_}var x=function e(t){var n;if("%AsyncFunction%"===t)n=f("async function () {}");else if("%GeneratorFunction%"===t)n=f("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=f("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&y&&(n=y(o.prototype))}return E[t]=n,n},S={__proto__:null,"%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"]},C=n(88050),k=n(17652),O=C.call(Function.call,Array.prototype.concat),T=C.call(Function.apply,Array.prototype.splice),N=C.call(Function.call,String.prototype.replace),I=C.call(Function.call,String.prototype.slice),P=C.call(Function.call,RegExp.prototype.exec),R=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,D=/\\(\\)?/g,A=function(e){var t=I(e,0,1),n=I(e,-1);if("%"===t&&"%"!==n)throw new l("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new l("invalid intrinsic syntax, expected opening `%`");var r=[];return N(e,R,(function(e,t,n,o){r[r.length]=n?N(o,D,"$1"):t||e})),r},j=function(e,t){var n,r=e;if(k(S,r)&&(r="%"+(n=S[r])[0]+"%"),k(E,r)){var o=E[r];if(o===b&&(o=x(r)),"undefined"===typeof o&&!t)throw new c("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:o}}throw new l("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!==typeof e||0===e.length)throw new c("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!==typeof t)throw new c('"allowMissing" argument must be a boolean');if(null===P(/^%?[^%]*%?$/,e))throw new l("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=A(e),r=n.length>0?n[0]:"",o=j("%"+r+"%",t),i=o.name,a=o.value,s=!1,u=o.alias;u&&(r=u[0],T(n,O([0,1],u)));for(var d=1,f=!0;d<n.length;d+=1){var h=n[d],m=I(h,0,1),g=I(h,-1);if(('"'===m||"'"===m||"`"===m||'"'===g||"'"===g||"`"===g)&&m!==g)throw new l("property names with quotes must have matching quotes");if("constructor"!==h&&f||(s=!0),k(E,i="%"+(r+="."+h)+"%"))a=E[i];else if(null!=a){if(!(h in a)){if(!t)throw new c("base intrinsic for "+e+" exists, but the property is not available.");return}if(p&&d+1>=n.length){var v=p(a,h);a=(f=!!v)&&"get"in v&&!("originalValue"in v.get)?v.get:a[h]}else f=k(a,h),a=a[h];f&&!s&&(E[i]=a)}}return a}},81687:(e,t,n)=>{"use strict";var r=n(42780)("%Object.getOwnPropertyDescriptor%",!0);if(r)try{r([],"length")}catch(o){r=null}e.exports=r},43597:(e,t,n)=>{"use strict";var r=n(85122),o=function(){return!!r};o.hasArrayLengthDefineBug=function(){if(!r)return null;try{return 1!==r([],"length",{value:1}).length}catch(e){return!0}},e.exports=o},29571:e=>{"use strict";var t={__proto__:null,foo:{}},n=Object;e.exports=function(){return{__proto__:t}.foo===t.foo&&!(t instanceof n)}},83895:(e,t,n)=>{"use strict";var r="undefined"!==typeof Symbol&&Symbol,o=n(75687);e.exports=function(){return"function"===typeof r&&("function"===typeof Symbol&&("symbol"===typeof r("foo")&&("symbol"===typeof Symbol("bar")&&o())))}},75687:e=>{"use strict";e.exports=function(){if("function"!==typeof Symbol||"function"!==typeof Object.getOwnPropertySymbols)return!1;if("symbol"===typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"===typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"===typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"===typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"===typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},17652:(e,t,n)=>{"use strict";var r=Function.prototype.call,o=Object.prototype.hasOwnProperty,i=n(88050);e.exports=i.call(r,o)},91668:(e,t,n)=>{"use strict";n.d(t,{lX:()=>x,q_:()=>N,ob:()=>m,PP:()=>P,Ep:()=>h,Hp:()=>g});var r=n(87462);function o(e){return"/"===e.charAt(0)}function i(e,t){for(var n=t,r=n+1,o=e.length;r<o;n+=1,r+=1)e[n]=e[r];e.pop()}const a=function(e,t){void 0===t&&(t="");var n,r=e&&e.split("/")||[],a=t&&t.split("/")||[],s=e&&o(e),l=t&&o(t),c=s||l;if(e&&o(e)?a=r:r.length&&(a.pop(),a=a.concat(r)),!a.length)return"/";if(a.length){var u=a[a.length-1];n="."===u||".."===u||""===u}else n=!1;for(var d=0,f=a.length;f>=0;f--){var p=a[f];"."===p?i(a,f):".."===p?(i(a,f),d++):d&&(i(a,f),d--)}if(!c)for(;d--;d)a.unshift("..");!c||""===a[0]||a[0]&&o(a[0])||a.unshift("");var h=a.join("/");return n&&"/"!==h.substr(-1)&&(h+="/"),h};function s(e){return e.valueOf?e.valueOf():Object.prototype.valueOf.call(e)}const l=function e(t,n){if(t===n)return!0;if(null==t||null==n)return!1;if(Array.isArray(t))return Array.isArray(n)&&t.length===n.length&&t.every((function(t,r){return e(t,n[r])}));if("object"===typeof t||"object"===typeof n){var r=s(t),o=s(n);return r!==t||o!==n?e(r,o):Object.keys(Object.assign({},t,n)).every((function(r){return e(t[r],n[r])}))}return!1};var c=n(35731);function u(e){return"/"===e.charAt(0)?e:"/"+e}function d(e){return"/"===e.charAt(0)?e.substr(1):e}function f(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}function p(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function h(e){var t=e.pathname,n=e.search,r=e.hash,o=t||"/";return n&&"?"!==n&&(o+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o}function m(e,t,n,o){var i;"string"===typeof e?(i=function(e){var t=e||"/",n="",r="",o=t.indexOf("#");-1!==o&&(r=t.substr(o),t=t.substr(0,o));var i=t.indexOf("?");return-1!==i&&(n=t.substr(i),t=t.substr(0,i)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e),i.state=t):(void 0===(i=(0,r.Z)({},e)).pathname&&(i.pathname=""),i.search?"?"!==i.search.charAt(0)&&(i.search="?"+i.search):i.search="",i.hash?"#"!==i.hash.charAt(0)&&(i.hash="#"+i.hash):i.hash="",void 0!==t&&void 0===i.state&&(i.state=t));try{i.pathname=decodeURI(i.pathname)}catch(s){throw s instanceof URIError?new URIError('Pathname "'+i.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):s}return n&&(i.key=n),o?i.pathname?"/"!==i.pathname.charAt(0)&&(i.pathname=a(i.pathname,o.pathname)):i.pathname=o.pathname:i.pathname||(i.pathname="/"),i}function g(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&l(e.state,t.state)}function v(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,o){if(null!=e){var i="function"===typeof e?e(t,n):e;"string"===typeof i?"function"===typeof r?r(i,o):o(!0):o(!1!==i)}else o(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.forEach((function(e){return e.apply(void 0,n)}))}}}var y=!("undefined"===typeof window||!window.document||!window.document.createElement);function b(e,t){t(window.confirm(e))}var w="popstate",E="hashchange";function _(){try{return window.history.state||{}}catch(e){return{}}}function x(e){void 0===e&&(e={}),y||(0,c.Z)(!1);var t=window.history,n=function(){var e=window.navigator.userAgent;return(-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history}(),o=!(-1===window.navigator.userAgent.indexOf("Trident")),i=e,a=i.forceRefresh,s=void 0!==a&&a,l=i.getUserConfirmation,d=void 0===l?b:l,g=i.keyLength,x=void 0===g?6:g,S=e.basename?p(u(e.basename)):"";function C(e){var t=e||{},n=t.key,r=t.state,o=window.location,i=o.pathname+o.search+o.hash;return S&&(i=f(i,S)),m(i,r,n)}function k(){return Math.random().toString(36).substr(2,x)}var O=v();function T(e){(0,r.Z)(B,e),B.length=t.length,O.notifyListeners(B.location,B.action)}function N(e){(function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")})(e)||R(C(e.state))}function I(){R(C(_()))}var P=!1;function R(e){if(P)P=!1,T();else{O.confirmTransitionTo(e,"POP",d,(function(t){t?T({action:"POP",location:e}):function(e){var t=B.location,n=A.indexOf(t.key);-1===n&&(n=0);var r=A.indexOf(e.key);-1===r&&(r=0);var o=n-r;o&&(P=!0,M(o))}(e)}))}}var D=C(_()),A=[D.key];function j(e){return S+h(e)}function M(e){t.go(e)}var L=0;function z(e){1===(L+=e)&&1===e?(window.addEventListener(w,N),o&&window.addEventListener(E,I)):0===L&&(window.removeEventListener(w,N),o&&window.removeEventListener(E,I))}var F=!1;var B={length:t.length,action:"POP",location:D,createHref:j,push:function(e,r){var o="PUSH",i=m(e,r,k(),B.location);O.confirmTransitionTo(i,o,d,(function(e){if(e){var r=j(i),a=i.key,l=i.state;if(n)if(t.pushState({key:a,state:l},null,r),s)window.location.href=r;else{var c=A.indexOf(B.location.key),u=A.slice(0,c+1);u.push(i.key),A=u,T({action:o,location:i})}else window.location.href=r}}))},replace:function(e,r){var o="REPLACE",i=m(e,r,k(),B.location);O.confirmTransitionTo(i,o,d,(function(e){if(e){var r=j(i),a=i.key,l=i.state;if(n)if(t.replaceState({key:a,state:l},null,r),s)window.location.replace(r);else{var c=A.indexOf(B.location.key);-1!==c&&(A[c]=i.key),T({action:o,location:i})}else window.location.replace(r)}}))},go:M,goBack:function(){M(-1)},goForward:function(){M(1)},block:function(e){void 0===e&&(e=!1);var t=O.setPrompt(e);return F||(z(1),F=!0),function(){return F&&(F=!1,z(-1)),t()}},listen:function(e){var t=O.appendListener(e);return z(1),function(){z(-1),t()}}};return B}var S="hashchange",C={hashbang:{encodePath:function(e){return"!"===e.charAt(0)?e:"!/"+d(e)},decodePath:function(e){return"!"===e.charAt(0)?e.substr(1):e}},noslash:{encodePath:d,decodePath:u},slash:{encodePath:u,decodePath:u}};function k(e){var t=e.indexOf("#");return-1===t?e:e.slice(0,t)}function O(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":e.substring(t+1)}function T(e){window.location.replace(k(window.location.href)+"#"+e)}function N(e){void 0===e&&(e={}),y||(0,c.Z)(!1);var t=window.history,n=(window.navigator.userAgent.indexOf("Firefox"),e),o=n.getUserConfirmation,i=void 0===o?b:o,a=n.hashType,s=void 0===a?"slash":a,l=e.basename?p(u(e.basename)):"",d=C[s],g=d.encodePath,w=d.decodePath;function E(){var e=w(O());return l&&(e=f(e,l)),m(e)}var _=v();function x(e){(0,r.Z)(B,e),B.length=t.length,_.notifyListeners(B.location,B.action)}var N=!1,I=null;function P(){var e,t,n=O(),r=g(n);if(n!==r)T(r);else{var o=E(),a=B.location;if(!N&&(t=o,(e=a).pathname===t.pathname&&e.search===t.search&&e.hash===t.hash))return;if(I===h(o))return;I=null,function(e){if(N)N=!1,x();else{var t="POP";_.confirmTransitionTo(e,t,i,(function(n){n?x({action:t,location:e}):function(e){var t=B.location,n=j.lastIndexOf(h(t));-1===n&&(n=0);var r=j.lastIndexOf(h(e));-1===r&&(r=0);var o=n-r;o&&(N=!0,M(o))}(e)}))}}(o)}}var R=O(),D=g(R);R!==D&&T(D);var A=E(),j=[h(A)];function M(e){t.go(e)}var L=0;function z(e){1===(L+=e)&&1===e?window.addEventListener(S,P):0===L&&window.removeEventListener(S,P)}var F=!1;var B={length:t.length,action:"POP",location:A,createHref:function(e){var t=document.querySelector("base"),n="";return t&&t.getAttribute("href")&&(n=k(window.location.href)),n+"#"+g(l+h(e))},push:function(e,t){var n="PUSH",r=m(e,void 0,void 0,B.location);_.confirmTransitionTo(r,n,i,(function(e){if(e){var t=h(r),o=g(l+t);if(O()!==o){I=t,function(e){window.location.hash=e}(o);var i=j.lastIndexOf(h(B.location)),a=j.slice(0,i+1);a.push(t),j=a,x({action:n,location:r})}else x()}}))},replace:function(e,t){var n="REPLACE",r=m(e,void 0,void 0,B.location);_.confirmTransitionTo(r,n,i,(function(e){if(e){var t=h(r),o=g(l+t);O()!==o&&(I=t,T(o));var i=j.indexOf(h(B.location));-1!==i&&(j[i]=t),x({action:n,location:r})}}))},go:M,goBack:function(){M(-1)},goForward:function(){M(1)},block:function(e){void 0===e&&(e=!1);var t=_.setPrompt(e);return F||(z(1),F=!0),function(){return F&&(F=!1,z(-1)),t()}},listen:function(e){var t=_.appendListener(e);return z(1),function(){z(-1),t()}}};return B}function I(e,t,n){return Math.min(Math.max(e,t),n)}function P(e){void 0===e&&(e={});var t=e,n=t.getUserConfirmation,o=t.initialEntries,i=void 0===o?["/"]:o,a=t.initialIndex,s=void 0===a?0:a,l=t.keyLength,c=void 0===l?6:l,u=v();function d(e){(0,r.Z)(w,e),w.length=w.entries.length,u.notifyListeners(w.location,w.action)}function f(){return Math.random().toString(36).substr(2,c)}var p=I(s,0,i.length-1),g=i.map((function(e){return m(e,void 0,"string"===typeof e?f():e.key||f())})),y=h;function b(e){var t=I(w.index+e,0,w.entries.length-1),r=w.entries[t];u.confirmTransitionTo(r,"POP",n,(function(e){e?d({action:"POP",location:r,index:t}):d()}))}var w={length:g.length,action:"POP",location:g[p],index:p,entries:g,createHref:y,push:function(e,t){var r="PUSH",o=m(e,t,f(),w.location);u.confirmTransitionTo(o,r,n,(function(e){if(e){var t=w.index+1,n=w.entries.slice(0);n.length>t?n.splice(t,n.length-t,o):n.push(o),d({action:r,location:o,index:t,entries:n})}}))},replace:function(e,t){var r="REPLACE",o=m(e,t,f(),w.location);u.confirmTransitionTo(o,r,n,(function(e){e&&(w.entries[w.index]=o,d({action:r,location:o}))}))},go:b,goBack:function(){b(-1)},goForward:function(){b(1)},canGo:function(e){var t=w.index+e;return t>=0&&t<w.entries.length},block:function(e){return void 0===e&&(e=!1),u.setPrompt(e)},listen:function(e){return u.appendListener(e)}};return w}},15170:(e,t,n)=>{"use strict";var r=n(70248),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?a:s[e.$$typeof]||o}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!==typeof n){if(h){var o=p(n);o&&o!==h&&e(t,o,r)}var a=u(n);d&&(a=a.concat(d(n)));for(var s=l(t),m=l(n),g=0;g<a.length;++g){var v=a[g];if(!i[v]&&(!r||!r[v])&&(!m||!m[v])&&(!s||!s[v])){var y=f(n,v);try{c(t,v,y)}catch(b){}}}}return t}},17943:(e,t)=>{"use strict";var n="function"===typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function E(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case d:case i:case s:case a:case p:return e;default:switch(e=e&&e.$$typeof){case c:case f:case g:case m:case l:return e;default:return t}}case o:return t}}}function _(e){return E(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=l,t.Element=r,t.ForwardRef=f,t.Fragment=i,t.Lazy=g,t.Memo=m,t.Portal=o,t.Profiler=s,t.StrictMode=a,t.Suspense=p,t.isAsyncMode=function(e){return _(e)||E(e)===u},t.isConcurrentMode=_,t.isContextConsumer=function(e){return E(e)===c},t.isContextProvider=function(e){return E(e)===l},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return E(e)===f},t.isFragment=function(e){return E(e)===i},t.isLazy=function(e){return E(e)===g},t.isMemo=function(e){return E(e)===m},t.isPortal=function(e){return E(e)===o},t.isProfiler=function(e){return E(e)===s},t.isStrictMode=function(e){return E(e)===a},t.isSuspense=function(e){return E(e)===p},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===i||e===d||e===s||e===a||e===p||e===h||"object"===typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===l||e.$$typeof===c||e.$$typeof===f||e.$$typeof===y||e.$$typeof===b||e.$$typeof===w||e.$$typeof===v)},t.typeOf=E},70248:(e,t,n)=>{"use strict";e.exports=n(17943)},32733:e=>{"use strict";e.exports=function(e,t,n,r,o,i,a,s){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,o,i,a,s],u=0;(l=new Error(t.replace(/%s/g,(function(){return c[u++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}}},36383:e=>{"use strict";const t=new Set(["ENOTFOUND","ENETUNREACH","UNABLE_TO_GET_ISSUER_CERT","UNABLE_TO_GET_CRL","UNABLE_TO_DECRYPT_CERT_SIGNATURE","UNABLE_TO_DECRYPT_CRL_SIGNATURE","UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY","CERT_SIGNATURE_FAILURE","CRL_SIGNATURE_FAILURE","CERT_NOT_YET_VALID","CERT_HAS_EXPIRED","CRL_NOT_YET_VALID","CRL_HAS_EXPIRED","ERROR_IN_CERT_NOT_BEFORE_FIELD","ERROR_IN_CERT_NOT_AFTER_FIELD","ERROR_IN_CRL_LAST_UPDATE_FIELD","ERROR_IN_CRL_NEXT_UPDATE_FIELD","OUT_OF_MEM","DEPTH_ZERO_SELF_SIGNED_CERT","SELF_SIGNED_CERT_IN_CHAIN","UNABLE_TO_GET_ISSUER_CERT_LOCALLY","UNABLE_TO_VERIFY_LEAF_SIGNATURE","CERT_CHAIN_TOO_LONG","CERT_REVOKED","INVALID_CA","PATH_LENGTH_EXCEEDED","INVALID_PURPOSE","CERT_UNTRUSTED","CERT_REJECTED","HOSTNAME_MISMATCH"]);e.exports=e=>!t.has(e&&e.code)},49099:e=>{e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},22849:(e,t,n)=>{var r=n(72892)(n(57849),"DataView");e.exports=r},90145:(e,t,n)=>{var r=n(29076),o=n(76009),i=n(86992),a=n(59120),s=n(25899);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=a,l.prototype.set=s,e.exports=l},18084:(e,t,n)=>{var r=n(29917),o=n(43490),i=n(64872),a=n(21744),s=n(88820);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=a,l.prototype.set=s,e.exports=l},44086:(e,t,n)=>{var r=n(72892)(n(57849),"Map");e.exports=r},47059:(e,t,n)=>{var r=n(27161),o=n(65317),i=n(93297),a=n(25771),s=n(633);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=a,l.prototype.set=s,e.exports=l},42115:(e,t,n)=>{var r=n(72892)(n(57849),"Promise");e.exports=r},70607:(e,t,n)=>{var r=n(72892)(n(57849),"Set");e.exports=r},75304:(e,t,n)=>{var r=n(47059),o=n(93648),i=n(56683);function a(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}a.prototype.add=a.prototype.push=o,a.prototype.has=i,e.exports=a},15004:(e,t,n)=>{var r=n(18084),o=n(41662),i=n(97368),a=n(87454),s=n(16596),l=n(32052);function c(e){var t=this.__data__=new r(e);this.size=t.size}c.prototype.clear=o,c.prototype.delete=i,c.prototype.get=a,c.prototype.has=s,c.prototype.set=l,e.exports=c},62279:(e,t,n)=>{var r=n(57849).Symbol;e.exports=r},91385:(e,t,n)=>{var r=n(57849).Uint8Array;e.exports=r},20177:(e,t,n)=>{var r=n(72892)(n(57849),"WeakMap");e.exports=r},12539:e=>{e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},35219:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}},82169:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}},73784:(e,t,n)=>{var r=n(34698);e.exports=function(e,t){return!!(null==e?0:e.length)&&r(e,t,0)>-1}},58713:e=>{e.exports=function(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}},34087:(e,t,n)=>{var r=n(94558),o=n(38492),i=n(46296),a=n(98267),s=n(64764),l=n(34057),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=i(e),u=!n&&o(e),d=!n&&!u&&a(e),f=!n&&!u&&!d&&l(e),p=n||u||d||f,h=p?r(e.length,String):[],m=h.length;for(var g in e)!t&&!c.call(e,g)||p&&("length"==g||d&&("offset"==g||"parent"==g)||f&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||s(g,m))||h.push(g);return h}},40341:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}},17174:e=>{e.exports=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}},7138:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},58961:e=>{e.exports=function(e){return e.split("")}},17509:(e,t,n)=>{var r=n(69519),o=n(83272);e.exports=function(e,t,n){(void 0!==n&&!o(e[t],n)||void 0===n&&!(t in e))&&r(e,t,n)}},49237:(e,t,n)=>{var r=n(69519),o=n(83272),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var a=e[t];i.call(e,t)&&o(a,n)&&(void 0!==n||t in e)||r(e,t,n)}},11786:(e,t,n)=>{var r=n(83272);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},74671:(e,t,n)=>{var r=n(81742),o=n(25484);e.exports=function(e,t){return e&&r(t,o(t),e)}},67950:(e,t,n)=>{var r=n(81742),o=n(71973);e.exports=function(e,t){return e&&r(t,o(t),e)}},69519:(e,t,n)=>{var r=n(5216);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},1952:(e,t,n)=>{var r=n(15004),o=n(35219),i=n(49237),a=n(74671),s=n(67950),l=n(78002),c=n(10073),u=n(62877),d=n(5963),f=n(20922),p=n(99970),h=n(5313),m=n(84279),g=n(96579),v=n(93750),y=n(46296),b=n(98267),w=n(92142),E=n(95188),_=n(77411),x=n(25484),S=n(71973),C=1,k=2,O=4,T="[object Arguments]",N="[object Function]",I="[object GeneratorFunction]",P="[object Object]",R={};R[T]=R["[object Array]"]=R["[object ArrayBuffer]"]=R["[object DataView]"]=R["[object Boolean]"]=R["[object Date]"]=R["[object Float32Array]"]=R["[object Float64Array]"]=R["[object Int8Array]"]=R["[object Int16Array]"]=R["[object Int32Array]"]=R["[object Map]"]=R["[object Number]"]=R[P]=R["[object RegExp]"]=R["[object Set]"]=R["[object String]"]=R["[object Symbol]"]=R["[object Uint8Array]"]=R["[object Uint8ClampedArray]"]=R["[object Uint16Array]"]=R["[object Uint32Array]"]=!0,R["[object Error]"]=R[N]=R["[object WeakMap]"]=!1,e.exports=function e(t,n,D,A,j,M){var L,z=n&C,F=n&k,B=n&O;if(D&&(L=j?D(t,A,j,M):D(t)),void 0!==L)return L;if(!E(t))return t;var U=y(t);if(U){if(L=m(t),!z)return c(t,L)}else{var q=h(t),$=q==N||q==I;if(b(t))return l(t,z);if(q==P||q==T||$&&!j){if(L=F||$?{}:v(t),!z)return F?d(t,s(L,t)):u(t,a(L,t))}else{if(!R[q])return j?t:{};L=g(t,q,z)}}M||(M=new r);var Z=M.get(t);if(Z)return Z;M.set(t,L),_(t)?t.forEach((function(r){L.add(e(r,n,D,r,t,M))})):w(t)&&t.forEach((function(r,o){L.set(o,e(r,n,D,o,t,M))}));var H=U?void 0:(B?F?p:f:F?S:x)(t);return o(H||t,(function(r,o){H&&(r=t[o=r]),i(L,o,e(r,n,D,o,t,M))})),L}},16925:(e,t,n)=>{var r=n(95188),o=Object.create,i=function(){function e(){}return function(t){if(!r(t))return{};if(o)return o(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=i},46067:(e,t,n)=>{var r=n(56713),o=n(79607)(r);e.exports=o},81601:e=>{e.exports=function(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}},97539:(e,t,n)=>{var r=n(15375)();e.exports=r},56713:(e,t,n)=>{var r=n(97539),o=n(25484);e.exports=function(e,t){return e&&r(e,t,o)}},8013:(e,t,n)=>{var r=n(31534),o=n(6996);e.exports=function(e,t){for(var n=0,i=(t=r(t,e)).length;null!=e&&n<i;)e=e[o(t[n++])];return n&&n==i?e:void 0}},49178:(e,t,n)=>{var r=n(17174),o=n(46296);e.exports=function(e,t,n){var i=t(e);return o(e)?i:r(i,n(e))}},59704:(e,t,n)=>{var r=n(62279),o=n(6419),i=n(66949),a="[object Null]",s="[object Undefined]",l=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?s:a:l&&l in Object(e)?o(e):i(e)}},61964:e=>{e.exports=function(e,t){return null!=e&&t in Object(e)}},34698:(e,t,n)=>{var r=n(81601),o=n(49690),i=n(44395);e.exports=function(e,t,n){return t===t?i(e,t,n):r(e,o,n)}},43562:(e,t,n)=>{var r=n(59704),o=n(22542),i="[object Arguments]";e.exports=function(e){return o(e)&&r(e)==i}},94193:(e,t,n)=>{var r=n(17345),o=n(22542);e.exports=function e(t,n,i,a,s){return t===n||(null==t||null==n||!o(t)&&!o(n)?t!==t&&n!==n:r(t,n,i,a,e,s))}},17345:(e,t,n)=>{var r=n(15004),o=n(89886),i=n(63811),a=n(80163),s=n(5313),l=n(46296),c=n(98267),u=n(34057),d=1,f="[object Arguments]",p="[object Array]",h="[object Object]",m=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,g,v,y){var b=l(e),w=l(t),E=b?p:s(e),_=w?p:s(t),x=(E=E==f?h:E)==h,S=(_=_==f?h:_)==h,C=E==_;if(C&&c(e)){if(!c(t))return!1;b=!0,x=!1}if(C&&!x)return y||(y=new r),b||u(e)?o(e,t,n,g,v,y):i(e,t,E,n,g,v,y);if(!(n&d)){var k=x&&m.call(e,"__wrapped__"),O=S&&m.call(t,"__wrapped__");if(k||O){var T=k?e.value():e,N=O?t.value():t;return y||(y=new r),v(T,N,n,g,y)}}return!!C&&(y||(y=new r),a(e,t,n,g,v,y))}},90247:(e,t,n)=>{var r=n(5313),o=n(22542),i="[object Map]";e.exports=function(e){return o(e)&&r(e)==i}},56358:(e,t,n)=>{var r=n(15004),o=n(94193),i=1,a=2;e.exports=function(e,t,n,s){var l=n.length,c=l,u=!s;if(null==e)return!c;for(e=Object(e);l--;){var d=n[l];if(u&&d[2]?d[1]!==e[d[0]]:!(d[0]in e))return!1}for(;++l<c;){var f=(d=n[l])[0],p=e[f],h=d[1];if(u&&d[2]){if(void 0===p&&!(f in e))return!1}else{var m=new r;if(s)var g=s(p,h,f,e,t,m);if(!(void 0===g?o(h,p,i|a,s,m):g))return!1}}return!0}},49690:e=>{e.exports=function(e){return e!==e}},70270:(e,t,n)=>{var r=n(81188),o=n(28502),i=n(95188),a=n(21616),s=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,u=l.toString,d=c.hasOwnProperty,f=RegExp("^"+u.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||o(e))&&(r(e)?f:s).test(a(e))}},81594:(e,t,n)=>{var r=n(5313),o=n(22542),i="[object Set]";e.exports=function(e){return o(e)&&r(e)==i}},77088:(e,t,n)=>{var r=n(59704),o=n(18564),i=n(22542),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&o(e.length)&&!!a[r(e)]}},67173:(e,t,n)=>{var r=n(61059),o=n(31451),i=n(5887),a=n(46296),s=n(90310);e.exports=function(e){return"function"==typeof e?e:null==e?i:"object"==typeof e?a(e)?o(e[0],e[1]):r(e):s(e)}},36539:(e,t,n)=>{var r=n(55241),o=n(8848),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=[];for(var n in Object(e))i.call(e,n)&&"constructor"!=n&&t.push(n);return t}},35487:(e,t,n)=>{var r=n(95188),o=n(55241),i=n(97122),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return i(e);var t=o(e),n=[];for(var s in e)("constructor"!=s||!t&&a.call(e,s))&&n.push(s);return n}},61059:(e,t,n)=>{var r=n(56358),o=n(58428),i=n(41452);e.exports=function(e){var t=o(e);return 1==t.length&&t[0][2]?i(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},31451:(e,t,n)=>{var r=n(94193),o=n(63639),i=n(32183),a=n(32014),s=n(62752),l=n(41452),c=n(6996),u=1,d=2;e.exports=function(e,t){return a(e)&&s(t)?l(c(e),t):function(n){var a=o(n,e);return void 0===a&&a===t?i(n,e):r(t,a,u|d)}}},28141:(e,t,n)=>{var r=n(15004),o=n(17509),i=n(97539),a=n(13149),s=n(95188),l=n(71973),c=n(49864);e.exports=function e(t,n,u,d,f){t!==n&&i(n,(function(i,l){if(f||(f=new r),s(i))a(t,n,l,u,e,d,f);else{var p=d?d(c(t,l),i,l+"",t,n,f):void 0;void 0===p&&(p=i),o(t,l,p)}}),l)}},13149:(e,t,n)=>{var r=n(17509),o=n(78002),i=n(39044),a=n(10073),s=n(93750),l=n(38492),c=n(46296),u=n(55109),d=n(98267),f=n(81188),p=n(95188),h=n(39010),m=n(34057),g=n(49864),v=n(78226);e.exports=function(e,t,n,y,b,w,E){var _=g(e,n),x=g(t,n),S=E.get(x);if(S)r(e,n,S);else{var C=w?w(_,x,n+"",e,t,E):void 0,k=void 0===C;if(k){var O=c(x),T=!O&&d(x),N=!O&&!T&&m(x);C=x,O||T||N?c(_)?C=_:u(_)?C=a(_):T?(k=!1,C=o(x,!0)):N?(k=!1,C=i(x,!0)):C=[]:h(x)||l(x)?(C=_,l(_)?C=v(_):p(_)&&!f(_)||(C=s(x))):k=!1}k&&(E.set(x,C),b(C,x,y,w,E),E.delete(x)),r(e,n,C)}}},16076:e=>{e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},9270:(e,t,n)=>{var r=n(8013);e.exports=function(e){return function(t){return r(t,e)}}},55199:e=>{var t=Math.ceil,n=Math.max;e.exports=function(e,r,o,i){for(var a=-1,s=n(t((r-e)/(o||1)),0),l=Array(s);s--;)l[i?s:++a]=e,e+=o;return l}},42872:(e,t,n)=>{var r=n(5887),o=n(60485),i=n(37232);e.exports=function(e,t){return i(o(e,t,r),e+"")}},93848:(e,t,n)=>{var r=n(49237),o=n(31534),i=n(64764),a=n(95188),s=n(6996);e.exports=function(e,t,n,l){if(!a(e))return e;for(var c=-1,u=(t=o(t,e)).length,d=u-1,f=e;null!=f&&++c<u;){var p=s(t[c]),h=n;if("__proto__"===p||"constructor"===p||"prototype"===p)return e;if(c!=d){var m=f[p];void 0===(h=l?l(m,p,f):void 0)&&(h=a(m)?m:i(t[c+1])?[]:{})}r(f,p,h),f=f[p]}return e}},24609:(e,t,n)=>{var r=n(71715),o=n(5216),i=n(5887),a=o?function(e,t){return o(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:i;e.exports=a},12287:e=>{e.exports=function(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r<o;)i[r]=e[r+t];return i}},94558:e=>{e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},60139:(e,t,n)=>{var r=n(62279),o=n(40341),i=n(46296),a=n(36197),s=1/0,l=r?r.prototype:void 0,c=l?l.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(i(t))return o(t,e)+"";if(a(t))return c?c.call(t):"";var n=t+"";return"0"==n&&1/t==-s?"-0":n}},10480:(e,t,n)=>{var r=n(86948),o=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(o,""):e}},31702:e=>{e.exports=function(e){return function(t){return e(t)}}},28241:(e,t,n)=>{var r=n(75304),o=n(73784),i=n(58713),a=n(58024),s=n(54289),l=n(35886),c=200;e.exports=function(e,t,n){var u=-1,d=o,f=e.length,p=!0,h=[],m=h;if(n)p=!1,d=i;else if(f>=c){var g=t?null:s(e);if(g)return l(g);p=!1,d=a,m=new r}else m=t?[]:h;e:for(;++u<f;){var v=e[u],y=t?t(v):v;if(v=n||0!==v?v:0,p&&y===y){for(var b=m.length;b--;)if(m[b]===y)continue e;t&&m.push(y),h.push(v)}else d(m,y,n)||(m!==h&&m.push(y),h.push(v))}return h}},58024:e=>{e.exports=function(e,t){return e.has(t)}},44499:(e,t,n)=>{var r=n(5887);e.exports=function(e){return"function"==typeof e?e:r}},31534:(e,t,n)=>{var r=n(46296),o=n(32014),i=n(18502),a=n(51001);e.exports=function(e,t){return r(e)?e:o(e,t)?[e]:i(a(e))}},94864:(e,t,n)=>{var r=n(12287);e.exports=function(e,t,n){var o=e.length;return n=void 0===n?o:n,!t&&n>=o?e:r(e,t,n)}},83226:(e,t,n)=>{var r=n(91385);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},78002:(e,t,n)=>{e=n.nmd(e);var r=n(57849),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o?r.Buffer:void 0,s=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=s?s(n):new e.constructor(n);return e.copy(r),r}},83544:(e,t,n)=>{var r=n(83226);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}},51970:e=>{var t=/\w*$/;e.exports=function(e){var n=new e.constructor(e.source,t.exec(e));return n.lastIndex=e.lastIndex,n}},16754:(e,t,n)=>{var r=n(62279),o=r?r.prototype:void 0,i=o?o.valueOf:void 0;e.exports=function(e){return i?Object(i.call(e)):{}}},39044:(e,t,n)=>{var r=n(83226);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},10073:e=>{e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}},81742:(e,t,n)=>{var r=n(49237),o=n(69519);e.exports=function(e,t,n,i){var a=!n;n||(n={});for(var s=-1,l=t.length;++s<l;){var c=t[s],u=i?i(n[c],e[c],c,n,e):void 0;void 0===u&&(u=e[c]),a?o(n,c,u):r(n,c,u)}return n}},62877:(e,t,n)=>{var r=n(81742),o=n(2760);e.exports=function(e,t){return r(e,o(e),t)}},5963:(e,t,n)=>{var r=n(81742),o=n(68825);e.exports=function(e,t){return r(e,o(e),t)}},81401:(e,t,n)=>{var r=n(57849)["__core-js_shared__"];e.exports=r},89490:(e,t,n)=>{var r=n(42872),o=n(10335);e.exports=function(e){return r((function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,s=i>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(i--,a):void 0,s&&o(n[0],n[1],s)&&(a=i<3?void 0:a,i=1),t=Object(t);++r<i;){var l=n[r];l&&e(t,l,r,a)}return t}))}},79607:(e,t,n)=>{var r=n(75345);e.exports=function(e,t){return function(n,o){if(null==n)return n;if(!r(n))return e(n,o);for(var i=n.length,a=t?i:-1,s=Object(n);(t?a--:++a<i)&&!1!==o(s[a],a,s););return n}}},15375:e=>{e.exports=function(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r(t),s=a.length;s--;){var l=a[e?s:++o];if(!1===n(i[l],l,i))break}return t}}},57918:(e,t,n)=>{var r=n(94864),o=n(98099),i=n(92606),a=n(51001);e.exports=function(e){return function(t){t=a(t);var n=o(t)?i(t):void 0,s=n?n[0]:t.charAt(0),l=n?r(n,1).join(""):t.slice(1);return s[e]()+l}}},77529:(e,t,n)=>{var r=n(55199),o=n(10335),i=n(85850);e.exports=function(e){return function(t,n,a){return a&&"number"!=typeof a&&o(t,n,a)&&(n=a=void 0),t=i(t),void 0===n?(n=t,t=0):n=i(n),a=void 0===a?t<n?1:-1:i(a),r(t,n,a,e)}}},411:(e,t,n)=>{var r=n(57849),o=n(94100),i=n(57630),a=n(51001),s=r.isFinite,l=Math.min;e.exports=function(e){var t=Math[e];return function(e,n){if(e=i(e),(n=null==n?0:l(o(n),292))&&s(e)){var r=(a(e)+"e").split("e"),c=t(r[0]+"e"+(+r[1]+n));return+((r=(a(c)+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}},54289:(e,t,n)=>{var r=n(70607),o=n(91200),i=n(35886),a=r&&1/i(new r([,-0]))[1]==1/0?function(e){return new r(e)}:o;e.exports=a},5216:(e,t,n)=>{var r=n(72892),o=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();e.exports=o},89886:(e,t,n)=>{var r=n(75304),o=n(7138),i=n(58024),a=1,s=2;e.exports=function(e,t,n,l,c,u){var d=n&a,f=e.length,p=t.length;if(f!=p&&!(d&&p>f))return!1;var h=u.get(e),m=u.get(t);if(h&&m)return h==t&&m==e;var g=-1,v=!0,y=n&s?new r:void 0;for(u.set(e,t),u.set(t,e);++g<f;){var b=e[g],w=t[g];if(l)var E=d?l(w,b,g,t,e,u):l(b,w,g,e,t,u);if(void 0!==E){if(E)continue;v=!1;break}if(y){if(!o(t,(function(e,t){if(!i(y,t)&&(b===e||c(b,e,n,l,u)))return y.push(t)}))){v=!1;break}}else if(b!==w&&!c(b,w,n,l,u)){v=!1;break}}return u.delete(e),u.delete(t),v}},63811:(e,t,n)=>{var r=n(62279),o=n(91385),i=n(83272),a=n(89886),s=n(69278),l=n(35886),c=1,u=2,d="[object Boolean]",f="[object Date]",p="[object Error]",h="[object Map]",m="[object Number]",g="[object RegExp]",v="[object Set]",y="[object String]",b="[object Symbol]",w="[object ArrayBuffer]",E="[object DataView]",_=r?r.prototype:void 0,x=_?_.valueOf:void 0;e.exports=function(e,t,n,r,_,S,C){switch(n){case E:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case w:return!(e.byteLength!=t.byteLength||!S(new o(e),new o(t)));case d:case f:case m:return i(+e,+t);case p:return e.name==t.name&&e.message==t.message;case g:case y:return e==t+"";case h:var k=s;case v:var O=r&c;if(k||(k=l),e.size!=t.size&&!O)return!1;var T=C.get(e);if(T)return T==t;r|=u,C.set(e,t);var N=a(k(e),k(t),r,_,S,C);return C.delete(e),N;case b:if(x)return x.call(e)==x.call(t)}return!1}},80163:(e,t,n)=>{var r=n(20922),o=1,i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,a,s,l){var c=n&o,u=r(e),d=u.length;if(d!=r(t).length&&!c)return!1;for(var f=d;f--;){var p=u[f];if(!(c?p in t:i.call(t,p)))return!1}var h=l.get(e),m=l.get(t);if(h&&m)return h==t&&m==e;var g=!0;l.set(e,t),l.set(t,e);for(var v=c;++f<d;){var y=e[p=u[f]],b=t[p];if(a)var w=c?a(b,y,p,t,e,l):a(y,b,p,e,t,l);if(!(void 0===w?y===b||s(y,b,n,a,l):w)){g=!1;break}v||(v="constructor"==p)}if(g&&!v){var E=e.constructor,_=t.constructor;E==_||!("constructor"in e)||!("constructor"in t)||"function"==typeof E&&E instanceof E&&"function"==typeof _&&_ instanceof _||(g=!1)}return l.delete(e),l.delete(t),g}},46099:(e,t,n)=>{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},20922:(e,t,n)=>{var r=n(49178),o=n(2760),i=n(25484);e.exports=function(e){return r(e,i,o)}},99970:(e,t,n)=>{var r=n(49178),o=n(68825),i=n(71973);e.exports=function(e){return r(e,i,o)}},89511:(e,t,n)=>{var r=n(50565);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},58428:(e,t,n)=>{var r=n(62752),o=n(25484);e.exports=function(e){for(var t=o(e),n=t.length;n--;){var i=t[n],a=e[i];t[n]=[i,a,r(a)]}return t}},72892:(e,t,n)=>{var r=n(70270),o=n(97453);e.exports=function(e,t){var n=o(e,t);return r(n)?n:void 0}},36842:(e,t,n)=>{var r=n(38007)(Object.getPrototypeOf,Object);e.exports=r},6419:(e,t,n)=>{var r=n(62279),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(l){}var o=a.call(e);return r&&(t?e[s]=n:delete e[s]),o}},2760:(e,t,n)=>{var r=n(82169),o=n(92128),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(e){return null==e?[]:(e=Object(e),r(a(e),(function(t){return i.call(e,t)})))}:o;e.exports=s},68825:(e,t,n)=>{var r=n(17174),o=n(36842),i=n(2760),a=n(92128),s=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)r(t,i(e)),e=o(e);return t}:a;e.exports=s},5313:(e,t,n)=>{var r=n(22849),o=n(44086),i=n(42115),a=n(70607),s=n(20177),l=n(59704),c=n(21616),u="[object Map]",d="[object Promise]",f="[object Set]",p="[object WeakMap]",h="[object DataView]",m=c(r),g=c(o),v=c(i),y=c(a),b=c(s),w=l;(r&&w(new r(new ArrayBuffer(1)))!=h||o&&w(new o)!=u||i&&w(i.resolve())!=d||a&&w(new a)!=f||s&&w(new s)!=p)&&(w=function(e){var t=l(e),n="[object Object]"==t?e.constructor:void 0,r=n?c(n):"";if(r)switch(r){case m:return h;case g:return u;case v:return d;case y:return f;case b:return p}return t}),e.exports=w},97453:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},5538:(e,t,n)=>{var r=n(31534),o=n(38492),i=n(46296),a=n(64764),s=n(18564),l=n(6996);e.exports=function(e,t,n){for(var c=-1,u=(t=r(t,e)).length,d=!1;++c<u;){var f=l(t[c]);if(!(d=null!=e&&n(e,f)))break;e=e[f]}return d||++c!=u?d:!!(u=null==e?0:e.length)&&s(u)&&a(f,u)&&(i(e)||o(e))}},98099:e=>{var t=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return t.test(e)}},29076:(e,t,n)=>{var r=n(18501);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},76009:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},86992:(e,t,n)=>{var r=n(18501),o="__lodash_hash_undefined__",i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return n===o?void 0:n}return i.call(t,e)?t[e]:void 0}},59120:(e,t,n)=>{var r=n(18501),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:o.call(t,e)}},25899:(e,t,n)=>{var r=n(18501),o="__lodash_hash_undefined__";e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?o:t,this}},84279:e=>{var t=Object.prototype.hasOwnProperty;e.exports=function(e){var n=e.length,r=new e.constructor(n);return n&&"string"==typeof e[0]&&t.call(e,"index")&&(r.index=e.index,r.input=e.input),r}},96579:(e,t,n)=>{var r=n(83226),o=n(83544),i=n(51970),a=n(16754),s=n(39044),l="[object Boolean]",c="[object Date]",u="[object Map]",d="[object Number]",f="[object RegExp]",p="[object Set]",h="[object String]",m="[object Symbol]",g="[object ArrayBuffer]",v="[object DataView]",y="[object Float32Array]",b="[object Float64Array]",w="[object Int8Array]",E="[object Int16Array]",_="[object Int32Array]",x="[object Uint8Array]",S="[object Uint8ClampedArray]",C="[object Uint16Array]",k="[object Uint32Array]";e.exports=function(e,t,n){var O=e.constructor;switch(t){case g:return r(e);case l:case c:return new O(+e);case v:return o(e,n);case y:case b:case w:case E:case _:case x:case S:case C:case k:return s(e,n);case u:return new O;case d:case h:return new O(e);case f:return i(e);case p:return new O;case m:return a(e)}}},93750:(e,t,n)=>{var r=n(16925),o=n(36842),i=n(55241);e.exports=function(e){return"function"!=typeof e.constructor||i(e)?{}:r(o(e))}},64764:e=>{var t=9007199254740991,n=/^(?:0|[1-9]\d*)$/;e.exports=function(e,r){var o=typeof e;return!!(r=null==r?t:r)&&("number"==o||"symbol"!=o&&n.test(e))&&e>-1&&e%1==0&&e<r}},10335:(e,t,n)=>{var r=n(83272),o=n(75345),i=n(64764),a=n(95188);e.exports=function(e,t,n){if(!a(n))return!1;var s=typeof t;return!!("number"==s?o(n)&&i(t,n.length):"string"==s&&t in n)&&r(n[t],e)}},32014:(e,t,n)=>{var r=n(46296),o=n(36197),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!o(e))||(a.test(e)||!i.test(e)||null!=t&&e in Object(t))}},50565:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},28502:(e,t,n)=>{var r=n(81401),o=function(){var e=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();e.exports=function(e){return!!o&&o in e}},55241:e=>{var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},62752:(e,t,n)=>{var r=n(95188);e.exports=function(e){return e===e&&!r(e)}},29917:e=>{e.exports=function(){this.__data__=[],this.size=0}},43490:(e,t,n)=>{var r=n(11786),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():o.call(t,n,1),--this.size,!0)}},64872:(e,t,n)=>{var r=n(11786);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},21744:(e,t,n)=>{var r=n(11786);e.exports=function(e){return r(this.__data__,e)>-1}},88820:(e,t,n)=>{var r=n(11786);e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},27161:(e,t,n)=>{var r=n(90145),o=n(18084),i=n(44086);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||o),string:new r}}},65317:(e,t,n)=>{var r=n(89511);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},93297:(e,t,n)=>{var r=n(89511);e.exports=function(e){return r(this,e).get(e)}},25771:(e,t,n)=>{var r=n(89511);e.exports=function(e){return r(this,e).has(e)}},633:(e,t,n)=>{var r=n(89511);e.exports=function(e,t){var n=r(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}},69278:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},41452:e=>{e.exports=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}},75103:(e,t,n)=>{var r=n(9161),o=500;e.exports=function(e){var t=r(e,(function(e){return n.size===o&&n.clear(),e})),n=t.cache;return t}},18501:(e,t,n)=>{var r=n(72892)(Object,"create");e.exports=r},8848:(e,t,n)=>{var r=n(38007)(Object.keys,Object);e.exports=r},97122:e=>{e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},24542:(e,t,n)=>{e=n.nmd(e);var r=n(46099),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o&&r.process,s=function(){try{var e=i&&i.require&&i.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(t){}}();e.exports=s},66949:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},38007:e=>{e.exports=function(e,t){return function(n){return e(t(n))}}},60485:(e,t,n)=>{var r=n(12539),o=Math.max;e.exports=function(e,t,n){return t=o(void 0===t?e.length-1:t,0),function(){for(var i=arguments,a=-1,s=o(i.length-t,0),l=Array(s);++a<s;)l[a]=i[t+a];a=-1;for(var c=Array(t+1);++a<t;)c[a]=i[a];return c[t]=n(l),r(e,this,c)}}},57849:(e,t,n)=>{var r=n(46099),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},49864:e=>{e.exports=function(e,t){if(("constructor"!==t||"function"!==typeof e[t])&&"__proto__"!=t)return e[t]}},93648:e=>{var t="__lodash_hash_undefined__";e.exports=function(e){return this.__data__.set(e,t),this}},56683:e=>{e.exports=function(e){return this.__data__.has(e)}},35886:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},37232:(e,t,n)=>{var r=n(24609),o=n(26552)(r);e.exports=o},26552:e=>{var t=800,n=16,r=Date.now;e.exports=function(e){var o=0,i=0;return function(){var a=r(),s=n-(a-i);if(i=a,s>0){if(++o>=t)return arguments[0]}else o=0;return e.apply(void 0,arguments)}}},41662:(e,t,n)=>{var r=n(18084);e.exports=function(){this.__data__=new r,this.size=0}},97368:e=>{e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},87454:e=>{e.exports=function(e){return this.__data__.get(e)}},16596:e=>{e.exports=function(e){return this.__data__.has(e)}},32052:(e,t,n)=>{var r=n(18084),o=n(44086),i=n(47059),a=200;e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var s=n.__data__;if(!o||s.length<a-1)return s.push([e,t]),this.size=++n.size,this;n=this.__data__=new i(s)}return n.set(e,t),this.size=n.size,this}},44395:e=>{e.exports=function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}},92606:(e,t,n)=>{var r=n(58961),o=n(98099),i=n(55412);e.exports=function(e){return o(e)?i(e):r(e)}},18502:(e,t,n)=>{var r=n(75103),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,a=r((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(o,(function(e,n,r,o){t.push(r?o.replace(i,"$1"):n||e)})),t}));e.exports=a},6996:(e,t,n)=>{var r=n(36197),o=1/0;e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-o?"-0":t}},21616:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(n){}try{return e+""}catch(n){}}return""}},86948:e=>{var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},55412:e=>{var t="\\ud800-\\udfff",n="["+t+"]",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",o="\\ud83c[\\udffb-\\udfff]",i="[^"+t+"]",a="(?:\\ud83c[\\udde6-\\uddff]){2}",s="[\\ud800-\\udbff][\\udc00-\\udfff]",l="(?:"+r+"|"+o+")"+"?",c="[\\ufe0e\\ufe0f]?",u=c+l+("(?:\\u200d(?:"+[i,a,s].join("|")+")"+c+l+")*"),d="(?:"+[i+r+"?",r,a,s,n].join("|")+")",f=RegExp(o+"(?="+o+")|"+d+u,"g");e.exports=function(e){return e.match(f)||[]}},6381:(e,t,n)=>{var r=n(51001),o=n(17445);e.exports=function(e){return o(r(e).toLowerCase())}},63585:(e,t,n)=>{var r=n(1952),o=1,i=4;e.exports=function(e){return r(e,o|i)}},71715:e=>{e.exports=function(e){return function(){return e}}},57002:(e,t,n)=>{var r=n(95188),o=n(44864),i=n(57630),a="Expected a function",s=Math.max,l=Math.min;e.exports=function(e,t,n){var c,u,d,f,p,h,m=0,g=!1,v=!1,y=!0;if("function"!=typeof e)throw new TypeError(a);function b(t){var n=c,r=u;return c=u=void 0,m=t,f=e.apply(r,n)}function w(e){var n=e-h;return void 0===h||n>=t||n<0||v&&e-m>=d}function E(){var e=o();if(w(e))return _(e);p=setTimeout(E,function(e){var n=t-(e-h);return v?l(n,d-(e-m)):n}(e))}function _(e){return p=void 0,y&&c?b(e):(c=u=void 0,f)}function x(){var e=o(),n=w(e);if(c=arguments,u=this,h=e,n){if(void 0===p)return function(e){return m=e,p=setTimeout(E,t),g?b(e):f}(h);if(v)return clearTimeout(p),p=setTimeout(E,t),b(h)}return void 0===p&&(p=setTimeout(E,t)),f}return t=i(t)||0,r(n)&&(g=!!n.leading,d=(v="maxWait"in n)?s(i(n.maxWait)||0,t):d,y="trailing"in n?!!n.trailing:y),x.cancel=function(){void 0!==p&&clearTimeout(p),m=0,c=h=u=p=void 0},x.flush=function(){return void 0===p?f:_(o())},x}},84142:(e,t,n)=>{e.exports=n(27663)},83272:e=>{e.exports=function(e,t){return e===t||e!==e&&t!==t}},27663:(e,t,n)=>{var r=n(35219),o=n(46067),i=n(44499),a=n(46296);e.exports=function(e,t){return(a(e)?r:o)(e,i(t))}},63639:(e,t,n)=>{var r=n(8013);e.exports=function(e,t,n){var o=null==e?void 0:r(e,t);return void 0===o?n:o}},32183:(e,t,n)=>{var r=n(61964),o=n(5538);e.exports=function(e,t){return null!=e&&o(e,t,r)}},5887:e=>{e.exports=function(e){return e}},38492:(e,t,n)=>{var r=n(43562),o=n(22542),i=Object.prototype,a=i.hasOwnProperty,s=i.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(e){return o(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},46296:e=>{var t=Array.isArray;e.exports=t},75345:(e,t,n)=>{var r=n(81188),o=n(18564);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},55109:(e,t,n)=>{var r=n(75345),o=n(22542);e.exports=function(e){return o(e)&&r(e)}},98267:(e,t,n)=>{e=n.nmd(e);var r=n(57849),o=n(53388),i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,s=a&&a.exports===i?r.Buffer:void 0,l=(s?s.isBuffer:void 0)||o;e.exports=l},85198:(e,t,n)=>{var r=n(36539),o=n(5313),i=n(38492),a=n(46296),s=n(75345),l=n(98267),c=n(55241),u=n(34057),d="[object Map]",f="[object Set]",p=Object.prototype.hasOwnProperty;e.exports=function(e){if(null==e)return!0;if(s(e)&&(a(e)||"string"==typeof e||"function"==typeof e.splice||l(e)||u(e)||i(e)))return!e.length;var t=o(e);if(t==d||t==f)return!e.size;if(c(e))return!r(e).length;for(var n in e)if(p.call(e,n))return!1;return!0}},85690:(e,t,n)=>{var r=n(94193);e.exports=function(e,t){return r(e,t)}},81188:(e,t,n)=>{var r=n(59704),o=n(95188),i="[object AsyncFunction]",a="[object Function]",s="[object GeneratorFunction]",l="[object Proxy]";e.exports=function(e){if(!o(e))return!1;var t=r(e);return t==a||t==s||t==i||t==l}},18564:e=>{var t=9007199254740991;e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=t}},92142:(e,t,n)=>{var r=n(90247),o=n(31702),i=n(24542),a=i&&i.isMap,s=a?o(a):r;e.exports=s},95188:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},22542:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},39010:(e,t,n)=>{var r=n(59704),o=n(36842),i=n(22542),a="[object Object]",s=Function.prototype,l=Object.prototype,c=s.toString,u=l.hasOwnProperty,d=c.call(Object);e.exports=function(e){if(!i(e)||r(e)!=a)return!1;var t=o(e);if(null===t)return!0;var n=u.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&c.call(n)==d}},77411:(e,t,n)=>{var r=n(81594),o=n(31702),i=n(24542),a=i&&i.isSet,s=a?o(a):r;e.exports=s},36197:(e,t,n)=>{var r=n(59704),o=n(22542),i="[object Symbol]";e.exports=function(e){return"symbol"==typeof e||o(e)&&r(e)==i}},34057:(e,t,n)=>{var r=n(77088),o=n(31702),i=n(24542),a=i&&i.isTypedArray,s=a?o(a):r;e.exports=s},25484:(e,t,n)=>{var r=n(34087),o=n(36539),i=n(75345);e.exports=function(e){return i(e)?r(e):o(e)}},71973:(e,t,n)=>{var r=n(34087),o=n(35487),i=n(75345);e.exports=function(e){return i(e)?r(e,!0):o(e)}},9161:(e,t,n)=>{var r=n(47059),o="Expected a function";function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError(o);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(i.Cache||r),n}i.Cache=r,e.exports=i},3186:(e,t,n)=>{var r=n(28141),o=n(89490)((function(e,t,n){r(e,t,n)}));e.exports=o},91200:e=>{e.exports=function(){}},44864:(e,t,n)=>{var r=n(57849);e.exports=function(){return r.Date.now()}},90310:(e,t,n)=>{var r=n(16076),o=n(9270),i=n(32014),a=n(6996);e.exports=function(e){return i(e)?r(a(e)):o(e)}},28925:(e,t,n)=>{var r=n(77529)();e.exports=r},54466:(e,t,n)=>{var r=n(411)("round");e.exports=r},9447:(e,t,n)=>{var r=n(93848);e.exports=function(e,t,n){return null==e?e:r(e,t,n)}},92128:e=>{e.exports=function(){return[]}},53388:e=>{e.exports=function(){return!1}},43832:(e,t,n)=>{var r=n(57002),o=n(95188),i="Expected a function";e.exports=function(e,t,n){var a=!0,s=!0;if("function"!=typeof e)throw new TypeError(i);return o(n)&&(a="leading"in n?!!n.leading:a,s="trailing"in n?!!n.trailing:s),r(e,t,{leading:a,maxWait:t,trailing:s})}},85850:(e,t,n)=>{var r=n(57630),o=1/0,i=17976931348623157e292;e.exports=function(e){return e?(e=r(e))===o||e===-o?(e<0?-1:1)*i:e===e?e:0:0===e?e:0}},94100:(e,t,n)=>{var r=n(85850);e.exports=function(e){var t=r(e),n=t%1;return t===t?n?t-n:t:0}},57630:(e,t,n)=>{var r=n(10480),o=n(95188),i=n(36197),a=NaN,s=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,c=/^0o[0-7]+$/i,u=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return a;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=l.test(e);return n||c.test(e)?u(e.slice(2),n?2:8):s.test(e)?a:+e}},78226:(e,t,n)=>{var r=n(81742),o=n(71973);e.exports=function(e){return r(e,o(e))}},51001:(e,t,n)=>{var r=n(60139);e.exports=function(e){return null==e?"":r(e)}},60619:(e,t,n)=>{var r=n(67173),o=n(28241);e.exports=function(e,t){return e&&e.length?o(e,r(t,2)):[]}},17445:(e,t,n)=>{var r=n(57918)("toUpperCase");e.exports=r},5083:e=>{"use strict";e.exports=function(e){for(var t=function(e){var t,n=1+(e.length+8>>6),r=new Array(16*n);for(t=0;t<16*n;t++)r[t]=0;for(t=0;t<e.length;t++)r[t>>2]|=e.charCodeAt(t)<<(8*e.length+t)%4*8;r[t>>2]|=128<<(8*e.length+t)%4*8;var o=8*e.length;return r[16*n-2]=255&o,r[16*n-2]|=(o>>>8&255)<<8,r[16*n-2]|=(o>>>16&255)<<16,r[16*n-2]|=(o>>>24&255)<<24,r}(e),n=1732584193,r=-271733879,o=-1732584194,s=271733878,f=0;f<t.length;f+=16){var p=n,h=r,m=o,g=s;n=l(n,r,o,s,t[f+0],7,-680876936),s=l(s,n,r,o,t[f+1],12,-389564586),o=l(o,s,n,r,t[f+2],17,606105819),r=l(r,o,s,n,t[f+3],22,-1044525330),n=l(n,r,o,s,t[f+4],7,-176418897),s=l(s,n,r,o,t[f+5],12,1200080426),o=l(o,s,n,r,t[f+6],17,-1473231341),r=l(r,o,s,n,t[f+7],22,-45705983),n=l(n,r,o,s,t[f+8],7,1770035416),s=l(s,n,r,o,t[f+9],12,-1958414417),o=l(o,s,n,r,t[f+10],17,-42063),r=l(r,o,s,n,t[f+11],22,-1990404162),n=l(n,r,o,s,t[f+12],7,1804603682),s=l(s,n,r,o,t[f+13],12,-40341101),o=l(o,s,n,r,t[f+14],17,-1502002290),n=c(n,r=l(r,o,s,n,t[f+15],22,1236535329),o,s,t[f+1],5,-165796510),s=c(s,n,r,o,t[f+6],9,-1069501632),o=c(o,s,n,r,t[f+11],14,643717713),r=c(r,o,s,n,t[f+0],20,-373897302),n=c(n,r,o,s,t[f+5],5,-701558691),s=c(s,n,r,o,t[f+10],9,38016083),o=c(o,s,n,r,t[f+15],14,-660478335),r=c(r,o,s,n,t[f+4],20,-405537848),n=c(n,r,o,s,t[f+9],5,568446438),s=c(s,n,r,o,t[f+14],9,-1019803690),o=c(o,s,n,r,t[f+3],14,-187363961),r=c(r,o,s,n,t[f+8],20,1163531501),n=c(n,r,o,s,t[f+13],5,-1444681467),s=c(s,n,r,o,t[f+2],9,-51403784),o=c(o,s,n,r,t[f+7],14,1735328473),n=u(n,r=c(r,o,s,n,t[f+12],20,-1926607734),o,s,t[f+5],4,-378558),s=u(s,n,r,o,t[f+8],11,-2022574463),o=u(o,s,n,r,t[f+11],16,1839030562),r=u(r,o,s,n,t[f+14],23,-35309556),n=u(n,r,o,s,t[f+1],4,-1530992060),s=u(s,n,r,o,t[f+4],11,1272893353),o=u(o,s,n,r,t[f+7],16,-155497632),r=u(r,o,s,n,t[f+10],23,-1094730640),n=u(n,r,o,s,t[f+13],4,681279174),s=u(s,n,r,o,t[f+0],11,-358537222),o=u(o,s,n,r,t[f+3],16,-722521979),r=u(r,o,s,n,t[f+6],23,76029189),n=u(n,r,o,s,t[f+9],4,-640364487),s=u(s,n,r,o,t[f+12],11,-421815835),o=u(o,s,n,r,t[f+15],16,530742520),n=d(n,r=u(r,o,s,n,t[f+2],23,-995338651),o,s,t[f+0],6,-198630844),s=d(s,n,r,o,t[f+7],10,1126891415),o=d(o,s,n,r,t[f+14],15,-1416354905),r=d(r,o,s,n,t[f+5],21,-57434055),n=d(n,r,o,s,t[f+12],6,1700485571),s=d(s,n,r,o,t[f+3],10,-1894986606),o=d(o,s,n,r,t[f+10],15,-1051523),r=d(r,o,s,n,t[f+1],21,-2054922799),n=d(n,r,o,s,t[f+8],6,1873313359),s=d(s,n,r,o,t[f+15],10,-30611744),o=d(o,s,n,r,t[f+6],15,-1560198380),r=d(r,o,s,n,t[f+13],21,1309151649),n=d(n,r,o,s,t[f+4],6,-145523070),s=d(s,n,r,o,t[f+11],10,-1120210379),o=d(o,s,n,r,t[f+2],15,718787259),r=d(r,o,s,n,t[f+9],21,-343485551),n=i(n,p),r=i(r,h),o=i(o,m),s=i(s,g)}return a(n)+a(r)+a(o)+a(s)};var t="0123456789abcdef";function n(e,t){return(e>>>1|t>>>1)<<1|(1&e|1&t)}function r(e,t){return(e>>>1^t>>>1)<<1|1&e^1&t}function o(e,t){return(e>>>1&t>>>1)<<1|1&e&t}function i(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function a(e){var n,r="";for(n=0;n<=3;n++)r+=t.charAt(e>>8*n+4&15)+t.charAt(e>>8*n&15);return r}function s(e,t,n,r,o,a){return i((s=i(i(t,e),i(r,a)))<<(l=o)|s>>>32-l,n);var s,l}function l(e,t,r,i,a,l,c){return s(n(o(t,r),o(~t,i)),e,t,a,l,c)}function c(e,t,r,i,a,l,c){return s(n(o(t,i),o(r,~i)),e,t,a,l,c)}function u(e,t,n,o,i,a,l){return s(r(r(t,n),o),e,t,i,a,l)}function d(e,t,o,i,a,l,c){return s(r(o,n(t,~i)),e,t,a,l,c)}},90083:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=Number.isNaN||function(e){return"number"===typeof e&&e!==e};function o(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(o=e[n],i=t[n],!(o===i||r(o)&&r(i)))return!1;var o,i;return!0}const i=function(e,t){var n;void 0===t&&(t=o);var r,i=[],a=!1;return function(){for(var o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];return a&&n===this&&t(o,i)||(r=e.apply(this,o),a=!0,n=this,i=o),r}}},40022:function(e,t,n){var r,o,i;o=[n(36453)],void 0===(i="function"===typeof(r=function(e){e.register("locale","bg",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"\u0445\u0438\u043b",million:"\u043c\u043b\u043d",billion:"\u043c\u043b\u0440\u0434",trillion:"\u0442\u0440\u043b\u043d"},ordinal:function(e){return""},currency:{symbol:"\u043b\u0432"}}),e.register("locale","chs",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"\u5343",million:"\u767e\u4e07",billion:"\u5341\u4ebf",trillion:"\u5146"},ordinal:function(e){return"."},currency:{symbol:"\xa5"}}),e.register("locale","cs",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"tis.",million:"mil.",billion:"b",trillion:"t"},ordinal:function(){return"."},currency:{symbol:"K\u010d"}}),e.register("locale","da-dk",{delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"k",million:"mio",billion:"mia",trillion:"b"},ordinal:function(e){return"."},currency:{symbol:"DKK"}}),e.register("locale","de-ch",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){return"."},currency:{symbol:"CHF"}}),e.register("locale","de",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){return"."},currency:{symbol:"\u20ac"}}),e.register("locale","en-au",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){var t=e%10;return 1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th"},currency:{symbol:"$"}}),e.register("locale","en-gb",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){var t=e%10;return 1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th"},currency:{symbol:"\xa3"}}),e.register("locale","en-za",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){var t=e%10;return 1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th"},currency:{symbol:"R"}}),e.register("locale","es-es",{delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"k",million:"mm",billion:"b",trillion:"t"},ordinal:function(e){var t=e%10;return 1===t||3===t?"er":2===t?"do":7===t||0===t?"mo":8===t?"vo":9===t?"no":"to"},currency:{symbol:"\u20ac"}}),e.register("locale","es",{delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"k",million:"mm",billion:"b",trillion:"t"},ordinal:function(e){var t=e%10;return 1===t||3===t?"er":2===t?"do":7===t||0===t?"mo":8===t?"vo":9===t?"no":"to"},currency:{symbol:"$"}}),e.register("locale","et",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:" tuh",million:" mln",billion:" mld",trillion:" trl"},ordinal:function(e){return"."},currency:{symbol:"\u20ac"}}),e.register("locale","fi",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"M",billion:"G",trillion:"T"},ordinal:function(e){return"."},currency:{symbol:"\u20ac"}}),e.register("locale","fr-ca",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"M",billion:"G",trillion:"T"},ordinal:function(e){return 1===e?"er":"e"},currency:{symbol:"$"}}),e.register("locale","fr-ch",{delimiters:{thousands:"'",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){return 1===e?"er":"e"},currency:{symbol:"CHF"}}),e.register("locale","fr",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){return 1===e?"er":"e"},currency:{symbol:"\u20ac"}}),e.register("locale","hu",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"E",million:"M",billion:"Mrd",trillion:"T"},ordinal:function(e){return"."},currency:{symbol:" Ft"}}),e.register("locale","it",{delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"mila",million:"mil",billion:"b",trillion:"t"},ordinal:function(e){return"\xba"},currency:{symbol:"\u20ac"}}),e.register("locale","ja",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"\u5343",million:"\u767e\u4e07",billion:"\u5341\u5104",trillion:"\u5146"},ordinal:function(e){return"."},currency:{symbol:"\xa5"}}),e.register("locale","lv",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:" t\u016bkst.",million:" milj.",billion:" mljrd.",trillion:" trilj."},ordinal:function(e){return"."},currency:{symbol:"\u20ac"}}),e.register("locale","nl-be",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:" mln",billion:" mld",trillion:" bln"},ordinal:function(e){var t=e%100;return 0!==e&&t<=1||8===t||t>=20?"ste":"de"},currency:{symbol:"\u20ac "}}),e.register("locale","nl-nl",{delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"k",million:"mln",billion:"mrd",trillion:"bln"},ordinal:function(e){var t=e%100;return 0!==e&&t<=1||8===t||t>=20?"ste":"de"},currency:{symbol:"\u20ac "}}),e.register("locale","no",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){return"."},currency:{symbol:"kr"}}),e.register("locale","pl",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"tys.",million:"mln",billion:"mld",trillion:"bln"},ordinal:function(e){return"."},currency:{symbol:"PLN"}}),e.register("locale","pt-br",{delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"mil",million:"milh\xf5es",billion:"b",trillion:"t"},ordinal:function(e){return"\xba"},currency:{symbol:"R$"}}),e.register("locale","pt-pt",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){return"\xba"},currency:{symbol:"\u20ac"}}),e.register("locale","ru-ua",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"\u0442\u044b\u0441.",million:"\u043c\u043b\u043d",billion:"b",trillion:"t"},ordinal:function(){return"."},currency:{symbol:"\u20b4"}}),e.register("locale","ru",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"\u0442\u044b\u0441.",million:"\u043c\u043b\u043d.",billion:"\u043c\u043b\u0440\u0434.",trillion:"\u0442\u0440\u043b\u043d."},ordinal:function(){return"."},currency:{symbol:"\u0440\u0443\u0431."}}),e.register("locale","sk",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"tis.",million:"mil.",billion:"b",trillion:"t"},ordinal:function(){return"."},currency:{symbol:"\u20ac"}}),e.register("locale","sl",{delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"k",million:"mio",billion:"mrd",trillion:"trilijon"},ordinal:function(){return"."},currency:{symbol:"\u20ac"}}),e.register("locale","th",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"\u0e1e\u0e31\u0e19",million:"\u0e25\u0e49\u0e32\u0e19",billion:"\u0e1e\u0e31\u0e19\u0e25\u0e49\u0e32\u0e19",trillion:"\u0e25\u0e49\u0e32\u0e19\u0e25\u0e49\u0e32\u0e19"},ordinal:function(e){return"."},currency:{symbol:"\u0e3f"}}),function(){var t={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'\xfcnc\xfc",4:"'\xfcnc\xfc",100:"'\xfcnc\xfc",6:"'nc\u0131",9:"'uncu",10:"'uncu",30:"'uncu",60:"'\u0131nc\u0131",90:"'\u0131nc\u0131"};e.register("locale","tr",{delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"bin",million:"milyon",billion:"milyar",trillion:"trilyon"},ordinal:function(e){if(0===e)return"'\u0131nc\u0131";var n=e%10,r=e%100-n,o=e>=100?100:null;return t[n]||t[r]||t[o]},currency:{symbol:"\u20ba"}})}(),e.register("locale","uk-ua",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"\u0442\u0438\u0441.",million:"\u043c\u043b\u043d",billion:"\u043c\u043b\u0440\u0434",trillion:"\u0431\u043b\u043d"},ordinal:function(){return""},currency:{symbol:"\u20b4"}}),e.register("locale","vi",{delimiters:{thousands:".",decimal:","},abbreviations:{thousand:" ngh\xecn",million:" tri\u1ec7u",billion:" t\u1ef7",trillion:" ngh\xecn t\u1ef7"},ordinal:function(){return"."},currency:{symbol:"\u20ab"}})})?r.apply(t,o):r)||(e.exports=i)},36453:function(e,t,n){var r,o;r=function(){var e,t,n="2.0.6",r={},o={},i={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},a={currentLocale:i.currentLocale,zeroFormat:i.zeroFormat,nullFormat:i.nullFormat,defaultFormat:i.defaultFormat,scalePercentBy100:i.scalePercentBy100};function s(e,t){this._input=e,this._value=t}return(e=function(n){var o,i,l,c;if(e.isNumeral(n))o=n.value();else if(0===n||"undefined"===typeof n)o=0;else if(null===n||t.isNaN(n))o=null;else if("string"===typeof n)if(a.zeroFormat&&n===a.zeroFormat)o=0;else if(a.nullFormat&&n===a.nullFormat||!n.replace(/[^0-9]+/g,"").length)o=null;else{for(i in r)if((c="function"===typeof r[i].regexps.unformat?r[i].regexps.unformat():r[i].regexps.unformat)&&n.match(c)){l=r[i].unformat;break}o=(l=l||e._.stringToNumber)(n)}else o=Number(n)||null;return new s(n,o)}).version=n,e.isNumeral=function(e){return e instanceof s},e._=t={numberToFormat:function(t,n,r){var i,a,s,l,c,u,d,f=o[e.options.currentLocale],p=!1,h=!1,m=0,g="",v=1e12,y=1e9,b=1e6,w=1e3,E="",_=!1;if(t=t||0,a=Math.abs(t),e._.includes(n,"(")?(p=!0,n=n.replace(/[\(|\)]/g,"")):(e._.includes(n,"+")||e._.includes(n,"-"))&&(c=e._.includes(n,"+")?n.indexOf("+"):t<0?n.indexOf("-"):-1,n=n.replace(/[\+|\-]/g,"")),e._.includes(n,"a")&&(i=!!(i=n.match(/a(k|m|b|t)?/))&&i[1],e._.includes(n," a")&&(g=" "),n=n.replace(new RegExp(g+"a[kmbt]?"),""),a>=v&&!i||"t"===i?(g+=f.abbreviations.trillion,t/=v):a<v&&a>=y&&!i||"b"===i?(g+=f.abbreviations.billion,t/=y):a<y&&a>=b&&!i||"m"===i?(g+=f.abbreviations.million,t/=b):(a<b&&a>=w&&!i||"k"===i)&&(g+=f.abbreviations.thousand,t/=w)),e._.includes(n,"[.]")&&(h=!0,n=n.replace("[.]",".")),s=t.toString().split(".")[0],l=n.split(".")[1],u=n.indexOf(","),m=(n.split(".")[0].split(",")[0].match(/0/g)||[]).length,l?(e._.includes(l,"[")?(l=(l=l.replace("]","")).split("["),E=e._.toFixed(t,l[0].length+l[1].length,r,l[1].length)):E=e._.toFixed(t,l.length,r),s=E.split(".")[0],E=e._.includes(E,".")?f.delimiters.decimal+E.split(".")[1]:"",h&&0===Number(E.slice(1))&&(E="")):s=e._.toFixed(t,0,r),g&&!i&&Number(s)>=1e3&&g!==f.abbreviations.trillion)switch(s=String(Number(s)/1e3),g){case f.abbreviations.thousand:g=f.abbreviations.million;break;case f.abbreviations.million:g=f.abbreviations.billion;break;case f.abbreviations.billion:g=f.abbreviations.trillion}if(e._.includes(s,"-")&&(s=s.slice(1),_=!0),s.length<m)for(var x=m-s.length;x>0;x--)s="0"+s;return u>-1&&(s=s.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+f.delimiters.thousands)),0===n.indexOf(".")&&(s=""),d=s+E+(g||""),p?d=(p&&_?"(":"")+d+(p&&_?")":""):c>=0?d=0===c?(_?"-":"+")+d:d+(_?"-":"+"):_&&(d="-"+d),d},stringToNumber:function(e){var t,n,r,i=o[a.currentLocale],s=e,l={thousand:3,million:6,billion:9,trillion:12};if(a.zeroFormat&&e===a.zeroFormat)n=0;else if(a.nullFormat&&e===a.nullFormat||!e.replace(/[^0-9]+/g,"").length)n=null;else{for(t in n=1,"."!==i.delimiters.decimal&&(e=e.replace(/\./g,"").replace(i.delimiters.decimal,".")),l)if(r=new RegExp("[^a-zA-Z]"+i.abbreviations[t]+"(?:\\)|(\\"+i.currency.symbol+")?(?:\\))?)?$"),s.match(r)){n*=Math.pow(10,l[t]);break}n*=(e.split("-").length+Math.min(e.split("(").length-1,e.split(")").length-1))%2?1:-1,e=e.replace(/[^0-9\.]+/g,""),n*=Number(e)}return n},isNaN:function(e){return"number"===typeof e&&isNaN(e)},includes:function(e,t){return-1!==e.indexOf(t)},insert:function(e,t,n){return e.slice(0,n)+t+e.slice(n)},reduce:function(e,t){if(null===this)throw new TypeError("Array.prototype.reduce called on null or undefined");if("function"!==typeof t)throw new TypeError(t+" is not a function");var n,r=Object(e),o=r.length>>>0,i=0;if(3===arguments.length)n=arguments[2];else{for(;i<o&&!(i in r);)i++;if(i>=o)throw new TypeError("Reduce of empty array with no initial value");n=r[i++]}for(;i<o;i++)i in r&&(n=t(n,r[i],i,r));return n},multiplier:function(e){var t=e.toString().split(".");return t.length<2?1:Math.pow(10,t[1].length)},correctionFactor:function(){return Array.prototype.slice.call(arguments).reduce((function(e,n){var r=t.multiplier(n);return e>r?e:r}),1)},toFixed:function(e,t,n,r){var o,i,a,s,l=e.toString().split("."),c=t-(r||0);return o=2===l.length?Math.min(Math.max(l[1].length,c),t):c,a=Math.pow(10,o),s=(n(e+"e+"+o)/a).toFixed(o),r>t-o&&(i=new RegExp("\\.?0{1,"+(r-(t-o))+"}$"),s=s.replace(i,"")),s}},e.options=a,e.formats=r,e.locales=o,e.locale=function(e){return e&&(a.currentLocale=e.toLowerCase()),a.currentLocale},e.localeData=function(e){if(!e)return o[a.currentLocale];if(e=e.toLowerCase(),!o[e])throw new Error("Unknown locale : "+e);return o[e]},e.reset=function(){for(var e in i)a[e]=i[e]},e.zeroFormat=function(e){a.zeroFormat="string"===typeof e?e:null},e.nullFormat=function(e){a.nullFormat="string"===typeof e?e:null},e.defaultFormat=function(e){a.defaultFormat="string"===typeof e?e:"0.0"},e.register=function(e,t,n){if(t=t.toLowerCase(),this[e+"s"][t])throw new TypeError(t+" "+e+" already registered.");return this[e+"s"][t]=n,n},e.validate=function(t,n){var r,o,i,a,s,l,c,u;if("string"!==typeof t&&(t+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",t)),(t=t.trim()).match(/^\d+$/))return!0;if(""===t)return!1;try{c=e.localeData(n)}catch(d){c=e.localeData(e.locale())}return i=c.currency.symbol,s=c.abbreviations,r=c.delimiters.decimal,o="."===c.delimiters.thousands?"\\.":c.delimiters.thousands,(null===(u=t.match(/^[^\d]+/))||(t=t.substr(1),u[0]===i))&&(null===(u=t.match(/[^\d]+$/))||(t=t.slice(0,-1),u[0]===s.thousand||u[0]===s.million||u[0]===s.billion||u[0]===s.trillion))&&(l=new RegExp(o+"{2}"),!t.match(/[^\d.,]/g)&&!((a=t.split(r)).length>2)&&(a.length<2?!!a[0].match(/^\d+.*\d$/)&&!a[0].match(l):1===a[0].length?!!a[0].match(/^\d+$/)&&!a[0].match(l)&&!!a[1].match(/^\d+$/):!!a[0].match(/^\d+.*\d$/)&&!a[0].match(l)&&!!a[1].match(/^\d+$/)))},e.fn=s.prototype={clone:function(){return e(this)},format:function(t,n){var o,i,s,l=this._value,c=t||a.defaultFormat;if(n=n||Math.round,0===l&&null!==a.zeroFormat)i=a.zeroFormat;else if(null===l&&null!==a.nullFormat)i=a.nullFormat;else{for(o in r)if(c.match(r[o].regexps.format)){s=r[o].format;break}i=(s=s||e._.numberToFormat)(l,c,n)}return i},value:function(){return this._value},input:function(){return this._input},set:function(e){return this._value=Number(e),this},add:function(e){var n=t.correctionFactor.call(null,this._value,e);function r(e,t,r,o){return e+Math.round(n*t)}return this._value=t.reduce([this._value,e],r,0)/n,this},subtract:function(e){var n=t.correctionFactor.call(null,this._value,e);function r(e,t,r,o){return e-Math.round(n*t)}return this._value=t.reduce([e],r,Math.round(this._value*n))/n,this},multiply:function(e){function n(e,n,r,o){var i=t.correctionFactor(e,n);return Math.round(e*i)*Math.round(n*i)/Math.round(i*i)}return this._value=t.reduce([this._value,e],n,1),this},divide:function(e){function n(e,n,r,o){var i=t.correctionFactor(e,n);return Math.round(e*i)/Math.round(n*i)}return this._value=t.reduce([this._value,e],n),this},difference:function(t){return Math.abs(e(this._value).subtract(t).value())}},e.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){var t=e%10;return 1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th"},currency:{symbol:"$"}}),e.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(t,n,r){var o,i=e._.includes(n," BPS")?" ":"";return t*=1e4,n=n.replace(/\s?BPS/,""),o=e._.numberToFormat(t,n,r),e._.includes(o,")")?((o=o.split("")).splice(-1,0,i+"BPS"),o=o.join("")):o=o+i+"BPS",o},unformat:function(t){return+(1e-4*e._.stringToNumber(t)).toFixed(15)}}),function(){var t={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]},n={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},r=t.suffixes.concat(n.suffixes.filter((function(e){return t.suffixes.indexOf(e)<0}))).join("|");r="("+r.replace("B","B(?!PS)")+")",e.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(r)},format:function(r,o,i){var a,s,l,c=e._.includes(o,"ib")?n:t,u=e._.includes(o," b")||e._.includes(o," ib")?" ":"";for(o=o.replace(/\s?i?b/,""),a=0;a<=c.suffixes.length;a++)if(s=Math.pow(c.base,a),l=Math.pow(c.base,a+1),null===r||0===r||r>=s&&r<l){u+=c.suffixes[a],s>0&&(r/=s);break}return e._.numberToFormat(r,o,i)+u},unformat:function(r){var o,i,a=e._.stringToNumber(r);if(a){for(o=t.suffixes.length-1;o>=0;o--){if(e._.includes(r,t.suffixes[o])){i=Math.pow(t.base,o);break}if(e._.includes(r,n.suffixes[o])){i=Math.pow(n.base,o);break}}a*=i||1}return a}})}(),e.register("format","currency",{regexps:{format:/(\$)/},format:function(t,n,r){var o,i,a=e.locales[e.options.currentLocale],s={before:n.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:n.match(/([\+|\-|\)|\s|\$]*)$/)[0]};for(n=n.replace(/\s?\$\s?/,""),o=e._.numberToFormat(t,n,r),t>=0?(s.before=s.before.replace(/[\-\(]/,""),s.after=s.after.replace(/[\-\)]/,"")):t<0&&!e._.includes(s.before,"-")&&!e._.includes(s.before,"(")&&(s.before="-"+s.before),i=0;i<s.before.length;i++)switch(s.before[i]){case"$":o=e._.insert(o,a.currency.symbol,i);break;case" ":o=e._.insert(o," ",i+a.currency.symbol.length-1)}for(i=s.after.length-1;i>=0;i--)switch(s.after[i]){case"$":o=i===s.after.length-1?o+a.currency.symbol:e._.insert(o,a.currency.symbol,-(s.after.length-(1+i)));break;case" ":o=i===s.after.length-1?o+" ":e._.insert(o," ",-(s.after.length-(1+i)+a.currency.symbol.length-1))}return o}}),e.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(t,n,r){var o=("number"!==typeof t||e._.isNaN(t)?"0e+0":t.toExponential()).split("e");return n=n.replace(/e[\+|\-]{1}0/,""),e._.numberToFormat(Number(o[0]),n,r)+"e"+o[1]},unformat:function(t){var n=e._.includes(t,"e+")?t.split("e+"):t.split("e-"),r=Number(n[0]),o=Number(n[1]);function i(t,n,r,o){var i=e._.correctionFactor(t,n);return t*i*(n*i)/(i*i)}return o=e._.includes(t,"e-")?o*=-1:o,e._.reduce([r,Math.pow(10,o)],i,1)}}),e.register("format","ordinal",{regexps:{format:/(o)/},format:function(t,n,r){var o=e.locales[e.options.currentLocale],i=e._.includes(n," o")?" ":"";return n=n.replace(/\s?o/,""),i+=o.ordinal(t),e._.numberToFormat(t,n,r)+i}}),e.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(t,n,r){var o,i=e._.includes(n," %")?" ":"";return e.options.scalePercentBy100&&(t*=100),n=n.replace(/\s?\%/,""),o=e._.numberToFormat(t,n,r),e._.includes(o,")")?((o=o.split("")).splice(-1,0,i+"%"),o=o.join("")):o=o+i+"%",o},unformat:function(t){var n=e._.stringToNumber(t);return e.options.scalePercentBy100?.01*n:n}}),e.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(e,t,n){var r=Math.floor(e/60/60),o=Math.floor((e-60*r*60)/60),i=Math.round(e-60*r*60-60*o);return r+":"+(o<10?"0"+o:o)+":"+(i<10?"0"+i:i)},unformat:function(e){var t=e.split(":"),n=0;return 3===t.length?(n+=60*Number(t[0])*60,n+=60*Number(t[1]),n+=Number(t[2])):2===t.length&&(n+=60*Number(t[0]),n+=Number(t[1])),Number(n)}}),e},void 0===(o="function"===typeof r?r.call(t,n,t,e):r)||(e.exports=o)},29335:e=>{"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(o){return!1}}()?Object.assign:function(e,o){for(var i,a,s=function(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),l=1;l<arguments.length;l++){for(var c in i=Object(arguments[l]))n.call(i,c)&&(s[c]=i[c]);if(t){a=t(i);for(var u=0;u<a.length;u++)r.call(i,a[u])&&(s[a[u]]=i[a[u]])}}return s}},68798:(e,t,n)=>{var r="function"===typeof Map&&Map.prototype,o=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=r&&o&&"function"===typeof o.get?o.get:null,a=r&&Map.prototype.forEach,s="function"===typeof Set&&Set.prototype,l=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,c=s&&l&&"function"===typeof l.get?l.get:null,u=s&&Set.prototype.forEach,d="function"===typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,f="function"===typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,p="function"===typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,h=Boolean.prototype.valueOf,m=Object.prototype.toString,g=Function.prototype.toString,v=String.prototype.match,y=String.prototype.slice,b=String.prototype.replace,w=String.prototype.toUpperCase,E=String.prototype.toLowerCase,_=RegExp.prototype.test,x=Array.prototype.concat,S=Array.prototype.join,C=Array.prototype.slice,k=Math.floor,O="function"===typeof BigInt?BigInt.prototype.valueOf:null,T=Object.getOwnPropertySymbols,N="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?Symbol.prototype.toString:null,I="function"===typeof Symbol&&"object"===typeof Symbol.iterator,P="function"===typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===I||"symbol")?Symbol.toStringTag:null,R=Object.prototype.propertyIsEnumerable,D=("function"===typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function A(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||_.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"===typeof e){var r=e<0?-k(-e):k(e);if(r!==e){var o=String(r),i=y.call(t,o.length+1);return b.call(o,n,"$&_")+"."+b.call(b.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return b.call(t,n,"$&_")}var j=n(24654),M=j.custom,L=q(M)?M:null;function z(e,t,n){var r="double"===(n.quoteStyle||t)?'"':"'";return r+e+r}function F(e){return b.call(String(e),/"/g,"&quot;")}function B(e){return"[object Array]"===H(e)&&(!P||!("object"===typeof e&&P in e))}function U(e){return"[object RegExp]"===H(e)&&(!P||!("object"===typeof e&&P in e))}function q(e){if(I)return e&&"object"===typeof e&&e instanceof Symbol;if("symbol"===typeof e)return!0;if(!e||"object"!==typeof e||!N)return!1;try{return N.call(e),!0}catch(t){}return!1}e.exports=function e(t,r,o,s){var l=r||{};if(Z(l,"quoteStyle")&&"single"!==l.quoteStyle&&"double"!==l.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Z(l,"maxStringLength")&&("number"===typeof l.maxStringLength?l.maxStringLength<0&&l.maxStringLength!==1/0:null!==l.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var m=!Z(l,"customInspect")||l.customInspect;if("boolean"!==typeof m&&"symbol"!==m)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Z(l,"indent")&&null!==l.indent&&"\t"!==l.indent&&!(parseInt(l.indent,10)===l.indent&&l.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Z(l,"numericSeparator")&&"boolean"!==typeof l.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var w=l.numericSeparator;if("undefined"===typeof t)return"undefined";if(null===t)return"null";if("boolean"===typeof t)return t?"true":"false";if("string"===typeof t)return W(t,l);if("number"===typeof t){if(0===t)return 1/0/t>0?"0":"-0";var _=String(t);return w?A(t,_):_}if("bigint"===typeof t){var k=String(t)+"n";return w?A(t,k):k}var T="undefined"===typeof l.depth?5:l.depth;if("undefined"===typeof o&&(o=0),o>=T&&T>0&&"object"===typeof t)return B(t)?"[Array]":"[Object]";var M=function(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"===typeof e.indent&&e.indent>0))return null;n=S.call(Array(e.indent+1)," ")}return{base:n,prev:S.call(Array(t+1),n)}}(l,o);if("undefined"===typeof s)s=[];else if(V(s,t)>=0)return"[Circular]";function $(t,n,r){if(n&&(s=C.call(s)).push(n),r){var i={depth:l.depth};return Z(l,"quoteStyle")&&(i.quoteStyle=l.quoteStyle),e(t,i,o+1,s)}return e(t,l,o+1,s)}if("function"===typeof t&&!U(t)){var G=function(e){if(e.name)return e.name;var t=v.call(g.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(t),ee=X(t,$);return"[Function"+(G?": "+G:" (anonymous)")+"]"+(ee.length>0?" { "+S.call(ee,", ")+" }":"")}if(q(t)){var te=I?b.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):N.call(t);return"object"!==typeof t||I?te:Y(te)}if(function(e){if(!e||"object"!==typeof e)return!1;if("undefined"!==typeof HTMLElement&&e instanceof HTMLElement)return!0;return"string"===typeof e.nodeName&&"function"===typeof e.getAttribute}(t)){for(var ne="<"+E.call(String(t.nodeName)),re=t.attributes||[],oe=0;oe<re.length;oe++)ne+=" "+re[oe].name+"="+z(F(re[oe].value),"double",l);return ne+=">",t.childNodes&&t.childNodes.length&&(ne+="..."),ne+="</"+E.call(String(t.nodeName))+">"}if(B(t)){if(0===t.length)return"[]";var ie=X(t,$);return M&&!function(e){for(var t=0;t<e.length;t++)if(V(e[t],"\n")>=0)return!1;return!0}(ie)?"["+J(ie,M)+"]":"[ "+S.call(ie,", ")+" ]"}if(function(e){return"[object Error]"===H(e)&&(!P||!("object"===typeof e&&P in e))}(t)){var ae=X(t,$);return"cause"in Error.prototype||!("cause"in t)||R.call(t,"cause")?0===ae.length?"["+String(t)+"]":"{ ["+String(t)+"] "+S.call(ae,", ")+" }":"{ ["+String(t)+"] "+S.call(x.call("[cause]: "+$(t.cause),ae),", ")+" }"}if("object"===typeof t&&m){if(L&&"function"===typeof t[L]&&j)return j(t,{depth:T-o});if("symbol"!==m&&"function"===typeof t.inspect)return t.inspect()}if(function(e){if(!i||!e||"object"!==typeof e)return!1;try{i.call(e);try{c.call(e)}catch(ne){return!0}return e instanceof Map}catch(t){}return!1}(t)){var se=[];return a&&a.call(t,(function(e,n){se.push($(n,t,!0)+" => "+$(e,t))})),Q("Map",i.call(t),se,M)}if(function(e){if(!c||!e||"object"!==typeof e)return!1;try{c.call(e);try{i.call(e)}catch(t){return!0}return e instanceof Set}catch(n){}return!1}(t)){var le=[];return u&&u.call(t,(function(e){le.push($(e,t))})),Q("Set",c.call(t),le,M)}if(function(e){if(!d||!e||"object"!==typeof e)return!1;try{d.call(e,d);try{f.call(e,f)}catch(ne){return!0}return e instanceof WeakMap}catch(t){}return!1}(t))return K("WeakMap");if(function(e){if(!f||!e||"object"!==typeof e)return!1;try{f.call(e,f);try{d.call(e,d)}catch(ne){return!0}return e instanceof WeakSet}catch(t){}return!1}(t))return K("WeakSet");if(function(e){if(!p||!e||"object"!==typeof e)return!1;try{return p.call(e),!0}catch(t){}return!1}(t))return K("WeakRef");if(function(e){return"[object Number]"===H(e)&&(!P||!("object"===typeof e&&P in e))}(t))return Y($(Number(t)));if(function(e){if(!e||"object"!==typeof e||!O)return!1;try{return O.call(e),!0}catch(t){}return!1}(t))return Y($(O.call(t)));if(function(e){return"[object Boolean]"===H(e)&&(!P||!("object"===typeof e&&P in e))}(t))return Y(h.call(t));if(function(e){return"[object String]"===H(e)&&(!P||!("object"===typeof e&&P in e))}(t))return Y($(String(t)));if("undefined"!==typeof window&&t===window)return"{ [object Window] }";if(t===n.g)return"{ [object globalThis] }";if(!function(e){return"[object Date]"===H(e)&&(!P||!("object"===typeof e&&P in e))}(t)&&!U(t)){var ce=X(t,$),ue=D?D(t)===Object.prototype:t instanceof Object||t.constructor===Object,de=t instanceof Object?"":"null prototype",fe=!ue&&P&&Object(t)===t&&P in t?y.call(H(t),8,-1):de?"Object":"",pe=(ue||"function"!==typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(fe||de?"["+S.call(x.call([],fe||[],de||[]),": ")+"] ":"");return 0===ce.length?pe+"{}":M?pe+"{"+J(ce,M)+"}":pe+"{ "+S.call(ce,", ")+" }"}return String(t)};var $=Object.prototype.hasOwnProperty||function(e){return e in this};function Z(e,t){return $.call(e,t)}function H(e){return m.call(e)}function V(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function W(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return W(y.call(e,0,t.maxStringLength),t)+r}return z(b.call(b.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,G),"single",t)}function G(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+w.call(t.toString(16))}function Y(e){return"Object("+e+")"}function K(e){return e+" { ? }"}function Q(e,t,n,r){return e+" ("+t+") {"+(r?J(n,r):S.call(n,", "))+"}"}function J(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+S.call(e,","+n)+"\n"+t.prev}function X(e,t){var n=B(e),r=[];if(n){r.length=e.length;for(var o=0;o<e.length;o++)r[o]=Z(e,o)?t(e[o],e):""}var i,a="function"===typeof T?T(e):[];if(I){i={};for(var s=0;s<a.length;s++)i["$"+a[s]]=a[s]}for(var l in e)Z(e,l)&&(n&&String(Number(l))===l&&l<e.length||I&&i["$"+l]instanceof Symbol||(_.call(/[^\w$]/,l)?r.push(t(l,e)+": "+t(e[l],e)):r.push(l+": "+t(e[l],e))));if("function"===typeof T)for(var c=0;c<a.length;c++)R.call(e,a[c])&&r.push("["+t(a[c])+"]: "+t(e[a[c]],e));return r}},7856:e=>{e.exports=u,e.exports.match=function(e,t){var n=[];return o(u(e,n,t),n)},e.exports.regexpToFunction=o,e.exports.parse=r,e.exports.compile=function(e,t){return i(r(e,t),t)},e.exports.tokensToFunction=i,e.exports.tokensToRegExp=c;var t="/",n=new RegExp(["(\\\\.)","(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?"].join("|"),"g");function r(e,r){for(var o,i=[],l=0,c=0,u="",d=r&&r.delimiter||t,f=r&&r.whitelist||void 0,p=!1;null!==(o=n.exec(e));){var h=o[0],m=o[1],g=o.index;if(u+=e.slice(c,g),c=g+h.length,m)u+=m[1],p=!0;else{var v="",y=o[2],b=o[3],w=o[4],E=o[5];if(!p&&u.length){var _=u.length-1,x=u[_];(!f||f.indexOf(x)>-1)&&(v=x,u=u.slice(0,_))}u&&(i.push(u),u="",p=!1);var S="+"===E||"*"===E,C="?"===E||"*"===E,k=b||w,O=v||d;i.push({name:y||l++,prefix:v,delimiter:O,optional:C,repeat:S,pattern:k?s(k):"[^"+a(O===d?O:O+d)+"]+?"})}}return(u||c<e.length)&&i.push(u+e.substr(c)),i}function o(e,t){return function(n,r){var o=e.exec(n);if(!o)return!1;for(var i=o[0],a=o.index,s={},l=r&&r.decode||decodeURIComponent,c=1;c<o.length;c++)if(void 0!==o[c]){var u=t[c-1];u.repeat?s[u.name]=o[c].split(u.delimiter).map((function(e){return l(e,u)})):s[u.name]=l(o[c],u)}return{path:i,index:a,params:s}}}function i(e,t){for(var n=new Array(e.length),r=0;r<e.length;r++)"object"===typeof e[r]&&(n[r]=new RegExp("^(?:"+e[r].pattern+")$",l(t)));return function(t,r){for(var o="",i=r&&r.encode||encodeURIComponent,a=!r||!1!==r.validate,s=0;s<e.length;s++){var l=e[s];if("string"!==typeof l){var c,u=t?t[l.name]:void 0;if(Array.isArray(u)){if(!l.repeat)throw new TypeError('Expected "'+l.name+'" to not repeat, but got array');if(0===u.length){if(l.optional)continue;throw new TypeError('Expected "'+l.name+'" to not be empty')}for(var d=0;d<u.length;d++){if(c=i(u[d],l),a&&!n[s].test(c))throw new TypeError('Expected all "'+l.name+'" to match "'+l.pattern+'"');o+=(0===d?l.prefix:l.delimiter)+c}}else if("string"!==typeof u&&"number"!==typeof u&&"boolean"!==typeof u){if(!l.optional)throw new TypeError('Expected "'+l.name+'" to be '+(l.repeat?"an array":"a string"))}else{if(c=i(String(u),l),a&&!n[s].test(c))throw new TypeError('Expected "'+l.name+'" to match "'+l.pattern+'", but got "'+c+'"');o+=l.prefix+c}}else o+=l}return o}}function a(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function s(e){return e.replace(/([=!:$/()])/g,"\\$1")}function l(e){return e&&e.sensitive?"":"i"}function c(e,n,r){for(var o=(r=r||{}).strict,i=!1!==r.start,s=!1!==r.end,c=r.delimiter||t,u=[].concat(r.endsWith||[]).map(a).concat("$").join("|"),d=i?"^":"",f=0;f<e.length;f++){var p=e[f];if("string"===typeof p)d+=a(p);else{var h=p.repeat?"(?:"+p.pattern+")(?:"+a(p.delimiter)+"(?:"+p.pattern+"))*":p.pattern;n&&n.push(p),p.optional?p.prefix?d+="(?:"+a(p.prefix)+"("+h+"))?":d+="("+h+")?":d+=a(p.prefix)+"("+h+")"}}if(s)o||(d+="(?:"+a(c)+")?"),d+="$"===u?"$":"(?="+u+")";else{var m=e[e.length-1],g="string"===typeof m?m[m.length-1]===c:void 0===m;o||(d+="(?:"+a(c)+"(?="+u+"))?"),g||(d+="(?="+a(c)+"|"+u+")")}return new RegExp(d,l(r))}function u(e,t,n){return e instanceof RegExp?function(e,t){if(!t)return e;var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,pattern:null});return e}(e,t):Array.isArray(e)?function(e,t,n){for(var r=[],o=0;o<e.length;o++)r.push(u(e[o],t,n).source);return new RegExp("(?:"+r.join("|")+")",l(n))}(e,t,n):function(e,t,n){return c(r(e,n),t,n)}(e,t,n)}},62139:(e,t,n)=>{"use strict";var r=n(16630);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var s=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 s.name="Invariant Violation",s}}function t(){return e}e.isRequired=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:i,resetWarningCache:o};return n.PropTypes=n,n}},50134:(e,t,n)=>{e.exports=n(62139)()},16630:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},21777:e=>{"use strict";var t=String.prototype.replace,n=/%20/g,r="RFC1738",o="RFC3986";e.exports={default:o,formatters:{RFC1738:function(e){return t.call(e,n,"+")},RFC3986:function(e){return String(e)}},RFC1738:r,RFC3986:o}},63041:(e,t,n)=>{"use strict";var r=n(84861),o=n(36840),i=n(21777);e.exports={formats:i,parse:o,stringify:r}},36840:(e,t,n)=>{"use strict";var r=n(92113),o=Object.prototype.hasOwnProperty,i=Array.isArray,a={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!0,decoder:r.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},s=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},l=function(e,t){return e&&"string"===typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},c=function(e,t,n,r){if(e){var i=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/g,s=n.depth>0&&/(\[[^[\]]*])/.exec(i),c=s?i.slice(0,s.index):i,u=[];if(c){if(!n.plainObjects&&o.call(Object.prototype,c)&&!n.allowPrototypes)return;u.push(c)}for(var d=0;n.depth>0&&null!==(s=a.exec(i))&&d<n.depth;){if(d+=1,!n.plainObjects&&o.call(Object.prototype,s[1].slice(1,-1))&&!n.allowPrototypes)return;u.push(s[1])}return s&&u.push("["+i.slice(s.index)+"]"),function(e,t,n,r){for(var o=r?t:l(t,n),i=e.length-1;i>=0;--i){var a,s=e[i];if("[]"===s&&n.parseArrays)a=n.allowEmptyArrays&&""===o?[]:[].concat(o);else{a=n.plainObjects?Object.create(null):{};var c="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,u=n.decodeDotInKeys?c.replace(/%2E/g,"."):c,d=parseInt(u,10);n.parseArrays||""!==u?!isNaN(d)&&s!==u&&String(d)===u&&d>=0&&n.parseArrays&&d<=n.arrayLimit?(a=[])[d]=o:"__proto__"!==u&&(a[u]=o):a={0:o}}o=a}return o}(u,t,n,r)}};e.exports=function(e,t){var n=function(e){if(!e)return a;if("undefined"!==typeof e.allowEmptyArrays&&"boolean"!==typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if("undefined"!==typeof e.decodeDotInKeys&&"boolean"!==typeof e.decodeDotInKeys)throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.decoder&&"undefined"!==typeof e.decoder&&"function"!==typeof e.decoder)throw new TypeError("Decoder has to be a function.");if("undefined"!==typeof e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t="undefined"===typeof e.charset?a.charset:e.charset,n="undefined"===typeof e.duplicates?a.duplicates:e.duplicates;if("combine"!==n&&"first"!==n&&"last"!==n)throw new TypeError("The duplicates option must be either combine, first, or last");return{allowDots:"undefined"===typeof e.allowDots?!0===e.decodeDotInKeys||a.allowDots:!!e.allowDots,allowEmptyArrays:"boolean"===typeof e.allowEmptyArrays?!!e.allowEmptyArrays:a.allowEmptyArrays,allowPrototypes:"boolean"===typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"===typeof e.allowSparse?e.allowSparse:a.allowSparse,arrayLimit:"number"===typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:"boolean"===typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"===typeof e.comma?e.comma:a.comma,decodeDotInKeys:"boolean"===typeof e.decodeDotInKeys?e.decodeDotInKeys:a.decodeDotInKeys,decoder:"function"===typeof e.decoder?e.decoder:a.decoder,delimiter:"string"===typeof e.delimiter||r.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:"number"===typeof e.depth||!1===e.depth?+e.depth:a.depth,duplicates:n,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"===typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"===typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"===typeof e.plainObjects?e.plainObjects:a.plainObjects,strictNullHandling:"boolean"===typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling}}(t);if(""===e||null===e||"undefined"===typeof e)return n.plainObjects?Object.create(null):{};for(var u="string"===typeof e?function(e,t){var n,c={__proto__:null},u=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,d=t.parameterLimit===1/0?void 0:t.parameterLimit,f=u.split(t.delimiter,d),p=-1,h=t.charset;if(t.charsetSentinel)for(n=0;n<f.length;++n)0===f[n].indexOf("utf8=")&&("utf8=%E2%9C%93"===f[n]?h="utf-8":"utf8=%26%2310003%3B"===f[n]&&(h="iso-8859-1"),p=n,n=f.length);for(n=0;n<f.length;++n)if(n!==p){var m,g,v=f[n],y=v.indexOf("]="),b=-1===y?v.indexOf("="):y+1;-1===b?(m=t.decoder(v,a.decoder,h,"key"),g=t.strictNullHandling?null:""):(m=t.decoder(v.slice(0,b),a.decoder,h,"key"),g=r.maybeMap(l(v.slice(b+1),t),(function(e){return t.decoder(e,a.decoder,h,"value")}))),g&&t.interpretNumericEntities&&"iso-8859-1"===h&&(g=s(g)),v.indexOf("[]=")>-1&&(g=i(g)?[g]:g);var w=o.call(c,m);w&&"combine"===t.duplicates?c[m]=r.combine(c[m],g):w&&"last"!==t.duplicates||(c[m]=g)}return c}(e,n):e,d=n.plainObjects?Object.create(null):{},f=Object.keys(u),p=0;p<f.length;++p){var h=f[p],m=c(h,u[h],n,"string"===typeof e);d=r.merge(d,m,n)}return!0===n.allowSparse?d:r.compact(d)}},84861:(e,t,n)=>{"use strict";var r=n(50810),o=n(92113),i=n(21777),a=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},l=Array.isArray,c=Array.prototype.push,u=function(e,t){c.apply(e,l(t)?t:[t])},d=Date.prototype.toISOString,f=i.default,p={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:o.encode,encodeValuesOnly:!1,format:f,formatter:i.formatters[f],indices:!1,serializeDate:function(e){return d.call(e)},skipNulls:!1,strictNullHandling:!1},h={},m=function e(t,n,i,a,s,c,d,f,m,g,v,y,b,w,E,_,x,S){for(var C,k=t,O=S,T=0,N=!1;void 0!==(O=O.get(h))&&!N;){var I=O.get(t);if(T+=1,"undefined"!==typeof I){if(I===T)throw new RangeError("Cyclic object value");N=!0}"undefined"===typeof O.get(h)&&(T=0)}if("function"===typeof g?k=g(n,k):k instanceof Date?k=b(k):"comma"===i&&l(k)&&(k=o.maybeMap(k,(function(e){return e instanceof Date?b(e):e}))),null===k){if(c)return m&&!_?m(n,p.encoder,x,"key",w):n;k=""}if("string"===typeof(C=k)||"number"===typeof C||"boolean"===typeof C||"symbol"===typeof C||"bigint"===typeof C||o.isBuffer(k))return m?[E(_?n:m(n,p.encoder,x,"key",w))+"="+E(m(k,p.encoder,x,"value",w))]:[E(n)+"="+E(String(k))];var P,R=[];if("undefined"===typeof k)return R;if("comma"===i&&l(k))_&&m&&(k=o.maybeMap(k,m)),P=[{value:k.length>0?k.join(",")||null:void 0}];else if(l(g))P=g;else{var D=Object.keys(k);P=v?D.sort(v):D}var A=f?n.replace(/\./g,"%2E"):n,j=a&&l(k)&&1===k.length?A+"[]":A;if(s&&l(k)&&0===k.length)return j+"[]";for(var M=0;M<P.length;++M){var L=P[M],z="object"===typeof L&&"undefined"!==typeof L.value?L.value:k[L];if(!d||null!==z){var F=y&&f?L.replace(/\./g,"%2E"):L,B=l(k)?"function"===typeof i?i(j,F):j:j+(y?"."+F:"["+F+"]");S.set(t,T);var U=r();U.set(h,S),u(R,e(z,B,i,a,s,c,d,f,"comma"===i&&_&&l(k)?null:m,g,v,y,b,w,E,_,x,U))}}return R};e.exports=function(e,t){var n,o=e,c=function(e){if(!e)return p;if("undefined"!==typeof e.allowEmptyArrays&&"boolean"!==typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if("undefined"!==typeof e.encodeDotInKeys&&"boolean"!==typeof e.encodeDotInKeys)throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.encoder&&"undefined"!==typeof e.encoder&&"function"!==typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||p.charset;if("undefined"!==typeof e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=i.default;if("undefined"!==typeof e.format){if(!a.call(i.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var r,o=i.formatters[n],c=p.filter;if(("function"===typeof e.filter||l(e.filter))&&(c=e.filter),r=e.arrayFormat in s?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":p.arrayFormat,"commaRoundTrip"in e&&"boolean"!==typeof e.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var u="undefined"===typeof e.allowDots?!0===e.encodeDotInKeys||p.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"===typeof e.addQueryPrefix?e.addQueryPrefix:p.addQueryPrefix,allowDots:u,allowEmptyArrays:"boolean"===typeof e.allowEmptyArrays?!!e.allowEmptyArrays:p.allowEmptyArrays,arrayFormat:r,charset:t,charsetSentinel:"boolean"===typeof e.charsetSentinel?e.charsetSentinel:p.charsetSentinel,commaRoundTrip:e.commaRoundTrip,delimiter:"undefined"===typeof e.delimiter?p.delimiter:e.delimiter,encode:"boolean"===typeof e.encode?e.encode:p.encode,encodeDotInKeys:"boolean"===typeof e.encodeDotInKeys?e.encodeDotInKeys:p.encodeDotInKeys,encoder:"function"===typeof e.encoder?e.encoder:p.encoder,encodeValuesOnly:"boolean"===typeof e.encodeValuesOnly?e.encodeValuesOnly:p.encodeValuesOnly,filter:c,format:n,formatter:o,serializeDate:"function"===typeof e.serializeDate?e.serializeDate:p.serializeDate,skipNulls:"boolean"===typeof e.skipNulls?e.skipNulls:p.skipNulls,sort:"function"===typeof e.sort?e.sort:null,strictNullHandling:"boolean"===typeof e.strictNullHandling?e.strictNullHandling:p.strictNullHandling}}(t);"function"===typeof c.filter?o=(0,c.filter)("",o):l(c.filter)&&(n=c.filter);var d=[];if("object"!==typeof o||null===o)return"";var f=s[c.arrayFormat],h="comma"===f&&c.commaRoundTrip;n||(n=Object.keys(o)),c.sort&&n.sort(c.sort);for(var g=r(),v=0;v<n.length;++v){var y=n[v];c.skipNulls&&null===o[y]||u(d,m(o[y],y,f,h,c.allowEmptyArrays,c.strictNullHandling,c.skipNulls,c.encodeDotInKeys,c.encode?c.encoder:null,c.filter,c.sort,c.allowDots,c.serializeDate,c.format,c.formatter,c.encodeValuesOnly,c.charset,g))}var b=d.join(c.delimiter),w=!0===c.addQueryPrefix?"?":"";return c.charsetSentinel&&("iso-8859-1"===c.charset?w+="utf8=%26%2310003%3B&":w+="utf8=%E2%9C%93&"),b.length>0?w+b:""}},92113:(e,t,n)=>{"use strict";var r=n(21777),o=Object.prototype.hasOwnProperty,i=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),s=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r<e.length;++r)"undefined"!==typeof e[r]&&(n[r]=e[r]);return n};e.exports={arrayToObject:s,assign:function(e,t){return Object.keys(t).reduce((function(e,n){return e[n]=t[n],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],r=0;r<t.length;++r)for(var o=t[r],a=o.obj[o.prop],s=Object.keys(a),l=0;l<s.length;++l){var c=s[l],u=a[c];"object"===typeof u&&null!==u&&-1===n.indexOf(u)&&(t.push({obj:a,prop:c}),n.push(u))}return function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(i(n)){for(var r=[],o=0;o<n.length;++o)"undefined"!==typeof n[o]&&r.push(n[o]);t.obj[t.prop]=r}}}(t),e},decode:function(e,t,n){var r=e.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(o){return r}},encode:function(e,t,n,o,i){if(0===e.length)return e;var s=e;if("symbol"===typeof e?s=Symbol.prototype.toString.call(e):"string"!==typeof e&&(s=String(e)),"iso-8859-1"===n)return escape(s).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var l="",c=0;c<s.length;++c){var u=s.charCodeAt(c);45===u||46===u||95===u||126===u||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||i===r.RFC1738&&(40===u||41===u)?l+=s.charAt(c):u<128?l+=a[u]:u<2048?l+=a[192|u>>6]+a[128|63&u]:u<55296||u>=57344?l+=a[224|u>>12]+a[128|u>>6&63]+a[128|63&u]:(c+=1,u=65536+((1023&u)<<10|1023&s.charCodeAt(c)),l+=a[240|u>>18]+a[128|u>>12&63]+a[128|u>>6&63]+a[128|63&u])}return l},isBuffer:function(e){return!(!e||"object"!==typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(i(e)){for(var n=[],r=0;r<e.length;r+=1)n.push(t(e[r]));return n}return t(e)},merge:function e(t,n,r){if(!n)return t;if("object"!==typeof n){if(i(t))t.push(n);else{if(!t||"object"!==typeof t)return[t,n];(r&&(r.plainObjects||r.allowPrototypes)||!o.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!==typeof t)return[t].concat(n);var a=t;return i(t)&&!i(n)&&(a=s(t,r)),i(t)&&i(n)?(n.forEach((function(n,i){if(o.call(t,i)){var a=t[i];a&&"object"===typeof a&&n&&"object"===typeof n?t[i]=e(a,n,r):t.push(n)}else t[i]=n})),t):Object.keys(n).reduce((function(t,i){var a=n[i];return o.call(t,i)?t[i]=e(t[i],a,r):t[i]=a,t}),a)}}},90966:(e,t,n)=>{"use strict";n.d(t,{Z5:()=>zo,_l:()=>_i,bK:()=>ki});var r=n(68963),o=n(51721),i=n(87462),a=n(38907),s=r.createContext(null);var l=function(e){e()},c=function(){return l};var u={notify:function(){},get:function(){return[]}};function d(e,t){var n,r=u;function o(){a.onStateChange&&a.onStateChange()}function i(){n||(n=t?t.addNestedSub(o):e.subscribe(o),r=function(){var e=c(),t=null,n=null;return{clear:function(){t=null,n=null},notify:function(){e((function(){for(var e=t;e;)e.callback(),e=e.next}))},get:function(){for(var e=[],n=t;n;)e.push(n),n=n.next;return e},subscribe:function(e){var r=!0,o=n={callback:e,next:null,prev:n};return o.prev?o.prev.next=o:t=o,function(){r&&null!==t&&(r=!1,o.next?o.next.prev=o.prev:n=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}())}var a={addNestedSub:function(e){return i(),r.subscribe(e)},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:o,isSubscribed:function(){return Boolean(n)},trySubscribe:i,tryUnsubscribe:function(){n&&(n(),n=void 0,r.clear(),r=u)},getListeners:function(){return r}};return a}var f="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement?r.useLayoutEffect:r.useEffect;const p=function(e){var t=e.store,n=e.context,o=e.children,i=(0,r.useMemo)((function(){var e=d(t);return{store:t,subscription:e}}),[t]),a=(0,r.useMemo)((function(){return t.getState()}),[t]);f((function(){var e=i.subscription;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),a!==t.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=null}}),[i,a]);var l=n||s;return r.createElement(l.Provider,{value:i},o)};var h=n(63366),m=n(15170),g=n.n(m),v=n(60380),y=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],b=["reactReduxForwardedRef"],w=[],E=[null,null];function _(e,t){var n=e[1];return[t.payload,n+1]}function x(e,t,n){f((function(){return e.apply(void 0,t)}),n)}function S(e,t,n,r,o,i,a){e.current=r,t.current=o,n.current=!1,i.current&&(i.current=null,a())}function C(e,t,n,r,o,i,a,s,l,c){if(e){var u=!1,d=null,f=function(){if(!u){var e,n,f=t.getState();try{e=r(f,o.current)}catch(p){n=p,d=p}n||(d=null),e===i.current?a.current||l():(i.current=e,s.current=e,a.current=!0,c({type:"STORE_UPDATED",payload:{error:n}}))}};n.onStateChange=f,n.trySubscribe(),f();return function(){if(u=!0,n.tryUnsubscribe(),n.onStateChange=null,d)throw d}}}var k=function(){return[null,0]};function O(e,t){void 0===t&&(t={});var n=t,o=n.getDisplayName,a=void 0===o?function(e){return"ConnectAdvanced("+e+")"}:o,l=n.methodName,c=void 0===l?"connectAdvanced":l,u=n.renderCountProp,f=void 0===u?void 0:u,p=n.shouldHandleStateChanges,m=void 0===p||p,O=n.storeKey,T=void 0===O?"store":O,N=(n.withRef,n.forwardRef),I=void 0!==N&&N,P=n.context,R=void 0===P?s:P,D=(0,h.Z)(n,y),A=R;return function(t){var n=t.displayName||t.name||"Component",o=a(n),s=(0,i.Z)({},D,{getDisplayName:a,methodName:c,renderCountProp:f,shouldHandleStateChanges:m,storeKey:T,displayName:o,wrappedComponentName:n,WrappedComponent:t}),l=D.pure;var u=l?r.useMemo:function(e){return e()};function p(n){var o=(0,r.useMemo)((function(){var e=n.reactReduxForwardedRef,t=(0,h.Z)(n,b);return[n.context,e,t]}),[n]),a=o[0],l=o[1],c=o[2],f=(0,r.useMemo)((function(){return a&&a.Consumer&&(0,v.isContextConsumer)(r.createElement(a.Consumer,null))?a:A}),[a,A]),p=(0,r.useContext)(f),g=Boolean(n.store)&&Boolean(n.store.getState)&&Boolean(n.store.dispatch);Boolean(p)&&Boolean(p.store);var y=g?n.store:p.store,O=(0,r.useMemo)((function(){return function(t){return e(t.dispatch,s)}(y)}),[y]),T=(0,r.useMemo)((function(){if(!m)return E;var e=d(y,g?null:p.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[y,g,p]),N=T[0],I=T[1],P=(0,r.useMemo)((function(){return g?p:(0,i.Z)({},p,{subscription:N})}),[g,p,N]),R=(0,r.useReducer)(_,w,k),D=R[0][0],j=R[1];if(D&&D.error)throw D.error;var M=(0,r.useRef)(),L=(0,r.useRef)(c),z=(0,r.useRef)(),F=(0,r.useRef)(!1),B=u((function(){return z.current&&c===L.current?z.current:O(y.getState(),c)}),[y,D,c]);x(S,[L,M,F,c,B,z,I]),x(C,[m,y,N,O,L,M,F,z,I,j],[y,N,O]);var U=(0,r.useMemo)((function(){return r.createElement(t,(0,i.Z)({},B,{ref:l}))}),[l,t,B]);return(0,r.useMemo)((function(){return m?r.createElement(f.Provider,{value:P},U):U}),[f,U,P])}var y=l?r.memo(p):p;if(y.WrappedComponent=t,y.displayName=p.displayName=o,I){var O=r.forwardRef((function(e,t){return r.createElement(y,(0,i.Z)({},e,{reactReduxForwardedRef:t}))}));return O.displayName=o,O.WrappedComponent=t,g()(O,t)}return g()(y,t)}}function T(e,t){return e===t?0!==e||0!==t||1/e===1/t:e!==e&&t!==t}function N(e,t){if(T(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=0;o<n.length;o++)if(!Object.prototype.hasOwnProperty.call(t,n[o])||!T(e[n[o]],t[n[o]]))return!1;return!0}function I(e){return function(t,n){var r=e(t,n);function o(){return r}return o.dependsOnOwnProps=!1,o}}function P(e){return null!==e.dependsOnOwnProps&&void 0!==e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function R(e,t){return function(t,n){n.displayName;var r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=P(e);var o=r(t,n);return"function"===typeof o&&(r.mapToProps=o,r.dependsOnOwnProps=P(o),o=r(t,n)),o},r}}const D=[function(e){return"function"===typeof e?R(e):void 0},function(e){return e?void 0:I((function(e){return{dispatch:e}}))},function(e){return e&&"object"===typeof e?I((function(t){return function(e,t){var n={},r=function(r){var o=e[r];"function"===typeof o&&(n[r]=function(){return t(o.apply(void 0,arguments))})};for(var o in e)r(o);return n}(e,t)})):void 0}];const A=[function(e){return"function"===typeof e?R(e):void 0},function(e){return e?void 0:I((function(){return{}}))}];function j(e,t,n){return(0,i.Z)({},n,e,t)}const M=[function(e){return"function"===typeof e?function(e){return function(t,n){n.displayName;var r,o=n.pure,i=n.areMergedPropsEqual,a=!1;return function(t,n,s){var l=e(t,n,s);return a?o&&i(l,r)||(r=l):(a=!0,r=l),r}}}(e):void 0},function(e){return e?void 0:function(){return j}}];var L=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function z(e,t,n,r){return function(o,i){return n(e(o,i),t(r,i),i)}}function F(e,t,n,r,o){var i,a,s,l,c,u=o.areStatesEqual,d=o.areOwnPropsEqual,f=o.areStatePropsEqual,p=!1;function h(o,p){var h=!d(p,a),m=!u(o,i,p,a);return i=o,a=p,h&&m?(s=e(i,a),t.dependsOnOwnProps&&(l=t(r,a)),c=n(s,l,a)):h?(e.dependsOnOwnProps&&(s=e(i,a)),t.dependsOnOwnProps&&(l=t(r,a)),c=n(s,l,a)):m?function(){var t=e(i,a),r=!f(t,s);return s=t,r&&(c=n(s,l,a)),c}():c}return function(o,u){return p?h(o,u):(s=e(i=o,a=u),l=t(r,a),c=n(s,l,a),p=!0,c)}}function B(e,t){var n=t.initMapStateToProps,r=t.initMapDispatchToProps,o=t.initMergeProps,i=(0,h.Z)(t,L),a=n(e,i),s=r(e,i),l=o(e,i);return(i.pure?F:z)(a,s,l,e,i)}var U=["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"];function q(e,t,n){for(var r=t.length-1;r>=0;r--){var o=t[r](e);if(o)return o}return function(t,r){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function $(e,t){return e===t}function Z(e){var t=void 0===e?{}:e,n=t.connectHOC,r=void 0===n?O:n,o=t.mapStateToPropsFactories,a=void 0===o?A:o,s=t.mapDispatchToPropsFactories,l=void 0===s?D:s,c=t.mergePropsFactories,u=void 0===c?M:c,d=t.selectorFactory,f=void 0===d?B:d;return function(e,t,n,o){void 0===o&&(o={});var s=o,c=s.pure,d=void 0===c||c,p=s.areStatesEqual,m=void 0===p?$:p,g=s.areOwnPropsEqual,v=void 0===g?N:g,y=s.areStatePropsEqual,b=void 0===y?N:y,w=s.areMergedPropsEqual,E=void 0===w?N:w,_=(0,h.Z)(s,U),x=q(e,a,"mapStateToProps"),S=q(t,l,"mapDispatchToProps"),C=q(n,u,"mergeProps");return r(f,(0,i.Z)({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:x,initMapDispatchToProps:S,initMergeProps:C,pure:d,areStatesEqual:m,areOwnPropsEqual:v,areStatePropsEqual:b,areMergedPropsEqual:E},_))}}const H=Z();var V,W=n(38886);function G(e,t){var n=(0,r.useState)((function(){return{inputs:t,result:e()}}))[0],o=(0,r.useRef)(!0),i=(0,r.useRef)(n),a=o.current||Boolean(t&&i.current.inputs&&function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,i.current.inputs))?i.current:{inputs:t,result:e()};return(0,r.useEffect)((function(){o.current=!1,i.current=a}),[a]),a.result}V=W.unstable_batchedUpdates,l=V;var Y=G,K=function(e,t){return G((function(){return e}),t)},Q=n(35731),J=function(e){var t=e.top,n=e.right,r=e.bottom,o=e.left;return{top:t,right:n,bottom:r,left:o,width:n-o,height:r-t,x:o,y:t,center:{x:(n+o)/2,y:(r+t)/2}}},X=function(e,t){return{top:e.top-t.top,left:e.left-t.left,bottom:e.bottom+t.bottom,right:e.right+t.right}},ee=function(e,t){return{top:e.top+t.top,left:e.left+t.left,bottom:e.bottom-t.bottom,right:e.right-t.right}},te={top:0,right:0,bottom:0,left:0},ne=function(e){var t=e.borderBox,n=e.margin,r=void 0===n?te:n,o=e.border,i=void 0===o?te:o,a=e.padding,s=void 0===a?te:a,l=J(X(t,r)),c=J(ee(t,i)),u=J(ee(c,s));return{marginBox:l,borderBox:J(t),paddingBox:c,contentBox:u,margin:r,border:i,padding:s}},re=function(e){var t=e.slice(0,-2);if("px"!==e.slice(-2))return 0;var n=Number(t);return isNaN(n)&&(0,Q.Z)(!1),n},oe=function(e,t){var n,r,o=e.borderBox,i=e.border,a=e.margin,s=e.padding,l=(r=t,{top:(n=o).top+r.y,left:n.left+r.x,bottom:n.bottom+r.y,right:n.right+r.x});return ne({borderBox:l,border:i,margin:a,padding:s})},ie=function(e,t){return void 0===t&&(t={x:window.pageXOffset,y:window.pageYOffset}),oe(e,t)},ae=function(e,t){var n={top:re(t.marginTop),right:re(t.marginRight),bottom:re(t.marginBottom),left:re(t.marginLeft)},r={top:re(t.paddingTop),right:re(t.paddingRight),bottom:re(t.paddingBottom),left:re(t.paddingLeft)},o={top:re(t.borderTopWidth),right:re(t.borderRightWidth),bottom:re(t.borderBottomWidth),left:re(t.borderLeftWidth)};return ne({borderBox:e,margin:n,padding:r,border:o})},se=function(e){var t=e.getBoundingClientRect(),n=window.getComputedStyle(e);return ae(t,n)},le=n(90083);const ce=function(e){var t=[],n=null,r=function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];t=o,n||(n=requestAnimationFrame((function(){n=null,e.apply(void 0,t)})))};return r.cancel=function(){n&&(cancelAnimationFrame(n),n=null)},r};var ue=!0,de=/[ \t]{2,}/g,fe=/^[ \t]*/gm,pe=function(e){return e.replace(de," ").replace(fe,"").trim()},he=function(e){return pe("\n %creact-beautiful-dnd\n\n %c"+pe(e)+"\n\n %c\ud83d\udc77\u200d This is a development only message. It will be removed in production builds.\n")},me=function(e){return[he(e),"color: #00C584; font-size: 1.2em; font-weight: bold;","line-height: 1.5","color: #723874;"]},ge="__react-beautiful-dnd-disable-dev-warnings";function ve(e,t){var n;ue||"undefined"!==typeof window&&window[ge]||(n=console)[e].apply(n,me(t))}ve.bind(null,"warn"),ve.bind(null,"error");function ye(){}function be(e,t,n){var r=t.map((function(t){var r=function(e,t){return(0,i.Z)({},e,{},t)}(n,t.options);return e.addEventListener(t.eventName,t.fn,r),function(){e.removeEventListener(t.eventName,t.fn,r)}}));return function(){r.forEach((function(e){e()}))}}var we=!0,Ee="Invariant failed";function _e(e){this.message=e}function xe(e,t){if(!e)throw new _e(we?Ee:Ee+": "+(t||""))}_e.prototype.toString=function(){return this.message};var Se=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).callbacks=null,t.unbind=ye,t.onWindowError=function(e){var n=t.getCallbacks();n.isDragging()&&n.tryAbort(),e.error instanceof _e&&e.preventDefault()},t.getCallbacks=function(){if(!t.callbacks)throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");return t.callbacks},t.setCallbacks=function(e){t.callbacks=e},t}(0,o.Z)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.unbind=be(window,[{eventName:"error",fn:this.onWindowError}])},n.componentDidCatch=function(e){if(!(e instanceof _e))throw e;this.setState({})},n.componentWillUnmount=function(){this.unbind()},n.render=function(){return this.props.children(this.setCallbacks)},t}(r.Component),Ce=function(e){return e+1},ke=function(e,t){var n=e.droppableId===t.droppableId,r=Ce(e.index),o=Ce(t.index);return n?"\n You have moved the item from position "+r+"\n to position "+o+"\n ":"\n You have moved the item from position "+r+"\n in list "+e.droppableId+"\n to list "+t.droppableId+"\n in position "+o+"\n "},Oe=function(e,t,n){return t.droppableId===n.droppableId?"\n The item "+e+"\n has been combined with "+n.draggableId:"\n The item "+e+"\n in list "+t.droppableId+"\n has been combined with "+n.draggableId+"\n in list "+n.droppableId+"\n "},Te=function(e){return"\n The item has returned to its starting position\n of "+Ce(e.index)+"\n"},Ne={dragHandleUsageInstructions:"\n Press space bar to start a drag.\n When dragging you can use the arrow keys to move the item around and escape to cancel.\n Some screen readers may require you to be in focus mode or to use your pass through key\n",onDragStart:function(e){return"\n You have lifted an item in position "+Ce(e.source.index)+"\n"},onDragUpdate:function(e){var t=e.destination;if(t)return ke(e.source,t);var n=e.combine;return n?Oe(e.draggableId,e.source,n):"You are over an area that cannot be dropped on"},onDragEnd:function(e){if("CANCEL"===e.reason)return"\n Movement cancelled.\n "+Te(e.source)+"\n ";var t=e.destination,n=e.combine;return t?"\n You have dropped the item.\n "+ke(e.source,t)+"\n ":n?"\n You have dropped the item.\n "+Oe(e.draggableId,e.source,n)+"\n ":"\n The item has been dropped while not over a drop area.\n "+Te(e.source)+"\n "}},Ie={x:0,y:0},Pe=function(e,t){return{x:e.x+t.x,y:e.y+t.y}},Re=function(e,t){return{x:e.x-t.x,y:e.y-t.y}},De=function(e,t){return e.x===t.x&&e.y===t.y},Ae=function(e){return{x:0!==e.x?-e.x:0,y:0!==e.y?-e.y:0}},je=function(e,t,n){var r;return void 0===n&&(n=0),(r={})[e]=t,r["x"===e?"y":"x"]=n,r},Me=function(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))},Le=function(e,t){return Math.min.apply(Math,t.map((function(t){return Me(e,t)})))},ze=function(e){return function(t){return{x:e(t.x),y:e(t.y)}}},Fe=function(e,t){return{top:e.top+t.y,left:e.left+t.x,bottom:e.bottom+t.y,right:e.right+t.x}},Be=function(e){return[{x:e.left,y:e.top},{x:e.right,y:e.top},{x:e.left,y:e.bottom},{x:e.right,y:e.bottom}]},Ue=function(e,t){return t&&t.shouldClipSubject?function(e,t){var n=J({top:Math.max(t.top,e.top),right:Math.min(t.right,e.right),bottom:Math.min(t.bottom,e.bottom),left:Math.max(t.left,e.left)});return n.width<=0||n.height<=0?null:n}(t.pageMarginBox,e):J(e)},qe=function(e){var t=e.page,n=e.withPlaceholder,r=e.axis,o=e.frame,a=function(e,t){return t?Fe(e,t.scroll.diff.displacement):e}(t.marginBox,o),s=function(e,t,n){var r;return n&&n.increasedBy?(0,i.Z)({},e,((r={})[t.end]=e[t.end]+n.increasedBy[t.line],r)):e}(a,r,n);return{page:t,withPlaceholder:n,active:Ue(s,o)}},$e=function(e,t){e.frame||xe(!1);var n=e.frame,r=Re(t,n.scroll.initial),o=Ae(r),a=(0,i.Z)({},n,{scroll:{initial:n.scroll.initial,current:t,diff:{value:r,displacement:o},max:n.scroll.max}}),s=qe({page:e.subject.page,withPlaceholder:e.subject.withPlaceholder,axis:e.axis,frame:a});return(0,i.Z)({},e,{frame:a,subject:s})};function Ze(e){return Object.values?Object.values(e):Object.keys(e).map((function(t){return e[t]}))}function He(e,t){if(e.findIndex)return e.findIndex(t);for(var n=0;n<e.length;n++)if(t(e[n]))return n;return-1}function Ve(e,t){if(e.find)return e.find(t);var n=He(e,t);return-1!==n?e[n]:void 0}function We(e){return Array.prototype.slice.call(e)}var Ge=(0,le.Z)((function(e){return e.reduce((function(e,t){return e[t.descriptor.id]=t,e}),{})})),Ye=(0,le.Z)((function(e){return e.reduce((function(e,t){return e[t.descriptor.id]=t,e}),{})})),Ke=(0,le.Z)((function(e){return Ze(e)})),Qe=(0,le.Z)((function(e){return Ze(e)})),Je=(0,le.Z)((function(e,t){var n=Qe(t).filter((function(t){return e===t.descriptor.droppableId})).sort((function(e,t){return e.descriptor.index-t.descriptor.index}));return n}));function Xe(e){return e.at&&"REORDER"===e.at.type?e.at.destination:null}function et(e){return e.at&&"COMBINE"===e.at.type?e.at.combine:null}var tt=(0,le.Z)((function(e,t){return t.filter((function(t){return t.descriptor.id!==e.descriptor.id}))})),nt=function(e,t){return e.descriptor.droppableId===t.descriptor.id},rt={point:Ie,value:0},ot={invisible:{},visible:{},all:[]},it={displaced:ot,displacedBy:rt,at:null},at=function(e,t){return function(n){return e<=n&&n<=t}},st=function(e){var t=at(e.top,e.bottom),n=at(e.left,e.right);return function(r){if(t(r.top)&&t(r.bottom)&&n(r.left)&&n(r.right))return!0;var o=t(r.top)||t(r.bottom),i=n(r.left)||n(r.right);if(o&&i)return!0;var a=r.top<e.top&&r.bottom>e.bottom,s=r.left<e.left&&r.right>e.right;return!(!a||!s)||(a&&i||s&&o)}},lt=function(e){var t=at(e.top,e.bottom),n=at(e.left,e.right);return function(e){return t(e.top)&&t(e.bottom)&&n(e.left)&&n(e.right)}},ct={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},ut={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},dt=function(e){var t=e.target,n=e.destination,r=e.viewport,o=e.withDroppableDisplacement,i=e.isVisibleThroughFrameFn,a=o?function(e,t){var n=t.frame?t.frame.scroll.diff.displacement:Ie;return Fe(e,n)}(t,n):t;return function(e,t,n){return!!t.subject.active&&n(t.subject.active)(e)}(a,n,i)&&function(e,t,n){return n(t)(e)}(a,r,i)},ft=function(e){return dt((0,i.Z)({},e,{isVisibleThroughFrameFn:st}))},pt=function(e){return dt((0,i.Z)({},e,{isVisibleThroughFrameFn:lt}))},ht=function(e,t,n){if("boolean"===typeof n)return n;if(!t)return!0;var r=t.invisible,o=t.visible;if(r[e])return!1;var i=o[e];return!i||i.shouldAnimate};function mt(e){var t=e.afterDragging,n=e.destination,r=e.displacedBy,o=e.viewport,i=e.forceShouldAnimate,a=e.last;return t.reduce((function(e,t){var s=function(e,t){var n=e.page.marginBox,r={top:t.point.y,right:0,bottom:0,left:t.point.x};return J(X(n,r))}(t,r),l=t.descriptor.id;if(e.all.push(l),!ft({target:s,destination:n,viewport:o,withDroppableDisplacement:!0}))return e.invisible[t.descriptor.id]=!0,e;var c={draggableId:l,shouldAnimate:ht(l,a,i)};return e.visible[l]=c,e}),{all:[],visible:{},invisible:{}})}function gt(e){var t=e.insideDestination,n=e.inHomeList,r=e.displacedBy,o=e.destination,i=function(e,t){if(!e.length)return 0;var n=e[e.length-1].descriptor.index;return t.inHomeList?n:n+1}(t,{inHomeList:n});return{displaced:ot,displacedBy:r,at:{type:"REORDER",destination:{droppableId:o.descriptor.id,index:i}}}}function vt(e){var t=e.draggable,n=e.insideDestination,r=e.destination,o=e.viewport,i=e.displacedBy,a=e.last,s=e.index,l=e.forceShouldAnimate,c=nt(t,r);if(null==s)return gt({insideDestination:n,inHomeList:c,displacedBy:i,destination:r});var u=Ve(n,(function(e){return e.descriptor.index===s}));if(!u)return gt({insideDestination:n,inHomeList:c,displacedBy:i,destination:r});var d=tt(t,n),f=n.indexOf(u);return{displaced:mt({afterDragging:d.slice(f),destination:r,displacedBy:i,last:a,viewport:o.frame,forceShouldAnimate:l}),displacedBy:i,at:{type:"REORDER",destination:{droppableId:r.descriptor.id,index:s}}}}function yt(e,t){return Boolean(t.effected[e])}var bt=function(e){var t=e.isMovingForward,n=e.isInHomeList,r=e.draggable,o=e.draggables,i=e.destination,a=e.insideDestination,s=e.previousImpact,l=e.viewport,c=e.afterCritical,u=s.at;if(u||xe(!1),"REORDER"===u.type){var d=function(e){var t=e.isMovingForward,n=e.isInHomeList,r=e.insideDestination,o=e.location;if(!r.length)return null;var i=o.index,a=t?i+1:i-1,s=r[0].descriptor.index,l=r[r.length-1].descriptor.index;return a<s||a>(n?l:l+1)?null:a}({isMovingForward:t,isInHomeList:n,location:u.destination,insideDestination:a});return null==d?null:vt({draggable:r,insideDestination:a,destination:i,viewport:l,last:s.displaced,displacedBy:s.displacedBy,index:d})}var f=function(e){var t=e.isMovingForward,n=e.destination,r=e.draggables,o=e.combine,i=e.afterCritical;if(!n.isCombineEnabled)return null;var a=o.draggableId,s=r[a].descriptor.index;return yt(a,i)?t?s:s-1:t?s+1:s}({isMovingForward:t,destination:i,displaced:s.displaced,draggables:o,combine:u.combine,afterCritical:c});return null==f?null:vt({draggable:r,insideDestination:a,destination:i,viewport:l,last:s.displaced,displacedBy:s.displacedBy,index:f})},wt=function(e){var t=e.afterCritical,n=e.impact,r=e.draggables,o=et(n);o||xe(!1);var i=o.draggableId,a=r[i].page.borderBox.center,s=function(e){var t=e.displaced,n=e.afterCritical,r=e.combineWith,o=e.displacedBy,i=Boolean(t.visible[r]||t.invisible[r]);return yt(r,n)?i?Ie:Ae(o.point):i?o.point:Ie}({displaced:n.displaced,afterCritical:t,combineWith:i,displacedBy:n.displacedBy});return Pe(a,s)},Et=function(e,t){return t.margin[e.start]+t.borderBox[e.size]/2},_t=function(e,t,n){return t[e.crossAxisStart]+n.margin[e.crossAxisStart]+n.borderBox[e.crossAxisSize]/2},xt=function(e){var t=e.axis,n=e.moveRelativeTo,r=e.isMoving;return je(t.line,n.marginBox[t.end]+Et(t,r),_t(t,n.marginBox,r))},St=function(e){var t=e.axis,n=e.moveRelativeTo,r=e.isMoving;return je(t.line,n.marginBox[t.start]-function(e,t){return t.margin[e.end]+t.borderBox[e.size]/2}(t,r),_t(t,n.marginBox,r))},Ct=function(e){var t=e.impact,n=e.draggable,r=e.draggables,o=e.droppable,i=e.afterCritical,a=Je(o.descriptor.id,r),s=n.page,l=o.axis;if(!a.length)return function(e){var t=e.axis,n=e.moveInto,r=e.isMoving;return je(t.line,n.contentBox[t.start]+Et(t,r),_t(t,n.contentBox,r))}({axis:l,moveInto:o.page,isMoving:s});var c=t.displaced,u=t.displacedBy,d=c.all[0];if(d){var f=r[d];if(yt(d,i))return St({axis:l,moveRelativeTo:f.page,isMoving:s});var p=oe(f.page,u.point);return St({axis:l,moveRelativeTo:p,isMoving:s})}var h=a[a.length-1];if(h.descriptor.id===n.descriptor.id)return s.borderBox.center;if(yt(h.descriptor.id,i)){var m=oe(h.page,Ae(i.displacedBy.point));return xt({axis:l,moveRelativeTo:m,isMoving:s})}return xt({axis:l,moveRelativeTo:h.page,isMoving:s})},kt=function(e,t){var n=e.frame;return n?Pe(t,n.scroll.diff.displacement):t},Ot=function(e){var t=function(e){var t=e.impact,n=e.draggable,r=e.droppable,o=e.draggables,i=e.afterCritical,a=n.page.borderBox.center,s=t.at;return r&&s?"REORDER"===s.type?Ct({impact:t,draggable:n,draggables:o,droppable:r,afterCritical:i}):wt({impact:t,draggables:o,afterCritical:i}):a}(e),n=e.droppable;return n?kt(n,t):t},Tt=function(e,t){var n=Re(t,e.scroll.initial),r=Ae(n);return{frame:J({top:t.y,bottom:t.y+e.frame.height,left:t.x,right:t.x+e.frame.width}),scroll:{initial:e.scroll.initial,max:e.scroll.max,current:t,diff:{value:n,displacement:r}}}};function Nt(e,t){return e.map((function(e){return t[e]}))}var It=function(e){var t=e.pageBorderBoxCenter,n=e.draggable,r=function(e,t){return Pe(e.scroll.diff.displacement,t)}(e.viewport,t),o=Re(r,n.page.borderBox.center);return Pe(n.client.borderBox.center,o)},Pt=function(e){var t=e.draggable,n=e.destination,r=e.newPageBorderBoxCenter,o=e.viewport,a=e.withDroppableDisplacement,s=e.onlyOnMainAxis,l=void 0!==s&&s,c=Re(r,t.page.borderBox.center),u={target:Fe(t.page.borderBox,c),destination:n,withDroppableDisplacement:a,viewport:o};return l?function(e){return dt((0,i.Z)({},e,{isVisibleThroughFrameFn:(t=e.destination.axis,function(e){var n=at(e.top,e.bottom),r=at(e.left,e.right);return function(e){return t===ct?n(e.top)&&n(e.bottom):r(e.left)&&r(e.right)}})}));var t}(u):pt(u)},Rt=function(e){var t=e.isMovingForward,n=e.draggable,r=e.destination,o=e.draggables,a=e.previousImpact,s=e.viewport,l=e.previousPageBorderBoxCenter,c=e.previousClientSelection,u=e.afterCritical;if(!r.isEnabled)return null;var d=Je(r.descriptor.id,o),f=nt(n,r),p=function(e){var t=e.isMovingForward,n=e.draggable,r=e.destination,o=e.insideDestination,a=e.previousImpact;if(!r.isCombineEnabled)return null;if(!Xe(a))return null;function s(e){var t={type:"COMBINE",combine:{draggableId:e,droppableId:r.descriptor.id}};return(0,i.Z)({},a,{at:t})}var l=a.displaced.all,c=l.length?l[0]:null;if(t)return c?s(c):null;var u=tt(n,o);if(!c)return u.length?s(u[u.length-1].descriptor.id):null;var d=He(u,(function(e){return e.descriptor.id===c}));-1===d&&xe(!1);var f=d-1;return f<0?null:s(u[f].descriptor.id)}({isMovingForward:t,draggable:n,destination:r,insideDestination:d,previousImpact:a})||bt({isMovingForward:t,isInHomeList:f,draggable:n,draggables:o,destination:r,insideDestination:d,previousImpact:a,viewport:s,afterCritical:u});if(!p)return null;var h=Ot({impact:p,draggable:n,droppable:r,draggables:o,afterCritical:u});if(Pt({draggable:n,destination:r,newPageBorderBoxCenter:h,viewport:s.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0}))return{clientSelection:It({pageBorderBoxCenter:h,draggable:n,viewport:s}),impact:p,scrollJumpRequest:null};var m=Re(h,l),g=function(e){var t=e.impact,n=e.viewport,r=e.destination,o=e.draggables,a=e.maxScrollChange,s=Tt(n,Pe(n.scroll.current,a)),l=r.frame?$e(r,Pe(r.frame.scroll.current,a)):r,c=t.displaced,u=mt({afterDragging:Nt(c.all,o),destination:r,displacedBy:t.displacedBy,viewport:s.frame,last:c,forceShouldAnimate:!1}),d=mt({afterDragging:Nt(c.all,o),destination:l,displacedBy:t.displacedBy,viewport:n.frame,last:c,forceShouldAnimate:!1}),f={},p={},h=[c,u,d];return c.all.forEach((function(e){var t=function(e,t){for(var n=0;n<t.length;n++){var r=t[n].visible[e];if(r)return r}return null}(e,h);t?p[e]=t:f[e]=!0})),(0,i.Z)({},t,{displaced:{all:c.all,invisible:f,visible:p}})}({impact:p,viewport:s,destination:r,draggables:o,maxScrollChange:m});return{clientSelection:c,impact:g,scrollJumpRequest:m}},Dt=function(e){var t=e.subject.active;return t||xe(!1),t},At=function(e,t){var n=e.page.borderBox.center;return yt(e.descriptor.id,t)?Re(n,t.displacedBy.point):n},jt=function(e,t){var n=e.page.borderBox;return yt(e.descriptor.id,t)?Fe(n,Ae(t.displacedBy.point)):n},Mt=(0,le.Z)((function(e,t){var n=t[e.line];return{value:n,point:je(e.line,n)}})),Lt=function(e,t){return(0,i.Z)({},e,{scroll:(0,i.Z)({},e.scroll,{max:t})})},zt=function(e,t,n){var r=e.frame;nt(t,e)&&xe(!1),e.subject.withPlaceholder&&xe(!1);var o=Mt(e.axis,t.displaceBy).point,a=function(e,t,n){var r=e.axis;if("virtual"===e.descriptor.mode)return je(r.line,t[r.line]);var o=e.subject.page.contentBox[r.size],i=Je(e.descriptor.id,n).reduce((function(e,t){return e+t.client.marginBox[r.size]}),0)+t[r.line]-o;return i<=0?null:je(r.line,i)}(e,o,n),s={placeholderSize:o,increasedBy:a,oldFrameMaxScroll:e.frame?e.frame.scroll.max:null};if(!r){var l=qe({page:e.subject.page,withPlaceholder:s,axis:e.axis,frame:e.frame});return(0,i.Z)({},e,{subject:l})}var c=a?Pe(r.scroll.max,a):r.scroll.max,u=Lt(r,c),d=qe({page:e.subject.page,withPlaceholder:s,axis:e.axis,frame:u});return(0,i.Z)({},e,{subject:d,frame:u})},Ft=function(e){var t=e.isMovingForward,n=e.previousPageBorderBoxCenter,r=e.draggable,o=e.isOver,i=e.draggables,a=e.droppables,s=e.viewport,l=e.afterCritical,c=function(e){var t=e.isMovingForward,n=e.pageBorderBoxCenter,r=e.source,o=e.droppables,i=e.viewport,a=r.subject.active;if(!a)return null;var s=r.axis,l=at(a[s.start],a[s.end]),c=Ke(o).filter((function(e){return e!==r})).filter((function(e){return e.isEnabled})).filter((function(e){return Boolean(e.subject.active)})).filter((function(e){return st(i.frame)(Dt(e))})).filter((function(e){var n=Dt(e);return t?a[s.crossAxisEnd]<n[s.crossAxisEnd]:n[s.crossAxisStart]<a[s.crossAxisStart]})).filter((function(e){var t=Dt(e),n=at(t[s.start],t[s.end]);return l(t[s.start])||l(t[s.end])||n(a[s.start])||n(a[s.end])})).sort((function(e,n){var r=Dt(e)[s.crossAxisStart],o=Dt(n)[s.crossAxisStart];return t?r-o:o-r})).filter((function(e,t,n){return Dt(e)[s.crossAxisStart]===Dt(n[0])[s.crossAxisStart]}));if(!c.length)return null;if(1===c.length)return c[0];var u=c.filter((function(e){return at(Dt(e)[s.start],Dt(e)[s.end])(n[s.line])}));return 1===u.length?u[0]:u.length>1?u.sort((function(e,t){return Dt(e)[s.start]-Dt(t)[s.start]}))[0]:c.sort((function(e,t){var r=Le(n,Be(Dt(e))),o=Le(n,Be(Dt(t)));return r!==o?r-o:Dt(e)[s.start]-Dt(t)[s.start]}))[0]}({isMovingForward:t,pageBorderBoxCenter:n,source:o,droppables:a,viewport:s});if(!c)return null;var u=Je(c.descriptor.id,i),d=function(e){var t=e.pageBorderBoxCenter,n=e.viewport,r=e.destination,o=e.insideDestination,i=e.afterCritical,a=o.filter((function(e){return pt({target:jt(e,i),destination:r,viewport:n.frame,withDroppableDisplacement:!0})})).sort((function(e,n){var o=Me(t,kt(r,At(e,i))),a=Me(t,kt(r,At(n,i)));return o<a?-1:a<o?1:e.descriptor.index-n.descriptor.index}));return a[0]||null}({pageBorderBoxCenter:n,viewport:s,destination:c,insideDestination:u,afterCritical:l}),f=function(e){var t=e.previousPageBorderBoxCenter,n=e.moveRelativeTo,r=e.insideDestination,o=e.draggable,i=e.draggables,a=e.destination,s=e.viewport,l=e.afterCritical;if(!n){if(r.length)return null;var c={displaced:ot,displacedBy:rt,at:{type:"REORDER",destination:{droppableId:a.descriptor.id,index:0}}},u=Ot({impact:c,draggable:o,droppable:a,draggables:i,afterCritical:l}),d=nt(o,a)?a:zt(a,o,i);return Pt({draggable:o,destination:d,newPageBorderBoxCenter:u,viewport:s.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0})?c:null}var f=Boolean(t[a.axis.line]<=n.page.borderBox.center[a.axis.line]),p=function(){var e=n.descriptor.index;return n.descriptor.id===o.descriptor.id||f?e:e+1}(),h=Mt(a.axis,o.displaceBy);return vt({draggable:o,insideDestination:r,destination:a,viewport:s,displacedBy:h,last:ot,index:p})}({previousPageBorderBoxCenter:n,destination:c,draggable:r,draggables:i,moveRelativeTo:d,insideDestination:u,viewport:s,afterCritical:l});if(!f)return null;var p=Ot({impact:f,draggable:r,droppable:c,draggables:i,afterCritical:l});return{clientSelection:It({pageBorderBoxCenter:p,draggable:r,viewport:s}),impact:f,scrollJumpRequest:null}},Bt=function(e){var t=e.at;return t?"REORDER"===t.type?t.destination.droppableId:t.combine.droppableId:null},Ut=function(e){var t=e.state,n=e.type,r=function(e,t){var n=Bt(e);return n?t[n]:null}(t.impact,t.dimensions.droppables),o=Boolean(r),i=t.dimensions.droppables[t.critical.droppable.id],a=r||i,s=a.axis.direction,l="vertical"===s&&("MOVE_UP"===n||"MOVE_DOWN"===n)||"horizontal"===s&&("MOVE_LEFT"===n||"MOVE_RIGHT"===n);if(l&&!o)return null;var c="MOVE_DOWN"===n||"MOVE_RIGHT"===n,u=t.dimensions.draggables[t.critical.draggable.id],d=t.current.page.borderBoxCenter,f=t.dimensions,p=f.draggables,h=f.droppables;return l?Rt({isMovingForward:c,previousPageBorderBoxCenter:d,draggable:u,destination:a,draggables:p,viewport:t.viewport,previousClientSelection:t.current.client.selection,previousImpact:t.impact,afterCritical:t.afterCritical}):Ft({isMovingForward:c,previousPageBorderBoxCenter:d,draggable:u,isOver:a,draggables:p,droppables:h,viewport:t.viewport,afterCritical:t.afterCritical})};function qt(e){return"DRAGGING"===e.phase||"COLLECTING"===e.phase}function $t(e){var t=at(e.top,e.bottom),n=at(e.left,e.right);return function(e){return t(e.y)&&n(e.x)}}function Zt(e){var t=e.pageBorderBox,n=e.draggable,r=e.droppables,o=Ke(r).filter((function(e){if(!e.isEnabled)return!1;var n,r,o=e.subject.active;if(!o)return!1;if(r=o,!((n=t).left<r.right&&n.right>r.left&&n.top<r.bottom&&n.bottom>r.top))return!1;if($t(o)(t.center))return!0;var i=e.axis,a=o.center[i.crossAxisLine],s=t[i.crossAxisStart],l=t[i.crossAxisEnd],c=at(o[i.crossAxisStart],o[i.crossAxisEnd]),u=c(s),d=c(l);return!u&&!d||(u?s<a:l>a)}));return o.length?1===o.length?o[0].descriptor.id:function(e){var t=e.pageBorderBox,n=e.draggable,r=e.candidates,o=n.page.borderBox.center,i=r.map((function(e){var n=e.axis,r=je(e.axis.line,t.center[n.line],e.page.borderBox.center[n.crossAxisLine]);return{id:e.descriptor.id,distance:Me(o,r)}})).sort((function(e,t){return t.distance-e.distance}));return i[0]?i[0].id:null}({pageBorderBox:t,draggable:n,candidates:o}):null}var Ht=function(e,t){return J(Fe(e,t))};function Vt(e){var t=e.displaced,n=e.id;return Boolean(t.visible[n]||t.invisible[n])}var Wt=function(e){var t=e.pageOffset,n=e.draggable,r=e.draggables,o=e.droppables,i=e.previousImpact,a=e.viewport,s=e.afterCritical,l=Ht(n.page.borderBox,t),c=Zt({pageBorderBox:l,draggable:n,droppables:o});if(!c)return it;var u=o[c],d=Je(u.descriptor.id,r),f=function(e,t){var n=e.frame;return n?Ht(t,n.scroll.diff.value):t}(u,l);return function(e){var t=e.draggable,n=e.pageBorderBoxWithDroppableScroll,r=e.previousImpact,o=e.destination,i=e.insideDestination,a=e.afterCritical;if(!o.isCombineEnabled)return null;var s=o.axis,l=Mt(o.axis,t.displaceBy),c=l.value,u=n[s.start],d=n[s.end],f=Ve(tt(t,i),(function(e){var t=e.descriptor.id,n=e.page.borderBox,o=n[s.size]/4,i=yt(t,a),l=Vt({displaced:r.displaced,id:t});return i?l?d>n[s.start]+o&&d<n[s.end]-o:u>n[s.start]-c+o&&u<n[s.end]-c-o:l?d>n[s.start]+c+o&&d<n[s.end]+c-o:u>n[s.start]+o&&u<n[s.end]-o}));return f?{displacedBy:l,displaced:r.displaced,at:{type:"COMBINE",combine:{draggableId:f.descriptor.id,droppableId:o.descriptor.id}}}:null}({pageBorderBoxWithDroppableScroll:f,draggable:n,previousImpact:i,destination:u,insideDestination:d,afterCritical:s})||function(e){var t=e.pageBorderBoxWithDroppableScroll,n=e.draggable,r=e.destination,o=e.insideDestination,i=e.last,a=e.viewport,s=e.afterCritical,l=r.axis,c=Mt(r.axis,n.displaceBy),u=c.value,d=t[l.start],f=t[l.end],p=function(e){var t=e.draggable,n=e.closest,r=e.inHomeList;return n?r&&n.descriptor.index>t.descriptor.index?n.descriptor.index-1:n.descriptor.index:null}({draggable:n,closest:Ve(tt(n,o),(function(e){var t=e.descriptor.id,n=e.page.borderBox.center[l.line],r=yt(t,s),o=Vt({displaced:i,id:t});return r?o?f<=n:d<n-u:o?f<=n+u:d<n})),inHomeList:nt(n,r)});return vt({draggable:n,insideDestination:o,destination:r,viewport:a,last:i,displacedBy:c,index:p})}({pageBorderBoxWithDroppableScroll:f,draggable:n,destination:u,insideDestination:d,last:i.displaced,viewport:a,afterCritical:s})},Gt=function(e,t){var n;return(0,i.Z)({},e,((n={})[t.descriptor.id]=t,n))},Yt=function(e){var t=e.previousImpact,n=e.impact,r=e.droppables,o=Bt(t),a=Bt(n);if(!o)return r;if(o===a)return r;var s=r[o];if(!s.subject.withPlaceholder)return r;var l=function(e){var t=e.subject.withPlaceholder;t||xe(!1);var n=e.frame;if(!n){var r=qe({page:e.subject.page,axis:e.axis,frame:null,withPlaceholder:null});return(0,i.Z)({},e,{subject:r})}var o=t.oldFrameMaxScroll;o||xe(!1);var a=Lt(n,o),s=qe({page:e.subject.page,axis:e.axis,frame:a,withPlaceholder:null});return(0,i.Z)({},e,{subject:s,frame:a})}(s);return Gt(r,l)},Kt=function(e){var t=e.state,n=e.clientSelection,r=e.dimensions,o=e.viewport,a=e.impact,s=e.scrollJumpRequest,l=o||t.viewport,c=r||t.dimensions,u=n||t.current.client.selection,d=Re(u,t.initial.client.selection),f={offset:d,selection:u,borderBoxCenter:Pe(t.initial.client.borderBoxCenter,d)},p={selection:Pe(f.selection,l.scroll.current),borderBoxCenter:Pe(f.borderBoxCenter,l.scroll.current),offset:Pe(f.offset,l.scroll.diff.value)},h={client:f,page:p};if("COLLECTING"===t.phase)return(0,i.Z)({phase:"COLLECTING"},t,{dimensions:c,viewport:l,current:h});var m=c.draggables[t.critical.draggable.id],g=a||Wt({pageOffset:p.offset,draggable:m,draggables:c.draggables,droppables:c.droppables,previousImpact:t.impact,viewport:l,afterCritical:t.afterCritical}),v=function(e){var t=e.draggable,n=e.draggables,r=e.droppables,o=e.previousImpact,i=e.impact,a=Yt({previousImpact:o,impact:i,droppables:r}),s=Bt(i);if(!s)return a;var l=r[s];if(nt(t,l))return a;if(l.subject.withPlaceholder)return a;var c=zt(l,t,n);return Gt(a,c)}({draggable:m,impact:g,previousImpact:t.impact,draggables:c.draggables,droppables:c.droppables});return(0,i.Z)({},t,{current:h,dimensions:{draggables:c.draggables,droppables:v},impact:g,viewport:l,scrollJumpRequest:s||null,forceShouldAnimate:!s&&null})};var Qt=function(e){var t=e.impact,n=e.viewport,r=e.draggables,o=e.destination,a=e.forceShouldAnimate,s=t.displaced,l=function(e,t){return e.map((function(e){return t[e]}))}(s.all,r),c=mt({afterDragging:l,destination:o,displacedBy:t.displacedBy,viewport:n.frame,forceShouldAnimate:a,last:s});return(0,i.Z)({},t,{displaced:c})},Jt=function(e){var t=e.impact,n=e.draggable,r=e.droppable,o=e.draggables,i=e.viewport,a=e.afterCritical,s=Ot({impact:t,draggable:n,draggables:o,droppable:r,afterCritical:a});return It({pageBorderBoxCenter:s,draggable:n,viewport:i})},Xt=function(e){var t=e.state,n=e.dimensions,r=e.viewport;"SNAP"!==t.movementMode&&xe(!1);var o=t.impact,i=r||t.viewport,a=n||t.dimensions,s=a.draggables,l=a.droppables,c=s[t.critical.draggable.id],u=Bt(o);u||xe(!1);var d=l[u],f=Qt({impact:o,viewport:i,destination:d,draggables:s}),p=Jt({impact:f,draggable:c,droppable:d,draggables:s,viewport:i,afterCritical:t.afterCritical});return Kt({impact:f,clientSelection:p,state:t,dimensions:a,viewport:i})},en=function(e){var t=e.draggable,n=e.home,r=e.draggables,o=e.viewport,i=Mt(n.axis,t.displaceBy),a=Je(n.descriptor.id,r),s=a.indexOf(t);-1===s&&xe(!1);var l,c=a.slice(s+1),u=c.reduce((function(e,t){return e[t.descriptor.id]=!0,e}),{}),d={inVirtualList:"virtual"===n.descriptor.mode,displacedBy:i,effected:u};return{impact:{displaced:mt({afterDragging:c,destination:n,displacedBy:i,last:null,viewport:o.frame,forceShouldAnimate:!1}),displacedBy:i,at:{type:"REORDER",destination:(l=t.descriptor,{index:l.index,droppableId:l.droppableId})}},afterCritical:d}},tn=function(e){0},nn=function(e){0},rn=function(e){var t=e.additions,n=e.updatedDroppables,r=e.viewport,o=r.scroll.diff.value;return t.map((function(e){var t=e.descriptor.droppableId,a=function(e){var t=e.frame;return t||xe(!1),t}(n[t]),s=a.scroll.diff.value,l=function(e){var t=e.draggable,n=e.offset,r=e.initialWindowScroll,o=oe(t.client,n),a=ie(o,r);return(0,i.Z)({},t,{placeholder:(0,i.Z)({},t.placeholder,{client:o}),client:o,page:a})}({draggable:e,offset:Pe(o,s),initialWindowScroll:r.scroll.initial});return l}))},on=function(e){return"SNAP"===e.movementMode},an=function(e,t,n){var r=function(e,t){return{draggables:e.draggables,droppables:Gt(e.droppables,t)}}(e.dimensions,t);return!on(e)||n?Kt({state:e,dimensions:r}):Xt({state:e,dimensions:r})};function sn(e){return e.isDragging&&"SNAP"===e.movementMode?(0,i.Z)({phase:"DRAGGING"},e,{scrollJumpRequest:null}):e}var ln={phase:"IDLE",completed:null,shouldFlush:!1},cn=function(e,t){if(void 0===e&&(e=ln),"FLUSH"===t.type)return(0,i.Z)({},ln,{shouldFlush:!0});if("INITIAL_PUBLISH"===t.type){"IDLE"!==e.phase&&xe(!1);var n=t.payload,r=n.critical,o=n.clientSelection,a=n.viewport,s=n.dimensions,l=n.movementMode,c=s.draggables[r.draggable.id],u=s.droppables[r.droppable.id],d={selection:o,borderBoxCenter:c.client.borderBox.center,offset:Ie},f={client:d,page:{selection:Pe(d.selection,a.scroll.initial),borderBoxCenter:Pe(d.selection,a.scroll.initial),offset:Pe(d.selection,a.scroll.diff.value)}},p=Ke(s.droppables).every((function(e){return!e.isFixedOnPage})),h=en({draggable:c,home:u,draggables:s.draggables,viewport:a}),m=h.impact;return{phase:"DRAGGING",isDragging:!0,critical:r,movementMode:l,dimensions:s,initial:f,current:f,isWindowScrollAllowed:p,impact:m,afterCritical:h.afterCritical,onLiftImpact:m,viewport:a,scrollJumpRequest:null,forceShouldAnimate:null}}if("COLLECTION_STARTING"===t.type)return"COLLECTING"===e.phase||"DROP_PENDING"===e.phase?e:("DRAGGING"!==e.phase&&xe(!1),(0,i.Z)({phase:"COLLECTING"},e,{phase:"COLLECTING"}));if("PUBLISH_WHILE_DRAGGING"===t.type)return"COLLECTING"!==e.phase&&"DROP_PENDING"!==e.phase&&xe(!1),function(e){var t=e.state,n=e.published;tn();var r=n.modified.map((function(e){var n=t.dimensions.droppables[e.droppableId];return $e(n,e.scroll)})),o=(0,i.Z)({},t.dimensions.droppables,{},Ge(r)),a=Ye(rn({additions:n.additions,updatedDroppables:o,viewport:t.viewport})),s=(0,i.Z)({},t.dimensions.draggables,{},a);n.removals.forEach((function(e){delete s[e]}));var l={droppables:o,draggables:s},c=Bt(t.impact),u=c?l.droppables[c]:null,d=l.draggables[t.critical.draggable.id],f=l.droppables[t.critical.droppable.id],p=en({draggable:d,home:f,draggables:s,viewport:t.viewport}),h=p.impact,m=p.afterCritical,g=u&&u.isCombineEnabled?t.impact:h,v=Wt({pageOffset:t.current.page.offset,draggable:l.draggables[t.critical.draggable.id],draggables:l.draggables,droppables:l.droppables,previousImpact:g,viewport:t.viewport,afterCritical:m});nn();var y=(0,i.Z)({phase:"DRAGGING"},t,{phase:"DRAGGING",impact:v,onLiftImpact:h,dimensions:l,afterCritical:m,forceShouldAnimate:!1});return"COLLECTING"===t.phase?y:(0,i.Z)({phase:"DROP_PENDING"},y,{phase:"DROP_PENDING",reason:t.reason,isWaiting:!1})}({state:e,published:t.payload});if("MOVE"===t.type){if("DROP_PENDING"===e.phase)return e;qt(e)||xe(!1);var g=t.payload.client;return De(g,e.current.client.selection)?e:Kt({state:e,clientSelection:g,impact:on(e)?e.impact:null})}if("UPDATE_DROPPABLE_SCROLL"===t.type){if("DROP_PENDING"===e.phase)return sn(e);if("COLLECTING"===e.phase)return sn(e);qt(e)||xe(!1);var v=t.payload,y=v.id,b=v.newScroll,w=e.dimensions.droppables[y];if(!w)return e;var E=$e(w,b);return an(e,E,!1)}if("UPDATE_DROPPABLE_IS_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;qt(e)||xe(!1);var _=t.payload,x=_.id,S=_.isEnabled,C=e.dimensions.droppables[x];C||xe(!1),C.isEnabled===S&&xe(!1);var k=(0,i.Z)({},C,{isEnabled:S});return an(e,k,!0)}if("UPDATE_DROPPABLE_IS_COMBINE_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;qt(e)||xe(!1);var O=t.payload,T=O.id,N=O.isCombineEnabled,I=e.dimensions.droppables[T];I||xe(!1),I.isCombineEnabled===N&&xe(!1);var P=(0,i.Z)({},I,{isCombineEnabled:N});return an(e,P,!0)}if("MOVE_BY_WINDOW_SCROLL"===t.type){if("DROP_PENDING"===e.phase||"DROP_ANIMATING"===e.phase)return e;qt(e)||xe(!1),e.isWindowScrollAllowed||xe(!1);var R=t.payload.newScroll;if(De(e.viewport.scroll.current,R))return sn(e);var D=Tt(e.viewport,R);return on(e)?Xt({state:e,viewport:D}):Kt({state:e,viewport:D})}if("UPDATE_VIEWPORT_MAX_SCROLL"===t.type){if(!qt(e))return e;var A=t.payload.maxScroll;if(De(A,e.viewport.scroll.max))return e;var j=(0,i.Z)({},e.viewport,{scroll:(0,i.Z)({},e.viewport.scroll,{max:A})});return(0,i.Z)({phase:"DRAGGING"},e,{viewport:j})}if("MOVE_UP"===t.type||"MOVE_DOWN"===t.type||"MOVE_LEFT"===t.type||"MOVE_RIGHT"===t.type){if("COLLECTING"===e.phase||"DROP_PENDING"===e.phase)return e;"DRAGGING"!==e.phase&&xe(!1);var M=Ut({state:e,type:t.type});return M?Kt({state:e,impact:M.impact,clientSelection:M.clientSelection,scrollJumpRequest:M.scrollJumpRequest}):e}if("DROP_PENDING"===t.type){var L=t.payload.reason;return"COLLECTING"!==e.phase&&xe(!1),(0,i.Z)({phase:"DROP_PENDING"},e,{phase:"DROP_PENDING",isWaiting:!0,reason:L})}if("DROP_ANIMATE"===t.type){var z=t.payload,F=z.completed,B=z.dropDuration,U=z.newHomeClientOffset;return"DRAGGING"!==e.phase&&"DROP_PENDING"!==e.phase&&xe(!1),{phase:"DROP_ANIMATING",completed:F,dropDuration:B,newHomeClientOffset:U,dimensions:e.dimensions}}return"DROP_COMPLETE"===t.type?{phase:"IDLE",completed:t.payload.completed,shouldFlush:!1}:e},un=function(e){return{type:"LIFT",payload:e}},dn=function(e){return{type:"PUBLISH_WHILE_DRAGGING",payload:e}},fn=function(){return{type:"COLLECTION_STARTING",payload:null}},pn=function(e){return{type:"UPDATE_DROPPABLE_SCROLL",payload:e}},hn=function(e){return{type:"UPDATE_DROPPABLE_IS_ENABLED",payload:e}},mn=function(e){return{type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:e}},gn=function(e){return{type:"MOVE",payload:e}},vn=function(){return{type:"MOVE_UP",payload:null}},yn=function(){return{type:"MOVE_DOWN",payload:null}},bn=function(){return{type:"MOVE_RIGHT",payload:null}},wn=function(){return{type:"MOVE_LEFT",payload:null}},En=function(){return{type:"FLUSH",payload:null}},_n=function(e){return{type:"DROP_COMPLETE",payload:e}},xn=function(e){return{type:"DROP",payload:e}},Sn=function(){return{type:"DROP_ANIMATION_FINISHED",payload:null}};var Cn={outOfTheWay:"cubic-bezier(0.2, 0, 0, 1)",drop:"cubic-bezier(.2,1,.1,1)"},kn={opacity:{drop:0,combining:.7},scale:{drop:.75}},On=.33,Tn=.55,Nn=.2+"s "+Cn.outOfTheWay,In={fluid:"opacity "+Nn,snap:"transform "+Nn+", opacity "+Nn,drop:function(e){var t=e+"s "+Cn.drop;return"transform "+t+", opacity "+t},outOfTheWay:"transform "+Nn,placeholder:"height "+Nn+", width "+Nn+", margin "+Nn},Pn=function(e){return De(e,Ie)?null:"translate("+e.x+"px, "+e.y+"px)"},Rn={moveTo:Pn,drop:function(e,t){var n=Pn(e);return n?t?n+" scale("+kn.scale.drop+")":n:null}},Dn=On,An=Tn,jn=An-Dn,Mn=function(e){var t=e.getState,n=e.dispatch;return function(e){return function(r){if("DROP"===r.type){var o=t(),a=r.payload.reason;if("COLLECTING"!==o.phase){if("IDLE"!==o.phase){"DROP_PENDING"===o.phase&&o.isWaiting&&xe(!1),"DRAGGING"!==o.phase&&"DROP_PENDING"!==o.phase&&xe(!1);var s=o.critical,l=o.dimensions,c=l.draggables[o.critical.draggable.id],u=function(e){var t=e.draggables,n=e.reason,r=e.lastImpact,o=e.home,a=e.viewport,s=e.onLiftImpact;return r.at&&"DROP"===n?"REORDER"===r.at.type?{impact:r,didDropInsideDroppable:!0}:{impact:(0,i.Z)({},r,{displaced:ot}),didDropInsideDroppable:!0}:{impact:Qt({draggables:t,impact:s,destination:o,viewport:a,forceShouldAnimate:!0}),didDropInsideDroppable:!1}}({reason:a,lastImpact:o.impact,afterCritical:o.afterCritical,onLiftImpact:o.onLiftImpact,home:o.dimensions.droppables[o.critical.droppable.id],viewport:o.viewport,draggables:o.dimensions.draggables}),d=u.impact,f=u.didDropInsideDroppable,p=f?Xe(d):null,h=f?et(d):null,m={index:s.draggable.index,droppableId:s.droppable.id},g={draggableId:c.descriptor.id,type:c.descriptor.type,source:m,reason:a,mode:o.movementMode,destination:p,combine:h},v=function(e){var t=e.impact,n=e.draggable,r=e.dimensions,o=e.viewport,i=e.afterCritical,a=r.draggables,s=r.droppables,l=Bt(t),c=l?s[l]:null,u=s[n.descriptor.droppableId],d=Jt({impact:t,draggable:n,draggables:a,afterCritical:i,droppable:c||u,viewport:o});return Re(d,n.client.borderBox.center)}({impact:d,draggable:c,dimensions:l,viewport:o.viewport,afterCritical:o.afterCritical}),y={critical:o.critical,afterCritical:o.afterCritical,result:g,impact:d};if(!De(o.current.client.offset,v)||Boolean(g.combine)){var b=function(e){var t=e.current,n=e.destination,r=e.reason,o=Me(t,n);if(o<=0)return Dn;if(o>=1500)return An;var i=Dn+jn*(o/1500);return Number(("CANCEL"===r?.6*i:i).toFixed(2))}({current:o.current.client.offset,destination:v,reason:a});n(function(e){return{type:"DROP_ANIMATE",payload:e}}({newHomeClientOffset:v,dropDuration:b,completed:y}))}else n(_n({completed:y}))}}else n(function(e){return{type:"DROP_PENDING",payload:e}}({reason:a}))}else e(r)}}},Ln=function(){return{x:window.pageXOffset,y:window.pageYOffset}};function zn(e){var t=e.onWindowScroll;var n=ce((function(){t(Ln())})),r=function(e){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(t){t.target!==window&&t.target!==window.document||e()}}}(n),o=ye;function i(){return o!==ye}return{start:function(){i()&&xe(!1),o=be(window,[r])},stop:function(){i()||xe(!1),n.cancel(),o(),o=ye},isActive:i}}var Fn=function(e){var t=zn({onWindowScroll:function(t){e.dispatch({type:"MOVE_BY_WINDOW_SCROLL",payload:{newScroll:t}})}});return function(e){return function(n){t.isActive()||"INITIAL_PUBLISH"!==n.type||t.start(),t.isActive()&&function(e){return"DROP_COMPLETE"===e.type||"DROP_ANIMATE"===e.type||"FLUSH"===e.type}(n)&&t.stop(),e(n)}}},Bn=function(){var e=[];return{add:function(t){var n=setTimeout((function(){return function(t){var n=He(e,(function(e){return e.timerId===t}));-1===n&&xe(!1),e.splice(n,1)[0].callback()}(n)})),r={timerId:n,callback:t};e.push(r)},flush:function(){if(e.length){var t=[].concat(e);e.length=0,t.forEach((function(e){clearTimeout(e.timerId),e.callback()}))}}}},Un=function(e,t){tn(),t(),nn()},qn=function(e,t){return{draggableId:e.draggable.id,type:e.droppable.type,source:{droppableId:e.droppable.id,index:e.draggable.index},mode:t}},$n=function(e,t,n,r){if(e){var o=function(e){var t=!1,n=!1,r=setTimeout((function(){n=!0})),o=function(o){t||n||(t=!0,e(o),clearTimeout(r))};return o.wasCalled=function(){return t},o}(n);e(t,{announce:o}),o.wasCalled()||n(r(t))}else n(r(t))},Zn=function(e,t){var n=function(e,t){var n=Bn(),r=null,o=function(n){r||xe(!1),r=null,Un(0,(function(){return $n(e().onDragEnd,n,t,Ne.onDragEnd)}))};return{beforeCapture:function(t,n){r&&xe(!1),Un(0,(function(){var r=e().onBeforeCapture;r&&r({draggableId:t,mode:n})}))},beforeStart:function(t,n){r&&xe(!1),Un(0,(function(){var r=e().onBeforeDragStart;r&&r(qn(t,n))}))},start:function(o,i){r&&xe(!1);var a=qn(o,i);r={mode:i,lastCritical:o,lastLocation:a.source,lastCombine:null},n.add((function(){Un(0,(function(){return $n(e().onDragStart,a,t,Ne.onDragStart)}))}))},update:function(o,a){var s=Xe(a),l=et(a);r||xe(!1);var c=!function(e,t){if(e===t)return!0;var n=e.draggable.id===t.draggable.id&&e.draggable.droppableId===t.draggable.droppableId&&e.draggable.type===t.draggable.type&&e.draggable.index===t.draggable.index,r=e.droppable.id===t.droppable.id&&e.droppable.type===t.droppable.type;return n&&r}(o,r.lastCritical);c&&(r.lastCritical=o);var u,d,f=(d=s,!(null==(u=r.lastLocation)&&null==d||null!=u&&null!=d&&u.droppableId===d.droppableId&&u.index===d.index));f&&(r.lastLocation=s);var p=!function(e,t){return null==e&&null==t||null!=e&&null!=t&&e.draggableId===t.draggableId&&e.droppableId===t.droppableId}(r.lastCombine,l);if(p&&(r.lastCombine=l),c||f||p){var h=(0,i.Z)({},qn(o,r.mode),{combine:l,destination:s});n.add((function(){Un(0,(function(){return $n(e().onDragUpdate,h,t,Ne.onDragUpdate)}))}))}},flush:function(){r||xe(!1),n.flush()},drop:o,abort:function(){if(r){var e=(0,i.Z)({},qn(r.lastCritical,r.mode),{combine:null,destination:null,reason:"CANCEL"});o(e)}}}}(e,t);return function(e){return function(t){return function(r){if("BEFORE_INITIAL_CAPTURE"!==r.type){if("INITIAL_PUBLISH"===r.type){var o=r.payload.critical;return n.beforeStart(o,r.payload.movementMode),t(r),void n.start(o,r.payload.movementMode)}if("DROP_COMPLETE"===r.type){var i=r.payload.completed.result;return n.flush(),t(r),void n.drop(i)}if(t(r),"FLUSH"!==r.type){var a=e.getState();"DRAGGING"===a.phase&&n.update(a.critical,a.impact)}else n.abort()}else n.beforeCapture(r.payload.draggableId,r.payload.movementMode)}}}},Hn=function(e){return function(t){return function(n){if("DROP_ANIMATION_FINISHED"===n.type){var r=e.getState();"DROP_ANIMATING"!==r.phase&&xe(!1),e.dispatch(_n({completed:r.completed}))}else t(n)}}},Vn=function(e){var t=null,n=null;return function(r){return function(o){if("FLUSH"!==o.type&&"DROP_COMPLETE"!==o.type&&"DROP_ANIMATION_FINISHED"!==o.type||(n&&(cancelAnimationFrame(n),n=null),t&&(t(),t=null)),r(o),"DROP_ANIMATE"===o.type){var i={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){"DROP_ANIMATING"===e.getState().phase&&e.dispatch({type:"DROP_ANIMATION_FINISHED",payload:null})}};n=requestAnimationFrame((function(){n=null,t=be(window,[i])}))}}}},Wn=function(e){return function(t){return function(n){if(t(n),"PUBLISH_WHILE_DRAGGING"===n.type){var r=e.getState();"DROP_PENDING"===r.phase&&(r.isWaiting||e.dispatch(xn({reason:r.reason})))}}}},Gn=a.qC,Yn=function(e){var t,n=e.dimensionMarshal,r=e.focusMarshal,o=e.styleMarshal,i=e.getResponders,s=e.announce,l=e.autoScroller;return(0,a.MT)(cn,Gn((0,a.md)((t=o,function(){return function(e){return function(n){"INITIAL_PUBLISH"===n.type&&t.dragging(),"DROP_ANIMATE"===n.type&&t.dropping(n.payload.completed.result.reason),"FLUSH"!==n.type&&"DROP_COMPLETE"!==n.type||t.resting(),e(n)}}}),function(e){return function(){return function(t){return function(n){"DROP_COMPLETE"!==n.type&&"FLUSH"!==n.type&&"DROP_ANIMATE"!==n.type||e.stopPublishing(),t(n)}}}}(n),function(e){return function(t){var n=t.getState,r=t.dispatch;return function(t){return function(o){if("LIFT"===o.type){var i=o.payload,a=i.id,s=i.clientSelection,l=i.movementMode,c=n();"DROP_ANIMATING"===c.phase&&r(_n({completed:c.completed})),"IDLE"!==n().phase&&xe(!1),r(En()),r({type:"BEFORE_INITIAL_CAPTURE",payload:{draggableId:a,movementMode:l}});var u={draggableId:a,scrollOptions:{shouldPublishImmediately:"SNAP"===l}},d=e.startPublishing(u),f=d.critical,p=d.dimensions,h=d.viewport;r({type:"INITIAL_PUBLISH",payload:{critical:f,dimensions:p,clientSelection:s,movementMode:l,viewport:h}})}else t(o)}}}}(n),Mn,Hn,Vn,Wn,function(e){return function(t){return function(n){return function(r){if(function(e){return"DROP_COMPLETE"===e.type||"DROP_ANIMATE"===e.type||"FLUSH"===e.type}(r))return e.stop(),void n(r);if("INITIAL_PUBLISH"===r.type){n(r);var o=t.getState();return"DRAGGING"!==o.phase&&xe(!1),void e.start(o)}n(r),e.scroll(t.getState())}}}}(l),Fn,function(e){var t=!1;return function(){return function(n){return function(r){if("INITIAL_PUBLISH"===r.type)return t=!0,e.tryRecordFocus(r.payload.critical.draggable.id),n(r),void e.tryRestoreFocusRecorded();if(n(r),t){if("FLUSH"===r.type)return t=!1,void e.tryRestoreFocusRecorded();if("DROP_COMPLETE"===r.type){t=!1;var o=r.payload.completed.result;o.combine&&e.tryShiftRecord(o.draggableId,o.combine.draggableId),e.tryRestoreFocusRecorded()}}}}}}(r),Zn(i,s))))},Kn=function(){return{additions:{},removals:{},modified:{}}};var Qn=function(e){var t=e.scrollHeight,n=e.scrollWidth,r=e.height,o=e.width,i=Re({x:n,y:t},{x:o,y:r});return{x:Math.max(0,i.x),y:Math.max(0,i.y)}},Jn=function(){var e=document.documentElement;return e||xe(!1),e},Xn=function(){var e=Jn();return Qn({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,width:e.clientWidth,height:e.clientHeight})},er=function(e){var t=e.critical,n=e.scrollOptions,r=e.registry;tn();var o=function(){var e=Ln(),t=Xn(),n=e.y,r=e.x,o=Jn(),i=o.clientWidth,a=o.clientHeight;return{frame:J({top:n,left:r,right:r+i,bottom:n+a}),scroll:{initial:e,current:e,max:t,diff:{value:Ie,displacement:Ie}}}}(),i=o.scroll.current,a=t.droppable,s=r.droppable.getAllByType(a.type).map((function(e){return e.callbacks.getDimensionAndWatchScroll(i,n)})),l=r.draggable.getAllByType(t.draggable.type).map((function(e){return e.getDimension(i)})),c={draggables:Ye(l),droppables:Ge(s)};return nn(),{dimensions:c,critical:t,viewport:o}};function tr(e,t,n){return n.descriptor.id!==t.id&&(n.descriptor.type===t.type&&"virtual"===e.droppable.getById(n.descriptor.droppableId).descriptor.mode)}var nr=function(e,t){var n=null,r=function(e){var t=e.registry,n=e.callbacks,r=Kn(),o=null,i=function(){o||(n.collectionStarting(),o=requestAnimationFrame((function(){o=null,tn();var e=r,i=e.additions,a=e.removals,s=e.modified,l=Object.keys(i).map((function(e){return t.draggable.getById(e).getDimension(Ie)})).sort((function(e,t){return e.descriptor.index-t.descriptor.index})),c=Object.keys(s).map((function(e){return{droppableId:e,scroll:t.droppable.getById(e).callbacks.getScrollWhileDragging()}})),u={additions:l,removals:Object.keys(a),modified:c};r=Kn(),nn(),n.publish(u)})))};return{add:function(e){var t=e.descriptor.id;r.additions[t]=e,r.modified[e.descriptor.droppableId]=!0,r.removals[t]&&delete r.removals[t],i()},remove:function(e){var t=e.descriptor;r.removals[t.id]=!0,r.modified[t.droppableId]=!0,r.additions[t.id]&&delete r.additions[t.id],i()},stop:function(){o&&(cancelAnimationFrame(o),o=null,r=Kn())}}}({callbacks:{publish:t.publishWhileDragging,collectionStarting:t.collectionStarting},registry:e}),o=function(t){n||xe(!1);var o=n.critical.draggable;"ADDITION"===t.type&&tr(e,o,t.value)&&r.add(t.value),"REMOVAL"===t.type&&tr(e,o,t.value)&&r.remove(t.value)},i={updateDroppableIsEnabled:function(r,o){e.droppable.exists(r)||xe(!1),n&&t.updateDroppableIsEnabled({id:r,isEnabled:o})},updateDroppableIsCombineEnabled:function(r,o){n&&(e.droppable.exists(r)||xe(!1),t.updateDroppableIsCombineEnabled({id:r,isCombineEnabled:o}))},scrollDroppable:function(t,r){n&&e.droppable.getById(t).callbacks.scroll(r)},updateDroppableScroll:function(r,o){n&&(e.droppable.exists(r)||xe(!1),t.updateDroppableScroll({id:r,newScroll:o}))},startPublishing:function(t){n&&xe(!1);var r=e.draggable.getById(t.draggableId),i=e.droppable.getById(r.descriptor.droppableId),a={draggable:r.descriptor,droppable:i.descriptor},s=e.subscribe(o);return n={critical:a,unsubscribe:s},er({critical:a,registry:e,scrollOptions:t.scrollOptions})},stopPublishing:function(){if(n){r.stop();var t=n.critical.droppable;e.droppable.getAllByType(t.type).forEach((function(e){return e.callbacks.dragStopped()})),n.unsubscribe(),n=null}}};return i},rr=function(e,t){return"IDLE"===e.phase||"DROP_ANIMATING"===e.phase&&(e.completed.result.draggableId!==t&&"DROP"===e.completed.result.reason)},or=function(e){window.scrollBy(e.x,e.y)},ir=(0,le.Z)((function(e){return Ke(e).filter((function(e){return!!e.isEnabled&&!!e.frame}))})),ar=function(e){var t=e.center,n=e.destination,r=e.droppables;if(n){var o=r[n];return o.frame?o:null}var i=function(e,t){var n=Ve(ir(t),(function(t){return t.frame||xe(!1),$t(t.frame.pageMarginBox)(e)}));return n}(t,r);return i},sr=.25,lr=.05,cr=28,ur=function(e){return Math.pow(e,2)},dr={stopDampeningAt:1200,accelerateAt:360},fr=function(e){var t=e.startOfRange,n=e.endOfRange,r=e.current,o=n-t;return 0===o?0:(r-t)/o},pr=dr.accelerateAt,hr=dr.stopDampeningAt,mr=function(e){var t=e.distanceToEdge,n=e.thresholds,r=e.dragStartTime,o=e.shouldUseTimeDampening,i=function(e,t){if(e>t.startScrollingFrom)return 0;if(e<=t.maxScrollValueAt)return cr;if(e===t.startScrollingFrom)return 1;var n=fr({startOfRange:t.maxScrollValueAt,endOfRange:t.startScrollingFrom,current:e}),r=cr*ur(1-n);return Math.ceil(r)}(t,n);return 0===i?0:o?Math.max(function(e,t){var n=t,r=hr,o=Date.now()-n;if(o>=hr)return e;if(o<pr)return 1;var i=fr({startOfRange:pr,endOfRange:r,current:o}),a=e*ur(i);return Math.ceil(a)}(i,r),1):i},gr=function(e){var t=e.container,n=e.distanceToEdges,r=e.dragStartTime,o=e.axis,i=e.shouldUseTimeDampening,a=function(e,t){return{startScrollingFrom:e[t.size]*sr,maxScrollValueAt:e[t.size]*lr}}(t,o);return n[o.end]<n[o.start]?mr({distanceToEdge:n[o.end],thresholds:a,dragStartTime:r,shouldUseTimeDampening:i}):-1*mr({distanceToEdge:n[o.start],thresholds:a,dragStartTime:r,shouldUseTimeDampening:i})},vr=ze((function(e){return 0===e?0:e})),yr=function(e){var t=e.dragStartTime,n=e.container,r=e.subject,o=e.center,i=e.shouldUseTimeDampening,a={top:o.y-n.top,right:n.right-o.x,bottom:n.bottom-o.y,left:o.x-n.left},s=gr({container:n,distanceToEdges:a,dragStartTime:t,axis:ct,shouldUseTimeDampening:i}),l=gr({container:n,distanceToEdges:a,dragStartTime:t,axis:ut,shouldUseTimeDampening:i}),c=vr({x:l,y:s});if(De(c,Ie))return null;var u=function(e){var t=e.container,n=e.subject,r=e.proposedScroll,o=n.height>t.height,i=n.width>t.width;return i||o?i&&o?null:{x:i?0:r.x,y:o?0:r.y}:r}({container:n,subject:r,proposedScroll:c});return u?De(u,Ie)?null:u:null},br=ze((function(e){return 0===e?0:e>0?1:-1})),wr=function(){var e=function(e,t){return e<0?e:e>t?e-t:0};return function(t){var n=t.current,r=t.max,o=t.change,i=Pe(n,o),a={x:e(i.x,r.x),y:e(i.y,r.y)};return De(a,Ie)?null:a}}(),Er=function(e){var t=e.max,n=e.current,r=e.change,o={x:Math.max(n.x,t.x),y:Math.max(n.y,t.y)},i=br(r),a=wr({max:o,current:n,change:i});return!a||(0!==i.x&&0===a.x||0!==i.y&&0===a.y)},_r=function(e,t){return Er({current:e.scroll.current,max:e.scroll.max,change:t})},xr=function(e,t){var n=e.frame;return!!n&&Er({current:n.scroll.current,max:n.scroll.max,change:t})},Sr=function(e){var t=e.state,n=e.dragStartTime,r=e.shouldUseTimeDampening,o=e.scrollWindow,i=e.scrollDroppable,a=t.current.page.borderBoxCenter,s=t.dimensions.draggables[t.critical.draggable.id].page.marginBox;if(t.isWindowScrollAllowed){var l=function(e){var t=e.viewport,n=e.subject,r=e.center,o=e.dragStartTime,i=e.shouldUseTimeDampening,a=yr({dragStartTime:o,container:t.frame,subject:n,center:r,shouldUseTimeDampening:i});return a&&_r(t,a)?a:null}({dragStartTime:n,viewport:t.viewport,subject:s,center:a,shouldUseTimeDampening:r});if(l)return void o(l)}var c=ar({center:a,destination:Bt(t.impact),droppables:t.dimensions.droppables});if(c){var u=function(e){var t=e.droppable,n=e.subject,r=e.center,o=e.dragStartTime,i=e.shouldUseTimeDampening,a=t.frame;if(!a)return null;var s=yr({dragStartTime:o,container:a.pageMarginBox,subject:n,center:r,shouldUseTimeDampening:i});return s&&xr(t,s)?s:null}({dragStartTime:n,droppable:c,subject:s,center:a,shouldUseTimeDampening:r});u&&i(c.descriptor.id,u)}},Cr=function(e){var t=e.move,n=e.scrollDroppable,r=e.scrollWindow,o=function(e,t){if(!xr(e,t))return t;var r=function(e,t){var n=e.frame;return n&&xr(e,t)?wr({current:n.scroll.current,max:n.scroll.max,change:t}):null}(e,t);if(!r)return n(e.descriptor.id,t),null;var o=Re(t,r);return n(e.descriptor.id,o),Re(t,o)},i=function(e,t,n){if(!e)return n;if(!_r(t,n))return n;var o=function(e,t){if(!_r(e,t))return null;var n=e.scroll.max,r=e.scroll.current;return wr({current:r,max:n,change:t})}(t,n);if(!o)return r(n),null;var i=Re(n,o);return r(i),Re(n,i)};return function(e){var n=e.scrollJumpRequest;if(n){var r=Bt(e.impact);r||xe(!1);var a=o(e.dimensions.droppables[r],n);if(a){var s=e.viewport,l=i(e.isWindowScrollAllowed,s,a);l&&function(e,n){var r=Pe(e.current.client.selection,n);t({client:r})}(e,l)}}}},kr=function(e){var t=e.scrollDroppable,n=e.scrollWindow,r=e.move,o=function(e){var t=e.scrollWindow,n=e.scrollDroppable,r=ce(t),o=ce(n),i=null,a=function(e){i||xe(!1);var t=i,n=t.shouldUseTimeDampening,a=t.dragStartTime;Sr({state:e,scrollWindow:r,scrollDroppable:o,dragStartTime:a,shouldUseTimeDampening:n})};return{start:function(e){tn(),i&&xe(!1);var t=Date.now(),n=!1,r=function(){n=!0};Sr({state:e,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:r,scrollDroppable:r}),i={dragStartTime:t,shouldUseTimeDampening:n},nn(),n&&a(e)},stop:function(){i&&(r.cancel(),o.cancel(),i=null)},scroll:a}}({scrollWindow:n,scrollDroppable:t}),i=Cr({move:r,scrollWindow:n,scrollDroppable:t});return{scroll:function(e){"DRAGGING"===e.phase&&("FLUID"!==e.movementMode?e.scrollJumpRequest&&i(e):o.scroll(e))},start:o.start,stop:o.stop}},Or="data-rbd",Tr=function(){var e=Or+"-drag-handle";return{base:e,draggableId:e+"-draggable-id",contextId:e+"-context-id"}}(),Nr=function(){var e=Or+"-draggable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),Ir=function(){var e=Or+"-droppable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),Pr={contextId:Or+"-scroll-container-context-id"},Rr=function(e,t){return e.map((function(e){var n=e.styles[t];return n?e.selector+" { "+n+" }":""})).join(" ")},Dr=function(e){var t,n=(t=e,function(e){return"["+e+'="'+t+'"]'}),r=function(){var e="\n cursor: -webkit-grab;\n cursor: grab;\n ";return{selector:n(Tr.contextId),styles:{always:"\n -webkit-touch-callout: none;\n -webkit-tap-highlight-color: rgba(0,0,0,0);\n touch-action: manipulation;\n ",resting:e,dragging:"pointer-events: none;",dropAnimating:e}}}(),o=[function(){var e="\n transition: "+In.outOfTheWay+";\n ";return{selector:n(Nr.contextId),styles:{dragging:e,dropAnimating:e,userCancel:e}}}(),r,{selector:n(Ir.contextId),styles:{always:"overflow-anchor: none;"}},{selector:"body",styles:{dragging:"\n cursor: grabbing;\n cursor: -webkit-grabbing;\n user-select: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n overflow-anchor: none;\n "}}];return{always:Rr(o,"always"),resting:Rr(o,"resting"),dragging:Rr(o,"dragging"),dropAnimating:Rr(o,"dropAnimating"),userCancel:Rr(o,"userCancel")}},Ar="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement?r.useLayoutEffect:r.useEffect,jr=function(){var e=document.querySelector("head");return e||xe(!1),e},Mr=function(e){var t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.type="text/css",t};var Lr=function(e){return e&&e.ownerDocument?e.ownerDocument.defaultView:window};function zr(e){return e instanceof Lr(e).HTMLElement}function Fr(e,t){var n="["+Tr.contextId+'="'+e+'"]',r=We(document.querySelectorAll(n));if(!r.length)return null;var o=Ve(r,(function(e){return e.getAttribute(Tr.draggableId)===t}));return o&&zr(o)?o:null}function Br(){var e={draggables:{},droppables:{}},t=[];function n(e){t.length&&t.forEach((function(t){return t(e)}))}function r(t){return e.draggables[t]||null}function o(t){return e.droppables[t]||null}return{draggable:{register:function(t){e.draggables[t.descriptor.id]=t,n({type:"ADDITION",value:t})},update:function(t,n){var r=e.draggables[n.descriptor.id];r&&r.uniqueId===t.uniqueId&&(delete e.draggables[n.descriptor.id],e.draggables[t.descriptor.id]=t)},unregister:function(t){var o=t.descriptor.id,i=r(o);i&&t.uniqueId===i.uniqueId&&(delete e.draggables[o],n({type:"REMOVAL",value:t}))},getById:function(e){var t=r(e);return t||xe(!1),t},findById:r,exists:function(e){return Boolean(r(e))},getAllByType:function(t){return Ze(e.draggables).filter((function(e){return e.descriptor.type===t}))}},droppable:{register:function(t){e.droppables[t.descriptor.id]=t},unregister:function(t){var n=o(t.descriptor.id);n&&t.uniqueId===n.uniqueId&&delete e.droppables[t.descriptor.id]},getById:function(e){var t=o(e);return t||xe(!1),t},findById:o,exists:function(e){return Boolean(o(e))},getAllByType:function(t){return Ze(e.droppables).filter((function(e){return e.descriptor.type===t}))}},subscribe:function(e){return t.push(e),function(){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}},clean:function(){e.draggables={},e.droppables={},t.length=0}}}var Ur=r.createContext(null),qr=function(){var e=document.body;return e||xe(!1),e},$r={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},Zr=function(e){return"rbd-announcement-"+e};var Hr=0,Vr={separator:"::"};function Wr(e,t){return void 0===t&&(t=Vr),Y((function(){return""+e+t.separator+Hr++}),[t.separator,e])}var Gr=r.createContext(null);function Yr(e){0}function Kr(e,t){Yr()}function Qr(e){var t=(0,r.useRef)(e);return(0,r.useEffect)((function(){t.current=e})),t}var Jr,Xr=27,eo=32,to=37,no=38,ro=39,oo=40,io=((Jr={})[13]=!0,Jr[9]=!0,Jr),ao=function(e){io[e.keyCode]&&e.preventDefault()},so=function(){var e="visibilitychange";return"undefined"===typeof document?e:Ve([e,"ms"+e,"webkit"+e,"moz"+e,"o"+e],(function(e){return"on"+e in document}))||e}(),lo=0,co=5;var uo,fo={type:"IDLE"};function po(e){var t=e.cancel,n=e.completed,r=e.getPhase,o=e.setPhase;return[{eventName:"mousemove",fn:function(e){var t=e.button,n=e.clientX,i=e.clientY;if(t===lo){var a={x:n,y:i},s=r();if("DRAGGING"===s.type)return e.preventDefault(),void s.actions.move(a);"PENDING"!==s.type&&xe(!1);var l=s.point;if(c=l,u=a,Math.abs(u.x-c.x)>=co||Math.abs(u.y-c.y)>=co){var c,u;e.preventDefault();var d=s.actions.fluidLift(a);o({type:"DRAGGING",actions:d})}}}},{eventName:"mouseup",fn:function(e){var o=r();"DRAGGING"===o.type?(e.preventDefault(),o.actions.drop({shouldBlockNextClick:!0}),n()):t()}},{eventName:"mousedown",fn:function(e){"DRAGGING"===r().type&&e.preventDefault(),t()}},{eventName:"keydown",fn:function(e){if("PENDING"!==r().type)return e.keyCode===Xr?(e.preventDefault(),void t()):void ao(e);t()}},{eventName:"resize",fn:t},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){"PENDING"===r().type&&t()}},{eventName:"webkitmouseforcedown",fn:function(e){var n=r();"IDLE"===n.type&&xe(!1),n.actions.shouldRespectForcePress()?t():e.preventDefault()}},{eventName:so,fn:t}]}function ho(){}var mo=((uo={})[34]=!0,uo[33]=!0,uo[36]=!0,uo[35]=!0,uo);function go(e,t){function n(){t(),e.cancel()}return[{eventName:"keydown",fn:function(r){return r.keyCode===Xr?(r.preventDefault(),void n()):r.keyCode===eo?(r.preventDefault(),t(),void e.drop()):r.keyCode===oo?(r.preventDefault(),void e.moveDown()):r.keyCode===no?(r.preventDefault(),void e.moveUp()):r.keyCode===ro?(r.preventDefault(),void e.moveRight()):r.keyCode===to?(r.preventDefault(),void e.moveLeft()):void(mo[r.keyCode]?r.preventDefault():ao(r))}},{eventName:"mousedown",fn:n},{eventName:"mouseup",fn:n},{eventName:"click",fn:n},{eventName:"touchstart",fn:n},{eventName:"resize",fn:n},{eventName:"wheel",fn:n,options:{passive:!0}},{eventName:so,fn:n}]}var vo={type:"IDLE"},yo=120,bo=.15;var wo={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function Eo(e,t){if(null==t)return!1;if(Boolean(wo[t.tagName.toLowerCase()]))return!0;var n=t.getAttribute("contenteditable");return"true"===n||""===n||t!==e&&Eo(e,t.parentElement)}function _o(e,t){var n=t.target;return!!zr(n)&&Eo(e,n)}var xo=function(e){return J(e.getBoundingClientRect()).center};var So=function(){var e="matches";return"undefined"===typeof document?e:Ve([e,"msMatchesSelector","webkitMatchesSelector"],(function(e){return e in Element.prototype}))||e}();function Co(e,t){return null==e?null:e[So](t)?e:Co(e.parentElement,t)}function ko(e,t){return e.closest?e.closest(t):Co(e,t)}function Oo(e,t){var n,r=t.target;if(!((n=r)instanceof Lr(n).Element))return null;var o=function(e){return"["+Tr.contextId+'="'+e+'"]'}(e),i=ko(r,o);return i&&zr(i)?i:null}function To(e){e.preventDefault()}function No(e){var t=e.expected,n=e.phase,r=e.isLockActive;e.shouldWarn;return!!r()&&t===n}function Io(e){var t=e.lockAPI,n=e.store,r=e.registry,o=e.draggableId;if(t.isClaimed())return!1;var i=r.draggable.findById(o);return!!i&&(!!i.options.isEnabled&&!!rr(n.getState(),o))}function Po(e){var t=e.lockAPI,n=e.contextId,r=e.store,o=e.registry,a=e.draggableId,s=e.forceSensorStop,l=e.sourceEvent;if(!Io({lockAPI:t,store:r,registry:o,draggableId:a}))return null;var c=o.draggable.getById(a),u=function(e,t){var n="["+Nr.contextId+'="'+e+'"]',r=Ve(We(document.querySelectorAll(n)),(function(e){return e.getAttribute(Nr.id)===t}));return r&&zr(r)?r:null}(n,c.descriptor.id);if(!u)return null;if(l&&!c.options.canDragInteractiveElements&&_o(u,l))return null;var d=t.claim(s||ye),f="PRE_DRAG";function p(){return c.options.shouldRespectForcePress}function h(){return t.isActive(d)}var m=function(e,t){No({expected:e,phase:f,isLockActive:h,shouldWarn:!0})&&r.dispatch(t())}.bind(null,"DRAGGING");function g(e){function n(){t.release(),f="COMPLETED"}function o(t,o){if(void 0===o&&(o={shouldBlockNextClick:!1}),e.cleanup(),o.shouldBlockNextClick){var i=be(window,[{eventName:"click",fn:To,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(i)}n(),r.dispatch(xn({reason:t}))}return"PRE_DRAG"!==f&&(n(),"PRE_DRAG"!==f&&xe(!1)),r.dispatch(un(e.liftActionArgs)),f="DRAGGING",(0,i.Z)({isActive:function(){return No({expected:"DRAGGING",phase:f,isLockActive:h,shouldWarn:!1})},shouldRespectForcePress:p,drop:function(e){return o("DROP",e)},cancel:function(e){return o("CANCEL",e)}},e.actions)}return{isActive:function(){return No({expected:"PRE_DRAG",phase:f,isLockActive:h,shouldWarn:!1})},shouldRespectForcePress:p,fluidLift:function(e){var t=ce((function(e){m((function(){return gn({client:e})}))})),n=g({liftActionArgs:{id:a,clientSelection:e,movementMode:"FLUID"},cleanup:function(){return t.cancel()},actions:{move:t}});return(0,i.Z)({},n,{move:t})},snapLift:function(){var e={moveUp:function(){return m(vn)},moveRight:function(){return m(bn)},moveDown:function(){return m(yn)},moveLeft:function(){return m(wn)}};return g({liftActionArgs:{id:a,clientSelection:xo(u),movementMode:"SNAP"},cleanup:ye,actions:e})},abort:function(){No({expected:"PRE_DRAG",phase:f,isLockActive:h,shouldWarn:!0})&&t.release()}}}var Ro=[function(e){var t=(0,r.useRef)(fo),n=(0,r.useRef)(ye),o=Y((function(){return{eventName:"mousedown",fn:function(t){if(!t.defaultPrevented&&t.button===lo&&!(t.ctrlKey||t.metaKey||t.shiftKey||t.altKey)){var r=e.findClosestDraggableId(t);if(r){var o=e.tryGetLock(r,s,{sourceEvent:t});if(o){t.preventDefault();var i={x:t.clientX,y:t.clientY};n.current(),u(o,i)}}}}}}),[e]),i=Y((function(){return{eventName:"webkitmouseforcewillbegin",fn:function(t){if(!t.defaultPrevented){var n=e.findClosestDraggableId(t);if(n){var r=e.findOptionsForDraggable(n);r&&(r.shouldRespectForcePress||e.canGetLock(n)&&t.preventDefault())}}}}}),[e]),a=K((function(){n.current=be(window,[i,o],{passive:!1,capture:!0})}),[i,o]),s=K((function(){"IDLE"!==t.current.type&&(t.current=fo,n.current(),a())}),[a]),l=K((function(){var e=t.current;s(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()}),[s]),c=K((function(){var e=po({cancel:l,completed:s,getPhase:function(){return t.current},setPhase:function(e){t.current=e}});n.current=be(window,e,{capture:!0,passive:!1})}),[l,s]),u=K((function(e,n){"IDLE"!==t.current.type&&xe(!1),t.current={type:"PENDING",point:n,actions:e},c()}),[c]);Ar((function(){return a(),function(){n.current()}}),[a])},function(e){var t=(0,r.useRef)(ho),n=Y((function(){return{eventName:"keydown",fn:function(n){if(!n.defaultPrevented&&n.keyCode===eo){var r=e.findClosestDraggableId(n);if(r){var i=e.tryGetLock(r,l,{sourceEvent:n});if(i){n.preventDefault();var a=!0,s=i.snapLift();t.current(),t.current=be(window,go(s,l),{capture:!0,passive:!1})}}}function l(){a||xe(!1),a=!1,t.current(),o()}}}}),[e]),o=K((function(){t.current=be(window,[n],{passive:!1,capture:!0})}),[n]);Ar((function(){return o(),function(){t.current()}}),[o])},function(e){var t=(0,r.useRef)(vo),n=(0,r.useRef)(ye),o=K((function(){return t.current}),[]),i=K((function(e){t.current=e}),[]),a=Y((function(){return{eventName:"touchstart",fn:function(t){if(!t.defaultPrevented){var r=e.findClosestDraggableId(t);if(r){var o=e.tryGetLock(r,l,{sourceEvent:t});if(o){var i=t.touches[0],a={x:i.clientX,y:i.clientY};n.current(),f(o,a)}}}}}}),[e]),s=K((function(){n.current=be(window,[a],{capture:!0,passive:!1})}),[a]),l=K((function(){var e=t.current;"IDLE"!==e.type&&("PENDING"===e.type&&clearTimeout(e.longPressTimerId),i(vo),n.current(),s())}),[s,i]),c=K((function(){var e=t.current;l(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()}),[l]),u=K((function(){var e={capture:!0,passive:!1},t={cancel:c,completed:l,getPhase:o},r=be(window,function(e){var t=e.cancel,n=e.completed,r=e.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(e){var n=r();if("DRAGGING"===n.type){n.hasMoved=!0;var o=e.touches[0],i={x:o.clientX,y:o.clientY};e.preventDefault(),n.actions.move(i)}else t()}},{eventName:"touchend",fn:function(e){var o=r();"DRAGGING"===o.type?(e.preventDefault(),o.actions.drop({shouldBlockNextClick:!0}),n()):t()}},{eventName:"touchcancel",fn:function(e){"DRAGGING"===r().type?(e.preventDefault(),t()):t()}},{eventName:"touchforcechange",fn:function(e){var n=r();"IDLE"===n.type&&xe(!1);var o=e.touches[0];if(o&&o.force>=bo){var i=n.actions.shouldRespectForcePress();if("PENDING"!==n.type)return i?n.hasMoved?void e.preventDefault():void t():void e.preventDefault();i&&t()}}},{eventName:so,fn:t}]}(t),e),i=be(window,function(e){var t=e.cancel,n=e.getPhase;return[{eventName:"orientationchange",fn:t},{eventName:"resize",fn:t},{eventName:"contextmenu",fn:function(e){e.preventDefault()}},{eventName:"keydown",fn:function(e){"DRAGGING"===n().type?(e.keyCode===Xr&&e.preventDefault(),t()):t()}},{eventName:so,fn:t}]}(t),e);n.current=function(){r(),i()}}),[c,o,l]),d=K((function(){var e=o();"PENDING"!==e.type&&xe(!1);var t=e.actions.fluidLift(e.point);i({type:"DRAGGING",actions:t,hasMoved:!1})}),[o,i]),f=K((function(e,t){"IDLE"!==o().type&&xe(!1);var n=setTimeout(d,yo);i({type:"PENDING",point:t,actions:e,longPressTimerId:n}),u()}),[u,o,i,d]);Ar((function(){return s(),function(){n.current();var e=o();"PENDING"===e.type&&(clearTimeout(e.longPressTimerId),i(vo))}}),[o,s,i]),Ar((function(){return be(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}])}),[])}];function Do(e){var t=e.contextId,n=e.store,o=e.registry,i=e.customSensors,a=e.enableDefaultSensors,s=[].concat(a?Ro:[],i||[]),l=(0,r.useState)((function(){return function(){var e=null;function t(){e||xe(!1),e=null}return{isClaimed:function(){return Boolean(e)},isActive:function(t){return t===e},claim:function(t){e&&xe(!1);var n={abandon:t};return e=n,n},release:t,tryAbandon:function(){e&&(e.abandon(),t())}}}()}))[0],c=K((function(e,t){e.isDragging&&!t.isDragging&&l.tryAbandon()}),[l]);Ar((function(){var e=n.getState();return n.subscribe((function(){var t=n.getState();c(e,t),e=t}))}),[l,n,c]),Ar((function(){return l.tryAbandon}),[l.tryAbandon]);var u=K((function(e){return Io({lockAPI:l,registry:o,store:n,draggableId:e})}),[l,o,n]),d=K((function(e,r,i){return Po({lockAPI:l,registry:o,contextId:t,store:n,draggableId:e,forceSensorStop:r,sourceEvent:i&&i.sourceEvent?i.sourceEvent:null})}),[t,l,o,n]),f=K((function(e){return function(e,t){var n=Oo(e,t);return n?n.getAttribute(Tr.draggableId):null}(t,e)}),[t]),p=K((function(e){var t=o.draggable.findById(e);return t?t.options:null}),[o.draggable]),h=K((function(){l.isClaimed()&&(l.tryAbandon(),"IDLE"!==n.getState().phase&&n.dispatch(En()))}),[l,n]),m=K(l.isClaimed,[l]),g=Y((function(){return{canGetLock:u,tryGetLock:d,findClosestDraggableId:f,findOptionsForDraggable:p,tryReleaseLock:h,isLockClaimed:m}}),[u,d,f,p,h,m]);Yr();for(var v=0;v<s.length;v++)s[v](g)}var Ao=function(e){return{onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragEnd:e.onDragEnd,onDragUpdate:e.onDragUpdate}};function jo(e){return e.current||xe(!1),e.current}function Mo(e){var t=e.contextId,n=e.setCallbacks,o=e.sensors,s=e.nonce,l=e.dragHandleUsageInstructions,c=(0,r.useRef)(null);Kr();var u=Qr(e),d=K((function(){return Ao(u.current)}),[u]),f=function(e){var t=Y((function(){return Zr(e)}),[e]),n=(0,r.useRef)(null);return(0,r.useEffect)((function(){var e=document.createElement("div");return n.current=e,e.id=t,e.setAttribute("aria-live","assertive"),e.setAttribute("aria-atomic","true"),(0,i.Z)(e.style,$r),qr().appendChild(e),function(){setTimeout((function(){var t=qr();t.contains(e)&&t.removeChild(e),e===n.current&&(n.current=null)}))}}),[t]),K((function(e){var t=n.current;t&&(t.textContent=e)}),[])}(t),h=function(e){var t=e.contextId,n=e.text,o=Wr("hidden-text",{separator:"-"}),i=Y((function(){return"rbd-hidden-text-"+(e={contextId:t,uniqueId:o}).contextId+"-"+e.uniqueId;var e}),[o,t]);return(0,r.useEffect)((function(){var e=document.createElement("div");return e.id=i,e.textContent=n,e.style.display="none",qr().appendChild(e),function(){var t=qr();t.contains(e)&&t.removeChild(e)}}),[i,n]),i}({contextId:t,text:l}),m=function(e,t){var n=Y((function(){return Dr(e)}),[e]),o=(0,r.useRef)(null),i=(0,r.useRef)(null),a=K((0,le.Z)((function(e){var t=i.current;t||xe(!1),t.textContent=e})),[]),s=K((function(e){var t=o.current;t||xe(!1),t.textContent=e}),[]);Ar((function(){(o.current||i.current)&&xe(!1);var r=Mr(t),l=Mr(t);return o.current=r,i.current=l,r.setAttribute(Or+"-always",e),l.setAttribute(Or+"-dynamic",e),jr().appendChild(r),jr().appendChild(l),s(n.always),a(n.resting),function(){var e=function(e){var t=e.current;t||xe(!1),jr().removeChild(t),e.current=null};e(o),e(i)}}),[t,s,a,n.always,n.resting,e]);var l=K((function(){return a(n.dragging)}),[a,n.dragging]),c=K((function(e){a("DROP"!==e?n.userCancel:n.dropAnimating)}),[a,n.dropAnimating,n.userCancel]),u=K((function(){i.current&&a(n.resting)}),[a,n.resting]);return Y((function(){return{dragging:l,dropping:c,resting:u}}),[l,c,u])}(t,s),g=K((function(e){jo(c).dispatch(e)}),[]),v=Y((function(){return(0,a.DE)({publishWhileDragging:dn,updateDroppableScroll:pn,updateDroppableIsEnabled:hn,updateDroppableIsCombineEnabled:mn,collectionStarting:fn},g)}),[g]),y=function(){var e=Y(Br,[]);return(0,r.useEffect)((function(){return function(){requestAnimationFrame(e.clean)}}),[e]),e}(),b=Y((function(){return nr(y,v)}),[y,v]),w=Y((function(){return kr((0,i.Z)({scrollWindow:or,scrollDroppable:b.scrollDroppable},(0,a.DE)({move:gn},g)))}),[b.scrollDroppable,g]),E=function(e){var t=(0,r.useRef)({}),n=(0,r.useRef)(null),o=(0,r.useRef)(null),i=(0,r.useRef)(!1),a=K((function(e,n){var r={id:e,focus:n};return t.current[e]=r,function(){var n=t.current;n[e]!==r&&delete n[e]}}),[]),s=K((function(t){var n=Fr(e,t);n&&n!==document.activeElement&&n.focus()}),[e]),l=K((function(e,t){n.current===e&&(n.current=t)}),[]),c=K((function(){o.current||i.current&&(o.current=requestAnimationFrame((function(){o.current=null;var e=n.current;e&&s(e)})))}),[s]),u=K((function(e){n.current=null;var t=document.activeElement;t&&t.getAttribute(Tr.draggableId)===e&&(n.current=e)}),[]);return Ar((function(){return i.current=!0,function(){i.current=!1;var e=o.current;e&&cancelAnimationFrame(e)}}),[]),Y((function(){return{register:a,tryRecordFocus:u,tryRestoreFocusRecorded:c,tryShiftRecord:l}}),[a,u,c,l])}(t),_=Y((function(){return Yn({announce:f,autoScroller:w,dimensionMarshal:b,focusMarshal:E,getResponders:d,styleMarshal:m})}),[f,w,b,E,d,m]);c.current=_;var x=K((function(){var e=jo(c);"IDLE"!==e.getState().phase&&e.dispatch(En())}),[]),S=K((function(){var e=jo(c).getState();return e.isDragging||"DROP_ANIMATING"===e.phase}),[]);n(Y((function(){return{isDragging:S,tryAbort:x}}),[S,x]));var C=K((function(e){return rr(jo(c).getState(),e)}),[]),k=K((function(){return qt(jo(c).getState())}),[]),O=Y((function(){return{marshal:b,focus:E,contextId:t,canLift:C,isMovementAllowed:k,dragHandleUsageInstructionsId:h,registry:y}}),[t,b,h,E,C,k,y]);return Do({contextId:t,store:_,registry:y,customSensors:o,enableDefaultSensors:!1!==e.enableDefaultSensors}),(0,r.useEffect)((function(){return x}),[x]),r.createElement(Gr.Provider,{value:O},r.createElement(p,{context:Ur,store:_},e.children))}var Lo=0;function zo(e){var t=Y((function(){return""+Lo++}),[]),n=e.dragHandleUsageInstructions||Ne.dragHandleUsageInstructions;return r.createElement(Se,null,(function(o){return r.createElement(Mo,{nonce:e.nonce,contextId:t,setCallbacks:o,dragHandleUsageInstructions:n,enableDefaultSensors:e.enableDefaultSensors,sensors:e.sensors,onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragUpdate:e.onDragUpdate,onDragEnd:e.onDragEnd},e.children)}))}var Fo=function(e){return function(t){return e===t}},Bo=Fo("scroll"),Uo=Fo("auto"),qo=(Fo("visible"),function(e,t){return t(e.overflowX)||t(e.overflowY)}),$o=function(e){var t=window.getComputedStyle(e),n={overflowX:t.overflowX,overflowY:t.overflowY};return qo(n,Bo)||qo(n,Uo)},Zo=function e(t){return null==t||t===document.body||t===document.documentElement?null:$o(t)?t:e(t.parentElement)},Ho=function(e){return{x:e.scrollLeft,y:e.scrollTop}},Vo=function e(t){return!!t&&("fixed"===window.getComputedStyle(t).position||e(t.parentElement))},Wo=function(e){return{closestScrollable:Zo(e),isFixedOnPage:Vo(e)}},Go=function(e){var t=e.ref,n=e.descriptor,r=e.env,o=e.windowScroll,i=e.direction,a=e.isDropDisabled,s=e.isCombineEnabled,l=e.shouldClipSubject,c=r.closestScrollable,u=function(e,t){var n=se(e);if(!t)return n;if(e!==t)return n;var r=n.paddingBox.top-t.scrollTop,o=n.paddingBox.left-t.scrollLeft,i=r+t.scrollHeight,a=o+t.scrollWidth,s=X({top:r,right:a,bottom:i,left:o},n.border);return ne({borderBox:s,margin:n.margin,border:n.border,padding:n.padding})}(t,c),d=ie(u,o),f=function(){if(!c)return null;var e=se(c),t={scrollHeight:c.scrollHeight,scrollWidth:c.scrollWidth};return{client:e,page:ie(e,o),scroll:Ho(c),scrollSize:t,shouldClipSubject:l}}(),p=function(e){var t=e.descriptor,n=e.isEnabled,r=e.isCombineEnabled,o=e.isFixedOnPage,i=e.direction,a=e.client,s=e.page,l=e.closest,c=function(){if(!l)return null;var e=l.scrollSize,t=l.client,n=Qn({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,height:t.paddingBox.height,width:t.paddingBox.width});return{pageMarginBox:l.page.marginBox,frameClient:t,scrollSize:e,shouldClipSubject:l.shouldClipSubject,scroll:{initial:l.scroll,current:l.scroll,max:n,diff:{value:Ie,displacement:Ie}}}}(),u="vertical"===i?ct:ut;return{descriptor:t,isCombineEnabled:r,isFixedOnPage:o,axis:u,isEnabled:n,client:a,page:s,frame:c,subject:qe({page:s,withPlaceholder:null,axis:u,frame:c})}}({descriptor:n,isEnabled:!a,isCombineEnabled:s,isFixedOnPage:r.isFixedOnPage,direction:i,client:u,page:d,closest:f});return p},Yo={passive:!1},Ko={passive:!0},Qo=function(e){return e.shouldPublishImmediately?Yo:Ko};function Jo(e){var t=(0,r.useContext)(e);return t||xe(!1),t}var Xo=function(e){return e&&e.env.closestScrollable||null};function ei(){}var ti={width:0,height:0,margin:{top:0,right:0,bottom:0,left:0}},ni=function(e){var t=e.isAnimatingOpenOnMount,n=e.placeholder,r=e.animate,o=function(e){var t=e.isAnimatingOpenOnMount,n=e.placeholder,r=e.animate;return t||"close"===r?ti:{height:n.client.borderBox.height,width:n.client.borderBox.width,margin:n.client.margin}}({isAnimatingOpenOnMount:t,placeholder:n,animate:r});return{display:n.display,boxSizing:"border-box",width:o.width,height:o.height,marginTop:o.margin.top,marginRight:o.margin.right,marginBottom:o.margin.bottom,marginLeft:o.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:"none"!==r?In.placeholder:null}};var ri=r.memo((function(e){var t=(0,r.useRef)(null),n=K((function(){t.current&&(clearTimeout(t.current),t.current=null)}),[]),o=e.animate,i=e.onTransitionEnd,a=e.onClose,s=e.contextId,l=(0,r.useState)("open"===e.animate),c=l[0],u=l[1];(0,r.useEffect)((function(){return c?"open"!==o?(n(),u(!1),ei):t.current?ei:(t.current=setTimeout((function(){t.current=null,u(!1)})),n):ei}),[o,c,n]);var d=K((function(e){"height"===e.propertyName&&(i(),"close"===o&&a())}),[o,a,i]),f=ni({isAnimatingOpenOnMount:c,animate:e.animate,placeholder:e.placeholder});return r.createElement(e.placeholder.tagName,{style:f,"data-rbd-placeholder-context-id":s,onTransitionEnd:d,ref:e.innerRef})})),oi=r.createContext(null);var ii=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).state={isVisible:Boolean(t.props.on),data:t.props.on,animate:t.props.shouldAnimate&&t.props.on?"open":"none"},t.onClose=function(){"close"===t.state.animate&&t.setState({isVisible:!1})},t}return(0,o.Z)(t,e),t.getDerivedStateFromProps=function(e,t){return e.shouldAnimate?e.on?{isVisible:!0,data:e.on,animate:"open"}:t.isVisible?{isVisible:!0,data:t.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:Boolean(e.on),data:e.on,animate:"none"}},t.prototype.render=function(){if(!this.state.isVisible)return null;var e={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(e)},t}(r.PureComponent),ai={dragging:5e3,dropAnimating:4500},si=function(e,t){return t?In.drop(t.duration):e?In.snap:In.fluid},li=function(e,t){return e?t?kn.opacity.drop:kn.opacity.combining:null},ci=function(e){return null!=e.forceShouldAnimate?e.forceShouldAnimate:"SNAP"===e.mode};function ui(e){return"DRAGGING"===e.type?function(e){var t=e.dimension.client,n=e.offset,r=e.combineWith,o=e.dropping,i=Boolean(r),a=ci(e),s=Boolean(o),l=s?Rn.drop(n,i):Rn.moveTo(n);return{position:"fixed",top:t.marginBox.top,left:t.marginBox.left,boxSizing:"border-box",width:t.borderBox.width,height:t.borderBox.height,transition:si(a,o),transform:l,opacity:li(i,s),zIndex:s?ai.dropAnimating:ai.dragging,pointerEvents:"none"}}(e):(t=e,{transform:Rn.moveTo(t.offset),transition:t.shouldAnimateDisplacement?null:"none"});var t}function di(e){var t=Wr("draggable"),n=e.descriptor,o=e.registry,i=e.getDraggableRef,a=e.canDragInteractiveElements,s=e.shouldRespectForcePress,l=e.isEnabled,c=Y((function(){return{canDragInteractiveElements:a,shouldRespectForcePress:s,isEnabled:l}}),[a,l,s]),u=K((function(e){var t=i();return t||xe(!1),function(e,t,n){void 0===n&&(n=Ie);var r=window.getComputedStyle(t),o=t.getBoundingClientRect(),i=ae(o,r),a=ie(i,n);return{descriptor:e,placeholder:{client:i,tagName:t.tagName.toLowerCase(),display:r.display},displaceBy:{x:i.marginBox.width,y:i.marginBox.height},client:i,page:a}}(n,t,e)}),[n,i]),d=Y((function(){return{uniqueId:t,descriptor:n,options:c,getDimension:u}}),[n,u,c,t]),f=(0,r.useRef)(d),p=(0,r.useRef)(!0);Ar((function(){return o.draggable.register(f.current),function(){return o.draggable.unregister(f.current)}}),[o.draggable]),Ar((function(){if(p.current)p.current=!1;else{var e=f.current;f.current=d,o.draggable.update(d,e)}}),[d,o.draggable])}function fi(e,t,n){Kr()}function pi(e){e.preventDefault()}var hi=function(e,t){return e===t},mi=function(e){var t=e.combine,n=e.destination;return n?n.droppableId:t?t.droppableId:null},gi=function(e){return e.combine?e.combine.draggableId:null},vi=function(e){return e.at&&"COMBINE"===e.at.type?e.at.combine.draggableId:null};function yi(e){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:e,combineWith:null}}var bi={mapped:{type:"SECONDARY",offset:Ie,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:yi(null)}};var wi=H((function(){var e=function(){var e=(0,le.Z)((function(e,t){return{x:e,y:t}})),t=(0,le.Z)((function(e,t,n,r,o){return{isDragging:!0,isClone:t,isDropAnimating:Boolean(o),dropAnimation:o,mode:e,draggingOver:n,combineWith:r,combineTargetFor:null}})),n=(0,le.Z)((function(e,n,r,o,i,a,s){return{mapped:{type:"DRAGGING",dropping:null,draggingOver:i,combineWith:a,mode:n,offset:e,dimension:r,forceShouldAnimate:s,snapshot:t(n,o,i,a,null)}}}));return function(r,o){if(r.isDragging){if(r.critical.draggable.id!==o.draggableId)return null;var i=r.current.client.offset,a=r.dimensions.draggables[o.draggableId],s=Bt(r.impact),l=vi(r.impact),c=r.forceShouldAnimate;return n(e(i.x,i.y),r.movementMode,a,o.isClone,s,l,c)}if("DROP_ANIMATING"===r.phase){var u=r.completed;if(u.result.draggableId!==o.draggableId)return null;var d=o.isClone,f=r.dimensions.draggables[o.draggableId],p=u.result,h=p.mode,m=mi(p),g=gi(p),v={duration:r.dropDuration,curve:Cn.drop,moveTo:r.newHomeClientOffset,opacity:g?kn.opacity.drop:null,scale:g?kn.scale.drop:null};return{mapped:{type:"DRAGGING",offset:r.newHomeClientOffset,dimension:f,dropping:v,draggingOver:m,combineWith:g,mode:h,forceShouldAnimate:null,snapshot:t(h,d,m,g,v)}}}return null}}(),t=function(){var e=(0,le.Z)((function(e,t){return{x:e,y:t}})),t=(0,le.Z)(yi),n=(0,le.Z)((function(e,n,r){return void 0===n&&(n=null),{mapped:{type:"SECONDARY",offset:e,combineTargetFor:n,shouldAnimateDisplacement:r,snapshot:t(n)}}})),r=function(e){return e?n(Ie,e,!0):null},o=function(t,o,i,a){var s=i.displaced.visible[t],l=Boolean(a.inVirtualList&&a.effected[t]),c=et(i),u=c&&c.draggableId===t?o:null;if(!s){if(!l)return r(u);if(i.displaced.invisible[t])return null;var d=Ae(a.displacedBy.point),f=e(d.x,d.y);return n(f,u,!0)}if(l)return r(u);var p=i.displacedBy.point,h=e(p.x,p.y);return n(h,u,s.shouldAnimate)};return function(e,t){if(e.isDragging)return e.critical.draggable.id===t.draggableId?null:o(t.draggableId,e.critical.draggable.id,e.impact,e.afterCritical);if("DROP_ANIMATING"===e.phase){var n=e.completed;return n.result.draggableId===t.draggableId?null:o(t.draggableId,n.result.draggableId,n.impact,n.afterCritical)}return null}}();return function(n,r){return e(n,r)||t(n,r)||bi}}),{dropAnimationFinished:Sn},null,{context:Ur,pure:!0,areStatePropsEqual:hi})((function(e){var t=(0,r.useRef)(null),n=K((function(e){t.current=e}),[]),o=K((function(){return t.current}),[]),i=Jo(Gr),a=i.contextId,s=i.dragHandleUsageInstructionsId,l=i.registry,c=Jo(oi),u=c.type,d=c.droppableId,f=Y((function(){return{id:e.draggableId,index:e.index,type:u,droppableId:d}}),[e.draggableId,e.index,u,d]),p=e.children,h=e.draggableId,m=e.isEnabled,g=e.shouldRespectForcePress,v=e.canDragInteractiveElements,y=e.isClone,b=e.mapped,w=e.dropAnimationFinished;fi(),Yr(),y||di(Y((function(){return{descriptor:f,registry:l,getDraggableRef:o,canDragInteractiveElements:v,shouldRespectForcePress:g,isEnabled:m}}),[f,l,o,v,g,m]));var E=Y((function(){return m?{tabIndex:0,role:"button","aria-describedby":s,"data-rbd-drag-handle-draggable-id":h,"data-rbd-drag-handle-context-id":a,draggable:!1,onDragStart:pi}:null}),[a,s,h,m]),_=K((function(e){"DRAGGING"===b.type&&b.dropping&&"transform"===e.propertyName&&w()}),[w,b]),x=Y((function(){var e=ui(b),t="DRAGGING"===b.type&&b.dropping?_:null;return{innerRef:n,draggableProps:{"data-rbd-draggable-context-id":a,"data-rbd-draggable-id":h,style:e,onTransitionEnd:t},dragHandleProps:E}}),[a,E,h,b,_,n]),S=Y((function(){return{draggableId:f.id,type:f.type,source:{index:f.index,droppableId:f.droppableId}}}),[f.droppableId,f.id,f.index,f.type]);return p(x,b.snapshot,S)}));function Ei(e){return Jo(oi).isUsingCloneFor!==e.draggableId||e.isClone?r.createElement(wi,e):null}function _i(e){var t="boolean"!==typeof e.isDragDisabled||!e.isDragDisabled,n=Boolean(e.disableInteractiveElementBlocking),o=Boolean(e.shouldRespectForcePress);return r.createElement(Ei,(0,i.Z)({},e,{isClone:!1,isEnabled:t,canDragInteractiveElements:n,shouldRespectForcePress:o}))}var xi=function(e,t){return e===t.droppable.type},Si=function(e,t){return t.draggables[e.draggable.id]};var Ci={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:function(){return document.body||xe(!1),document.body}},ki=H((function(){var e={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},t=(0,i.Z)({},e,{shouldAnimatePlaceholder:!1}),n=(0,le.Z)((function(e){return{draggableId:e.id,type:e.type,source:{index:e.index,droppableId:e.droppableId}}})),r=(0,le.Z)((function(r,o,i,a,s,l){var c=s.descriptor.id;if(s.descriptor.droppableId===r){var u=l?{render:l,dragging:n(s.descriptor)}:null,d={isDraggingOver:i,draggingOverWith:i?c:null,draggingFromThisWith:c,isUsingPlaceholder:!0};return{placeholder:s.placeholder,shouldAnimatePlaceholder:!1,snapshot:d,useClone:u}}if(!o)return t;if(!a)return e;var f={isDraggingOver:i,draggingOverWith:c,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:s.placeholder,shouldAnimatePlaceholder:!0,snapshot:f,useClone:null}}));return function(n,o){var i=o.droppableId,a=o.type,s=!o.isDropDisabled,l=o.renderClone;if(n.isDragging){var c=n.critical;if(!xi(a,c))return t;var u=Si(c,n.dimensions),d=Bt(n.impact)===i;return r(i,s,d,d,u,l)}if("DROP_ANIMATING"===n.phase){var f=n.completed;if(!xi(a,f.critical))return t;var p=Si(f.critical,n.dimensions);return r(i,s,mi(f.result)===i,Bt(f.impact)===i,p,l)}if("IDLE"===n.phase&&n.completed&&!n.shouldFlush){var h=n.completed;if(!xi(a,h.critical))return t;var m=Bt(h.impact)===i,g=Boolean(h.impact.at&&"COMBINE"===h.impact.at.type),v=h.critical.droppable.id===i;return m?g?e:t:v?e:t}return t}}),{updateViewportMaxScroll:function(e){return{type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:e}}},null,{context:Ur,pure:!0,areStatePropsEqual:hi})((function(e){var t=(0,r.useContext)(Gr);t||xe(!1);var n=t.contextId,o=t.isMovementAllowed,i=(0,r.useRef)(null),a=(0,r.useRef)(null),s=e.children,l=e.droppableId,c=e.type,u=e.mode,d=e.direction,f=e.ignoreContainerClipping,p=e.isDropDisabled,h=e.isCombineEnabled,m=e.snapshot,g=e.useClone,v=e.updateViewportMaxScroll,y=e.getContainerForClone,b=K((function(){return i.current}),[]),w=K((function(e){i.current=e}),[]),E=(K((function(){return a.current}),[]),K((function(e){a.current=e}),[]));Kr();var _=K((function(){o()&&v({maxScroll:Xn()})}),[o,v]);!function(e){var t=(0,r.useRef)(null),n=Jo(Gr),o=Wr("droppable"),i=n.registry,a=n.marshal,s=Qr(e),l=Y((function(){return{id:e.droppableId,type:e.type,mode:e.mode}}),[e.droppableId,e.mode,e.type]),c=(0,r.useRef)(l),u=Y((function(){return(0,le.Z)((function(e,n){t.current||xe(!1);var r={x:e,y:n};a.updateDroppableScroll(l.id,r)}))}),[l.id,a]),d=K((function(){var e=t.current;return e&&e.env.closestScrollable?Ho(e.env.closestScrollable):Ie}),[]),f=K((function(){var e=d();u(e.x,e.y)}),[d,u]),p=Y((function(){return ce(f)}),[f]),h=K((function(){var e=t.current,n=Xo(e);e&&n||xe(!1),e.scrollOptions.shouldPublishImmediately?f():p()}),[p,f]),m=K((function(e,r){t.current&&xe(!1);var o=s.current,i=o.getDroppableRef();i||xe(!1);var a=Wo(i),c={ref:i,descriptor:l,env:a,scrollOptions:r};t.current=c;var u=Go({ref:i,descriptor:l,env:a,windowScroll:e,direction:o.direction,isDropDisabled:o.isDropDisabled,isCombineEnabled:o.isCombineEnabled,shouldClipSubject:!o.ignoreContainerClipping}),d=a.closestScrollable;return d&&(d.setAttribute(Pr.contextId,n.contextId),d.addEventListener("scroll",h,Qo(c.scrollOptions))),u}),[n.contextId,l,h,s]),g=K((function(){var e=t.current,n=Xo(e);return e&&n||xe(!1),Ho(n)}),[]),v=K((function(){var e=t.current;e||xe(!1);var n=Xo(e);t.current=null,n&&(p.cancel(),n.removeAttribute(Pr.contextId),n.removeEventListener("scroll",h,Qo(e.scrollOptions)))}),[h,p]),y=K((function(e){var n=t.current;n||xe(!1);var r=Xo(n);r||xe(!1),r.scrollTop+=e.y,r.scrollLeft+=e.x}),[]),b=Y((function(){return{getDimensionAndWatchScroll:m,getScrollWhileDragging:g,dragStopped:v,scroll:y}}),[v,m,g,y]),w=Y((function(){return{uniqueId:o,descriptor:l,callbacks:b}}),[b,l,o]);Ar((function(){return c.current=w.descriptor,i.droppable.register(w),function(){t.current&&v(),i.droppable.unregister(w)}}),[b,l,v,w,a,i.droppable]),Ar((function(){t.current&&a.updateDroppableIsEnabled(c.current.id,!e.isDropDisabled)}),[e.isDropDisabled,a]),Ar((function(){t.current&&a.updateDroppableIsCombineEnabled(c.current.id,e.isCombineEnabled)}),[e.isCombineEnabled,a])}({droppableId:l,type:c,mode:u,direction:d,isDropDisabled:p,isCombineEnabled:h,ignoreContainerClipping:f,getDroppableRef:b});var x=r.createElement(ii,{on:e.placeholder,shouldAnimate:e.shouldAnimatePlaceholder},(function(e){var t=e.onClose,o=e.data,i=e.animate;return r.createElement(ri,{placeholder:o,onClose:t,innerRef:E,animate:i,contextId:n,onTransitionEnd:_})})),S=Y((function(){return{innerRef:w,placeholder:x,droppableProps:{"data-rbd-droppable-id":l,"data-rbd-droppable-context-id":n}}}),[n,l,x,w]),C=g?g.dragging.draggableId:null,k=Y((function(){return{droppableId:l,type:c,isUsingCloneFor:C}}),[l,C,c]);return r.createElement(oi.Provider,{value:k},s(S,m),function(){if(!g)return null;var e=g.dragging,t=g.render,n=r.createElement(Ei,{draggableId:e.draggableId,index:e.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},(function(n,r){return t(n,r,e)}));return W.createPortal(n,y())}())}));ki.defaultProps=Ci},63637:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.CopyToClipboard=void 0;var o=s(n(68963)),i=s(n(69886)),a=["text","onCopy","options","children"];function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){g(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function f(e,t){return f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},f(e,t)}function p(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=m(e);if(t){var i=m(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return function(e,t){if(t&&("object"===r(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return h(e)}(this,n)}}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var v=function(e){!function(e,t){if("function"!==typeof t&&null!==t)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&&f(e,t)}(l,e);var t,n,r,s=p(l);function l(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return g(h(e=s.call.apply(s,[this].concat(n))),"onClick",(function(t){var n=e.props,r=n.text,a=n.onCopy,s=n.children,l=n.options,c=o.default.Children.only(s),u=(0,i.default)(r,l);a&&a(r,u),c&&c.props&&"function"===typeof c.props.onClick&&c.props.onClick(t)})),e}return t=l,(n=[{key:"render",value:function(){var e=this.props,t=(e.text,e.onCopy,e.options,e.children),n=u(e,a),r=o.default.Children.only(t);return o.default.cloneElement(r,c(c({},n),{},{onClick:this.onClick}))}}])&&d(t.prototype,n),r&&d(t,r),Object.defineProperty(t,"prototype",{writable:!1}),l}(o.default.PureComponent);t.CopyToClipboard=v,g(v,"defaultProps",{onCopy:void 0,options:void 0})},15942:(e,t,n)=>{"use strict";var r=n(63637).CopyToClipboard;r.CopyToClipboard=r,e.exports=r},9314:(e,t,n)=>{"use strict";var r=n(68963),o=n(29558);function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=new Set,s={};function l(e,t){c(e,t),c(e+"Capture",t)}function c(e,t){for(s[e]=t,e=0;e<t.length;e++)a.add(t[e])}var u=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),d=Object.prototype.hasOwnProperty,f=/^[: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]*$/,p={},h={};function m(e,t,n,r,o,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var g={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){g[e]=new m(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];g[t]=new m(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){g[e]=new m(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){g[e]=new m(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){g[e]=new m(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){g[e]=new m(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){g[e]=new m(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){g[e]=new m(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){g[e]=new m(e,5,!1,e.toLowerCase(),null,!1,!1)}));var v=/[\-:]([a-z])/g;function y(e){return e[1].toUpperCase()}function b(e,t,n,r){var o=g.hasOwnProperty(t)?g[t]:null;(null!==o?0!==o.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null===t||"undefined"===typeof t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!d.call(h,e)||!d.call(p,e)&&(f.test(e)?h[e]=!0:(p[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"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(v,y);g[t]=new m(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(v,y);g[t]=new m(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(v,y);g[t]=new m(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!1,!1)})),g.xlinkHref=new m("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!0,!0)}));var w=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,E=Symbol.for("react.element"),_=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),k=Symbol.for("react.provider"),O=Symbol.for("react.context"),T=Symbol.for("react.forward_ref"),N=Symbol.for("react.suspense"),I=Symbol.for("react.suspense_list"),P=Symbol.for("react.memo"),R=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var D=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var A=Symbol.iterator;function j(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=A&&e[A]||e["@@iterator"])?e:null}var M,L=Object.assign;function z(e){if(void 0===M)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);M=t&&t[1]||""}return"\n"+M+e}var F=!1;function B(e,t){if(!e||F)return"";F=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&"string"===typeof c.stack){for(var o=c.stack.split("\n"),i=r.stack.split("\n"),a=o.length-1,s=i.length-1;1<=a&&0<=s&&o[a]!==i[s];)s--;for(;1<=a&&0<=s;a--,s--)if(o[a]!==i[s]){if(1!==a||1!==s)do{if(a--,0>--s||o[a]!==i[s]){var l="\n"+o[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=a&&0<=s);break}}}finally{F=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?z(e):""}function U(e){switch(e.tag){case 5:return z(e.type);case 16:return z("Lazy");case 13:return z("Suspense");case 19:return z("SuspenseList");case 0:case 2:case 15:return e=B(e.type,!1);case 11:return e=B(e.type.render,!1);case 1:return e=B(e.type,!0);default:return""}}function q(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case x:return"Fragment";case _:return"Portal";case C:return"Profiler";case S:return"StrictMode";case N:return"Suspense";case I:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case O:return(e.displayName||"Context")+".Consumer";case k:return(e._context.displayName||"Context")+".Provider";case T:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case P:return null!==(t=e.displayName||null)?t:q(e.type)||"Memo";case R:t=e._payload,e=e._init;try{return q(e(t))}catch(n){}}return null}function $(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=(e=t.render).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 q(t);case 8:return t===S?"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("function"===typeof t)return t.displayName||t.name||null;if("string"===typeof t)return t}return null}function Z(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function H(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function V(e){e._valueTracker||(e._valueTracker=function(e){var t=H(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function W(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=H(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function G(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Y(e,t){var n=t.checked;return L({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function K(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=Z(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Q(e,t){null!=(t=t.checked)&&b(e,"checked",t,!1)}function J(e,t){Q(e,t);var n=Z(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,Z(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function X(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&G(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Z(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(i(91));return L({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function oe(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(i(92));if(te(n)){if(1<n.length)throw Error(i(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:Z(n)}}function ie(e,t){var n=Z(t.value),r=Z(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ae(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function se(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function le(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?se(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ce,ue,de=(ue=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ce=ce||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ce.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ue(e,t)}))}:ue);function fe(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var pe={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},he=["Webkit","ms","Moz","O"];function me(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||pe.hasOwnProperty(e)&&pe[e]?(""+t).trim():t+"px"}function ge(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=me(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(pe).forEach((function(e){he.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),pe[t]=pe[e]}))}));var ve=L({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 ye(e,t){if(t){if(ve[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(i(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(i(60));if("object"!==typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(i(61))}if(null!=t.style&&"object"!==typeof t.style)throw Error(i(62))}}function be(e,t){if(-1===e.indexOf("-"))return"string"===typeof t.is;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 we=null;function Ee(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var _e=null,xe=null,Se=null;function Ce(e){if(e=wo(e)){if("function"!==typeof _e)throw Error(i(280));var t=e.stateNode;t&&(t=_o(t),_e(e.stateNode,e.type,t))}}function ke(e){xe?Se?Se.push(e):Se=[e]:xe=e}function Oe(){if(xe){var e=xe,t=Se;if(Se=xe=null,Ce(e),t)for(e=0;e<t.length;e++)Ce(t[e])}}function Te(e,t){return e(t)}function Ne(){}var Ie=!1;function Pe(e,t,n){if(Ie)return e(t,n);Ie=!0;try{return Te(e,t,n)}finally{Ie=!1,(null!==xe||null!==Se)&&(Ne(),Oe())}}function Re(e,t){var n=e.stateNode;if(null===n)return null;var r=_o(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!==typeof n)throw Error(i(231,t,typeof n));return n}var De=!1;if(u)try{var Ae={};Object.defineProperty(Ae,"passive",{get:function(){De=!0}}),window.addEventListener("test",Ae,Ae),window.removeEventListener("test",Ae,Ae)}catch(ue){De=!1}function je(e,t,n,r,o,i,a,s,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(u){this.onError(u)}}var Me=!1,Le=null,ze=!1,Fe=null,Be={onError:function(e){Me=!0,Le=e}};function Ue(e,t,n,r,o,i,a,s,l){Me=!1,Le=null,je.apply(Be,arguments)}function qe(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function $e(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function Ze(e){if(qe(e)!==e)throw Error(i(188))}function He(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=qe(e)))throw Error(i(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var a=o.alternate;if(null===a){if(null!==(r=o.return)){n=r;continue}break}if(o.child===a.child){for(a=o.child;a;){if(a===n)return Ze(o),e;if(a===r)return Ze(o),t;a=a.sibling}throw Error(i(188))}if(n.return!==r.return)n=o,r=a;else{for(var s=!1,l=o.child;l;){if(l===n){s=!0,n=o,r=a;break}if(l===r){s=!0,r=o,n=a;break}l=l.sibling}if(!s){for(l=a.child;l;){if(l===n){s=!0,n=a,r=o;break}if(l===r){s=!0,r=a,n=o;break}l=l.sibling}if(!s)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(3!==n.tag)throw Error(i(188));return n.stateNode.current===n?e:t}(e))?Ve(e):null}function Ve(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Ve(e);if(null!==t)return t;e=e.sibling}return null}var We=o.unstable_scheduleCallback,Ge=o.unstable_cancelCallback,Ye=o.unstable_shouldYield,Ke=o.unstable_requestPaint,Qe=o.unstable_now,Je=o.unstable_getCurrentPriorityLevel,Xe=o.unstable_ImmediatePriority,et=o.unstable_UserBlockingPriority,tt=o.unstable_NormalPriority,nt=o.unstable_LowPriority,rt=o.unstable_IdlePriority,ot=null,it=null;var at=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(st(e)/lt|0)|0},st=Math.log,lt=Math.LN2;var ct=64,ut=4194304;function dt(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 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ft(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=268435455&n;if(0!==a){var s=a&~o;0!==s?r=dt(s):0!==(i&=a)&&(r=dt(i))}else 0!==(a=n&~o)?r=dt(a):0!==i&&(r=dt(i));if(0===r)return 0;if(0!==t&&t!==r&&0===(t&o)&&((o=r&-r)>=(i=t&-t)||16===o&&0!==(4194240&i)))return t;if(0!==(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-at(t)),r|=e[n],t&=~o;return r}function pt(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 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 t+5e3;default:return-1}}function ht(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function mt(){var e=ct;return 0===(4194240&(ct<<=1))&&(ct=64),e}function gt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function vt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-at(t)]=n}function yt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-at(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var bt=0;function wt(e){return 1<(e&=-e)?4<e?0!==(268435455&e)?16:536870912:4:1}var Et,_t,xt,St,Ct,kt=!1,Ot=[],Tt=null,Nt=null,It=null,Pt=new Map,Rt=new Map,Dt=[],At="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function jt(e,t){switch(e){case"focusin":case"focusout":Tt=null;break;case"dragenter":case"dragleave":Nt=null;break;case"mouseover":case"mouseout":It=null;break;case"pointerover":case"pointerout":Pt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Rt.delete(t.pointerId)}}function Mt(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},null!==t&&(null!==(t=wo(t))&&_t(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function Lt(e){var t=bo(e.target);if(null!==t){var n=qe(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=$e(n)))return e.blockedOn=t,void Ct(e.priority,(function(){xt(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function zt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Yt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=wo(n))&&_t(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);we=r,n.target.dispatchEvent(r),we=null,t.shift()}return!0}function Ft(e,t,n){zt(e)&&n.delete(t)}function Bt(){kt=!1,null!==Tt&&zt(Tt)&&(Tt=null),null!==Nt&&zt(Nt)&&(Nt=null),null!==It&&zt(It)&&(It=null),Pt.forEach(Ft),Rt.forEach(Ft)}function Ut(e,t){e.blockedOn===t&&(e.blockedOn=null,kt||(kt=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,Bt)))}function qt(e){function t(t){return Ut(t,e)}if(0<Ot.length){Ut(Ot[0],e);for(var n=1;n<Ot.length;n++){var r=Ot[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Tt&&Ut(Tt,e),null!==Nt&&Ut(Nt,e),null!==It&&Ut(It,e),Pt.forEach(t),Rt.forEach(t),n=0;n<Dt.length;n++)(r=Dt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Dt.length&&null===(n=Dt[0]).blockedOn;)Lt(n),null===n.blockedOn&&Dt.shift()}var $t=w.ReactCurrentBatchConfig,Zt=!0;function Ht(e,t,n,r){var o=bt,i=$t.transition;$t.transition=null;try{bt=1,Wt(e,t,n,r)}finally{bt=o,$t.transition=i}}function Vt(e,t,n,r){var o=bt,i=$t.transition;$t.transition=null;try{bt=4,Wt(e,t,n,r)}finally{bt=o,$t.transition=i}}function Wt(e,t,n,r){if(Zt){var o=Yt(e,t,n,r);if(null===o)Zr(e,t,r,Gt,n),jt(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return Tt=Mt(Tt,e,t,n,r,o),!0;case"dragenter":return Nt=Mt(Nt,e,t,n,r,o),!0;case"mouseover":return It=Mt(It,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return Pt.set(i,Mt(Pt.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,Rt.set(i,Mt(Rt.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(jt(e,r),4&t&&-1<At.indexOf(e)){for(;null!==o;){var i=wo(o);if(null!==i&&Et(i),null===(i=Yt(e,t,n,r))&&Zr(e,t,r,Gt,n),i===o)break;o=i}null!==o&&r.stopPropagation()}else Zr(e,t,r,null,n)}}var Gt=null;function Yt(e,t,n,r){if(Gt=null,null!==(e=bo(e=Ee(r))))if(null===(t=qe(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=$e(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Gt=e,null}function Kt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Je()){case Xe:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Qt=null,Jt=null,Xt=null;function en(){if(Xt)return Xt;var e,t,n=Jt,r=n.length,o="value"in Qt?Qt.value:Qt.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return Xt=o.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function rn(){return!1}function on(e){function t(t,n,r,o,i){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(o):o[a]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return L(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var an,sn,ln,cn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},un=on(cn),dn=L({},cn,{view:0,detail:0}),fn=on(dn),pn=L({},dn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Cn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ln&&(ln&&"mousemove"===e.type?(an=e.screenX-ln.screenX,sn=e.screenY-ln.screenY):sn=an=0,ln=e),an)},movementY:function(e){return"movementY"in e?e.movementY:sn}}),hn=on(pn),mn=on(L({},pn,{dataTransfer:0})),gn=on(L({},dn,{relatedTarget:0})),vn=on(L({},cn,{animationName:0,elapsedTime:0,pseudoElement:0})),yn=L({},cn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),bn=on(yn),wn=on(L({},cn,{data:0})),En={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},_n={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},xn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Sn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=xn[e])&&!!t[e]}function Cn(){return Sn}var kn=L({},dn,{key:function(e){if(e.key){var t=En[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?_n[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Cn,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),On=on(kn),Tn=on(L({},pn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Nn=on(L({},dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Cn})),In=on(L({},cn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Pn=L({},pn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Rn=on(Pn),Dn=[9,13,27,32],An=u&&"CompositionEvent"in window,jn=null;u&&"documentMode"in document&&(jn=document.documentMode);var Mn=u&&"TextEvent"in window&&!jn,Ln=u&&(!An||jn&&8<jn&&11>=jn),zn=String.fromCharCode(32),Fn=!1;function Bn(e,t){switch(e){case"keyup":return-1!==Dn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Un(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var qn=!1;var $n={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Zn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!$n[e.type]:"textarea"===t}function Hn(e,t,n,r){ke(r),0<(t=Vr(t,"onChange")).length&&(n=new un("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Vn=null,Wn=null;function Gn(e){zr(e,0)}function Yn(e){if(W(Eo(e)))return e}function Kn(e,t){if("change"===e)return t}var Qn=!1;if(u){var Jn;if(u){var Xn="oninput"in document;if(!Xn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Xn="function"===typeof er.oninput}Jn=Xn}else Jn=!1;Qn=Jn&&(!document.documentMode||9<document.documentMode)}function tr(){Vn&&(Vn.detachEvent("onpropertychange",nr),Wn=Vn=null)}function nr(e){if("value"===e.propertyName&&Yn(Wn)){var t=[];Hn(t,Wn,e,Ee(e)),Pe(Gn,t)}}function rr(e,t,n){"focusin"===e?(tr(),Wn=n,(Vn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function or(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Yn(Wn)}function ir(e,t){if("click"===e)return Yn(t)}function ar(e,t){if("input"===e||"change"===e)return Yn(t)}var sr="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t};function lr(e,t){if(sr(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!d.call(t,o)||!sr(e[o],t[o]))return!1}return!0}function cr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ur(e,t){var n,r=cr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=cr(r)}}function dr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function fr(){for(var e=window,t=G();t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=G((e=t.contentWindow).document)}return t}function pr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function hr(e){var t=fr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&dr(n.ownerDocument.documentElement,n)){if(null!==r&&pr(n))if(t=r.start,void 0===(e=r.end)&&(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).getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=void 0===r.end?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=ur(n,i);var a=ur(n,r);o&&a&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),i>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;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"===typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var mr=u&&"documentMode"in document&&11>=document.documentMode,gr=null,vr=null,yr=null,br=!1;function wr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;br||null==gr||gr!==G(r)||("selectionStart"in(r=gr)&&pr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},yr&&lr(yr,r)||(yr=r,0<(r=Vr(vr,"onSelect")).length&&(t=new un("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=gr)))}function Er(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var _r={animationend:Er("Animation","AnimationEnd"),animationiteration:Er("Animation","AnimationIteration"),animationstart:Er("Animation","AnimationStart"),transitionend:Er("Transition","TransitionEnd")},xr={},Sr={};function Cr(e){if(xr[e])return xr[e];if(!_r[e])return e;var t,n=_r[e];for(t in n)if(n.hasOwnProperty(t)&&t in Sr)return xr[e]=n[t];return e}u&&(Sr=document.createElement("div").style,"AnimationEvent"in window||(delete _r.animationend.animation,delete _r.animationiteration.animation,delete _r.animationstart.animation),"TransitionEvent"in window||delete _r.transitionend.transition);var kr=Cr("animationend"),Or=Cr("animationiteration"),Tr=Cr("animationstart"),Nr=Cr("transitionend"),Ir=new Map,Pr="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Rr(e,t){Ir.set(e,t),l(t,[e])}for(var Dr=0;Dr<Pr.length;Dr++){var Ar=Pr[Dr];Rr(Ar.toLowerCase(),"on"+(Ar[0].toUpperCase()+Ar.slice(1)))}Rr(kr,"onAnimationEnd"),Rr(Or,"onAnimationIteration"),Rr(Tr,"onAnimationStart"),Rr("dblclick","onDoubleClick"),Rr("focusin","onFocus"),Rr("focusout","onBlur"),Rr(Nr,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var jr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Mr=new Set("cancel close invalid load scroll toggle".split(" ").concat(jr));function Lr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,a,s,l,c){if(Ue.apply(this,arguments),Me){if(!Me)throw Error(i(198));var u=Le;Me=!1,Le=null,ze||(ze=!0,Fe=u)}}(r,t,void 0,e),e.currentTarget=null}function zr(e,t){t=0!==(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,c=s.currentTarget;if(s=s.listener,l!==i&&o.isPropagationStopped())break e;Lr(o,s,c),i=l}else for(a=0;a<r.length;a++){if(l=(s=r[a]).instance,c=s.currentTarget,s=s.listener,l!==i&&o.isPropagationStopped())break e;Lr(o,s,c),i=l}}}if(ze)throw e=Fe,ze=!1,Fe=null,e}function Fr(e,t){var n=t[go];void 0===n&&(n=t[go]=new Set);var r=e+"__bubble";n.has(r)||($r(t,e,2,!1),n.add(r))}function Br(e,t,n){var r=0;t&&(r|=4),$r(n,e,r,t)}var Ur="_reactListening"+Math.random().toString(36).slice(2);function qr(e){if(!e[Ur]){e[Ur]=!0,a.forEach((function(t){"selectionchange"!==t&&(Mr.has(t)||Br(t,!1,e),Br(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Ur]||(t[Ur]=!0,Br("selectionchange",!1,t))}}function $r(e,t,n,r){switch(Kt(t)){case 1:var o=Ht;break;case 4:o=Vt;break;default:o=Wt}n=o.bind(null,t,n,e),o=void 0,!De||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Zr(e,t,n,r,o){var i=r;if(0===(1&t)&&0===(2&t)&&null!==r)e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var s=r.stateNode.containerInfo;if(s===o||8===s.nodeType&&s.parentNode===o)break;if(4===a)for(a=r.return;null!==a;){var l=a.tag;if((3===l||4===l)&&((l=a.stateNode.containerInfo)===o||8===l.nodeType&&l.parentNode===o))return;a=a.return}for(;null!==s;){if(null===(a=bo(s)))return;if(5===(l=a.tag)||6===l){r=i=a;continue e}s=s.parentNode}}r=r.return}Pe((function(){var r=i,o=Ee(n),a=[];e:{var s=Ir.get(e);if(void 0!==s){var l=un,c=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":l=On;break;case"focusin":c="focus",l=gn;break;case"focusout":c="blur",l=gn;break;case"beforeblur":case"afterblur":l=gn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=hn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=mn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Nn;break;case kr:case Or:case Tr:l=vn;break;case Nr:l=In;break;case"scroll":l=fn;break;case"wheel":l=Rn;break;case"copy":case"cut":case"paste":l=bn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=Tn}var u=0!==(4&t),d=!u&&"scroll"===e,f=u?null!==s?s+"Capture":null:s;u=[];for(var p,h=r;null!==h;){var m=(p=h).stateNode;if(5===p.tag&&null!==m&&(p=m,null!==f&&(null!=(m=Re(h,f))&&u.push(Hr(h,m,p)))),d)break;h=h.return}0<u.length&&(s=new l(s,c,null,n,o),a.push({event:s,listeners:u}))}}if(0===(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===we||!(c=n.relatedTarget||n.fromElement)||!bo(c)&&!c[mo])&&(l||s)&&(s=o.window===o?o:(s=o.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(c=(c=n.relatedTarget||n.toElement)?bo(c):null)&&(c!==(d=qe(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(l=null,c=r),l!==c)){if(u=hn,m="onMouseLeave",f="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(u=Tn,m="onPointerLeave",f="onPointerEnter",h="pointer"),d=null==l?s:Eo(l),p=null==c?s:Eo(c),(s=new u(m,h+"leave",l,n,o)).target=d,s.relatedTarget=p,m=null,bo(o)===r&&((u=new u(f,h+"enter",c,n,o)).target=p,u.relatedTarget=d,m=u),d=m,l&&c)e:{for(f=c,h=0,p=u=l;p;p=Wr(p))h++;for(p=0,m=f;m;m=Wr(m))p++;for(;0<h-p;)u=Wr(u),h--;for(;0<p-h;)f=Wr(f),p--;for(;h--;){if(u===f||null!==f&&u===f.alternate)break e;u=Wr(u),f=Wr(f)}u=null}else u=null;null!==l&&Gr(a,s,l,u,!1),null!==c&&null!==d&&Gr(a,d,c,u,!0)}if("select"===(l=(s=r?Eo(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var g=Kn;else if(Zn(s))if(Qn)g=ar;else{g=or;var v=rr}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(g=ir);switch(g&&(g=g(e,r))?Hn(a,g,n,o):(v&&v(e,s,r),"focusout"===e&&(v=s._wrapperState)&&v.controlled&&"number"===s.type&&ee(s,"number",s.value)),v=r?Eo(r):window,e){case"focusin":(Zn(v)||"true"===v.contentEditable)&&(gr=v,vr=r,yr=null);break;case"focusout":yr=vr=gr=null;break;case"mousedown":br=!0;break;case"contextmenu":case"mouseup":case"dragend":br=!1,wr(a,n,o);break;case"selectionchange":if(mr)break;case"keydown":case"keyup":wr(a,n,o)}var y;if(An)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else qn?Bn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Ln&&"ko"!==n.locale&&(qn||"onCompositionStart"!==b?"onCompositionEnd"===b&&qn&&(y=en()):(Jt="value"in(Qt=o)?Qt.value:Qt.textContent,qn=!0)),0<(v=Vr(r,b)).length&&(b=new wn(b,e,null,n,o),a.push({event:b,listeners:v}),y?b.data=y:null!==(y=Un(n))&&(b.data=y))),(y=Mn?function(e,t){switch(e){case"compositionend":return Un(t);case"keypress":return 32!==t.which?null:(Fn=!0,zn);case"textInput":return(e=t.data)===zn&&Fn?null:e;default:return null}}(e,n):function(e,t){if(qn)return"compositionend"===e||!An&&Bn(e,t)?(e=en(),Xt=Jt=Qt=null,qn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Ln&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Vr(r,"onBeforeInput")).length&&(o=new wn("onBeforeInput","beforeinput",null,n,o),a.push({event:o,listeners:r}),o.data=y))}zr(a,t)}))}function Hr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Vr(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,i=o.stateNode;5===o.tag&&null!==i&&(o=i,null!=(i=Re(e,n))&&r.unshift(Hr(e,i,o)),null!=(i=Re(e,t))&&r.push(Hr(e,i,o))),e=e.return}return r}function Wr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Gr(e,t,n,r,o){for(var i=t._reactName,a=[];null!==n&&n!==r;){var s=n,l=s.alternate,c=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==c&&(s=c,o?null!=(l=Re(n,i))&&a.unshift(Hr(n,l,s)):o||null!=(l=Re(n,i))&&a.push(Hr(n,l,s))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var Yr=/\r\n?/g,Kr=/\u0000|\uFFFD/g;function Qr(e){return("string"===typeof e?e:""+e).replace(Yr,"\n").replace(Kr,"")}function Jr(e,t,n){if(t=Qr(t),Qr(e)!==t&&n)throw Error(i(425))}function Xr(){}var eo=null,to=null;function no(e,t){return"textarea"===e||"noscript"===e||"string"===typeof t.children||"number"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ro="function"===typeof setTimeout?setTimeout:void 0,oo="function"===typeof clearTimeout?clearTimeout:void 0,io="function"===typeof Promise?Promise:void 0,ao="function"===typeof queueMicrotask?queueMicrotask:"undefined"!==typeof io?function(e){return io.resolve(null).then(e).catch(so)}:ro;function so(e){setTimeout((function(){throw e}))}function lo(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)){if(0===r)return e.removeChild(o),void qt(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);qt(t)}function co(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function uo(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var fo=Math.random().toString(36).slice(2),po="__reactFiber$"+fo,ho="__reactProps$"+fo,mo="__reactContainer$"+fo,go="__reactEvents$"+fo,vo="__reactListeners$"+fo,yo="__reactHandles$"+fo;function bo(e){var t=e[po];if(t)return t;for(var n=e.parentNode;n;){if(t=n[mo]||n[po]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=uo(e);null!==e;){if(n=e[po])return n;e=uo(e)}return t}n=(e=n).parentNode}return null}function wo(e){return!(e=e[po]||e[mo])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function Eo(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(i(33))}function _o(e){return e[ho]||null}var xo=[],So=-1;function Co(e){return{current:e}}function ko(e){0>So||(e.current=xo[So],xo[So]=null,So--)}function Oo(e,t){So++,xo[So]=e.current,e.current=t}var To={},No=Co(To),Io=Co(!1),Po=To;function Ro(e,t){var n=e.type.contextTypes;if(!n)return To;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Do(e){return null!==(e=e.childContextTypes)&&void 0!==e}function Ao(){ko(Io),ko(No)}function jo(e,t,n){if(No.current!==To)throw Error(i(168));Oo(No,t),Oo(Io,n)}function Mo(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!==typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in t))throw Error(i(108,$(e)||"Unknown",o));return L({},n,r)}function Lo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||To,Po=No.current,Oo(No,e),Oo(Io,Io.current),!0}function zo(e,t,n){var r=e.stateNode;if(!r)throw Error(i(169));n?(e=Mo(e,t,Po),r.__reactInternalMemoizedMergedChildContext=e,ko(Io),ko(No),Oo(No,e)):ko(Io),Oo(Io,n)}var Fo=null,Bo=!1,Uo=!1;function qo(e){null===Fo?Fo=[e]:Fo.push(e)}function $o(){if(!Uo&&null!==Fo){Uo=!0;var e=0,t=bt;try{var n=Fo;for(bt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Fo=null,Bo=!1}catch(o){throw null!==Fo&&(Fo=Fo.slice(e+1)),We(Xe,$o),o}finally{bt=t,Uo=!1}}return null}var Zo=[],Ho=0,Vo=null,Wo=0,Go=[],Yo=0,Ko=null,Qo=1,Jo="";function Xo(e,t){Zo[Ho++]=Wo,Zo[Ho++]=Vo,Vo=e,Wo=t}function ei(e,t,n){Go[Yo++]=Qo,Go[Yo++]=Jo,Go[Yo++]=Ko,Ko=e;var r=Qo;e=Jo;var o=32-at(r)-1;r&=~(1<<o),n+=1;var i=32-at(t)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,Qo=1<<32-at(t)+o|n<<o|r,Jo=i+e}else Qo=1<<i|n<<o|r,Jo=e}function ti(e){null!==e.return&&(Xo(e,1),ei(e,1,0))}function ni(e){for(;e===Vo;)Vo=Zo[--Ho],Zo[Ho]=null,Wo=Zo[--Ho],Zo[Ho]=null;for(;e===Ko;)Ko=Go[--Yo],Go[Yo]=null,Jo=Go[--Yo],Go[Yo]=null,Qo=Go[--Yo],Go[Yo]=null}var ri=null,oi=null,ii=!1,ai=null;function si(e,t){var n=Pc(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function li(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,ri=e,oi=co(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,ri=e,oi=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Ko?{id:Qo,overflow:Jo}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Pc(18,null,null,0)).stateNode=t,n.return=e,e.child=n,ri=e,oi=null,!0);default:return!1}}function ci(e){return 0!==(1&e.mode)&&0===(128&e.flags)}function ui(e){if(ii){var t=oi;if(t){var n=t;if(!li(e,t)){if(ci(e))throw Error(i(418));t=co(n.nextSibling);var r=ri;t&&li(e,t)?si(r,n):(e.flags=-4097&e.flags|2,ii=!1,ri=e)}}else{if(ci(e))throw Error(i(418));e.flags=-4097&e.flags|2,ii=!1,ri=e}}}function di(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ri=e}function fi(e){if(e!==ri)return!1;if(!ii)return di(e),ii=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!no(e.type,e.memoizedProps)),t&&(t=oi)){if(ci(e))throw pi(),Error(i(418));for(;t;)si(e,t),t=co(t.nextSibling)}if(di(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(i(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){oi=co(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}oi=null}}else oi=ri?co(e.stateNode.nextSibling):null;return!0}function pi(){for(var e=oi;e;)e=co(e.nextSibling)}function hi(){oi=ri=null,ii=!1}function mi(e){null===ai?ai=[e]:ai.push(e)}var gi=w.ReactCurrentBatchConfig;function vi(e,t,n){if(null!==(e=n.ref)&&"function"!==typeof e&&"object"!==typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(i(309));var r=n.stateNode}if(!r)throw Error(i(147,e));var o=r,a=""+e;return null!==t&&null!==t.ref&&"function"===typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=o.refs;null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!==typeof e)throw Error(i(284));if(!n._owner)throw Error(i(290,e))}return e}function yi(e,t){throw e=Object.prototype.toString.call(t),Error(i(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function bi(e){return(0,e._init)(e._payload)}function wi(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=Dc(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function s(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Lc(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function c(e,t,n,r){var i=n.type;return i===x?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===i||"object"===typeof i&&null!==i&&i.$$typeof===R&&bi(i)===t.type)?((r=o(t,n.props)).ref=vi(e,t,n),r.return=e,r):((r=Ac(n.type,n.key,n.props,null,e.mode,r)).ref=vi(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=zc(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function d(e,t,n,r,i){return null===t||7!==t.tag?((t=jc(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function f(e,t,n){if("string"===typeof t&&""!==t||"number"===typeof t)return(t=Lc(""+t,e.mode,n)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case E:return(n=Ac(t.type,t.key,t.props,null,e.mode,n)).ref=vi(e,null,t),n.return=e,n;case _:return(t=zc(t,e.mode,n)).return=e,t;case R:return f(e,(0,t._init)(t._payload),n)}if(te(t)||j(t))return(t=jc(t,e.mode,n,null)).return=e,t;yi(e,t)}return null}function p(e,t,n,r){var o=null!==t?t.key:null;if("string"===typeof n&&""!==n||"number"===typeof n)return null!==o?null:l(e,t,""+n,r);if("object"===typeof n&&null!==n){switch(n.$$typeof){case E:return n.key===o?c(e,t,n,r):null;case _:return n.key===o?u(e,t,n,r):null;case R:return p(e,t,(o=n._init)(n._payload),r)}if(te(n)||j(n))return null!==o?null:d(e,t,n,r,null);yi(e,n)}return null}function h(e,t,n,r,o){if("string"===typeof r&&""!==r||"number"===typeof r)return l(t,e=e.get(n)||null,""+r,o);if("object"===typeof r&&null!==r){switch(r.$$typeof){case E:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o);case _:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o);case R:return h(e,t,n,(0,r._init)(r._payload),o)}if(te(r)||j(r))return d(t,e=e.get(n)||null,r,o,null);yi(t,r)}return null}function m(o,i,s,l){for(var c=null,u=null,d=i,m=i=0,g=null;null!==d&&m<s.length;m++){d.index>m?(g=d,d=null):g=d.sibling;var v=p(o,d,s[m],l);if(null===v){null===d&&(d=g);break}e&&d&&null===v.alternate&&t(o,d),i=a(v,i,m),null===u?c=v:u.sibling=v,u=v,d=g}if(m===s.length)return n(o,d),ii&&Xo(o,m),c;if(null===d){for(;m<s.length;m++)null!==(d=f(o,s[m],l))&&(i=a(d,i,m),null===u?c=d:u.sibling=d,u=d);return ii&&Xo(o,m),c}for(d=r(o,d);m<s.length;m++)null!==(g=h(d,o,m,s[m],l))&&(e&&null!==g.alternate&&d.delete(null===g.key?m:g.key),i=a(g,i,m),null===u?c=g:u.sibling=g,u=g);return e&&d.forEach((function(e){return t(o,e)})),ii&&Xo(o,m),c}function g(o,s,l,c){var u=j(l);if("function"!==typeof u)throw Error(i(150));if(null==(l=u.call(l)))throw Error(i(151));for(var d=u=null,m=s,g=s=0,v=null,y=l.next();null!==m&&!y.done;g++,y=l.next()){m.index>g?(v=m,m=null):v=m.sibling;var b=p(o,m,y.value,c);if(null===b){null===m&&(m=v);break}e&&m&&null===b.alternate&&t(o,m),s=a(b,s,g),null===d?u=b:d.sibling=b,d=b,m=v}if(y.done)return n(o,m),ii&&Xo(o,g),u;if(null===m){for(;!y.done;g++,y=l.next())null!==(y=f(o,y.value,c))&&(s=a(y,s,g),null===d?u=y:d.sibling=y,d=y);return ii&&Xo(o,g),u}for(m=r(o,m);!y.done;g++,y=l.next())null!==(y=h(m,o,g,y.value,c))&&(e&&null!==y.alternate&&m.delete(null===y.key?g:y.key),s=a(y,s,g),null===d?u=y:d.sibling=y,d=y);return e&&m.forEach((function(e){return t(o,e)})),ii&&Xo(o,g),u}return function e(r,i,a,l){if("object"===typeof a&&null!==a&&a.type===x&&null===a.key&&(a=a.props.children),"object"===typeof a&&null!==a){switch(a.$$typeof){case E:e:{for(var c=a.key,u=i;null!==u;){if(u.key===c){if((c=a.type)===x){if(7===u.tag){n(r,u.sibling),(i=o(u,a.props.children)).return=r,r=i;break e}}else if(u.elementType===c||"object"===typeof c&&null!==c&&c.$$typeof===R&&bi(c)===u.type){n(r,u.sibling),(i=o(u,a.props)).ref=vi(r,u,a),i.return=r,r=i;break e}n(r,u);break}t(r,u),u=u.sibling}a.type===x?((i=jc(a.props.children,r.mode,l,a.key)).return=r,r=i):((l=Ac(a.type,a.key,a.props,null,r.mode,l)).ref=vi(r,i,a),l.return=r,r=l)}return s(r);case _:e:{for(u=a.key;null!==i;){if(i.key===u){if(4===i.tag&&i.stateNode.containerInfo===a.containerInfo&&i.stateNode.implementation===a.implementation){n(r,i.sibling),(i=o(i,a.children||[])).return=r,r=i;break e}n(r,i);break}t(r,i),i=i.sibling}(i=zc(a,r.mode,l)).return=r,r=i}return s(r);case R:return e(r,i,(u=a._init)(a._payload),l)}if(te(a))return m(r,i,a,l);if(j(a))return g(r,i,a,l);yi(r,a)}return"string"===typeof a&&""!==a||"number"===typeof a?(a=""+a,null!==i&&6===i.tag?(n(r,i.sibling),(i=o(i,a)).return=r,r=i):(n(r,i),(i=Lc(a,r.mode,l)).return=r,r=i),s(r)):n(r,i)}}var Ei=wi(!0),_i=wi(!1),xi=Co(null),Si=null,Ci=null,ki=null;function Oi(){ki=Ci=Si=null}function Ti(e){var t=xi.current;ko(xi),e._currentValue=t}function Ni(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Ii(e,t){Si=e,ki=Ci=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(bs=!0),e.firstContext=null)}function Pi(e){var t=e._currentValue;if(ki!==e)if(e={context:e,memoizedValue:t,next:null},null===Ci){if(null===Si)throw Error(i(308));Ci=e,Si.dependencies={lanes:0,firstContext:e}}else Ci=Ci.next=e;return t}var Ri=null;function Di(e){null===Ri?Ri=[e]:Ri.push(e)}function Ai(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,Di(t)):(n.next=o.next,o.next=n),t.interleaved=n,ji(e,r)}function ji(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Mi=!1;function Li(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function zi(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Fi(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Bi(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!==(2&Tl)){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,ji(e,n)}return null===(o=r.interleaved)?(t.next=t,Di(r)):(t.next=o.next,o.next=t),r.interleaved=t,ji(e,n)}function Ui(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!==(4194240&n))){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}function qi(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===i?o=i=a:i=i.next=a,n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function $i(e,t,n,r){var o=e.updateQueue;Mi=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,s=o.shared.pending;if(null!==s){o.shared.pending=null;var l=s,c=l.next;l.next=null,null===a?i=c:a.next=c,a=l;var u=e.alternate;null!==u&&((s=(u=u.updateQueue).lastBaseUpdate)!==a&&(null===s?u.firstBaseUpdate=c:s.next=c,u.lastBaseUpdate=l))}if(null!==i){var d=o.baseState;for(a=0,u=c=l=null,s=i;;){var f=s.lane,p=s.eventTime;if((r&f)===f){null!==u&&(u=u.next={eventTime:p,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var h=e,m=s;switch(f=t,p=n,m.tag){case 1:if("function"===typeof(h=m.payload)){d=h.call(p,d,f);break e}d=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null===(f="function"===typeof(h=m.payload)?h.call(p,d,f):h)||void 0===f)break e;d=L({},d,f);break e;case 2:Mi=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(f=o.effects)?o.effects=[s]:f.push(s))}else p={eventTime:p,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===u?(c=u=p,l=d):u=u.next=p,a|=f;if(null===(s=s.next)){if(null===(s=o.shared.pending))break;s=(f=s).next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}if(null===u&&(l=d),o.baseState=l,o.firstBaseUpdate=c,o.lastBaseUpdate=u,null!==(t=o.shared.interleaved)){o=t;do{a|=o.lane,o=o.next}while(o!==t)}else null===i&&(o.shared.lanes=0);Ml|=a,e.lanes=a,e.memoizedState=d}}function Zi(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=n,"function"!==typeof o)throw Error(i(191,o));o.call(r)}}}var Hi={},Vi=Co(Hi),Wi=Co(Hi),Gi=Co(Hi);function Yi(e){if(e===Hi)throw Error(i(174));return e}function Ki(e,t){switch(Oo(Gi,t),Oo(Wi,e),Oo(Vi,Hi),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:le(null,"");break;default:t=le(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}ko(Vi),Oo(Vi,t)}function Qi(){ko(Vi),ko(Wi),ko(Gi)}function Ji(e){Yi(Gi.current);var t=Yi(Vi.current),n=le(t,e.type);t!==n&&(Oo(Wi,e),Oo(Vi,n))}function Xi(e){Wi.current===e&&(ko(Vi),ko(Wi))}var ea=Co(0);function ta(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var na=[];function ra(){for(var e=0;e<na.length;e++)na[e]._workInProgressVersionPrimary=null;na.length=0}var oa=w.ReactCurrentDispatcher,ia=w.ReactCurrentBatchConfig,aa=0,sa=null,la=null,ca=null,ua=!1,da=!1,fa=0,pa=0;function ha(){throw Error(i(321))}function ma(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!sr(e[n],t[n]))return!1;return!0}function ga(e,t,n,r,o,a){if(aa=a,sa=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,oa.current=null===e||null===e.memoizedState?Xa:es,e=n(r,o),da){a=0;do{if(da=!1,fa=0,25<=a)throw Error(i(301));a+=1,ca=la=null,t.updateQueue=null,oa.current=ts,e=n(r,o)}while(da)}if(oa.current=Ja,t=null!==la&&null!==la.next,aa=0,ca=la=sa=null,ua=!1,t)throw Error(i(300));return e}function va(){var e=0!==fa;return fa=0,e}function ya(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ca?sa.memoizedState=ca=e:ca=ca.next=e,ca}function ba(){if(null===la){var e=sa.alternate;e=null!==e?e.memoizedState:null}else e=la.next;var t=null===ca?sa.memoizedState:ca.next;if(null!==t)ca=t,la=e;else{if(null===e)throw Error(i(310));e={memoizedState:(la=e).memoizedState,baseState:la.baseState,baseQueue:la.baseQueue,queue:la.queue,next:null},null===ca?sa.memoizedState=ca=e:ca=ca.next=e}return ca}function wa(e,t){return"function"===typeof t?t(e):t}function Ea(e){var t=ba(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=la,o=r.baseQueue,a=n.pending;if(null!==a){if(null!==o){var s=o.next;o.next=a.next,a.next=s}r.baseQueue=o=a,n.pending=null}if(null!==o){a=o.next,r=r.baseState;var l=s=null,c=null,u=a;do{var d=u.lane;if((aa&d)===d)null!==c&&(c=c.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var f={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};null===c?(l=c=f,s=r):c=c.next=f,sa.lanes|=d,Ml|=d}u=u.next}while(null!==u&&u!==a);null===c?s=r:c.next=l,sr(r,t.memoizedState)||(bs=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=c,n.lastRenderedState=r}if(null!==(e=n.interleaved)){o=e;do{a=o.lane,sa.lanes|=a,Ml|=a,o=o.next}while(o!==e)}else null===o&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function _a(e){var t=ba(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,a=t.memoizedState;if(null!==o){n.pending=null;var s=o=o.next;do{a=e(a,s.action),s=s.next}while(s!==o);sr(a,t.memoizedState)||(bs=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function xa(){}function Sa(e,t){var n=sa,r=ba(),o=t(),a=!sr(r.memoizedState,o);if(a&&(r.memoizedState=o,bs=!0),r=r.queue,Ma(Oa.bind(null,n,r,e),[e]),r.getSnapshot!==t||a||null!==ca&&1&ca.memoizedState.tag){if(n.flags|=2048,Pa(9,ka.bind(null,n,r,o,t),void 0,null),null===Nl)throw Error(i(349));0!==(30&aa)||Ca(n,t,o)}return o}function Ca(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=sa.updateQueue)?(t={lastEffect:null,stores:null},sa.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function ka(e,t,n,r){t.value=n,t.getSnapshot=r,Ta(t)&&Na(e)}function Oa(e,t,n){return n((function(){Ta(t)&&Na(e)}))}function Ta(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!sr(e,n)}catch(r){return!0}}function Na(e){var t=ji(e,1);null!==t&&nc(t,e,1,-1)}function Ia(e){var t=ya();return"function"===typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:wa,lastRenderedState:e},t.queue=e,e=e.dispatch=Ga.bind(null,sa,e),[t.memoizedState,e]}function Pa(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=sa.updateQueue)?(t={lastEffect:null,stores:null},sa.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Ra(){return ba().memoizedState}function Da(e,t,n,r){var o=ya();sa.flags|=e,o.memoizedState=Pa(1|t,n,void 0,void 0===r?null:r)}function Aa(e,t,n,r){var o=ba();r=void 0===r?null:r;var i=void 0;if(null!==la){var a=la.memoizedState;if(i=a.destroy,null!==r&&ma(r,a.deps))return void(o.memoizedState=Pa(t,n,i,r))}sa.flags|=e,o.memoizedState=Pa(1|t,n,i,r)}function ja(e,t){return Da(8390656,8,e,t)}function Ma(e,t){return Aa(2048,8,e,t)}function La(e,t){return Aa(4,2,e,t)}function za(e,t){return Aa(4,4,e,t)}function Fa(e,t){return"function"===typeof t?(e=e(),t(e),function(){t(null)}):null!==t&&void 0!==t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Ba(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Aa(4,4,Fa.bind(null,t,e),n)}function Ua(){}function qa(e,t){var n=ba();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ma(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function $a(e,t){var n=ba();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ma(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Za(e,t,n){return 0===(21&aa)?(e.baseState&&(e.baseState=!1,bs=!0),e.memoizedState=n):(sr(n,t)||(n=mt(),sa.lanes|=n,Ml|=n,e.baseState=!0),t)}function Ha(e,t){var n=bt;bt=0!==n&&4>n?n:4,e(!0);var r=ia.transition;ia.transition={};try{e(!1),t()}finally{bt=n,ia.transition=r}}function Va(){return ba().memoizedState}function Wa(e,t,n){var r=tc(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Ya(e))Ka(t,n);else if(null!==(n=Ai(e,t,n,r))){nc(n,e,r,ec()),Qa(n,t,r)}}function Ga(e,t,n){var r=tc(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ya(e))Ka(t,o);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=i(a,n);if(o.hasEagerState=!0,o.eagerState=s,sr(s,a)){var l=t.interleaved;return null===l?(o.next=o,Di(t)):(o.next=l.next,l.next=o),void(t.interleaved=o)}}catch(c){}null!==(n=Ai(e,t,o,r))&&(nc(n,e,r,o=ec()),Qa(n,t,r))}}function Ya(e){var t=e.alternate;return e===sa||null!==t&&t===sa}function Ka(e,t){da=ua=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Qa(e,t,n){if(0!==(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}var Ja={readContext:Pi,useCallback:ha,useContext:ha,useEffect:ha,useImperativeHandle:ha,useInsertionEffect:ha,useLayoutEffect:ha,useMemo:ha,useReducer:ha,useRef:ha,useState:ha,useDebugValue:ha,useDeferredValue:ha,useTransition:ha,useMutableSource:ha,useSyncExternalStore:ha,useId:ha,unstable_isNewReconciler:!1},Xa={readContext:Pi,useCallback:function(e,t){return ya().memoizedState=[e,void 0===t?null:t],e},useContext:Pi,useEffect:ja,useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Da(4194308,4,Fa.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Da(4194308,4,e,t)},useInsertionEffect:function(e,t){return Da(4,2,e,t)},useMemo:function(e,t){var n=ya();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ya();return t=void 0!==n?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=Wa.bind(null,sa,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},ya().memoizedState=e},useState:Ia,useDebugValue:Ua,useDeferredValue:function(e){return ya().memoizedState=e},useTransition:function(){var e=Ia(!1),t=e[0];return e=Ha.bind(null,e[1]),ya().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=sa,o=ya();if(ii){if(void 0===n)throw Error(i(407));n=n()}else{if(n=t(),null===Nl)throw Error(i(349));0!==(30&aa)||Ca(r,t,n)}o.memoizedState=n;var a={value:n,getSnapshot:t};return o.queue=a,ja(Oa.bind(null,r,a,e),[e]),r.flags|=2048,Pa(9,ka.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=ya(),t=Nl.identifierPrefix;if(ii){var n=Jo;t=":"+t+"R"+(n=(Qo&~(1<<32-at(Qo)-1)).toString(32)+n),0<(n=fa++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=pa++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},es={readContext:Pi,useCallback:qa,useContext:Pi,useEffect:Ma,useImperativeHandle:Ba,useInsertionEffect:La,useLayoutEffect:za,useMemo:$a,useReducer:Ea,useRef:Ra,useState:function(){return Ea(wa)},useDebugValue:Ua,useDeferredValue:function(e){return Za(ba(),la.memoizedState,e)},useTransition:function(){return[Ea(wa)[0],ba().memoizedState]},useMutableSource:xa,useSyncExternalStore:Sa,useId:Va,unstable_isNewReconciler:!1},ts={readContext:Pi,useCallback:qa,useContext:Pi,useEffect:Ma,useImperativeHandle:Ba,useInsertionEffect:La,useLayoutEffect:za,useMemo:$a,useReducer:_a,useRef:Ra,useState:function(){return _a(wa)},useDebugValue:Ua,useDeferredValue:function(e){var t=ba();return null===la?t.memoizedState=e:Za(t,la.memoizedState,e)},useTransition:function(){return[_a(wa)[0],ba().memoizedState]},useMutableSource:xa,useSyncExternalStore:Sa,useId:Va,unstable_isNewReconciler:!1};function ns(e,t){if(e&&e.defaultProps){for(var n in t=L({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function rs(e,t,n,r){n=null===(n=n(r,t=e.memoizedState))||void 0===n?t:L({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var os={isMounted:function(e){return!!(e=e._reactInternals)&&qe(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=ec(),o=tc(e),i=Fi(r,o);i.payload=t,void 0!==n&&null!==n&&(i.callback=n),null!==(t=Bi(e,i,o))&&(nc(t,e,o,r),Ui(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=ec(),o=tc(e),i=Fi(r,o);i.tag=1,i.payload=t,void 0!==n&&null!==n&&(i.callback=n),null!==(t=Bi(e,i,o))&&(nc(t,e,o,r),Ui(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ec(),r=tc(e),o=Fi(n,r);o.tag=2,void 0!==t&&null!==t&&(o.callback=t),null!==(t=Bi(e,o,r))&&(nc(t,e,r,n),Ui(t,e,r))}};function is(e,t,n,r,o,i,a){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!lr(n,r)||!lr(o,i))}function as(e,t,n){var r=!1,o=To,i=t.contextType;return"object"===typeof i&&null!==i?i=Pi(i):(o=Do(t)?Po:No.current,i=(r=null!==(r=t.contextTypes)&&void 0!==r)?Ro(e,o):To),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=os,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function ss(e,t,n,r){e=t.state,"function"===typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"===typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&os.enqueueReplaceState(t,t.state,null)}function ls(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},Li(e);var i=t.contextType;"object"===typeof i&&null!==i?o.context=Pi(i):(i=Do(t)?Po:No.current,o.context=Ro(e,i)),o.state=e.memoizedState,"function"===typeof(i=t.getDerivedStateFromProps)&&(rs(e,t,i,n),o.state=e.memoizedState),"function"===typeof t.getDerivedStateFromProps||"function"===typeof o.getSnapshotBeforeUpdate||"function"!==typeof o.UNSAFE_componentWillMount&&"function"!==typeof o.componentWillMount||(t=o.state,"function"===typeof o.componentWillMount&&o.componentWillMount(),"function"===typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&os.enqueueReplaceState(o,o.state,null),$i(e,n,o,r),o.state=e.memoizedState),"function"===typeof o.componentDidMount&&(e.flags|=4194308)}function cs(e,t){try{var n="",r=t;do{n+=U(r),r=r.return}while(r);var o=n}catch(i){o="\nError generating stack: "+i.message+"\n"+i.stack}return{value:e,source:t,stack:o,digest:null}}function us(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function ds(e,t){try{console.error(t.value)}catch(n){setTimeout((function(){throw n}))}}var fs="function"===typeof WeakMap?WeakMap:Map;function ps(e,t,n){(n=Fi(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Zl||(Zl=!0,Hl=r),ds(0,t)},n}function hs(e,t,n){(n=Fi(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"===typeof r){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){ds(0,t)}}var i=e.stateNode;return null!==i&&"function"===typeof i.componentDidCatch&&(n.callback=function(){ds(0,t),"function"!==typeof r&&(null===Vl?Vl=new Set([this]):Vl.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function ms(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new fs;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=Cc.bind(null,e,t,n),t.then(e,e))}function gs(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function vs(e,t,n,r,o){return 0===(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Fi(-1,1)).tag=2,Bi(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}var ys=w.ReactCurrentOwner,bs=!1;function ws(e,t,n,r){t.child=null===e?_i(t,null,n,r):Ei(t,e.child,n,r)}function Es(e,t,n,r,o){n=n.render;var i=t.ref;return Ii(t,o),r=ga(e,t,n,r,i,o),n=va(),null===e||bs?(ii&&n&&ti(t),t.flags|=1,ws(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Zs(e,t,o))}function _s(e,t,n,r,o){if(null===e){var i=n.type;return"function"!==typeof i||Rc(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Ac(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,xs(e,t,i,r,o))}if(i=e.child,0===(e.lanes&o)){var a=i.memoizedProps;if((n=null!==(n=n.compare)?n:lr)(a,r)&&e.ref===t.ref)return Zs(e,t,o)}return t.flags|=1,(e=Dc(i,r)).ref=t.ref,e.return=t,t.child=e}function xs(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(lr(i,r)&&e.ref===t.ref){if(bs=!1,t.pendingProps=r=i,0===(e.lanes&o))return t.lanes=e.lanes,Zs(e,t,o);0!==(131072&e.flags)&&(bs=!0)}}return ks(e,t,n,r,o)}function Ss(e,t,n){var r=t.pendingProps,o=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0===(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Oo(Dl,Rl),Rl|=n;else{if(0===(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Oo(Dl,Rl),Rl|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==i?i.baseLanes:n,Oo(Dl,Rl),Rl|=r}else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,Oo(Dl,Rl),Rl|=r;return ws(e,t,o,n),t.child}function Cs(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function ks(e,t,n,r,o){var i=Do(n)?Po:No.current;return i=Ro(t,i),Ii(t,o),n=ga(e,t,n,r,i,o),r=va(),null===e||bs?(ii&&r&&ti(t),t.flags|=1,ws(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Zs(e,t,o))}function Os(e,t,n,r,o){if(Do(n)){var i=!0;Lo(t)}else i=!1;if(Ii(t,o),null===t.stateNode)$s(e,t),as(t,n,r),ls(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,c=n.contextType;"object"===typeof c&&null!==c?c=Pi(c):c=Ro(t,c=Do(n)?Po:No.current);var u=n.getDerivedStateFromProps,d="function"===typeof u||"function"===typeof a.getSnapshotBeforeUpdate;d||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(s!==r||l!==c)&&ss(t,a,r,c),Mi=!1;var f=t.memoizedState;a.state=f,$i(t,r,a,o),l=t.memoizedState,s!==r||f!==l||Io.current||Mi?("function"===typeof u&&(rs(t,n,u,r),l=t.memoizedState),(s=Mi||is(t,n,s,r,f,l,c))?(d||"function"!==typeof a.UNSAFE_componentWillMount&&"function"!==typeof a.componentWillMount||("function"===typeof a.componentWillMount&&a.componentWillMount(),"function"===typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"===typeof a.componentDidMount&&(t.flags|=4194308)):("function"===typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=c,r=s):("function"===typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,zi(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:ns(t.type,s),a.props=c,d=t.pendingProps,f=a.context,"object"===typeof(l=n.contextType)&&null!==l?l=Pi(l):l=Ro(t,l=Do(n)?Po:No.current);var p=n.getDerivedStateFromProps;(u="function"===typeof p||"function"===typeof a.getSnapshotBeforeUpdate)||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(s!==d||f!==l)&&ss(t,a,r,l),Mi=!1,f=t.memoizedState,a.state=f,$i(t,r,a,o);var h=t.memoizedState;s!==d||f!==h||Io.current||Mi?("function"===typeof p&&(rs(t,n,p,r),h=t.memoizedState),(c=Mi||is(t,n,c,r,f,h,l)||!1)?(u||"function"!==typeof a.UNSAFE_componentWillUpdate&&"function"!==typeof a.componentWillUpdate||("function"===typeof a.componentWillUpdate&&a.componentWillUpdate(r,h,l),"function"===typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,h,l)),"function"===typeof a.componentDidUpdate&&(t.flags|=4),"function"===typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!==typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),a.props=r,a.state=h,a.context=l,r=c):("function"!==typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return Ts(e,t,n,r,i,o)}function Ts(e,t,n,r,o,i){Cs(e,t);var a=0!==(128&t.flags);if(!r&&!a)return o&&zo(t,n,!1),Zs(e,t,i);r=t.stateNode,ys.current=t;var s=a&&"function"!==typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=Ei(t,e.child,null,i),t.child=Ei(t,null,s,i)):ws(e,t,s,i),t.memoizedState=r.state,o&&zo(t,n,!0),t.child}function Ns(e){var t=e.stateNode;t.pendingContext?jo(0,t.pendingContext,t.pendingContext!==t.context):t.context&&jo(0,t.context,!1),Ki(e,t.containerInfo)}function Is(e,t,n,r,o){return hi(),mi(o),t.flags|=256,ws(e,t,n,r),t.child}var Ps,Rs,Ds,As,js={dehydrated:null,treeContext:null,retryLane:0};function Ms(e){return{baseLanes:e,cachePool:null,transitions:null}}function Ls(e,t,n){var r,o=t.pendingProps,a=ea.current,s=!1,l=0!==(128&t.flags);if((r=l)||(r=(null===e||null!==e.memoizedState)&&0!==(2&a)),r?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),Oo(ea,1&a),null===e)return ui(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0===(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(l=o.children,e=o.fallback,s?(o=t.mode,s=t.child,l={mode:"hidden",children:l},0===(1&o)&&null!==s?(s.childLanes=0,s.pendingProps=l):s=Mc(l,o,0,null),e=jc(e,o,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Ms(n),t.memoizedState=js,e):zs(t,l));if(null!==(a=e.memoizedState)&&null!==(r=a.dehydrated))return function(e,t,n,r,o,a,s){if(n)return 256&t.flags?(t.flags&=-257,Fs(e,t,s,r=us(Error(i(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=r.fallback,o=t.mode,r=Mc({mode:"visible",children:r.children},o,0,null),(a=jc(a,o,s,null)).flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,0!==(1&t.mode)&&Ei(t,e.child,null,s),t.child.memoizedState=Ms(s),t.memoizedState=js,a);if(0===(1&t.mode))return Fs(e,t,s,null);if("$!"===o.data){if(r=o.nextSibling&&o.nextSibling.dataset)var l=r.dgst;return r=l,Fs(e,t,s,r=us(a=Error(i(419)),r,void 0))}if(l=0!==(s&e.childLanes),bs||l){if(null!==(r=Nl)){switch(s&-s){case 4:o=2;break;case 16:o=8;break;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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=0!==(o&(r.suspendedLanes|s))?0:o)&&o!==a.retryLane&&(a.retryLane=o,ji(e,o),nc(r,e,o,-1))}return mc(),Fs(e,t,s,r=us(Error(i(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=Oc.bind(null,e),o._reactRetry=t,null):(e=a.treeContext,oi=co(o.nextSibling),ri=t,ii=!0,ai=null,null!==e&&(Go[Yo++]=Qo,Go[Yo++]=Jo,Go[Yo++]=Ko,Qo=e.id,Jo=e.overflow,Ko=t),t=zs(t,r.children),t.flags|=4096,t)}(e,t,l,o,r,a,n);if(s){s=o.fallback,l=t.mode,r=(a=e.child).sibling;var c={mode:"hidden",children:o.children};return 0===(1&l)&&t.child!==a?((o=t.child).childLanes=0,o.pendingProps=c,t.deletions=null):(o=Dc(a,c)).subtreeFlags=14680064&a.subtreeFlags,null!==r?s=Dc(r,s):(s=jc(s,l,n,null)).flags|=2,s.return=t,o.return=t,o.sibling=s,t.child=o,o=s,s=t.child,l=null===(l=e.child.memoizedState)?Ms(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=e.childLanes&~n,t.memoizedState=js,o}return e=(s=e.child).sibling,o=Dc(s,{mode:"visible",children:o.children}),0===(1&t.mode)&&(o.lanes=n),o.return=t,o.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=o,t.memoizedState=null,o}function zs(e,t){return(t=Mc({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Fs(e,t,n,r){return null!==r&&mi(r),Ei(t,e.child,null,n),(e=zs(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Bs(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Ni(e.return,t,n)}function Us(e,t,n,r,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function qs(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(ws(e,t,r.children,n),0!==(2&(r=ea.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!==(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Bs(e,n,t);else if(19===e.tag)Bs(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Oo(ea,r),0===(1&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===ta(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Us(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===ta(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Us(t,!0,n,null,i);break;case"together":Us(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function $s(e,t){0===(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Zs(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Ml|=t.lanes,0===(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(i(153));if(null!==t.child){for(n=Dc(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Dc(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Hs(e,t){if(!ii)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Vs(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=14680064&o.subtreeFlags,r|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Ws(e,t,n){var r=t.pendingProps;switch(ni(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Vs(t),null;case 1:case 17:return Do(t.type)&&Ao(),Vs(t),null;case 3:return r=t.stateNode,Qi(),ko(Io),ko(No),ra(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(fi(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0===(256&t.flags)||(t.flags|=1024,null!==ai&&(ac(ai),ai=null))),Rs(e,t),Vs(t),null;case 5:Xi(t);var o=Yi(Gi.current);if(n=t.type,null!==e&&null!=t.stateNode)Ds(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(i(166));return Vs(t),null}if(e=Yi(Vi.current),fi(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[po]=t,r[ho]=a,e=0!==(1&t.mode),n){case"dialog":Fr("cancel",r),Fr("close",r);break;case"iframe":case"object":case"embed":Fr("load",r);break;case"video":case"audio":for(o=0;o<jr.length;o++)Fr(jr[o],r);break;case"source":Fr("error",r);break;case"img":case"image":case"link":Fr("error",r),Fr("load",r);break;case"details":Fr("toggle",r);break;case"input":K(r,a),Fr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},Fr("invalid",r);break;case"textarea":oe(r,a),Fr("invalid",r)}for(var l in ye(n,a),o=null,a)if(a.hasOwnProperty(l)){var c=a[l];"children"===l?"string"===typeof c?r.textContent!==c&&(!0!==a.suppressHydrationWarning&&Jr(r.textContent,c,e),o=["children",c]):"number"===typeof c&&r.textContent!==""+c&&(!0!==a.suppressHydrationWarning&&Jr(r.textContent,c,e),o=["children",""+c]):s.hasOwnProperty(l)&&null!=c&&"onScroll"===l&&Fr("scroll",r)}switch(n){case"input":V(r),X(r,a,!0);break;case"textarea":V(r),ae(r);break;case"select":case"option":break;default:"function"===typeof a.onClick&&(r.onclick=Xr)}r=o,t.updateQueue=r,null!==r&&(t.flags|=4)}else{l=9===o.nodeType?o:o.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=se(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"===typeof r.is?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),"select"===n&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[po]=t,e[ho]=r,Ps(e,t,!1,!1),t.stateNode=e;e:{switch(l=be(n,r),n){case"dialog":Fr("cancel",e),Fr("close",e),o=r;break;case"iframe":case"object":case"embed":Fr("load",e),o=r;break;case"video":case"audio":for(o=0;o<jr.length;o++)Fr(jr[o],e);o=r;break;case"source":Fr("error",e),o=r;break;case"img":case"image":case"link":Fr("error",e),Fr("load",e),o=r;break;case"details":Fr("toggle",e),o=r;break;case"input":K(e,r),o=Y(e,r),Fr("invalid",e);break;case"option":default:o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=L({},r,{value:void 0}),Fr("invalid",e);break;case"textarea":oe(e,r),o=re(e,r),Fr("invalid",e)}for(a in ye(n,o),c=o)if(c.hasOwnProperty(a)){var u=c[a];"style"===a?ge(e,u):"dangerouslySetInnerHTML"===a?null!=(u=u?u.__html:void 0)&&de(e,u):"children"===a?"string"===typeof u?("textarea"!==n||""!==u)&&fe(e,u):"number"===typeof u&&fe(e,""+u):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(s.hasOwnProperty(a)?null!=u&&"onScroll"===a&&Fr("scroll",e):null!=u&&b(e,a,u,l))}switch(n){case"input":V(e),X(e,r,!1);break;case"textarea":V(e),ae(e);break;case"option":null!=r.value&&e.setAttribute("value",""+Z(r.value));break;case"select":e.multiple=!!r.multiple,null!=(a=r.value)?ne(e,!!r.multiple,a,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"===typeof o.onClick&&(e.onclick=Xr)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Vs(t),null;case 6:if(e&&null!=t.stateNode)As(e,t,e.memoizedProps,r);else{if("string"!==typeof r&&null===t.stateNode)throw Error(i(166));if(n=Yi(Gi.current),Yi(Vi.current),fi(t)){if(r=t.stateNode,n=t.memoizedProps,r[po]=t,(a=r.nodeValue!==n)&&null!==(e=ri))switch(e.tag){case 3:Jr(r.nodeValue,n,0!==(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Jr(r.nodeValue,n,0!==(1&e.mode))}a&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[po]=t,t.stateNode=r}return Vs(t),null;case 13:if(ko(ea),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(ii&&null!==oi&&0!==(1&t.mode)&&0===(128&t.flags))pi(),hi(),t.flags|=98560,a=!1;else if(a=fi(t),null!==r&&null!==r.dehydrated){if(null===e){if(!a)throw Error(i(318));if(!(a=null!==(a=t.memoizedState)?a.dehydrated:null))throw Error(i(317));a[po]=t}else hi(),0===(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Vs(t),a=!1}else null!==ai&&(ac(ai),ai=null),a=!0;if(!a)return 65536&t.flags?t:null}return 0!==(128&t.flags)?(t.lanes=n,t):((r=null!==r)!==(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,0!==(1&t.mode)&&(null===e||0!==(1&ea.current)?0===Al&&(Al=3):mc())),null!==t.updateQueue&&(t.flags|=4),Vs(t),null);case 4:return Qi(),Rs(e,t),null===e&&qr(t.stateNode.containerInfo),Vs(t),null;case 10:return Ti(t.type._context),Vs(t),null;case 19:if(ko(ea),null===(a=t.memoizedState))return Vs(t),null;if(r=0!==(128&t.flags),null===(l=a.rendering))if(r)Hs(a,!1);else{if(0!==Al||null!==e&&0!==(128&e.flags))for(e=t.child;null!==e;){if(null!==(l=ta(e))){for(t.flags|=128,Hs(a,!1),null!==(r=l.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(a=n).flags&=14680066,null===(l=a.alternate)?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=l.childLanes,a.lanes=l.lanes,a.child=l.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=l.memoizedProps,a.memoizedState=l.memoizedState,a.updateQueue=l.updateQueue,a.type=l.type,e=l.dependencies,a.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Oo(ea,1&ea.current|2),t.child}e=e.sibling}null!==a.tail&&Qe()>ql&&(t.flags|=128,r=!0,Hs(a,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=ta(l))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Hs(a,!0),null===a.tail&&"hidden"===a.tailMode&&!l.alternate&&!ii)return Vs(t),null}else 2*Qe()-a.renderingStartTime>ql&&1073741824!==n&&(t.flags|=128,r=!0,Hs(a,!1),t.lanes=4194304);a.isBackwards?(l.sibling=t.child,t.child=l):(null!==(n=a.last)?n.sibling=l:t.child=l,a.last=l)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Qe(),t.sibling=null,n=ea.current,Oo(ea,r?1&n|2:1&n),t):(Vs(t),null);case 22:case 23:return dc(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!==(1&t.mode)?0!==(1073741824&Rl)&&(Vs(t),6&t.subtreeFlags&&(t.flags|=8192)):Vs(t),null;case 24:case 25:return null}throw Error(i(156,t.tag))}function Gs(e,t){switch(ni(t),t.tag){case 1:return Do(t.type)&&Ao(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Qi(),ko(Io),ko(No),ra(),0!==(65536&(e=t.flags))&&0===(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Xi(t),null;case 13:if(ko(ea),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(i(340));hi()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return ko(ea),null;case 4:return Qi(),null;case 10:return Ti(t.type._context),null;case 22:case 23:return dc(),null;default:return null}}Ps=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Rs=function(){},Ds=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Yi(Vi.current);var i,a=null;switch(n){case"input":o=Y(e,o),r=Y(e,r),a=[];break;case"select":o=L({},o,{value:void 0}),r=L({},r,{value:void 0}),a=[];break;case"textarea":o=re(e,o),r=re(e,r),a=[];break;default:"function"!==typeof o.onClick&&"function"===typeof r.onClick&&(e.onclick=Xr)}for(u in ye(n,r),n=null,o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&null!=o[u])if("style"===u){var l=o[u];for(i in l)l.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(s.hasOwnProperty(u)?a||(a=[]):(a=a||[]).push(u,null));for(u in r){var c=r[u];if(l=null!=o?o[u]:void 0,r.hasOwnProperty(u)&&c!==l&&(null!=c||null!=l))if("style"===u)if(l){for(i in l)!l.hasOwnProperty(i)||c&&c.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in c)c.hasOwnProperty(i)&&l[i]!==c[i]&&(n||(n={}),n[i]=c[i])}else n||(a||(a=[]),a.push(u,n)),n=c;else"dangerouslySetInnerHTML"===u?(c=c?c.__html:void 0,l=l?l.__html:void 0,null!=c&&l!==c&&(a=a||[]).push(u,c)):"children"===u?"string"!==typeof c&&"number"!==typeof c||(a=a||[]).push(u,""+c):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(s.hasOwnProperty(u)?(null!=c&&"onScroll"===u&&Fr("scroll",e),a||l===c||(a=[])):(a=a||[]).push(u,c))}n&&(a=a||[]).push("style",n);var u=a;(t.updateQueue=u)&&(t.flags|=4)}},As=function(e,t,n,r){n!==r&&(t.flags|=4)};var Ys=!1,Ks=!1,Qs="function"===typeof WeakSet?WeakSet:Set,Js=null;function Xs(e,t){var n=e.ref;if(null!==n)if("function"===typeof n)try{n(null)}catch(r){Sc(e,t,r)}else n.current=null}function el(e,t,n){try{n()}catch(r){Sc(e,t,r)}}var tl=!1;function nl(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,void 0!==i&&el(t,n,i)}o=o.next}while(o!==r)}}function rl(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect: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 ol(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"===typeof t?t(e):t.current=e}}function il(e){var t=e.alternate;null!==t&&(e.alternate=null,il(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[po],delete t[ho],delete t[go],delete t[vo],delete t[yo])),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 al(e){return 5===e.tag||3===e.tag||4===e.tag}function sl(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||al(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function ll(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!==(n=n._reactRootContainer)&&void 0!==n||null!==t.onclick||(t.onclick=Xr));else if(4!==r&&null!==(e=e.child))for(ll(e,t,n),e=e.sibling;null!==e;)ll(e,t,n),e=e.sibling}function cl(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(cl(e,t,n),e=e.sibling;null!==e;)cl(e,t,n),e=e.sibling}var ul=null,dl=!1;function fl(e,t,n){for(n=n.child;null!==n;)pl(e,t,n),n=n.sibling}function pl(e,t,n){if(it&&"function"===typeof it.onCommitFiberUnmount)try{it.onCommitFiberUnmount(ot,n)}catch(s){}switch(n.tag){case 5:Ks||Xs(n,t);case 6:var r=ul,o=dl;ul=null,fl(e,t,n),dl=o,null!==(ul=r)&&(dl?(e=ul,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):ul.removeChild(n.stateNode));break;case 18:null!==ul&&(dl?(e=ul,n=n.stateNode,8===e.nodeType?lo(e.parentNode,n):1===e.nodeType&&lo(e,n),qt(e)):lo(ul,n.stateNode));break;case 4:r=ul,o=dl,ul=n.stateNode.containerInfo,dl=!0,fl(e,t,n),ul=r,dl=o;break;case 0:case 11:case 14:case 15:if(!Ks&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,void 0!==a&&(0!==(2&i)||0!==(4&i))&&el(n,t,a),o=o.next}while(o!==r)}fl(e,t,n);break;case 1:if(!Ks&&(Xs(n,t),"function"===typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Sc(n,t,s)}fl(e,t,n);break;case 21:fl(e,t,n);break;case 22:1&n.mode?(Ks=(r=Ks)||null!==n.memoizedState,fl(e,t,n),Ks=r):fl(e,t,n);break;default:fl(e,t,n)}}function hl(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Qs),t.forEach((function(t){var r=Tc.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function ml(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var o=n[r];try{var a=e,s=t,l=s;e:for(;null!==l;){switch(l.tag){case 5:ul=l.stateNode,dl=!1;break e;case 3:case 4:ul=l.stateNode.containerInfo,dl=!0;break e}l=l.return}if(null===ul)throw Error(i(160));pl(a,s,o),ul=null,dl=!1;var c=o.alternate;null!==c&&(c.return=null),o.return=null}catch(u){Sc(o,t,u)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)gl(t,e),t=t.sibling}function gl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ml(t,e),vl(e),4&r){try{nl(3,e,e.return),rl(3,e)}catch(g){Sc(e,e.return,g)}try{nl(5,e,e.return)}catch(g){Sc(e,e.return,g)}}break;case 1:ml(t,e),vl(e),512&r&&null!==n&&Xs(n,n.return);break;case 5:if(ml(t,e),vl(e),512&r&&null!==n&&Xs(n,n.return),32&e.flags){var o=e.stateNode;try{fe(o,"")}catch(g){Sc(e,e.return,g)}}if(4&r&&null!=(o=e.stateNode)){var a=e.memoizedProps,s=null!==n?n.memoizedProps:a,l=e.type,c=e.updateQueue;if(e.updateQueue=null,null!==c)try{"input"===l&&"radio"===a.type&&null!=a.name&&Q(o,a),be(l,s);var u=be(l,a);for(s=0;s<c.length;s+=2){var d=c[s],f=c[s+1];"style"===d?ge(o,f):"dangerouslySetInnerHTML"===d?de(o,f):"children"===d?fe(o,f):b(o,d,f,u)}switch(l){case"input":J(o,a);break;case"textarea":ie(o,a);break;case"select":var p=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!a.multiple;var h=a.value;null!=h?ne(o,!!a.multiple,h,!1):p!==!!a.multiple&&(null!=a.defaultValue?ne(o,!!a.multiple,a.defaultValue,!0):ne(o,!!a.multiple,a.multiple?[]:"",!1))}o[ho]=a}catch(g){Sc(e,e.return,g)}}break;case 6:if(ml(t,e),vl(e),4&r){if(null===e.stateNode)throw Error(i(162));o=e.stateNode,a=e.memoizedProps;try{o.nodeValue=a}catch(g){Sc(e,e.return,g)}}break;case 3:if(ml(t,e),vl(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{qt(t.containerInfo)}catch(g){Sc(e,e.return,g)}break;case 4:default:ml(t,e),vl(e);break;case 13:ml(t,e),vl(e),8192&(o=e.child).flags&&(a=null!==o.memoizedState,o.stateNode.isHidden=a,!a||null!==o.alternate&&null!==o.alternate.memoizedState||(Ul=Qe())),4&r&&hl(e);break;case 22:if(d=null!==n&&null!==n.memoizedState,1&e.mode?(Ks=(u=Ks)||d,ml(t,e),Ks=u):ml(t,e),vl(e),8192&r){if(u=null!==e.memoizedState,(e.stateNode.isHidden=u)&&!d&&0!==(1&e.mode))for(Js=e,d=e.child;null!==d;){for(f=Js=d;null!==Js;){switch(h=(p=Js).child,p.tag){case 0:case 11:case 14:case 15:nl(4,p,p.return);break;case 1:Xs(p,p.return);var m=p.stateNode;if("function"===typeof m.componentWillUnmount){r=p,n=p.return;try{t=r,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(g){Sc(r,n,g)}}break;case 5:Xs(p,p.return);break;case 22:if(null!==p.memoizedState){El(f);continue}}null!==h?(h.return=p,Js=h):El(f)}d=d.sibling}e:for(d=null,f=e;;){if(5===f.tag){if(null===d){d=f;try{o=f.stateNode,u?"function"===typeof(a=o.style).setProperty?a.setProperty("display","none","important"):a.display="none":(l=f.stateNode,s=void 0!==(c=f.memoizedProps.style)&&null!==c&&c.hasOwnProperty("display")?c.display:null,l.style.display=me("display",s))}catch(g){Sc(e,e.return,g)}}}else if(6===f.tag){if(null===d)try{f.stateNode.nodeValue=u?"":f.memoizedProps}catch(g){Sc(e,e.return,g)}}else if((22!==f.tag&&23!==f.tag||null===f.memoizedState||f===e)&&null!==f.child){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;null===f.sibling;){if(null===f.return||f.return===e)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:ml(t,e),vl(e),4&r&&hl(e);case 21:}}function vl(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(al(n)){var r=n;break e}n=n.return}throw Error(i(160))}switch(r.tag){case 5:var o=r.stateNode;32&r.flags&&(fe(o,""),r.flags&=-33),cl(e,sl(e),o);break;case 3:case 4:var a=r.stateNode.containerInfo;ll(e,sl(e),a);break;default:throw Error(i(161))}}catch(s){Sc(e,e.return,s)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function yl(e,t,n){Js=e,bl(e,t,n)}function bl(e,t,n){for(var r=0!==(1&e.mode);null!==Js;){var o=Js,i=o.child;if(22===o.tag&&r){var a=null!==o.memoizedState||Ys;if(!a){var s=o.alternate,l=null!==s&&null!==s.memoizedState||Ks;s=Ys;var c=Ks;if(Ys=a,(Ks=l)&&!c)for(Js=o;null!==Js;)l=(a=Js).child,22===a.tag&&null!==a.memoizedState?_l(o):null!==l?(l.return=a,Js=l):_l(o);for(;null!==i;)Js=i,bl(i,t,n),i=i.sibling;Js=o,Ys=s,Ks=c}wl(e)}else 0!==(8772&o.subtreeFlags)&&null!==i?(i.return=o,Js=i):wl(e)}}function wl(e){for(;null!==Js;){var t=Js;if(0!==(8772&t.flags)){var n=t.alternate;try{if(0!==(8772&t.flags))switch(t.tag){case 0:case 11:case 15:Ks||rl(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Ks)if(null===n)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:ns(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&Zi(t,a,r);break;case 3:var s=t.updateQueue;if(null!==s){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Zi(t,s,n)}break;case 5:var l=t.stateNode;if(null===n&&4&t.flags){n=l;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var u=t.alternate;if(null!==u){var d=u.memoizedState;if(null!==d){var f=d.dehydrated;null!==f&&qt(f)}}}break;default:throw Error(i(163))}Ks||512&t.flags&&ol(t)}catch(p){Sc(t,t.return,p)}}if(t===e){Js=null;break}if(null!==(n=t.sibling)){n.return=t.return,Js=n;break}Js=t.return}}function El(e){for(;null!==Js;){var t=Js;if(t===e){Js=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Js=n;break}Js=t.return}}function _l(e){for(;null!==Js;){var t=Js;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{rl(4,t)}catch(l){Sc(t,n,l)}break;case 1:var r=t.stateNode;if("function"===typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(l){Sc(t,o,l)}}var i=t.return;try{ol(t)}catch(l){Sc(t,i,l)}break;case 5:var a=t.return;try{ol(t)}catch(l){Sc(t,a,l)}}}catch(l){Sc(t,t.return,l)}if(t===e){Js=null;break}var s=t.sibling;if(null!==s){s.return=t.return,Js=s;break}Js=t.return}}var xl,Sl=Math.ceil,Cl=w.ReactCurrentDispatcher,kl=w.ReactCurrentOwner,Ol=w.ReactCurrentBatchConfig,Tl=0,Nl=null,Il=null,Pl=0,Rl=0,Dl=Co(0),Al=0,jl=null,Ml=0,Ll=0,zl=0,Fl=null,Bl=null,Ul=0,ql=1/0,$l=null,Zl=!1,Hl=null,Vl=null,Wl=!1,Gl=null,Yl=0,Kl=0,Ql=null,Jl=-1,Xl=0;function ec(){return 0!==(6&Tl)?Qe():-1!==Jl?Jl:Jl=Qe()}function tc(e){return 0===(1&e.mode)?1:0!==(2&Tl)&&0!==Pl?Pl&-Pl:null!==gi.transition?(0===Xl&&(Xl=mt()),Xl):0!==(e=bt)?e:e=void 0===(e=window.event)?16:Kt(e.type)}function nc(e,t,n,r){if(50<Kl)throw Kl=0,Ql=null,Error(i(185));vt(e,n,r),0!==(2&Tl)&&e===Nl||(e===Nl&&(0===(2&Tl)&&(Ll|=n),4===Al&&sc(e,Pl)),rc(e,r),1===n&&0===Tl&&0===(1&t.mode)&&(ql=Qe()+500,Bo&&$o()))}function rc(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-at(i),s=1<<a,l=o[a];-1===l?0!==(s&n)&&0===(s&r)||(o[a]=pt(s,t)):l<=t&&(e.expiredLanes|=s),i&=~s}}(e,t);var r=ft(e,e===Nl?Pl:0);if(0===r)null!==n&&Ge(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Ge(n),1===t)0===e.tag?function(e){Bo=!0,qo(e)}(lc.bind(null,e)):qo(lc.bind(null,e)),ao((function(){0===(6&Tl)&&$o()})),n=null;else{switch(wt(r)){case 1:n=Xe;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=Nc(n,oc.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function oc(e,t){if(Jl=-1,Xl=0,0!==(6&Tl))throw Error(i(327));var n=e.callbackNode;if(_c()&&e.callbackNode!==n)return null;var r=ft(e,e===Nl?Pl:0);if(0===r)return null;if(0!==(30&r)||0!==(r&e.expiredLanes)||t)t=gc(e,r);else{t=r;var o=Tl;Tl|=2;var a=hc();for(Nl===e&&Pl===t||($l=null,ql=Qe()+500,fc(e,t));;)try{yc();break}catch(l){pc(e,l)}Oi(),Cl.current=a,Tl=o,null!==Il?t=0:(Nl=null,Pl=0,t=Al)}if(0!==t){if(2===t&&(0!==(o=ht(e))&&(r=o,t=ic(e,o))),1===t)throw n=jl,fc(e,0),sc(e,r),rc(e,Qe()),n;if(6===t)sc(e,r);else{if(o=e.current.alternate,0===(30&r)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!sr(i(),o))return!1}catch(s){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(o)&&(2===(t=gc(e,r))&&(0!==(a=ht(e))&&(r=a,t=ic(e,a))),1===t))throw n=jl,fc(e,0),sc(e,r),rc(e,Qe()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(i(345));case 2:case 5:Ec(e,Bl,$l);break;case 3:if(sc(e,r),(130023424&r)===r&&10<(t=Ul+500-Qe())){if(0!==ft(e,0))break;if(((o=e.suspendedLanes)&r)!==r){ec(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=ro(Ec.bind(null,e,Bl,$l),t);break}Ec(e,Bl,$l);break;case 4:if(sc(e,r),(4194240&r)===r)break;for(t=e.eventTimes,o=-1;0<r;){var s=31-at(r);a=1<<s,(s=t[s])>o&&(o=s),r&=~a}if(r=o,10<(r=(120>(r=Qe()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Sl(r/1960))-r)){e.timeoutHandle=ro(Ec.bind(null,e,Bl,$l),r);break}Ec(e,Bl,$l);break;default:throw Error(i(329))}}}return rc(e,Qe()),e.callbackNode===n?oc.bind(null,e):null}function ic(e,t){var n=Fl;return e.current.memoizedState.isDehydrated&&(fc(e,t).flags|=256),2!==(e=gc(e,t))&&(t=Bl,Bl=n,null!==t&&ac(t)),e}function ac(e){null===Bl?Bl=e:Bl.push.apply(Bl,e)}function sc(e,t){for(t&=~zl,t&=~Ll,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-at(t),r=1<<n;e[n]=-1,t&=~r}}function lc(e){if(0!==(6&Tl))throw Error(i(327));_c();var t=ft(e,0);if(0===(1&t))return rc(e,Qe()),null;var n=gc(e,t);if(0!==e.tag&&2===n){var r=ht(e);0!==r&&(t=r,n=ic(e,r))}if(1===n)throw n=jl,fc(e,0),sc(e,t),rc(e,Qe()),n;if(6===n)throw Error(i(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Ec(e,Bl,$l),rc(e,Qe()),null}function cc(e,t){var n=Tl;Tl|=1;try{return e(t)}finally{0===(Tl=n)&&(ql=Qe()+500,Bo&&$o())}}function uc(e){null!==Gl&&0===Gl.tag&&0===(6&Tl)&&_c();var t=Tl;Tl|=1;var n=Ol.transition,r=bt;try{if(Ol.transition=null,bt=1,e)return e()}finally{bt=r,Ol.transition=n,0===(6&(Tl=t))&&$o()}}function dc(){Rl=Dl.current,ko(Dl)}function fc(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,oo(n)),null!==Il)for(n=Il.return;null!==n;){var r=n;switch(ni(r),r.tag){case 1:null!==(r=r.type.childContextTypes)&&void 0!==r&&Ao();break;case 3:Qi(),ko(Io),ko(No),ra();break;case 5:Xi(r);break;case 4:Qi();break;case 13:case 19:ko(ea);break;case 10:Ti(r.type._context);break;case 22:case 23:dc()}n=n.return}if(Nl=e,Il=e=Dc(e.current,null),Pl=Rl=t,Al=0,jl=null,zl=Ll=Ml=0,Bl=Fl=null,null!==Ri){for(t=0;t<Ri.length;t++)if(null!==(r=(n=Ri[t]).interleaved)){n.interleaved=null;var o=r.next,i=n.pending;if(null!==i){var a=i.next;i.next=o,r.next=a}n.pending=r}Ri=null}return e}function pc(e,t){for(;;){var n=Il;try{if(Oi(),oa.current=Ja,ua){for(var r=sa.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}ua=!1}if(aa=0,ca=la=sa=null,da=!1,fa=0,kl.current=null,null===n||null===n.return){Al=1,jl=t,Il=null;break}e:{var a=e,s=n.return,l=n,c=t;if(t=Pl,l.flags|=32768,null!==c&&"object"===typeof c&&"function"===typeof c.then){var u=c,d=l,f=d.tag;if(0===(1&d.mode)&&(0===f||11===f||15===f)){var p=d.alternate;p?(d.updateQueue=p.updateQueue,d.memoizedState=p.memoizedState,d.lanes=p.lanes):(d.updateQueue=null,d.memoizedState=null)}var h=gs(s);if(null!==h){h.flags&=-257,vs(h,s,l,0,t),1&h.mode&&ms(a,u,t),c=u;var m=(t=h).updateQueue;if(null===m){var g=new Set;g.add(c),t.updateQueue=g}else m.add(c);break e}if(0===(1&t)){ms(a,u,t),mc();break e}c=Error(i(426))}else if(ii&&1&l.mode){var v=gs(s);if(null!==v){0===(65536&v.flags)&&(v.flags|=256),vs(v,s,l,0,t),mi(cs(c,l));break e}}a=c=cs(c,l),4!==Al&&(Al=2),null===Fl?Fl=[a]:Fl.push(a),a=s;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,qi(a,ps(0,c,t));break e;case 1:l=c;var y=a.type,b=a.stateNode;if(0===(128&a.flags)&&("function"===typeof y.getDerivedStateFromError||null!==b&&"function"===typeof b.componentDidCatch&&(null===Vl||!Vl.has(b)))){a.flags|=65536,t&=-t,a.lanes|=t,qi(a,hs(a,l,t));break e}}a=a.return}while(null!==a)}wc(n)}catch(w){t=w,Il===n&&null!==n&&(Il=n=n.return);continue}break}}function hc(){var e=Cl.current;return Cl.current=Ja,null===e?Ja:e}function mc(){0!==Al&&3!==Al&&2!==Al||(Al=4),null===Nl||0===(268435455&Ml)&&0===(268435455&Ll)||sc(Nl,Pl)}function gc(e,t){var n=Tl;Tl|=2;var r=hc();for(Nl===e&&Pl===t||($l=null,fc(e,t));;)try{vc();break}catch(o){pc(e,o)}if(Oi(),Tl=n,Cl.current=r,null!==Il)throw Error(i(261));return Nl=null,Pl=0,Al}function vc(){for(;null!==Il;)bc(Il)}function yc(){for(;null!==Il&&!Ye();)bc(Il)}function bc(e){var t=xl(e.alternate,e,Rl);e.memoizedProps=e.pendingProps,null===t?wc(e):Il=t,kl.current=null}function wc(e){var t=e;do{var n=t.alternate;if(e=t.return,0===(32768&t.flags)){if(null!==(n=Ws(n,t,Rl)))return void(Il=n)}else{if(null!==(n=Gs(n,t)))return n.flags&=32767,void(Il=n);if(null===e)return Al=6,void(Il=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(Il=t);Il=t=e}while(null!==t);0===Al&&(Al=5)}function Ec(e,t,n){var r=bt,o=Ol.transition;try{Ol.transition=null,bt=1,function(e,t,n,r){do{_c()}while(null!==Gl);if(0!==(6&Tl))throw Error(i(327));n=e.finishedWork;var o=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(i(177));e.callbackNode=null,e.callbackPriority=0;var a=n.lanes|n.childLanes;if(function(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<n;){var o=31-at(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}(e,a),e===Nl&&(Il=Nl=null,Pl=0),0===(2064&n.subtreeFlags)&&0===(2064&n.flags)||Wl||(Wl=!0,Nc(tt,(function(){return _c(),null}))),a=0!==(15990&n.flags),0!==(15990&n.subtreeFlags)||a){a=Ol.transition,Ol.transition=null;var s=bt;bt=1;var l=Tl;Tl|=4,kl.current=null,function(e,t){if(eo=Zt,pr(e=fr())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var o=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch(E){n=null;break e}var s=0,l=-1,c=-1,u=0,d=0,f=e,p=null;t:for(;;){for(var h;f!==n||0!==o&&3!==f.nodeType||(l=s+o),f!==a||0!==r&&3!==f.nodeType||(c=s+r),3===f.nodeType&&(s+=f.nodeValue.length),null!==(h=f.firstChild);)p=f,f=h;for(;;){if(f===e)break t;if(p===n&&++u===o&&(l=s),p===a&&++d===r&&(c=s),null!==(h=f.nextSibling))break;p=(f=p).parentNode}f=h}n=-1===l||-1===c?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(to={focusedElem:e,selectionRange:n},Zt=!1,Js=t;null!==Js;)if(e=(t=Js).child,0!==(1028&t.subtreeFlags)&&null!==e)e.return=t,Js=e;else for(;null!==Js;){t=Js;try{var m=t.alternate;if(0!==(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var g=m.memoizedProps,v=m.memoizedState,y=t.stateNode,b=y.getSnapshotBeforeUpdate(t.elementType===t.type?g:ns(t.type,g),v);y.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var w=t.stateNode.containerInfo;1===w.nodeType?w.textContent="":9===w.nodeType&&w.documentElement&&w.removeChild(w.documentElement);break;default:throw Error(i(163))}}catch(E){Sc(t,t.return,E)}if(null!==(e=t.sibling)){e.return=t.return,Js=e;break}Js=t.return}m=tl,tl=!1}(e,n),gl(n,e),hr(to),Zt=!!eo,to=eo=null,e.current=n,yl(n,e,o),Ke(),Tl=l,bt=s,Ol.transition=a}else e.current=n;if(Wl&&(Wl=!1,Gl=e,Yl=o),a=e.pendingLanes,0===a&&(Vl=null),function(e){if(it&&"function"===typeof it.onCommitFiberRoot)try{it.onCommitFiberRoot(ot,e,void 0,128===(128&e.current.flags))}catch(t){}}(n.stateNode),rc(e,Qe()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(Zl)throw Zl=!1,e=Hl,Hl=null,e;0!==(1&Yl)&&0!==e.tag&&_c(),a=e.pendingLanes,0!==(1&a)?e===Ql?Kl++:(Kl=0,Ql=e):Kl=0,$o()}(e,t,n,r)}finally{Ol.transition=o,bt=r}return null}function _c(){if(null!==Gl){var e=wt(Yl),t=Ol.transition,n=bt;try{if(Ol.transition=null,bt=16>e?16:e,null===Gl)var r=!1;else{if(e=Gl,Gl=null,Yl=0,0!==(6&Tl))throw Error(i(331));var o=Tl;for(Tl|=4,Js=e.current;null!==Js;){var a=Js,s=a.child;if(0!==(16&Js.flags)){var l=a.deletions;if(null!==l){for(var c=0;c<l.length;c++){var u=l[c];for(Js=u;null!==Js;){var d=Js;switch(d.tag){case 0:case 11:case 15:nl(8,d,a)}var f=d.child;if(null!==f)f.return=d,Js=f;else for(;null!==Js;){var p=(d=Js).sibling,h=d.return;if(il(d),d===u){Js=null;break}if(null!==p){p.return=h,Js=p;break}Js=h}}}var m=a.alternate;if(null!==m){var g=m.child;if(null!==g){m.child=null;do{var v=g.sibling;g.sibling=null,g=v}while(null!==g)}}Js=a}}if(0!==(2064&a.subtreeFlags)&&null!==s)s.return=a,Js=s;else e:for(;null!==Js;){if(0!==(2048&(a=Js).flags))switch(a.tag){case 0:case 11:case 15:nl(9,a,a.return)}var y=a.sibling;if(null!==y){y.return=a.return,Js=y;break e}Js=a.return}}var b=e.current;for(Js=b;null!==Js;){var w=(s=Js).child;if(0!==(2064&s.subtreeFlags)&&null!==w)w.return=s,Js=w;else e:for(s=b;null!==Js;){if(0!==(2048&(l=Js).flags))try{switch(l.tag){case 0:case 11:case 15:rl(9,l)}}catch(_){Sc(l,l.return,_)}if(l===s){Js=null;break e}var E=l.sibling;if(null!==E){E.return=l.return,Js=E;break e}Js=l.return}}if(Tl=o,$o(),it&&"function"===typeof it.onPostCommitFiberRoot)try{it.onPostCommitFiberRoot(ot,e)}catch(_){}r=!0}return r}finally{bt=n,Ol.transition=t}}return!1}function xc(e,t,n){e=Bi(e,t=ps(0,t=cs(n,t),1),1),t=ec(),null!==e&&(vt(e,1,t),rc(e,t))}function Sc(e,t,n){if(3===e.tag)xc(e,e,n);else for(;null!==t;){if(3===t.tag){xc(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"===typeof t.type.getDerivedStateFromError||"function"===typeof r.componentDidCatch&&(null===Vl||!Vl.has(r))){t=Bi(t,e=hs(t,e=cs(n,e),1),1),e=ec(),null!==t&&(vt(t,1,e),rc(t,e));break}}t=t.return}}function Cc(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=ec(),e.pingedLanes|=e.suspendedLanes&n,Nl===e&&(Pl&n)===n&&(4===Al||3===Al&&(130023424&Pl)===Pl&&500>Qe()-Ul?fc(e,0):zl|=n),rc(e,t)}function kc(e,t){0===t&&(0===(1&e.mode)?t=1:(t=ut,0===(130023424&(ut<<=1))&&(ut=4194304)));var n=ec();null!==(e=ji(e,t))&&(vt(e,t,n),rc(e,n))}function Oc(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),kc(e,n)}function Tc(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;null!==o&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(i(314))}null!==r&&r.delete(t),kc(e,n)}function Nc(e,t){return We(e,t)}function Ic(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 Pc(e,t,n,r){return new Ic(e,t,n,r)}function Rc(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Dc(e,t){var n=e.alternate;return null===n?((n=Pc(e.tag,t,e.key,e.mode)).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=14680064&e.flags,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=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ac(e,t,n,r,o,a){var s=2;if(r=e,"function"===typeof e)Rc(e)&&(s=1);else if("string"===typeof e)s=5;else e:switch(e){case x:return jc(n.children,o,a,t);case S:s=8,o|=8;break;case C:return(e=Pc(12,n,t,2|o)).elementType=C,e.lanes=a,e;case N:return(e=Pc(13,n,t,o)).elementType=N,e.lanes=a,e;case I:return(e=Pc(19,n,t,o)).elementType=I,e.lanes=a,e;case D:return Mc(n,o,a,t);default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case k:s=10;break e;case O:s=9;break e;case T:s=11;break e;case P:s=14;break e;case R:s=16,r=null;break e}throw Error(i(130,null==e?e:typeof e,""))}return(t=Pc(s,n,t,o)).elementType=e,t.type=r,t.lanes=a,t}function jc(e,t,n,r){return(e=Pc(7,e,r,t)).lanes=n,e}function Mc(e,t,n,r){return(e=Pc(22,e,r,t)).elementType=D,e.lanes=n,e.stateNode={isHidden:!1},e}function Lc(e,t,n){return(e=Pc(6,e,null,t)).lanes=n,e}function zc(e,t,n){return(t=Pc(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Fc(e,t,n,r,o){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=gt(0),this.expirationTimes=gt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gt(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Bc(e,t,n,r,o,i,a,s,l){return e=new Fc(e,t,n,s,l),1===t?(t=1,!0===i&&(t|=8)):t=0,i=Pc(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Li(i),e}function Uc(e){if(!e)return To;e:{if(qe(e=e._reactInternals)!==e||1!==e.tag)throw Error(i(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Do(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(i(171))}if(1===e.tag){var n=e.type;if(Do(n))return Mo(e,n,t)}return t}function qc(e,t,n,r,o,i,a,s,l){return(e=Bc(n,r,!0,e,0,i,0,s,l)).context=Uc(null),n=e.current,(i=Fi(r=ec(),o=tc(n))).callback=void 0!==t&&null!==t?t:null,Bi(n,i,o),e.current.lanes=o,vt(e,o,r),rc(e,r),e}function $c(e,t,n,r){var o=t.current,i=ec(),a=tc(o);return n=Uc(n),null===t.context?t.context=n:t.pendingContext=n,(t=Fi(i,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Bi(o,t,a))&&(nc(e,o,a,i),Ui(e,o,a)),a}function Zc(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Hc(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Vc(e,t){Hc(e,t),(e=e.alternate)&&Hc(e,t)}xl=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Io.current)bs=!0;else{if(0===(e.lanes&n)&&0===(128&t.flags))return bs=!1,function(e,t,n){switch(t.tag){case 3:Ns(t),hi();break;case 5:Ji(t);break;case 1:Do(t.type)&&Lo(t);break;case 4:Ki(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Oo(xi,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Oo(ea,1&ea.current),t.flags|=128,null):0!==(n&t.child.childLanes)?Ls(e,t,n):(Oo(ea,1&ea.current),null!==(e=Zs(e,t,n))?e.sibling:null);Oo(ea,1&ea.current);break;case 19:if(r=0!==(n&t.childLanes),0!==(128&e.flags)){if(r)return qs(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),Oo(ea,ea.current),r)break;return null;case 22:case 23:return t.lanes=0,Ss(e,t,n)}return Zs(e,t,n)}(e,t,n);bs=0!==(131072&e.flags)}else bs=!1,ii&&0!==(1048576&t.flags)&&ei(t,Wo,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;$s(e,t),e=t.pendingProps;var o=Ro(t,No.current);Ii(t,n),o=ga(null,t,r,e,o,n);var a=va();return t.flags|=1,"object"===typeof o&&null!==o&&"function"===typeof o.render&&void 0===o.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Do(r)?(a=!0,Lo(t)):a=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,Li(t),o.updater=os,t.stateNode=o,o._reactInternals=t,ls(t,r,e,n),t=Ts(null,t,r,!0,a,n)):(t.tag=0,ii&&a&&ti(t),ws(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch($s(e,t),e=t.pendingProps,r=(o=r._init)(r._payload),t.type=r,o=t.tag=function(e){if("function"===typeof e)return Rc(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===T)return 11;if(e===P)return 14}return 2}(r),e=ns(r,e),o){case 0:t=ks(null,t,r,e,n);break e;case 1:t=Os(null,t,r,e,n);break e;case 11:t=Es(null,t,r,e,n);break e;case 14:t=_s(null,t,r,ns(r.type,e),n);break e}throw Error(i(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,ks(e,t,r,o=t.elementType===r?o:ns(r,o),n);case 1:return r=t.type,o=t.pendingProps,Os(e,t,r,o=t.elementType===r?o:ns(r,o),n);case 3:e:{if(Ns(t),null===e)throw Error(i(387));r=t.pendingProps,o=(a=t.memoizedState).element,zi(e,t),$i(t,r,null,n);var s=t.memoizedState;if(r=s.element,a.isDehydrated){if(a={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=Is(e,t,r,n,o=cs(Error(i(423)),t));break e}if(r!==o){t=Is(e,t,r,n,o=cs(Error(i(424)),t));break e}for(oi=co(t.stateNode.containerInfo.firstChild),ri=t,ii=!0,ai=null,n=_i(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(hi(),r===o){t=Zs(e,t,n);break e}ws(e,t,r,n)}t=t.child}return t;case 5:return Ji(t),null===e&&ui(t),r=t.type,o=t.pendingProps,a=null!==e?e.memoizedProps:null,s=o.children,no(r,o)?s=null:null!==a&&no(r,a)&&(t.flags|=32),Cs(e,t),ws(e,t,s,n),t.child;case 6:return null===e&&ui(t),null;case 13:return Ls(e,t,n);case 4:return Ki(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Ei(t,null,r,n):ws(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,Es(e,t,r,o=t.elementType===r?o:ns(r,o),n);case 7:return ws(e,t,t.pendingProps,n),t.child;case 8:case 12:return ws(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,a=t.memoizedProps,s=o.value,Oo(xi,r._currentValue),r._currentValue=s,null!==a)if(sr(a.value,s)){if(a.children===o.children&&!Io.current){t=Zs(e,t,n);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var l=a.dependencies;if(null!==l){s=a.child;for(var c=l.firstContext;null!==c;){if(c.context===r){if(1===a.tag){(c=Fi(-1,n&-n)).tag=2;var u=a.updateQueue;if(null!==u){var d=(u=u.shared).pending;null===d?c.next=c:(c.next=d.next,d.next=c),u.pending=c}}a.lanes|=n,null!==(c=a.alternate)&&(c.lanes|=n),Ni(a.return,n,t),l.lanes|=n;break}c=c.next}}else if(10===a.tag)s=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(s=a.return))throw Error(i(341));s.lanes|=n,null!==(l=s.alternate)&&(l.lanes|=n),Ni(s,n,t),s=a.sibling}else s=a.child;if(null!==s)s.return=a;else for(s=a;null!==s;){if(s===t){s=null;break}if(null!==(a=s.sibling)){a.return=s.return,s=a;break}s=s.return}a=s}ws(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Ii(t,n),r=r(o=Pi(o)),t.flags|=1,ws(e,t,r,n),t.child;case 14:return o=ns(r=t.type,t.pendingProps),_s(e,t,r,o=ns(r.type,o),n);case 15:return xs(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ns(r,o),$s(e,t),t.tag=1,Do(r)?(e=!0,Lo(t)):e=!1,Ii(t,n),as(t,r,o),ls(t,r,o,n),Ts(null,t,r,!0,e,n);case 19:return qs(e,t,n);case 22:return Ss(e,t,n)}throw Error(i(156,t.tag))};var Wc="function"===typeof reportError?reportError:function(e){console.error(e)};function Gc(e){this._internalRoot=e}function Yc(e){this._internalRoot=e}function Kc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Qc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Jc(){}function Xc(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i;if("function"===typeof o){var s=o;o=function(){var e=Zc(a);s.call(e)}}$c(t,a,e,o)}else a=function(e,t,n,r,o){if(o){if("function"===typeof r){var i=r;r=function(){var e=Zc(a);i.call(e)}}var a=qc(t,r,e,0,null,!1,0,"",Jc);return e._reactRootContainer=a,e[mo]=a.current,qr(8===e.nodeType?e.parentNode:e),uc(),a}for(;o=e.lastChild;)e.removeChild(o);if("function"===typeof r){var s=r;r=function(){var e=Zc(l);s.call(e)}}var l=Bc(e,0,!1,null,0,!1,0,"",Jc);return e._reactRootContainer=l,e[mo]=l.current,qr(8===e.nodeType?e.parentNode:e),uc((function(){$c(t,l,n,r)})),l}(n,t,e,o,r);return Zc(a)}Yc.prototype.render=Gc.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(i(409));$c(e,t,null,null)},Yc.prototype.unmount=Gc.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;uc((function(){$c(null,e,null,null)})),t[mo]=null}},Yc.prototype.unstable_scheduleHydration=function(e){if(e){var t=St();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Dt.length&&0!==t&&t<Dt[n].priority;n++);Dt.splice(n,0,e),0===n&&Lt(e)}},Et=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=dt(t.pendingLanes);0!==n&&(yt(t,1|n),rc(t,Qe()),0===(6&Tl)&&(ql=Qe()+500,$o()))}break;case 13:uc((function(){var t=ji(e,1);if(null!==t){var n=ec();nc(t,e,1,n)}})),Vc(e,1)}},_t=function(e){if(13===e.tag){var t=ji(e,134217728);if(null!==t)nc(t,e,134217728,ec());Vc(e,134217728)}},xt=function(e){if(13===e.tag){var t=tc(e),n=ji(e,t);if(null!==n)nc(n,e,t,ec());Vc(e,t)}},St=function(){return bt},Ct=function(e,t){var n=bt;try{return bt=e,t()}finally{bt=n}},_e=function(e,t,n){switch(t){case"input":if(J(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=_o(r);if(!o)throw Error(i(90));W(r),J(r,o)}}}break;case"textarea":ie(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},Te=cc,Ne=uc;var eu={usingClientEntryPoint:!1,Events:[wo,Eo,_o,ke,Oe,cc]},tu={findFiberByHostInstance:bo,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},nu={bundleType:tu.bundleType,version:tu.version,rendererPackageName:tu.rendererPackageName,rendererConfig:tu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:w.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=He(e))?null:e.stateNode},findFiberByHostInstance:tu.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var ru=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ru.isDisabled&&ru.supportsFiber)try{ot=ru.inject(nu),it=ru}catch(ue){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=eu,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Kc(t))throw Error(i(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:_,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!Kc(e))throw Error(i(299));var n=!1,r="",o=Wc;return null!==t&&void 0!==t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=Bc(e,1,!1,null,0,n,0,r,o),e[mo]=t.current,qr(8===e.nodeType?e.parentNode:e),new Gc(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"===typeof e.render)throw Error(i(188));throw e=Object.keys(e).join(","),Error(i(268,e))}return e=null===(e=He(t))?null:e.stateNode},t.flushSync=function(e){return uc(e)},t.hydrate=function(e,t,n){if(!Qc(t))throw Error(i(200));return Xc(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Kc(e))throw Error(i(405));var r=null!=n&&n.hydratedSources||null,o=!1,a="",s=Wc;if(null!==n&&void 0!==n&&(!0===n.unstable_strictMode&&(o=!0),void 0!==n.identifierPrefix&&(a=n.identifierPrefix),void 0!==n.onRecoverableError&&(s=n.onRecoverableError)),t=qc(t,null,e,1,null!=n?n:null,o,0,a,s),e[mo]=t.current,qr(e),r)for(e=0;e<r.length;e++)o=(o=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new Yc(t)},t.render=function(e,t,n){if(!Qc(t))throw Error(i(200));return Xc(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Qc(e))throw Error(i(40));return!!e._reactRootContainer&&(uc((function(){Xc(null,null,e,!1,(function(){e._reactRootContainer=null,e[mo]=null}))})),!0)},t.unstable_batchedUpdates=cc,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Qc(n))throw Error(i(200));if(null==e||void 0===e._reactInternals)throw Error(i(38));return Xc(e,t,n,!1,r)},t.version="18.3.1-next-f1338f8080-20240426"},63609:(e,t,n)=>{"use strict";var r=n(38886);t.createRoot=r.createRoot,t.hydrateRoot=r.hydrateRoot},38886:(e,t,n)=>{"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(9314)},77808:e=>{var t="undefined"!==typeof Element,n="function"===typeof Map,r="function"===typeof Set,o="function"===typeof ArrayBuffer&&!!ArrayBuffer.isView;function i(e,a){if(e===a)return!0;if(e&&a&&"object"==typeof e&&"object"==typeof a){if(e.constructor!==a.constructor)return!1;var s,l,c,u;if(Array.isArray(e)){if((s=e.length)!=a.length)return!1;for(l=s;0!==l--;)if(!i(e[l],a[l]))return!1;return!0}if(n&&e instanceof Map&&a instanceof Map){if(e.size!==a.size)return!1;for(u=e.entries();!(l=u.next()).done;)if(!a.has(l.value[0]))return!1;for(u=e.entries();!(l=u.next()).done;)if(!i(l.value[1],a.get(l.value[0])))return!1;return!0}if(r&&e instanceof Set&&a instanceof Set){if(e.size!==a.size)return!1;for(u=e.entries();!(l=u.next()).done;)if(!a.has(l.value[0]))return!1;return!0}if(o&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(a)){if((s=e.length)!=a.length)return!1;for(l=s;0!==l--;)if(e[l]!==a[l])return!1;return!0}if(e.constructor===RegExp)return e.source===a.source&&e.flags===a.flags;if(e.valueOf!==Object.prototype.valueOf&&"function"===typeof e.valueOf&&"function"===typeof a.valueOf)return e.valueOf()===a.valueOf();if(e.toString!==Object.prototype.toString&&"function"===typeof e.toString&&"function"===typeof a.toString)return e.toString()===a.toString();if((s=(c=Object.keys(e)).length)!==Object.keys(a).length)return!1;for(l=s;0!==l--;)if(!Object.prototype.hasOwnProperty.call(a,c[l]))return!1;if(t&&e instanceof Element)return!1;for(l=s;0!==l--;)if(("_owner"!==c[l]&&"__v"!==c[l]&&"__o"!==c[l]||!e.$$typeof)&&!i(e[c[l]],a[c[l]]))return!1;return!0}return e!==e&&a!==a}e.exports=function(e,t){try{return i(e,t)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}}},49352:(e,t,n)=>{"use strict";n.d(t,{B6:()=>G,ql:()=>te});var r=n(68963),o=n(77808),i=n.n(o),a=n(32733),s=n.n(a),l=n(69612),c=n.n(l),u=(e=>(e.BASE="base",e.BODY="body",e.HEAD="head",e.HTML="html",e.LINK="link",e.META="meta",e.NOSCRIPT="noscript",e.SCRIPT="script",e.STYLE="style",e.TITLE="title",e.FRAGMENT="Symbol(react.fragment)",e))(u||{}),d={rel:["amphtml","canonical","alternate"]},f={type:["application/ld+json"]},p={charset:"",name:["generator","robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]},h=Object.values(u),m={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},g=Object.entries(m).reduce(((e,t)=>{let[n,r]=t;return e[r]=n,e}),{}),v="data-rh",y="defaultTitle",b="defer",w="encodeSpecialCharacters",E="onChangeClientState",_="titleTemplate",x="prioritizeSeoTags",S=(e,t)=>{for(let n=e.length-1;n>=0;n-=1){const r=e[n];if(Object.prototype.hasOwnProperty.call(r,t))return r[t]}return null},C=e=>{let t=S(e,"title");const n=S(e,_);if(Array.isArray(t)&&(t=t.join("")),n&&t)return n.replace(/%s/g,(()=>t));const r=S(e,y);return t||r||void 0},k=e=>S(e,E)||(()=>{}),O=(e,t)=>t.filter((t=>"undefined"!==typeof t[e])).map((t=>t[e])).reduce(((e,t)=>({...e,...t})),{}),T=(e,t)=>t.filter((e=>"undefined"!==typeof e.base)).map((e=>e.base)).reverse().reduce(((t,n)=>{if(!t.length){const r=Object.keys(n);for(let o=0;o<r.length;o+=1){const i=r[o].toLowerCase();if(-1!==e.indexOf(i)&&n[i])return t.concat(n)}}return t}),[]),N=(e,t,n)=>{const r={};return n.filter((t=>{return!!Array.isArray(t[e])||("undefined"!==typeof t[e]&&(n=`Helmet: ${e} should be of type "Array". Instead found type "${typeof t[e]}"`,console&&"function"===typeof console.warn&&console.warn(n)),!1);var n})).map((t=>t[e])).reverse().reduce(((e,n)=>{const o={};n.filter((e=>{let n;const i=Object.keys(e);for(let r=0;r<i.length;r+=1){const o=i[r],a=o.toLowerCase();-1===t.indexOf(a)||"rel"===n&&"canonical"===e[n].toLowerCase()||"rel"===a&&"stylesheet"===e[a].toLowerCase()||(n=a),-1===t.indexOf(o)||"innerHTML"!==o&&"cssText"!==o&&"itemprop"!==o||(n=o)}if(!n||!e[n])return!1;const a=e[n].toLowerCase();return r[n]||(r[n]={}),o[n]||(o[n]={}),!r[n][a]&&(o[n][a]=!0,!0)})).reverse().forEach((t=>e.push(t)));const i=Object.keys(o);for(let t=0;t<i.length;t+=1){const e=i[t],n={...r[e],...o[e]};r[e]=n}return e}),[]).reverse()},I=(e,t)=>{if(Array.isArray(e)&&e.length)for(let n=0;n<e.length;n+=1){if(e[n][t])return!0}return!1},P=e=>Array.isArray(e)?e.join(""):e,R=(e,t)=>Array.isArray(e)?e.reduce(((e,n)=>(((e,t)=>{const n=Object.keys(e);for(let r=0;r<n.length;r+=1)if(t[n[r]]&&t[n[r]].includes(e[n[r]]))return!0;return!1})(n,t)?e.priority.push(n):e.default.push(n),e)),{priority:[],default:[]}):{default:e,priority:[]},D=(e,t)=>({...e,[t]:void 0}),A=["noscript","script","style"],j=function(e){return!1===(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])?String(e):String(e).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")},M=e=>Object.keys(e).reduce(((t,n)=>{const r="undefined"!==typeof e[n]?`${n}="${e[n]}"`:`${n}`;return t?`${t} ${r}`:r}),""),L=(e,t,n,r)=>{const o=M(n),i=P(t);return o?`<${e} ${v}="true" ${o}>${j(i,r)}</${e}>`:`<${e} ${v}="true">${j(i,r)}</${e}>`},z=function(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return t.reduce(((t,r)=>{const o=r,i=Object.keys(o).filter((e=>!("innerHTML"===e||"cssText"===e))).reduce(((e,t)=>{const r="undefined"===typeof o[t]?t:`${t}="${j(o[t],n)}"`;return e?`${e} ${r}`:r}),""),a=o.innerHTML||o.cssText||"",s=-1===A.indexOf(e);return`${t}<${e} ${v}="true" ${i}${s?"/>":`>${a}</${e}>`}`}),"")},F=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce(((t,n)=>(t[m[n]||n]=e[n],t)),t)},B=(e,t,n)=>{const o=F(n,{key:t,[v]:!0});return[r.createElement("title",o,t)]},U=(e,t)=>t.map(((t,n)=>{const o={key:n,[v]:!0};return Object.keys(t).forEach((e=>{const n=m[e]||e;if("innerHTML"===n||"cssText"===n){const e=t.innerHTML||t.cssText;o.dangerouslySetInnerHTML={__html:e}}else o[n]=t[e]})),r.createElement(e,o)})),q=function(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];switch(e){case"title":return{toComponent:()=>B(e,t.title,t.titleAttributes),toString:()=>L(e,t.title,t.titleAttributes,n)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>F(t),toString:()=>M(t)};default:return{toComponent:()=>U(e,t),toString:()=>z(e,t,n)}}},$=e=>{const{baseTag:t,bodyAttributes:n,encode:r=!0,htmlAttributes:o,noscriptTags:i,styleTags:a,title:s="",titleAttributes:l,prioritizeSeoTags:c}=e;let{linkTags:u,metaTags:h,scriptTags:m}=e,g={toComponent:()=>{},toString:()=>""};return c&&({priorityMethods:g,linkTags:u,metaTags:h,scriptTags:m}=(e=>{let{metaTags:t,linkTags:n,scriptTags:r,encode:o}=e;const i=R(t,p),a=R(n,d),s=R(r,f);return{priorityMethods:{toComponent:()=>[...U("meta",i.priority),...U("link",a.priority),...U("script",s.priority)],toString:()=>`${q("meta",i.priority,o)} ${q("link",a.priority,o)} ${q("script",s.priority,o)}`},metaTags:i.default,linkTags:a.default,scriptTags:s.default}})(e)),{priority:g,base:q("base",t,r),bodyAttributes:q("bodyAttributes",n,r),htmlAttributes:q("htmlAttributes",o,r),link:q("link",u,r),meta:q("meta",h,r),noscript:q("noscript",i,r),script:q("script",m,r),style:q("style",a,r),title:q("title",{title:s,titleAttributes:l},r)}},Z=[],H=!("undefined"===typeof window||!window.document||!window.document.createElement),V=class{instances=[];canUseDOM=H;context;value={setHelmet:e=>{this.context.helmet=e},helmetInstances:{get:()=>this.canUseDOM?Z:this.instances,add:e=>{(this.canUseDOM?Z:this.instances).push(e)},remove:e=>{const t=(this.canUseDOM?Z:this.instances).indexOf(e);(this.canUseDOM?Z:this.instances).splice(t,1)}}};constructor(e,t){this.context=e,this.canUseDOM=t||!1,t||(e.helmet=$({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},W=r.createContext({}),G=class e extends r.Component{static canUseDOM=H;helmetData;constructor(t){super(t),this.helmetData=new V(this.props.context||{},e.canUseDOM)}render(){return r.createElement(W.Provider,{value:this.helmetData.value},this.props.children)}},Y=(e,t)=>{const n=document.head||document.querySelector("head"),r=n.querySelectorAll(`${e}[${v}]`),o=[].slice.call(r),i=[];let a;return t&&t.length&&t.forEach((t=>{const n=document.createElement(e);for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e))if("innerHTML"===e)n.innerHTML=t.innerHTML;else if("cssText"===e)n.styleSheet?n.styleSheet.cssText=t.cssText:n.appendChild(document.createTextNode(t.cssText));else{const r=e,o="undefined"===typeof t[r]?"":t[r];n.setAttribute(e,o)}n.setAttribute(v,"true"),o.some(((e,t)=>(a=t,n.isEqualNode(e))))?o.splice(a,1):i.push(n)})),o.forEach((e=>e.parentNode?.removeChild(e))),i.forEach((e=>n.appendChild(e))),{oldTags:o,newTags:i}},K=(e,t)=>{const n=document.getElementsByTagName(e)[0];if(!n)return;const r=n.getAttribute(v),o=r?r.split(","):[],i=[...o],a=Object.keys(t);for(const s of a){const e=t[s]||"";n.getAttribute(s)!==e&&n.setAttribute(s,e),-1===o.indexOf(s)&&o.push(s);const r=i.indexOf(s);-1!==r&&i.splice(r,1)}for(let s=i.length-1;s>=0;s-=1)n.removeAttribute(i[s]);o.length===i.length?n.removeAttribute(v):n.getAttribute(v)!==a.join(",")&&n.setAttribute(v,a.join(","))},Q=(e,t)=>{const{baseTag:n,bodyAttributes:r,htmlAttributes:o,linkTags:i,metaTags:a,noscriptTags:s,onChangeClientState:l,scriptTags:c,styleTags:u,title:d,titleAttributes:f}=e;K("body",r),K("html",o),((e,t)=>{"undefined"!==typeof e&&document.title!==e&&(document.title=P(e)),K("title",t)})(d,f);const p={baseTag:Y("base",n),linkTags:Y("link",i),metaTags:Y("meta",a),noscriptTags:Y("noscript",s),scriptTags:Y("script",c),styleTags:Y("style",u)},h={},m={};Object.keys(p).forEach((e=>{const{newTags:t,oldTags:n}=p[e];t.length&&(h[e]=t),n.length&&(m[e]=p[e].oldTags)})),t&&t(),l(e,h,m)},J=null,X=e=>{J&&cancelAnimationFrame(J),e.defer?J=requestAnimationFrame((()=>{Q(e,(()=>{J=null}))})):(Q(e),J=null)},ee=class extends r.Component{rendered=!1;shouldComponentUpdate(e){return!c()(e,this.props)}componentDidUpdate(){this.emitChange()}componentWillUnmount(){const{helmetInstances:e}=this.props.context;e.remove(this),this.emitChange()}emitChange(){const{helmetInstances:e,setHelmet:t}=this.props.context;let n=null;const r=(o=e.get().map((e=>{const t={...e.props};return delete t.context,t})),{baseTag:T(["href"],o),bodyAttributes:O("bodyAttributes",o),defer:S(o,b),encode:S(o,w),htmlAttributes:O("htmlAttributes",o),linkTags:N("link",["rel","href"],o),metaTags:N("meta",["name","charset","http-equiv","property","itemprop"],o),noscriptTags:N("noscript",["innerHTML"],o),onChangeClientState:k(o),scriptTags:N("script",["src","innerHTML"],o),styleTags:N("style",["cssText"],o),title:C(o),titleAttributes:O("titleAttributes",o),prioritizeSeoTags:I(o,x)});var o;G.canUseDOM?X(r):$&&(n=$(r)),t(n)}init(){if(this.rendered)return;this.rendered=!0;const{helmetInstances:e}=this.props.context;e.add(this),this.emitChange()}render(){return this.init(),null}},te=class extends r.Component{static defaultProps={defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1};shouldComponentUpdate(e){return!i()(D(this.props,"helmetData"),D(e,"helmetData"))}mapNestedChildrenToProps(e,t){if(!t)return null;switch(e.type){case"script":case"noscript":return{innerHTML:t};case"style":return{cssText:t};default:throw new Error(`<${e.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`)}}flattenArrayTypeChildren(e,t,n,r){return{...t,[e.type]:[...t[e.type]||[],{...n,...this.mapNestedChildrenToProps(e,r)}]}}mapObjectTypeChildren(e,t,n,r){switch(e.type){case"title":return{...t,[e.type]:r,titleAttributes:{...n}};case"body":return{...t,bodyAttributes:{...n}};case"html":return{...t,htmlAttributes:{...n}};default:return{...t,[e.type]:{...n}}}}mapArrayTypeChildrenToProps(e,t){let n={...t};return Object.keys(e).forEach((t=>{n={...n,[t]:e[t]}})),n}warnOnInvalidChildren(e,t){return s()(h.some((t=>e.type===t)),"function"===typeof e.type?"You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.":`Only elements types ${h.join(", ")} are allowed. Helmet does not support rendering <${e.type}> elements. Refer to our API for more information.`),s()(!t||"string"===typeof t||Array.isArray(t)&&!t.some((e=>"string"!==typeof e)),`Helmet expects a string as a child of <${e.type}>. Did you forget to wrap your children in braces? ( <${e.type}>{\`\`}</${e.type}> ) Refer to our API for more information.`),!0}mapChildrenToProps(e,t){let n={};return r.Children.forEach(e,(e=>{if(!e||!e.props)return;const{children:r,...o}=e.props,i=Object.keys(o).reduce(((e,t)=>(e[g[t]||t]=o[t],e)),{});let{type:a}=e;switch("symbol"===typeof a?a=a.toString():this.warnOnInvalidChildren(e,r),a){case"Symbol(react.fragment)":t=this.mapChildrenToProps(r,t);break;case"link":case"meta":case"noscript":case"script":case"style":n=this.flattenArrayTypeChildren(e,n,i,r);break;default:t=this.mapObjectTypeChildren(e,t,i,r)}})),this.mapArrayTypeChildrenToProps(n,t)}render(){const{children:e,...t}=this.props;let n={...t},{helmetData:o}=t;if(e&&(n=this.mapChildrenToProps(e,n)),o&&!(o instanceof V)){o=new V(o.context,!0),delete n.helmetData}return o?r.createElement(ee,{...n,context:o.value}):r.createElement(W.Consumer,null,(e=>r.createElement(ee,{...n,context:e})))}}},9872:(e,t)=>{"use strict";var n=60103,r=60106,o=60107,i=60108,a=60114,s=60109,l=60110,c=60112,u=60113,d=60120,f=60115,p=60116,h=60121,m=60122,g=60117,v=60129,y=60131;if("function"===typeof Symbol&&Symbol.for){var b=Symbol.for;n=b("react.element"),r=b("react.portal"),o=b("react.fragment"),i=b("react.strict_mode"),a=b("react.profiler"),s=b("react.provider"),l=b("react.context"),c=b("react.forward_ref"),u=b("react.suspense"),d=b("react.suspense_list"),f=b("react.memo"),p=b("react.lazy"),h=b("react.block"),m=b("react.server.block"),g=b("react.fundamental"),v=b("react.debug_trace_mode"),y=b("react.legacy_hidden")}function w(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case o:case a:case i:case u:case d:return e;default:switch(e=e&&e.$$typeof){case l:case c:case p:case f:case s:return e;default:return t}}case r:return t}}}t.isContextConsumer=function(e){return w(e)===l}},60380:(e,t,n)=>{"use strict";e.exports=n(9872)},83326:(e,t,n)=>{var r=n(68963),o=n(77065),i=n(50134),a=n(60305),s=r.createElement,l=n(80254),c=n(62937),u=n(81702),d=n(96243),f=n(53767),p=n(68814);e.exports=o({propTypes:{data:i.any.isRequired,search:i.oneOfType([i.func,i.bool]),searchOptions:i.shape({debounceTime:i.number}),onClick:i.func,validateQuery:i.func,isExpanded:i.func,filterOptions:i.shape({cacheResults:i.bool,ignoreCase:i.bool}),query:i.string,verboseShowOriginal:i.bool},getDefaultProps:function(){return{data:null,search:c,searchOptions:{debounceTime:0},className:"",id:"json-"+Date.now(),onClick:p,filterOptions:{cacheResults:!0,ignoreCase:!1},validateQuery:function(e){return e.length>=2},isExpanded:function(e,t){return!1},verboseShowOriginal:!1}},getInitialState:function(){return{query:this.props.query||""}},render:function(){var e=this.props,t=this.state,n=""!==t.query&&e.validateQuery(t.query),r=n?t.filterer(t.query):e.data,o=n&&d(r);return s("div",{className:"json-inspector "+e.className},this.renderToolbar(),o?s("div",{className:"json-inspector__not-found"},"Nothing found"):s(l,{data:r,onClick:e.onClick,id:e.id,getOriginal:this.getOriginal,query:n?new RegExp(t.query,e.filterOptions.ignoreCase?"i":""):null,label:"root",root:!0,isExpanded:e.isExpanded,interactiveLabel:e.interactiveLabel,verboseShowOriginal:e.verboseShowOriginal}))},renderToolbar:function(){var e=this.props.search;if(e)return s("div",{className:"json-inspector__toolbar"},s(e,{onChange:a(this.search,this.props.searchOptions.debounceTime),data:this.props.data,query:this.state.query}))},search:function(e){this.setState({query:e})},componentWillMount:function(){this.createFilterer(this.props.data,this.props.filterOptions)},componentWillReceiveProps:function(e){this.createFilterer(e.data,e.filterOptions),"string"===typeof e.query&&e.query!==this.state.query&&this.setState({query:e.query})},shouldComponentUpdate:function(e,t){return e.query!==this.props.query||t.query!==this.state.query||e.data!==this.props.data||e.onClick!==this.props.onClick},createFilterer:function(e,t){this.setState({filterer:u(e,t)})},getOriginal:function(e){return f(this.props.data,e)}})},81702:(e,t,n)=>{var r=n(65263),o=Object.keys,i=n(20800),a=n(96243);function s(e,t,n){return o(e).reduce((function(o,c){var u,d=e[c];return i(d)?(l(t,c,n)||l(t,d,n))&&(o[c]=d):l(t,c,n)?o[c]=d:(u=s(d,t,n),a(u)||r(o,function(e,t){var n={};return n[e]=t,n}(c,u))),o}),{})}function l(e,t,n){if(t){var r=String(t),o=e;return n.ignoreCase&&(r=r.toLowerCase(),o=o.toLowerCase()),-1!==r.indexOf(o)}}e.exports=function(e,t){t||(t={cacheResults:!0});var n={};return function(r){if(!t.cacheResults)return s(e,r,t);var o;if(!n[r])for(var i=r.length-1;i>0;i-=1)if(o=r.substr(0,i),n[o]){n[r]=s(n[o],r,t);break}return n[r]||(n[r]=s(e,r,t)),n[r]}}},81139:(e,t,n)=>{var r=n(68963),o=n(77065),i=r.createElement;e.exports=o({getDefaultProps:function(){return{string:"",highlight:""}},shouldComponentUpdate:function(e){return e.highlight!==this.props.highlight},render:function(){var e=this.props,t=e.string.search(e.highlight);if(!e.highlight||-1===t)return i("span",null,e.string);var n=e.highlight.source.length,r=e.string.substr(t,n);return i("span",null,e.string.split(e.highlight).map((function(e,t){return i("span",{key:t},t>0?i("span",{className:"json-inspector__hl"},r):null,e)})))}})},96243:e=>{e.exports=function(e){return 0===Object.keys(e).length}},20800:(e,t,n)=>{var r=n(39032);e.exports=function(e){var t=r(e);return"Object"!==t&&"Array"!==t}},80254:(e,t,n)=>{var r=n(68963),o=n(77065),i=n(5083),a=n(88034),s=n(39032),l=n(20800),c=n(81139),u=r.createElement,d=o({getInitialState:function(){return{expanded:this._isInitiallyExpanded(this.props)}},getDefaultProps:function(){return{root:!1,prefix:""}},render:function(){var e="id_"+a(),t=this.props,n={path:this.keypath(),key:t.label.toString(),value:t.data},r=this._onClick.bind(this,n);return u("div",{className:this.getClassName(),id:"leaf-"+this._rootPath()},u("input",{className:"json-inspector__radio",type:"radio",name:t.id,id:e,tabIndex:-1}),u("label",{className:"json-inspector__line",htmlFor:e,onClick:r},u("div",{className:"json-inspector__flatpath"},n.path),u("span",{className:"json-inspector__key"},this.format(n.key),":",this.renderInteractiveLabel(n.key,!0)),this.renderTitle(),this.renderShowOriginalButton()),this.renderChildren())},renderTitle:function(){var e=this.data(),t=s(e);switch(t){case"Array":return u("span",{className:"json-inspector__value json-inspector__value_helper"},"[] "+f(e.length));case"Object":return u("span",{className:"json-inspector__value json-inspector__value_helper"},"{} "+f(Object.keys(e).length));default:return u("span",{className:"json-inspector__value json-inspector__value_"+t.toLowerCase()},this.format(String(e)),this.renderInteractiveLabel(e,!1))}},renderChildren:function(){var e=this.props,t=this._rootPath(),n=this.data();return this.state.expanded&&!l(n)?Object.keys(n).map((function(r){var o=n[r],i=!this.state.original||!!e.verboseShowOriginal&&e.query;return u(d,{data:o,label:r,prefix:t,onClick:e.onClick,id:e.id,query:e.query,getOriginal:i?e.getOriginal:null,key:p(r,o),isExpanded:e.isExpanded,interactiveLabel:e.interactiveLabel,verboseShowOriginal:e.verboseShowOriginal})}),this):null},renderShowOriginalButton:function(){var e=this.props;return l(e.data)||this.state.original||!e.getOriginal||!e.query||h(this.keypath(),e.query)?null:u("span",{className:"json-inspector__show-original",onClick:this._onShowOriginalClick})},renderInteractiveLabel:function(e,t){return"function"===typeof this.props.interactiveLabel?u(this.props.interactiveLabel,{value:String(e),originalValue:e,isKey:t,keypath:this.keypath()}):null},componentWillReceiveProps:function(e){e.query&&this.setState({expanded:!h(e.label,e.query)}),this.props.query&&!e.query&&this.setState({expanded:this._isInitiallyExpanded(e)})},_rootPath:function(){return this.props.prefix+"."+this.props.label},keypath:function(){return this._rootPath().substr(".root.".length)},data:function(){return this.state.original||this.props.data},format:function(e){return u(c,{string:e,highlight:this.props.query})},getClassName:function(){var e="json-inspector__leaf";return this.props.root&&(e+=" json-inspector__leaf_root"),this.state.expanded&&(e+=" json-inspector__leaf_expanded"),l(this.props.data)||(e+=" json-inspector__leaf_composite"),e},toggle:function(){this.setState({expanded:!this.state.expanded})},_onClick:function(e,t){this.toggle(),this.props.onClick(e),t.stopPropagation()},_onShowOriginalClick:function(e){this.setState({original:this.props.getOriginal(this.keypath())}),e.stopPropagation()},_isInitiallyExpanded:function(e){var t=this.keypath();return!!e.root||(e.query?!h(t,e.query)&&"function"===typeof e.getOriginal:e.isExpanded(t,e.data))}});function f(e){return e+(1===e?" item":" items")}function p(e,t){return l(t)?e+":"+i(String(t)):e+"["+s(t)+"]"}function h(e,t){return-1!==e.indexOf(t)}e.exports=d},53767:(e,t,n)=>{var r=n(39032),o=".";function i(e){return parseInt(e,10)}e.exports=function e(t,n){var a=n.split(o),s=a.shift();if(!s)return t;var l=r(t);return"Array"===l&&t[i(s)]?e(t[i(s)],a.join(o)):"Object"===l&&t[s]?e(t[s],a.join(o)):void 0}},68814:e=>{e.exports=function(){}},62937:(e,t,n)=>{var r=n(68963),o=n(77065),i=r.createElement,a=n(68814);e.exports=o({getDefaultProps:function(){return{onChange:a}},render:function(){return i("input",{className:"json-inspector__search",type:"search",placeholder:"Search",onChange:this.onChange})},onChange:function(e){this.props.onChange(e.target.value)}})},39032:e=>{e.exports=function(e){return Object.prototype.toString.call(e).slice(8,-1)}},88034:e=>{var t=Math.ceil(10*Math.random());e.exports=function(){return++t}},65263:e=>{"use strict";e.exports=Object.assign||function(e,t){for(var n,r,o=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),i=1;i<arguments.length;i++){n=arguments[i],r=Object.keys(Object(n));for(var a=0;a<r.length;a++)o[r[a]]=n[r[a]]}return o}},83570:function(e,t,n){var r,o,i;"undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self&&self,o=[n(50134),n(68963)],r=function(t,n){"use strict";var r,o;function i(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}function a(e){if(e&&e.__esModule)return e;if(null===e||"object"!==l(e)&&"function"!==typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=r?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}function s(e){return e&&e.__esModule?e:{default:e}}function l(e){return l="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(e,t,n){return t&&u(e.prototype,t),n&&u(e,n),e}function f(e,t){if("function"!==typeof t&&null!==t)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}}),t&&p(e,t)}function p(e,t){return p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},p(e,t)}function h(e){var t=v();return function(){var n,r=y(e);if(t){var o=y(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m(this,n)}}function m(e,t){return!t||"object"!==l(t)&&"function"!==typeof t?g(e):t}function g(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function v(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},y(e)}function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function w(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b(Object(n),!0).forEach((function(t){E(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function E(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t=s(t),n=a(n);var _={x:"clientWidth",y:"clientHeight"},x={x:"clientTop",y:"clientLeft"},S={x:"innerWidth",y:"innerHeight"},C={x:"offsetWidth",y:"offsetHeight"},k={x:"offsetLeft",y:"offsetTop"},O={x:"overflowX",y:"overflowY"},T={x:"scrollWidth",y:"scrollHeight"},N={x:"scrollLeft",y:"scrollTop"},I={x:"width",y:"height"},P=function(){},R=!!function(){if("undefined"===typeof window)return!1;var e=!1;try{document.createElement("div").addEventListener("test",P,{get passive(){return e=!0,!1}})}catch(t){}return e}()&&{passive:!0},D="ReactList failed to reach a stable state.",A=40,j=function(e,t){for(var n in t)if(e[n]!==t[n])return!1;return!0},M=function(e){for(var t=e.props.axis,n=e.getEl(),r=O[t];n=n.parentElement;)switch(window.getComputedStyle(n)[r]){case"auto":case"scroll":case"overlay":return n}return window},L=function(e){var t=e.props.axis,n=e.scrollParent;return n===window?window[S[t]]:n[_[t]]},z=function(e,t){var n=e.length,r=e.minSize,o=e.type,i=t.from,a=t.size,s=t.itemsPerRow,l=(a=Math.max(a,r))%s;return l&&(a+=s-l),a>n&&(a=n),(l=(i="simple"!==o&&i?Math.max(Math.min(i,n-a),0):0)%s)&&(i-=l,a+=l),i===t.from&&a==t.size?t:w(w({},t),{},{from:i,size:a})};e.exports=(o=r=function(e){f(r,e);var t=h(r);function r(e){var n;return c(this,r),(n=t.call(this,e)).state=z(e,{itemsPerRow:1,from:e.initialIndex,size:0}),n.cache={},n.cachedScrollPosition=null,n.prevPrevState={},n.unstable=!1,n.updateCounter=0,n}return d(r,null,[{key:"getDerivedStateFromProps",value:function(e,t){var n=z(e,t);return n===t?null:n}}]),d(r,[{key:"componentDidMount",value:function(){this.updateFrameAndClearCache=this.updateFrameAndClearCache.bind(this),window.addEventListener("resize",this.updateFrameAndClearCache),this.updateFrame(this.scrollTo.bind(this,this.props.initialIndex))}},{key:"componentDidUpdate",value:function(e){var t=this;if(this.props.axis!==e.axis&&this.clearSizeCache(),!this.unstable){if(++this.updateCounter>A)return this.unstable=!0,console.error(D);this.updateCounterTimeoutId||(this.updateCounterTimeoutId=setTimeout((function(){t.updateCounter=0,delete t.updateCounterTimeoutId}),0)),this.updateFrame()}}},{key:"maybeSetState",value:function(e,t){if(j(this.state,e))return t();this.setState(e,t)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.updateFrameAndClearCache),this.scrollParent.removeEventListener("scroll",this.updateFrameAndClearCache,R),this.scrollParent.removeEventListener("mousewheel",P,R)}},{key:"getOffset",value:function(e){var t=this.props.axis,n=e[x[t]]||0,r=k[t];do{n+=e[r]||0}while(e=e.offsetParent);return n}},{key:"getEl",value:function(){return this.el||this.items}},{key:"getScrollPosition",value:function(){if("number"===typeof this.cachedScrollPosition)return this.cachedScrollPosition;var e=this.scrollParent,t=this.props.axis,n=N[t],r=e===window?document.body[n]||document.documentElement[n]:e[n],o=this.getScrollSize()-this.props.scrollParentViewportSizeGetter(this),i=Math.max(0,Math.min(r,o)),a=this.getEl();return this.cachedScrollPosition=this.getOffset(e)+i-this.getOffset(a),this.cachedScrollPosition}},{key:"setScroll",value:function(e){var t=this.scrollParent,n=this.props.axis;if(e+=this.getOffset(this.getEl()),t===window)return window.scrollTo(0,e);e-=this.getOffset(this.scrollParent),t[N[n]]=e}},{key:"getScrollSize",value:function(){var e=this.scrollParent,t=document,n=t.body,r=t.documentElement,o=T[this.props.axis];return e===window?Math.max(n[o],r[o]):e[o]}},{key:"hasDeterminateSize",value:function(){var e=this.props,t=e.itemSizeGetter;return"uniform"===e.type||t}},{key:"getStartAndEnd",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props.threshold,t=this.getScrollPosition(),n=Math.max(0,t-e),r=t+this.props.scrollParentViewportSizeGetter(this)+e;return this.hasDeterminateSize()&&(r=Math.min(r,this.getSpaceBefore(this.props.length))),{start:n,end:r}}},{key:"getItemSizeAndItemsPerRow",value:function(){var e=this.props,t=e.axis,n=e.useStaticSize,r=this.state,o=r.itemSize,i=r.itemsPerRow;if(n&&o&&i)return{itemSize:o,itemsPerRow:i};var a=this.items.children;if(!a.length)return{};var s=a[0],l=s[C[t]],c=Math.abs(l-o);if((isNaN(c)||c>=1)&&(o=l),!o)return{};for(var u=k[t],d=s[u],f=a[i=1];f&&f[u]===d;f=a[i])++i;return{itemSize:o,itemsPerRow:i}}},{key:"clearSizeCache",value:function(){this.cachedScrollPosition=null}},{key:"updateFrameAndClearCache",value:function(e){return this.clearSizeCache(),this.updateFrame(e)}},{key:"updateFrame",value:function(e){switch(this.updateScrollParent(),"function"!=typeof e&&(e=P),this.props.type){case"simple":return this.updateSimpleFrame(e);case"variable":return this.updateVariableFrame(e);case"uniform":return this.updateUniformFrame(e)}}},{key:"updateScrollParent",value:function(){var e=this.scrollParent;this.scrollParent=this.props.scrollParentGetter(this),e!==this.scrollParent&&(e&&(e.removeEventListener("scroll",this.updateFrameAndClearCache),e.removeEventListener("mousewheel",P)),this.clearSizeCache(),this.scrollParent.addEventListener("scroll",this.updateFrameAndClearCache,R),this.scrollParent.addEventListener("mousewheel",P,R))}},{key:"updateSimpleFrame",value:function(e){var t=this.getStartAndEnd().end,n=this.items.children,r=0;if(n.length){var o=this.props.axis,i=n[0],a=n[n.length-1];r=this.getOffset(a)+a[C[o]]-this.getOffset(i)}if(r>t)return e();var s=this.props,l=s.pageSize,c=s.length,u=Math.min(this.state.size+l,c);this.maybeSetState({size:u},e)}},{key:"updateVariableFrame",value:function(e){this.props.itemSizeGetter||this.cacheSizes();for(var t=this.getStartAndEnd(),n=t.start,r=t.end,o=this.props,i=o.length,a=o.pageSize,s=0,l=0,c=0,u=i-1;l<u;){var d=this.getSizeOfItem(l);if(null==d||s+d>n)break;s+=d,++l}for(var f=i-l;c<f&&s<r;){var p=this.getSizeOfItem(l+c);if(null==p){c=Math.min(c+a,f);break}s+=p,++c}this.maybeSetState(z(this.props,{from:l,itemsPerRow:1,size:c}),e)}},{key:"updateUniformFrame",value:function(e){var t=this.getItemSizeAndItemsPerRow(),n=t.itemSize,r=t.itemsPerRow;if(!n||!r)return e();var o=this.getStartAndEnd(),i=o.start,a=o.end,s=z(this.props,{from:Math.floor(i/n)*r,size:(Math.ceil((a-i)/n)+1)*r,itemsPerRow:r}),l=s.from,c=s.size;return this.maybeSetState({itemsPerRow:r,from:l,itemSize:n,size:c},e)}},{key:"getSpaceBefore",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null!=t[e])return t[e];var n=this.state,r=n.itemSize,o=n.itemsPerRow;if(r)return t[e]=Math.floor(e/o)*r;for(var i=e;i>0&&null==t[--i];);for(var a=t[i]||0,s=i;s<e;++s){t[s]=a;var l=this.getSizeOfItem(s);if(null==l)break;a+=l}return t[e]=a}},{key:"cacheSizes",value:function(){for(var e=this.cache,t=this.state.from,n=this.items.children,r=C[this.props.axis],o=0,i=n.length;o<i;++o)e[t+o]=n[o][r]}},{key:"getSizeOfItem",value:function(e){var t=this.cache,n=this.items,r=this.props,o=r.axis,i=r.itemSizeGetter,a=r.itemSizeEstimator,s=r.type,l=this.state,c=l.from,u=l.itemSize,d=l.size;if(u)return u;if(i)return i(e);if(e in t)return t[e];if("simple"===s&&e>=c&&e<c+d&&n){var f=n.children[e-c];if(f)return f[C[o]]}return a?a(e,t):void 0}},{key:"scrollTo",value:function(e){null!=e&&this.setScroll(this.getSpaceBefore(e))}},{key:"scrollAround",value:function(e){var t=this.getScrollPosition(),n=this.getSpaceBefore(e),r=n-this.props.scrollParentViewportSizeGetter(this)+this.getSizeOfItem(e),o=Math.min(r,n),i=Math.max(r,n);return t<=o?this.setScroll(o):t>i?this.setScroll(i):void 0}},{key:"getVisibleRange",value:function(){for(var e,t,n=this.state,r=n.from,o=n.size,i=this.getStartAndEnd(0),a=i.start,s=i.end,l={},c=r;c<r+o;++c){var u=this.getSpaceBefore(c,l),d=u+this.getSizeOfItem(c);null==e&&d>a&&(e=c),null!=e&&u<s&&(t=c)}return[e,t]}},{key:"renderItems",value:function(){for(var e=this,t=this.props,n=t.itemRenderer,r=t.itemsRenderer,o=this.state,i=o.from,a=o.size,s=[],l=0;l<a;++l)s.push(n(i+l,l));return r(s,(function(t){return e.items=t}))}},{key:"render",value:function(){var e=this,t=this.props,r=t.axis,o=t.length,i=t.type,a=t.useTranslate3d,s=this.state,l=s.from,c=s.itemsPerRow,u=this.renderItems();if("simple"===i)return u;var d={position:"relative"},f={},p=Math.ceil(o/c)*c,h=this.getSpaceBefore(p,f);h&&(d[I[r]]=h,"x"===r&&(d.overflowX="hidden"));var m=this.getSpaceBefore(l,f),g="x"===r?m:0,v="y"===r?m:0,y=a?"translate3d(".concat(g,"px, ").concat(v,"px, 0)"):"translate(".concat(g,"px, ").concat(v,"px)"),b={msTransform:y,WebkitTransform:y,transform:y};return n.default.createElement("div",{style:d,ref:function(t){return e.el=t}},n.default.createElement("div",{style:b},u))}}]),r}(n.Component),E(r,"displayName","ReactList"),E(r,"propTypes",{axis:t.default.oneOf(["x","y"]),initialIndex:t.default.number,itemRenderer:t.default.func,itemSizeEstimator:t.default.func,itemSizeGetter:t.default.func,itemsRenderer:t.default.func,length:t.default.number,minSize:t.default.number,pageSize:t.default.number,scrollParentGetter:t.default.func,scrollParentViewportSizeGetter:t.default.func,threshold:t.default.number,type:t.default.oneOf(["simple","variable","uniform"]),useStaticSize:t.default.bool,useTranslate3d:t.default.bool}),E(r,"defaultProps",{axis:"y",itemRenderer:function(e,t){return n.default.createElement("div",{key:t},e)},itemsRenderer:function(e,t){return n.default.createElement("div",{ref:t},e)},length:0,minSize:1,pageSize:10,scrollParentGetter:M,scrollParentViewportSizeGetter:L,threshold:100,type:"simple",useStaticSize:!1,useTranslate3d:!1}),o)},void 0===(i="function"===typeof r?r.apply(t,o):r)||(e.exports=i)},83203:(e,t,n)=>{"use strict";n.d(t,{rU:()=>m});var r=n(86974),o=n(51721),i=n(68963),a=n(91668),s=n(87462),l=n(63366),c=n(35731);i.Component;i.Component;var u=function(e,t){return"function"===typeof e?e(t):e},d=function(e,t){return"string"===typeof e?(0,a.ob)(e,null,null,t):e},f=function(e){return e},p=i.forwardRef;"undefined"===typeof p&&(p=f);var h=p((function(e,t){var n=e.innerRef,r=e.navigate,o=e.onClick,a=(0,l.Z)(e,["innerRef","navigate","onClick"]),c=a.target,u=(0,s.Z)({},a,{onClick:function(e){try{o&&o(e)}catch(t){throw e.preventDefault(),t}e.defaultPrevented||0!==e.button||c&&"_self"!==c||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)||(e.preventDefault(),r())}});return u.ref=f!==p&&t||n,i.createElement("a",u)}));var m=p((function(e,t){var n=e.component,o=void 0===n?h:n,m=e.replace,g=e.to,v=e.innerRef,y=(0,l.Z)(e,["component","replace","to","innerRef"]);return i.createElement(r.s6.Consumer,null,(function(e){e||(0,c.Z)(!1);var n=e.history,r=d(u(g,e.location),e.location),l=r?n.createHref(r):"",h=(0,s.Z)({},y,{href:l,navigate:function(){var t=u(g,e.location),r=(0,a.Ep)(e.location)===(0,a.Ep)(d(t));(m||r?n.replace:n.push)(t)}});return f!==p?h.ref=t||v:h.innerRef=v,i.createElement(o,h)}))})),g=function(e){return e},v=i.forwardRef;"undefined"===typeof v&&(v=g);v((function(e,t){var n=e["aria-current"],o=void 0===n?"page":n,a=e.activeClassName,f=void 0===a?"active":a,p=e.activeStyle,h=e.className,y=e.exact,b=e.isActive,w=e.location,E=e.sensitive,_=e.strict,x=e.style,S=e.to,C=e.innerRef,k=(0,l.Z)(e,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return i.createElement(r.s6.Consumer,null,(function(e){e||(0,c.Z)(!1);var n=w||e.location,a=d(u(S,n),n),l=a.pathname,O=l&&l.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),T=O?(0,r.LX)(n.pathname,{path:O,exact:y,sensitive:E,strict:_}):null,N=!!(b?b(T,n):T),I="function"===typeof h?h(N):h,P="function"===typeof x?x(N):x;N&&(I=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((function(e){return e})).join(" ")}(I,f),P=(0,s.Z)({},P,p));var R=(0,s.Z)({"aria-current":N&&o||null,className:I,style:P,to:a},k);return g!==v?R.ref=t||C:R.innerRef=C,i.createElement(m,R)}))}))},86974:(e,t,n)=>{"use strict";n.d(t,{$B:()=>U,AW:()=>I,F0:()=>b,LX:()=>N,TH:()=>F,UO:()=>B,k6:()=>z,l_:()=>C,rs:()=>M,s6:()=>y});var r=n(51721),o=n(68963),i=n(50134),a=n.n(i),s=n(91668),l=n(35731),c=n(87462),u=n(85528),d=n.n(u),f=(n(99898),n(63366)),p=(n(15170),1073741823),h="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:{};var m=o.createContext||function(e,t){var n,i,s="__create-react-context-"+function(){var e="__global_unique_id__";return h[e]=(h[e]||0)+1}()+"__",l=function(e){function n(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).emitter=function(e){var t=[];return{on:function(e){t.push(e)},off:function(e){t=t.filter((function(t){return t!==e}))},get:function(){return e},set:function(n,r){e=n,t.forEach((function(t){return t(e,r)}))}}}(t.props.value),t}(0,r.Z)(n,e);var o=n.prototype;return o.getChildContext=function(){var e;return(e={})[s]=this.emitter,e},o.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var n,r=this.props.value,o=e.value;((i=r)===(a=o)?0!==i||1/i===1/a:i!==i&&a!==a)?n=0:(n="function"===typeof t?t(r,o):p,0!==(n|=0)&&this.emitter.set(e.value,n))}var i,a},o.render=function(){return this.props.children},n}(o.Component);l.childContextTypes=((n={})[s]=a().object.isRequired,n);var c=function(t){function n(){for(var e,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(e=t.call.apply(t,[this].concat(r))||this).observedBits=void 0,e.state={value:e.getValue()},e.onUpdate=function(t,n){0!==((0|e.observedBits)&n)&&e.setState({value:e.getValue()})},e}(0,r.Z)(n,t);var o=n.prototype;return o.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=void 0===t||null===t?p:t},o.componentDidMount=function(){this.context[s]&&this.context[s].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=void 0===e||null===e?p:e},o.componentWillUnmount=function(){this.context[s]&&this.context[s].off(this.onUpdate)},o.getValue=function(){return this.context[s]?this.context[s].get():e},o.render=function(){return(e=this.props.children,Array.isArray(e)?e[0]:e)(this.state.value);var e},n}(o.Component);return c.contextTypes=((i={})[s]=a().object,i),{Provider:l,Consumer:c}},g=function(e){var t=m();return t.displayName=e,t},v=g("Router-History"),y=g("Router"),b=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={location:t.history.location},n._isMounted=!1,n._pendingLocation=null,t.staticContext||(n.unlisten=t.history.listen((function(e){n._pendingLocation=e}))),n}(0,r.Z)(t,e),t.computeRootMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}};var n=t.prototype;return n.componentDidMount=function(){var e=this;this._isMounted=!0,this.unlisten&&this.unlisten(),this.props.staticContext||(this.unlisten=this.props.history.listen((function(t){e._isMounted&&e.setState({location:t})}))),this._pendingLocation&&this.setState({location:this._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&(this.unlisten(),this._isMounted=!1,this._pendingLocation=null)},n.render=function(){return o.createElement(y.Provider,{value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},o.createElement(v.Provider,{children:this.props.children||null,value:this.props.history}))},t}(o.Component);o.Component;var w=function(e){function t(){return e.apply(this,arguments)||this}(0,r.Z)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.props.onMount&&this.props.onMount.call(this,this)},n.componentDidUpdate=function(e){this.props.onUpdate&&this.props.onUpdate.call(this,this,e)},n.componentWillUnmount=function(){this.props.onUnmount&&this.props.onUnmount.call(this,this)},n.render=function(){return null},t}(o.Component);var E={},_=1e4,x=0;function S(e,t){return void 0===e&&(e="/"),void 0===t&&(t={}),"/"===e?e:function(e){if(E[e])return E[e];var t=d().compile(e);return x<_&&(E[e]=t,x++),t}(e)(t,{pretty:!0})}function C(e){var t=e.computedMatch,n=e.to,r=e.push,i=void 0!==r&&r;return o.createElement(y.Consumer,null,(function(e){e||(0,l.Z)(!1);var r=e.history,a=e.staticContext,u=i?r.push:r.replace,d=(0,s.ob)(t?"string"===typeof n?S(n,t.params):(0,c.Z)({},n,{pathname:S(n.pathname,t.params)}):n);return a?(u(d),null):o.createElement(w,{onMount:function(){u(d)},onUpdate:function(e,t){var n=(0,s.ob)(t.to);(0,s.Hp)(n,(0,c.Z)({},d,{key:n.key}))||u(d)},to:n})}))}var k={},O=1e4,T=0;function N(e,t){void 0===t&&(t={}),("string"===typeof t||Array.isArray(t))&&(t={path:t});var n=t,r=n.path,o=n.exact,i=void 0!==o&&o,a=n.strict,s=void 0!==a&&a,l=n.sensitive,c=void 0!==l&&l;return[].concat(r).reduce((function(t,n){if(!n&&""!==n)return null;if(t)return t;var r=function(e,t){var n=""+t.end+t.strict+t.sensitive,r=k[n]||(k[n]={});if(r[e])return r[e];var o=[],i={regexp:d()(e,o,t),keys:o};return T<O&&(r[e]=i,T++),i}(n,{end:i,strict:s,sensitive:c}),o=r.regexp,a=r.keys,l=o.exec(e);if(!l)return null;var u=l[0],f=l.slice(1),p=e===u;return i&&!p?null:{path:n,url:"/"===n&&""===u?"/":u,isExact:p,params:a.reduce((function(e,t,n){return e[t.name]=f[n],e}),{})}}),null)}var I=function(e){function t(){return e.apply(this,arguments)||this}return(0,r.Z)(t,e),t.prototype.render=function(){var e=this;return o.createElement(y.Consumer,null,(function(t){t||(0,l.Z)(!1);var n=e.props.location||t.location,r=e.props.computedMatch?e.props.computedMatch:e.props.path?N(n.pathname,e.props):t.match,i=(0,c.Z)({},t,{location:n,match:r}),a=e.props,s=a.children,u=a.component,d=a.render;return Array.isArray(s)&&function(e){return 0===o.Children.count(e)}(s)&&(s=null),o.createElement(y.Provider,{value:i},i.match?s?"function"===typeof s?s(i):s:u?o.createElement(u,i):d?d(i):null:"function"===typeof s?s(i):null)}))},t}(o.Component);function P(e){return"/"===e.charAt(0)?e:"/"+e}function R(e,t){if(!e)return t;var n=P(e);return 0!==t.pathname.indexOf(n)?t:(0,c.Z)({},t,{pathname:t.pathname.substr(n.length)})}function D(e){return"string"===typeof e?e:(0,s.Ep)(e)}function A(e){return function(){(0,l.Z)(!1)}}function j(){}o.Component;var M=function(e){function t(){return e.apply(this,arguments)||this}return(0,r.Z)(t,e),t.prototype.render=function(){var e=this;return o.createElement(y.Consumer,null,(function(t){t||(0,l.Z)(!1);var n,r,i=e.props.location||t.location;return o.Children.forEach(e.props.children,(function(e){if(null==r&&o.isValidElement(e)){n=e;var a=e.props.path||e.props.from;r=a?N(i.pathname,(0,c.Z)({},e.props,{path:a})):t.match}})),r?o.cloneElement(n,{location:i,computedMatch:r}):null}))},t}(o.Component);var L=o.useContext;function z(){return L(v)}function F(){return L(y).location}function B(){var e=L(y).match;return e?e.params:{}}function U(e){var t=F(),n=L(y).match;return e?N(t.pathname,e):n}},85528:(e,t,n)=>{var r=n(49099);e.exports=p,e.exports.parse=i,e.exports.compile=function(e,t){return s(i(e,t),t)},e.exports.tokensToFunction=s,e.exports.tokensToRegExp=f;var o=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function i(e,t){for(var n,r=[],i=0,a=0,s="",u=t&&t.delimiter||"/";null!=(n=o.exec(e));){var d=n[0],f=n[1],p=n.index;if(s+=e.slice(a,p),a=p+d.length,f)s+=f[1];else{var h=e[a],m=n[2],g=n[3],v=n[4],y=n[5],b=n[6],w=n[7];s&&(r.push(s),s="");var E=null!=m&&null!=h&&h!==m,_="+"===b||"*"===b,x="?"===b||"*"===b,S=n[2]||u,C=v||y;r.push({name:g||i++,prefix:m||"",delimiter:S,optional:x,repeat:_,partial:E,asterisk:!!w,pattern:C?c(C):w?".*":"[^"+l(S)+"]+?"})}}return a<e.length&&(s+=e.substr(a)),s&&r.push(s),r}function a(e){return encodeURI(e).replace(/[\/?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function s(e,t){for(var n=new Array(e.length),o=0;o<e.length;o++)"object"===typeof e[o]&&(n[o]=new RegExp("^(?:"+e[o].pattern+")$",d(t)));return function(t,o){for(var i="",s=t||{},l=(o||{}).pretty?a:encodeURIComponent,c=0;c<e.length;c++){var u=e[c];if("string"!==typeof u){var d,f=s[u.name];if(null==f){if(u.optional){u.partial&&(i+=u.prefix);continue}throw new TypeError('Expected "'+u.name+'" to be defined')}if(r(f)){if(!u.repeat)throw new TypeError('Expected "'+u.name+'" to not repeat, but received `'+JSON.stringify(f)+"`");if(0===f.length){if(u.optional)continue;throw new TypeError('Expected "'+u.name+'" to not be empty')}for(var p=0;p<f.length;p++){if(d=l(f[p]),!n[c].test(d))throw new TypeError('Expected all "'+u.name+'" to match "'+u.pattern+'", but received `'+JSON.stringify(d)+"`");i+=(0===p?u.prefix:u.delimiter)+d}}else{if(d=u.asterisk?encodeURI(f).replace(/[?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})):l(f),!n[c].test(d))throw new TypeError('Expected "'+u.name+'" to match "'+u.pattern+'", but received "'+d+'"');i+=u.prefix+d}}else i+=u}return i}}function l(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function c(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function u(e,t){return e.keys=t,e}function d(e){return e&&e.sensitive?"":"i"}function f(e,t,n){r(t)||(n=t||n,t=[]);for(var o=(n=n||{}).strict,i=!1!==n.end,a="",s=0;s<e.length;s++){var c=e[s];if("string"===typeof c)a+=l(c);else{var f=l(c.prefix),p="(?:"+c.pattern+")";t.push(c),c.repeat&&(p+="(?:"+f+p+")*"),a+=p=c.optional?c.partial?f+"("+p+")?":"(?:"+f+"("+p+"))?":f+"("+p+")"}}var h=l(n.delimiter||"/"),m=a.slice(-h.length)===h;return o||(a=(m?a.slice(0,-h.length):a)+"(?:"+h+"(?=$))?"),a+=i?"$":o&&m?"":"(?="+h+"|$)",u(new RegExp("^"+a,d(n)),t)}function p(e,t,n){return r(t)||(n=t||n,t=[]),n=n||{},e instanceof RegExp?function(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return u(e,t)}(e,t):r(e)?function(e,t,n){for(var r=[],o=0;o<e.length;o++)r.push(p(e[o],t,n).source);return u(new RegExp("(?:"+r.join("|")+")",d(n)),t)}(e,t,n):function(e,t,n){return f(i(e,n),t,n)}(e,t,n)}},20261:(e,t)=>{"use strict";var n="function"===typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function E(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case d:case i:case s:case a:case p:return e;default:switch(e=e&&e.$$typeof){case c:case f:case g:case m:case l:return e;default:return t}}case o:return t}}}function _(e){return E(e)===d}},99898:(e,t,n)=>{"use strict";n(20261)},62685:(e,t,n)=>{"use strict";n.d(t,{Z:()=>_});var r=n(87462),o=n(63366),i=n(51721);function a(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var s=n(68963),l=n(38886);const c=!1;var u=n(24330),d=function(e){return e.scrollTop},f="unmounted",p="exited",h="entering",m="entered",g="exiting",v=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=p,r.appearStatus=h):o=m:o=t.unmountOnExit||t.mountOnEnter?f:p,r.state={status:o},r.nextCallback=null,r}(0,i.Z)(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===f?{status:p}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==h&&n!==m&&(t=h):n!==h&&n!==m||(t=g)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!==typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===h){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:l.findDOMNode(this);n&&d(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===p&&this.setState({status:f})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[l.findDOMNode(this),r],i=o[0],a=o[1],s=this.getTimeouts(),u=r?s.appear:s.enter;!e&&!n||c?this.safeSetState({status:m},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:h},(function(){t.props.onEntering(i,a),t.onTransitionEnd(u,(function(){t.safeSetState({status:m},(function(){t.props.onEntered(i,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:l.findDOMNode(this);t&&!c?(this.props.onExit(r),this.safeSetState({status:g},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:p},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:p},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:l.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===f)return null;var t=this.props,n=t.children,r=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,(0,o.Z)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return s.createElement(u.Z.Provider,{value:null},"function"===typeof n?n(e,r):s.cloneElement(s.Children.only(n),r))},t}(s.Component);function y(){}v.contextType=u.Z,v.propTypes={},v.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:y,onEntering:y,onEntered:y,onExit:y,onExiting:y,onExited:y},v.UNMOUNTED=f,v.EXITED=p,v.ENTERING=h,v.ENTERED=m,v.EXITING=g;const b=v;var w=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.remove(r):"string"===typeof n.className?n.className=a(n.className,r):n.setAttribute("class",a(n.className&&n.className.baseVal||"",r)));var n,r}))},E=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1];t.removeClasses(o,"exit"),t.addClass(o,i?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1]?"appear":"enter";t.addClass(o,i,"active"),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1]?"appear":"enter";t.removeClasses(o,i),t.addClass(o,i,"done"),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"appear"),t.removeClasses(n,"enter"),t.addClass(n,"exit","base"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.resolveArguments(e)[0];t.addClass(n,"exit","active"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"exit"),t.addClass(n,"exit","done"),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,n){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,n]},t.getClassNames=function(e){var n=t.props.classNames,r="string"===typeof n,o=r?""+(r&&n?n+"-":"")+e:n[e];return{baseClassName:o,activeClassName:r?o+"-active":n[e+"Active"],doneClassName:r?o+"-done":n[e+"Done"]}},t}(0,i.Z)(t,e);var n=t.prototype;return n.addClass=function(e,t,n){var r=this.getClassNames(t)[n+"ClassName"],o=this.getClassNames("enter").doneClassName;"appear"===t&&"done"===n&&o&&(r+=" "+o),"active"===n&&e&&d(e),r&&(this.appliedClasses[t][n]=r,function(e,t){e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.add(r):function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}(n,r)||("string"===typeof n.className?n.className=n.className+" "+r:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+r)));var n,r}))}(e,r))},n.removeClasses=function(e,t){var n=this.appliedClasses[t],r=n.base,o=n.active,i=n.done;this.appliedClasses[t]={},r&&w(e,r),o&&w(e,o),i&&w(e,i)},n.render=function(){var e=this.props,t=(e.classNames,(0,o.Z)(e,["classNames"]));return s.createElement(b,(0,r.Z)({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(s.Component);E.defaultProps={classNames:""},E.propTypes={};const _=E},24330:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=n(68963).createContext(null)},74518:(e,t,n)=>{"use strict";var r=n(68963),o=Symbol.for("react.element"),i=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,i={},c=null,u=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)a.call(t,r)&&!l.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:o,type:e,key:c,ref:u,props:i,_owner:s.current}}t.jsx=c,t.jsxs=c},61920:(e,t)=>{"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.iterator;var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,g={};function v(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||h}function y(){}function b(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)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")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=v.prototype;var w=b.prototype=new y;w.constructor=b,m(w,v.prototype),w.isPureReactComponent=!0;var E=Array.isArray,_=Object.prototype.hasOwnProperty,x={current:null},S={key:!0,ref:!0,__self:!0,__source:!0};function C(e,t,r){var o,i={},a=null,s=null;if(null!=t)for(o in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)_.call(t,o)&&!S.hasOwnProperty(o)&&(i[o]=t[o]);var l=arguments.length-2;if(1===l)i.children=r;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];i.children=c}if(e&&e.defaultProps)for(o in l=e.defaultProps)void 0===i[o]&&(i[o]=l[o]);return{$$typeof:n,type:e,key:a,ref:s,props:i,_owner:x.current}}function k(e){return"object"===typeof e&&null!==e&&e.$$typeof===n}var O=/\/+/g;function T(e,t){return"object"===typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function N(e,t,o,i,a){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l=!1;if(null===e)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case n:case r:l=!0}}if(l)return a=a(l=e),e=""===i?"."+T(l,0):i,E(a)?(o="",null!=e&&(o=e.replace(O,"$&/")+"/"),N(a,t,o,"",(function(e){return e}))):null!=a&&(k(a)&&(a=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,o+(!a.key||l&&l.key===a.key?"":(""+a.key).replace(O,"$&/")+"/")+e)),t.push(a)),1;if(l=0,i=""===i?".":i+":",E(e))for(var c=0;c<e.length;c++){var u=i+T(s=e[c],c);l+=N(s,t,o,u,a)}else if(u=function(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=p&&e[p]||e["@@iterator"])?e:null}(e),"function"===typeof u)for(e=u.call(e),c=0;!(s=e.next()).done;)l+=N(s=s.value,t,o,u=i+T(s,c++),a);else if("object"===s)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function I(e,t,n){if(null==e)return e;var r=[],o=0;return N(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function P(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var R={current:null},D={transition:null},A={ReactCurrentDispatcher:R,ReactCurrentBatchConfig:D,ReactCurrentOwner:x};function j(){throw Error("act(...) is not supported in production builds of React.")}t.Children={map:I,forEach:function(e,t,n){I(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return I(e,(function(){t++})),t},toArray:function(e){return I(e,(function(e){return e}))||[]},only:function(e){if(!k(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=v,t.Fragment=o,t.Profiler=a,t.PureComponent=b,t.StrictMode=i,t.Suspense=u,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=A,t.act=j,t.cloneElement=function(e,t,r){if(null===e||void 0===e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o=m({},e.props),i=e.key,a=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,s=x.current),void 0!==t.key&&(i=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in t)_.call(t,c)&&!S.hasOwnProperty(c)&&(o[c]=void 0===t[c]&&void 0!==l?l[c]:t[c])}var c=arguments.length-2;if(1===c)o.children=r;else if(1<c){l=Array(c);for(var u=0;u<c;u++)l[u]=arguments[u+2];o.children=l}return{$$typeof:n,type:e.type,key:i,ref:a,props:o,_owner:s}},t.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:s,_context:e},e.Consumer=e},t.createElement=C,t.createFactory=function(e){var t=C.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:c,render:e}},t.isValidElement=k,t.lazy=function(e){return{$$typeof:f,_payload:{_status:-1,_result:e},_init:P}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=D.transition;D.transition={};try{e()}finally{D.transition=t}},t.unstable_act=j,t.useCallback=function(e,t){return R.current.useCallback(e,t)},t.useContext=function(e){return R.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return R.current.useDeferredValue(e)},t.useEffect=function(e,t){return R.current.useEffect(e,t)},t.useId=function(){return R.current.useId()},t.useImperativeHandle=function(e,t,n){return R.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return R.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return R.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return R.current.useMemo(e,t)},t.useReducer=function(e,t,n){return R.current.useReducer(e,t,n)},t.useRef=function(e){return R.current.useRef(e)},t.useState=function(e){return R.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return R.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return R.current.useTransition()},t.version="18.3.1"},68963:(e,t,n)=>{"use strict";e.exports=n(61920)},75859:(e,t,n)=>{"use strict";e.exports=n(74518)},94909:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.LOCATION_POP="REDUX-LOCATION-POP-ACTION",t.LOCATION_PUSH="REDUX-LOCATION-PUSH-ACTION",t.OBJECT_KEY_DELIMITER="-"},45715:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.createReduxLocationActions=function(e,t,n,l){var c=arguments.length>4&&void 0!==arguments[4]?arguments[4]:s.stateToParams;e[i.RLSCONFIG]&&e[i.RLSCONFIG][i.OVERWRITE_ACCESSORS]&&Object.keys(e[i.RLSCONFIG][i.OVERWRITE_ACCESSORS]).forEach((function(t){(0,i.overrideAccessors)(t,e[i.RLSCONFIG][i.OVERWRITE_ACCESSORS][t])}));var u={};return{locationMiddleware:function(t){return function(r){return function(o){var a=t.getState(),s=r(o),l=t.getState(),d=n.location,f=d.pathname!==u.pathname;if(l!==a||f){u=d;var p=c(e,l,d),h=p.shouldPush,m=p.location;(0,i.isEqual)(m,d)||(h&&!f?n.push(m):n.replace(m))}return s}}},reducersWithLocation:function(n,i){var s=function(n,i){var s=i.type,l=i.payload;if(s!==o.LOCATION_POP||!l)return n;var c=r({},l,{query:(0,a.parseQuery)(e,l)});return t(n,c)}(l(n,i),i);return s!==n?s:n}}};var o=n(94909),i=n(58102),a=n(43903),s=n(78103)},58102:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.paramDecoder=t.OVERWRITE_ACCESSORS=t.RLSCONFIG=void 0,t.setParamEncoder=function(e){c=e},t.setParamDecoder=function(e){t.paramDecoder=u=e},t.overrideAccessors=function(e,t){l[e]=t},t.get=function(){return l.get.apply(l,arguments)},t.set=function(){return l.set.apply(l,arguments)},t.isEqual=function(){return l.isEqual.apply(l,arguments)},t.getMatchingDeclaredPath=d,t.createObjectFromConfig=function(e,t){if(!e)return;var n=d(e,t);return e.global?Object.assign({},e.global,e[n]||{}):e[n]},t.getPath=function(){var e=window.location.href,t=e.indexOf("#")+1;if(t&&0===e.substring(t).indexOf("/"))return e.substring(t);return window.location.pathname+window.location.search+window.location.hash},t.createParamsString=function(e){var t=Object.keys(e).reduce((function(t,n){var r=n.toString(),o=e[n];if(function(e){return"undefined"===typeof e||null===e}(o)||Array.isArray(o)&&!o.length)return t;var i=e[n].toString();return[].concat(s(t),[c(r)+"="+c(i)])}),[]);return t.length?"?"+t.join("&"):""},t.parseParams=function(e,t){return e&&e.split("&").reduce((function(e,n){"?"===n[0]&&(n=n.substr(1));var r=t?t(n):n.split("=");return e[u(r[0])]=u(r[1])||"",e}),{})||{}};var r=a(n(63639)),o=a(n(85690)),i=a(n(9447));function a(e){return e&&e.__esModule?e:{default:e}}function s(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}t.RLSCONFIG="RLSCONFIG",t.OVERWRITE_ACCESSORS="overwrite-accessors";var l={get:r.default,set:i.default,isEqual:o.default},c=encodeURIComponent,u=t.paramDecoder=decodeURIComponent;function d(e,t){var n=t.pathname.split("/");return Object.keys(e).filter((function(e){var t=[].concat(s(n)),r=e.split("/"),o=[].concat(s(r)),i=0;return r.forEach((function(e,n){"*"===e&&(t.splice(n-i,1),o.splice(n-i,1),i++)})),t.join("/")===o.join("/")}))[0]}},91087:(e,t,n)=>{"use strict";var r=n(45715);Object.defineProperty(t,"zl",{enumerable:!0,get:function(){return r.createReduxLocationActions}});var o=n(28931);Object.defineProperty(t,"C1",{enumerable:!0,get:function(){return o.listenForHistoryChange}});var i=n(58102)},28931:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.listenForHistoryChange=function(e,t){var n=function(e){return{type:r.LOCATION_POP,payload:e}};t.listen((function(){t&&t.action&&"POP"===t.action&&e.dispatch(n(t.location))})),t.listen((function(){t&&t.action&&"PUSH"===t.action&&e.dispatch(function(e){return{type:r.LOCATION_PUSH,payload:e}}(t.location))})),e.dispatch(n(t.location))};var r=n(94909)},43903:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseQuery=function(e,t){var n=(0,r.createObjectFromConfig)(e,t),i=e[r.RLSCONFIG]&&e[r.RLSCONFIG].queryParser,a=(0,r.parseParams)(t.search,i);if(!n)return t.search;return Object.keys(n).reduce((function(e,t){var i=n[t],s=i.stateKey,l=i.options,c=void 0===l?{}:l,u=i.initialState,d=i.type,f=a[t],p=void 0;return"undefined"===typeof f||null===f?((0,r.set)(e,s,u),e):(p=c.parse?c.parse(f):d?o.typeHandles[d].parse(f,c):f,(0,r.set)(e,s,p),e)}),{})};var r=n(58102),o=n(88639)},78103:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.stateToParams=function(e,t,n){var s=(0,i.createObjectFromConfig)(e,n),l=e[i.RLSCONFIG]&&e[i.RLSCONFIG].queryParser,c=(0,i.parseParams)(n.search,l);if(!s)return{location:o({},n)};var u=!1,d=Object.keys(s).reduce((function(e,n){var o=s[n],l=o.stateKey,d=o.options,f=void 0===d?{}:d,p=o.initialState,h=o.type,m=(0,i.get)(t,l),g=void 0;if("date"===h?g=m.toISOString().substring(0,10)===(p&&p.toISOString().substring(0,10)):(m&&"object"===("undefined"===typeof m?"undefined":r(m))&&!Object.keys(m).length&&(m=void 0),g="object"===("undefined"===typeof m?"undefined":r(m))?(0,i.isEqual)(p,m):m===p),("undefined"===typeof m&&!f.serialize||g)&&!f.setAsEmptyItem)return e;if(f.serialize){var v=f.serialize(m);if("undefined"===typeof v)return e;m=v}else h&&(m=a.typeHandles[h].serialize(m,f));return e[n]=m,m!==c[n]&&f.shouldPush&&(u=!0),e}),{});return{location:o({},n,{search:(0,i.createParamsString)(d)}),shouldPush:u}};var i=n(58102),a=n(88639)},88639:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.typeHandles=void 0;var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(l){o=!0,i=l}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=n(94909),i=n(58102);function a(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}t.typeHandles={number:{serialize:function(e,t){return e.toString()},parse:function(e,t){return parseFloat(e)}},date:{serialize:function(e,t){return e.toISOString().substring(0,10)},parse:function(e,t){return new Date(e)}},array:{serialize:function(e,t){return(t.keepOrder?[].concat(a(e)):[].concat(a(e)).sort()).join(t.delimiter||o.OBJECT_KEY_DELIMITER)},parse:function(e,t){return(0,i.paramDecoder)(e).split(t.delimiter||o.OBJECT_KEY_DELIMITER)}},bool:{serialize:function(e,t){return e.toString()},parse:function(e,t){return"true"===e}},object:{serialize:function(e,t){return t.isFlags?Object.keys(e).filter((function(t,n){return e[t]})).join(o.OBJECT_KEY_DELIMITER):Object.keys(e).sort().map((function(t,n){return""+t+o.OBJECT_KEY_DELIMITER+e[t]}))},parse:function(e,t){return t.isFlags?e.split(t.delimiter||o.OBJECT_KEY_DELIMITER).reduce((function(e,t){return""===t||(e[t]=!0),e}),{}):(0,i.paramDecoder)(e).split(",").reduce((function(e,t){var n=t.split(o.OBJECT_KEY_DELIMITER),i=r(n,2),a=i[0],s=i[1];return e[a]=s,e}),{})}}}},34812:(e,t)=>{"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,o=e[r];if(!(0<i(o,t)))break e;e[r]=t,e[n]=o,n=r}}function r(e){return 0===e.length?null:e[0]}function o(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length,a=o>>>1;r<a;){var s=2*(r+1)-1,l=e[s],c=s+1,u=e[c];if(0>i(l,n))c<o&&0>i(u,l)?(e[r]=u,e[c]=n,r=c):(e[r]=l,e[s]=n,r=s);else{if(!(c<o&&0>i(u,n)))break e;e[r]=u,e[c]=n,r=c}}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"===typeof performance&&"function"===typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var s=Date,l=s.now();t.unstable_now=function(){return s.now()-l}}var c=[],u=[],d=1,f=null,p=3,h=!1,m=!1,g=!1,v="function"===typeof setTimeout?setTimeout:null,y="function"===typeof clearTimeout?clearTimeout:null,b="undefined"!==typeof setImmediate?setImmediate:null;function w(e){for(var t=r(u);null!==t;){if(null===t.callback)o(u);else{if(!(t.startTime<=e))break;o(u),t.sortIndex=t.expirationTime,n(c,t)}t=r(u)}}function E(e){if(g=!1,w(e),!m)if(null!==r(c))m=!0,D(_);else{var t=r(u);null!==t&&A(E,t.startTime-e)}}function _(e,n){m=!1,g&&(g=!1,y(k),k=-1),h=!0;var i=p;try{for(w(n),f=r(c);null!==f&&(!(f.expirationTime>n)||e&&!N());){var a=f.callback;if("function"===typeof a){f.callback=null,p=f.priorityLevel;var s=a(f.expirationTime<=n);n=t.unstable_now(),"function"===typeof s?f.callback=s:f===r(c)&&o(c),w(n)}else o(c);f=r(c)}if(null!==f)var l=!0;else{var d=r(u);null!==d&&A(E,d.startTime-n),l=!1}return l}finally{f=null,p=i,h=!1}}"undefined"!==typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var x,S=!1,C=null,k=-1,O=5,T=-1;function N(){return!(t.unstable_now()-T<O)}function I(){if(null!==C){var e=t.unstable_now();T=e;var n=!0;try{n=C(!0,e)}finally{n?x():(S=!1,C=null)}}else S=!1}if("function"===typeof b)x=function(){b(I)};else if("undefined"!==typeof MessageChannel){var P=new MessageChannel,R=P.port2;P.port1.onmessage=I,x=function(){R.postMessage(null)}}else x=function(){v(I,0)};function D(e){C=e,S||(S=!0,x())}function A(e,n){k=v((function(){e(t.unstable_now())}),n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){m||h||(m=!0,D(_))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):O=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return p},t.unstable_getFirstCallbackNode=function(){return r(c)},t.unstable_next=function(e){switch(p){case 1:case 2:case 3:var t=3;break;default:t=p}var n=p;p=t;try{return e()}finally{p=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=p;p=e;try{return t()}finally{p=n}},t.unstable_scheduleCallback=function(e,o,i){var a=t.unstable_now();switch("object"===typeof i&&null!==i?i="number"===typeof(i=i.delay)&&0<i?a+i:a:i=a,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return e={id:d++,callback:o,priorityLevel:e,startTime:i,expirationTime:s=i+s,sortIndex:-1},i>a?(e.sortIndex=i,n(u,e),null===r(c)&&e===r(u)&&(g?(y(k),k=-1):g=!0,A(E,i-a))):(e.sortIndex=s,n(c,e),m||h||(m=!0,D(_))),e},t.unstable_shouldYield=N,t.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}},29558:(e,t,n)=>{"use strict";e.exports=n(34812)},18083:(e,t,n)=>{"use strict";var r=n(42780),o=n(10854),i=n(43597)(),a=n(81687),s=n(84968),l=r("%Math.floor%");e.exports=function(e,t){if("function"!==typeof e)throw new s("`fn` is not a function");if("number"!==typeof t||t<0||t>4294967295||l(t)!==t)throw new s("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],r=!0,c=!0;if("length"in e&&a){var u=a(e,"length");u&&!u.configurable&&(r=!1),u&&!u.writable&&(c=!1)}return(r||c||!n)&&(i?o(e,"length",t,!0,!0):o(e,"length",t)),e}},69612:e=>{e.exports=function(e,t,n,r){var o=n?n.call(r,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!==typeof e||!e||"object"!==typeof t||!t)return!1;var i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),l=0;l<i.length;l++){var c=i[l];if(!s(c))return!1;var u=e[c],d=t[c];if(!1===(o=n?n.call(r,u,d,c):void 0)||void 0===o&&u!==d)return!1}return!0}},50810:(e,t,n)=>{"use strict";var r=n(42780),o=n(69039),i=n(68798),a=n(84968),s=r("%WeakMap%",!0),l=r("%Map%",!0),c=o("WeakMap.prototype.get",!0),u=o("WeakMap.prototype.set",!0),d=o("WeakMap.prototype.has",!0),f=o("Map.prototype.get",!0),p=o("Map.prototype.set",!0),h=o("Map.prototype.has",!0),m=function(e,t){for(var n,r=e;null!==(n=r.next);r=n)if(n.key===t)return r.next=n.next,n.next=e.next,e.next=n,n};e.exports=function(){var e,t,n,r={assert:function(e){if(!r.has(e))throw new a("Side channel does not contain "+i(e))},get:function(r){if(s&&r&&("object"===typeof r||"function"===typeof r)){if(e)return c(e,r)}else if(l){if(t)return f(t,r)}else if(n)return function(e,t){var n=m(e,t);return n&&n.value}(n,r)},has:function(r){if(s&&r&&("object"===typeof r||"function"===typeof r)){if(e)return d(e,r)}else if(l){if(t)return h(t,r)}else if(n)return function(e,t){return!!m(e,t)}(n,r);return!1},set:function(r,o){s&&r&&("object"===typeof r||"function"===typeof r)?(e||(e=new s),u(e,r,o)):l?(t||(t=new l),p(t,r,o)):(n||(n={key:{},next:null}),function(e,t,n){var r=m(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}}(n,r,o))}};return r}},35503:(e,t,n)=>{"use strict";n.d(t,{EB:()=>k,KW:()=>x,Wq:()=>S,ht:()=>_,pN:()=>f});var r=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],o=r.join(","),i="undefined"===typeof Element,a=i?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,s=!i&&Element.prototype.getRootNode?function(e){var t;return null===e||void 0===e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}:function(e){return null===e||void 0===e?void 0:e.ownerDocument},l=function e(t,n){var r;void 0===n&&(n=!0);var o=null===t||void 0===t||null===(r=t.getAttribute)||void 0===r?void 0:r.call(t,"inert");return""===o||"true"===o||n&&t&&e(t.parentNode)},c=function(e,t,n){if(l(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(o));return t&&a.call(e,o)&&r.unshift(e),r=r.filter(n)},u=function e(t,n,r){for(var i=[],s=Array.from(t);s.length;){var c=s.shift();if(!l(c,!1))if("SLOT"===c.tagName){var u=c.assignedElements(),d=e(u.length?u:c.children,!0,r);r.flatten?i.push.apply(i,d):i.push({scopeParent:c,candidates:d})}else{a.call(c,o)&&r.filter(c)&&(n||!t.includes(c))&&i.push(c);var f=c.shadowRoot||"function"===typeof r.getShadowRoot&&r.getShadowRoot(c),p=!l(f,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(c));if(f&&p){var h=e(!0===f?c.children:f.children,!0,r);r.flatten?i.push.apply(i,h):i.push({scopeParent:c,candidates:h})}else s.unshift.apply(s,c.children)}}return i},d=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},f=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||function(e){var t,n=null===e||void 0===e||null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"contenteditable");return""===n||"true"===n}(e))&&!d(e)?0:e.tabIndex},p=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},h=function(e){return"INPUT"===e.tagName},m=function(e){return function(e){return h(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||s(e),r=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!==typeof window&&"undefined"!==typeof window.CSS&&"function"===typeof window.CSS.escape)t=r(window.CSS.escape(e.name));else try{t=r(e.name)}catch(i){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",i.message),!1}var o=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]}(t,e.form);return!o||o===e}(e)},g=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return 0===n&&0===r},v=function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var o=a.call(e,"details>summary:first-of-type")?e.parentElement:e;if(a.call(o,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return g(e)}else{if("function"===typeof r){for(var i=e;e;){var l=e.parentElement,c=s(e);if(l&&!l.shadowRoot&&!0===r(l))return g(e);e=e.assignedSlot?e.assignedSlot:l||c===e.ownerDocument?l:c.host}e=i}if(function(e){var t,n,r,o,i=e&&s(e),a=null===(t=i)||void 0===t?void 0:t.host,l=!1;if(i&&i!==e)for(l=!!(null!==(n=a)&&void 0!==n&&null!==(r=n.ownerDocument)&&void 0!==r&&r.contains(a)||null!==e&&void 0!==e&&null!==(o=e.ownerDocument)&&void 0!==o&&o.contains(e));!l&&a;){var c,u,d;l=!(null===(u=a=null===(c=i=s(a))||void 0===c?void 0:c.host)||void 0===u||null===(d=u.ownerDocument)||void 0===d||!d.contains(a))}return l}(e))return!e.getClientRects().length;if("legacy-full"!==n)return!0}return!1},y=function(e,t){return!(t.disabled||l(t)||function(e){return h(e)&&"hidden"===e.type}(t)||v(t,e)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some((function(e){return"SUMMARY"===e.tagName}))}(t)||function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n<t.children.length;n++){var r=t.children.item(n);if("LEGEND"===r.tagName)return!!a.call(t,"fieldset[disabled] *")||!r.contains(e)}return!0}t=t.parentElement}return!1}(t))},b=function(e,t){return!(m(t)||f(t)<0||!y(e,t))},w=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},E=function e(t){var n=[],r=[];return t.forEach((function(t,o){var i=!!t.scopeParent,a=i?t.scopeParent:t,s=function(e,t){var n=f(e);return n<0&&t&&!d(e)?0:n}(a,i),l=i?e(t.candidates):a;0===s?i?n.push.apply(n,l):n.push(a):r.push({documentOrder:o,tabIndex:s,item:t,isScope:i,content:l})})),r.sort(p).reduce((function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e}),[]).concat(n)},_=function(e,t){var n;return n=(t=t||{}).getShadowRoot?u([e],t.includeContainer,{filter:b.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:w}):c(e,t.includeContainer,b.bind(null,t)),E(n)},x=function(e,t){return(t=t||{}).getShadowRoot?u([e],t.includeContainer,{filter:y.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):c(e,t.includeContainer,y.bind(null,t))},S=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==a.call(e,o)&&b(t,e)},C=r.concat("iframe").join(","),k=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==a.call(e,C)&&y(t,e)}},35731:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=!0,o="Invariant failed";function i(e,t){if(!e){if(r)throw new Error(o);var n="function"===typeof t?t():t;throw new Error(n?o+": "+n:o)}}},21034:e=>{e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach((function(t){e.addRange(t)})),t&&t.focus()}}},52846:(e,t,n)=>{"use strict";function r(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return{...e,default:t,decode:function(){const r=e.decode(...arguments);return void 0===r||n&&null===r?t:r}}}n.d(t,{ArrayParam:()=>l,QueryParamProvider:()=>O,StringParam:()=>s,useQueryParam:()=>A,useQueryParams:()=>R,withDefault:()=>r});function o(e,t){if(null==e)return e;if(0===e.length&&(!t||t&&""!==e))return null;const n=e instanceof Array?e[0]:e;return null==n||t||""!==n?n:null}function i(e){const t=o(e,!0);return null==t?t:String(t)}function a(e){const t=function(e){return null==e||e instanceof Array?e:""===e?[]:[e]}(e);return t}const s={encode:function(e){return null==e?e:String(e)},decode:i},l={encode:function(e){return e},decode:a};'{}[],":'.split("").map((e=>[e,encodeURIComponent(e)]));function c(e,t){const n={},r=Object.keys(t);for(const o of r){const r=t[o];e[o]?n[o]=e[o].encode(t[o]):n[o]=null==r?r:String(r)}return n}var u=n(68963);const d=new class{constructor(){this.paramsMap=new Map,this.registeredParams=new Map}set(e,t,n,r){this.paramsMap.set(e,{stringified:t,decoded:n,decode:r})}has(e,t,n){if(!this.paramsMap.has(e))return!1;const r=this.paramsMap.get(e);return!!r&&(r.stringified===t&&(null==n||r.decode===n))}get(e){var t;if(this.paramsMap.has(e))return null==(t=this.paramsMap.get(e))?void 0:t.decoded}registerParams(e){for(const t of e){const e=this.registeredParams.get(t)||0;this.registeredParams.set(t,e+1)}}unregisterParams(e){for(const t of e){const e=(this.registeredParams.get(t)||0)-1;e<=0?(this.registeredParams.delete(t),this.paramsMap.has(t)&&this.paramsMap.delete(t)):this.registeredParams.set(t,e)}}clear(){this.paramsMap.clear(),this.registeredParams.clear()}};function f(e,t,n,r){var o;if(!n||!t.length)return e;let i={...e},a=!1;for(const s of t)Object.prototype.hasOwnProperty.call(i,s)||(i[s]=null!=(o=n[s])?o:r,a=!0);return a?i:e}const p=Object.prototype.hasOwnProperty;function h(e,t){return e===t?0!==e||0!==t||1/e===1/t:e!==e&&t!==t}function m(e,t,n){var r,o;if(h(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;const i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(let s=0;s<i.length;s++){const a=null!=(o=null==(r=null==n?void 0:n[i[s]])?void 0:r.equals)?o:h;if(!p.call(t,i[s])||!a(e[i[s]],t[i[s]]))return!1}return!0}function g(e,t,n){const r={},o=Object.keys(t);for(const i of o){const o=t[i],a=e[i];let s;if(n.has(i,a,o.decode))s=n.get(i);else{if(s=o.decode(a),o.equals&&n.has(i,a)){const e=n.get(i);o.equals(s,e)&&(s=e)}void 0!==s&&n.set(i,a,s,o.decode)}void 0===s&&void 0!==o.default&&(s=o.default),r[i]=s}return r}function v(){let e;return function(t,n,r){const o=g(t,n,r);return null!=e&&m(e,o)?e:(e=o,o)}}let y,b,w,E={};const _=(e,t,n)=>{if(y===t&&w===e&&b===n)return E;y=t,w=e;const r=e(null!=t?t:"");b=n;const o=function(e){if(e)return Object.fromEntries(e.split("\n").map((e=>e.split("\0"))))}(n);for(let[i,a]of Object.entries(r)){(null==o?void 0:o[i])&&(delete r[i],i=o[i],r[i]=a);const e=E[i];m(a,e)&&(r[i]=e)}return E=r,r};function x(e,t){null==t&&(t={});const n={...e,...t};return t.params&&e.params&&(n.params={...e.params,...t.params}),n}const S={adapter:{},options:{searchStringToObject:function(e){const t=new URLSearchParams(e),n={};for(let[r,o]of t)Object.prototype.hasOwnProperty.call(n,r)?Array.isArray(n[r])?n[r].push(o):n[r]=[n[r],o]:n[r]=o;return n},objectToSearchString:function(e){const t=new URLSearchParams,n=Object.entries(e);for(const[r,o]of n)if(void 0!==o&&null!==o)if(Array.isArray(o))for(const e of o)t.append(r,null!=e?e:"");else t.append(r,o);return t.toString()},updateType:"pushIn",includeKnownParams:void 0,includeAllParams:!1,removeDefaultsFromUrl:!1,enableBatching:!1,skipUpdateWhenNoChange:!0}},C=u.createContext(S);function k(e){let{children:t,adapter:n,options:r}=e;const{adapter:o,options:i}=u.useContext(C),a=u.useMemo((()=>({adapter:null!=n?n:o,options:x(i,r)})),[n,r,o,i]);return u.createElement(C.Provider,{value:a},t)}function O(e){let{children:t,adapter:n,options:r}=e;const o=n;return o?u.createElement(o,null,(e=>u.createElement(k,{adapter:e,options:r},t))):u.createElement(k,{options:r},t)}function T(e){let{changes:t,updateType:n,currentSearchString:r,paramConfigMap:o,options:i}=e;const{searchStringToObject:a,objectToSearchString:s}=i;let l;null==n&&(n=i.updateType);const u=_(a,r),p=f(o,Object.keys(t),i.params);let h,m;if("function"===typeof t){h=t(g(u,p,d))}else h=t;return l=c(p,h),i.removeDefaultsFromUrl&&function(e,t){var n;for(const r in e)void 0!==(null==(n=t[r])?void 0:n.default)&&void 0!==e[r]&&t[r].encode(t[r].default)===e[r]&&(e[r]=void 0)}(l,p),l=function(e,t){var n;let r={};for(const o in e)null!=(null==(n=t[o])?void 0:n.urlName)?r[t[o].urlName]=e[o]:r[o]=e[o];return r}(l,p),m=s("push"===n||"replace"===n?l:{...u,...l}),(null==m?void 0:m.length)&&"?"!==m[0]&&(m=`?${m}`),null!=m?m:""}const N=e=>e(),I=e=>setTimeout((()=>e()),0),P=[];function R(e,t){const{adapter:n,options:r}=function(){const e=u.useContext(C);if(void 0===e||e===S)throw new Error("useQueryParams must be used within a QueryParamProvider");return e}(),[o]=(0,u.useState)(v),{paramConfigMap:i,options:a}=function(e,t){let n,r;void 0===e?(n={},r=t):Array.isArray(e)?(n=Object.fromEntries(e.map((e=>[e,"inherit"]))),r=t):(n=e,r=t);return{paramConfigMap:n,options:r}}(e,t),l=(0,u.useMemo)((()=>x(r,a)),[r,a]);let c=function(e,t){var n,r,o;const i={};let a=!1;const l=Object.keys(e);let c=l;if(t.includeKnownParams||!1!==t.includeKnownParams&&0===l.length){const e=Object.keys(null!=(n=t.params)?n:{});c.push(...e)}for(const u of c){const n=e[u];null==n||"object"!==typeof n?(a=!0,i[u]=null!=(o=null==(r=t.params)?void 0:r[u])?o:s):i[u]=n}return a?i:e}(i,l);const p=_(l.searchStringToObject,n.location.search,function(e){let t;for(const n in e)if(e[n].urlName){const r=`${e[n].urlName}\0${n}`;t?t.push(r):t=[r]}return t?t.join("\n"):void 0}(c));l.includeAllParams&&(c=f(c,Object.keys(p),l.params,s));const h=o(p,c,d),m=Object.keys(c).join("\0");(0,u.useEffect)((()=>{const e=m.split("\0");return d.registerParams(e),()=>{d.unregisterParams(e)}}),[m]);const g={adapter:n,paramConfigMap:c,options:l},y=(0,u.useRef)(g);null==y.current&&(y.current=g),(0,u.useEffect)((()=>{y.current.adapter=n,y.current.paramConfigMap=c,y.current.options=l}),[n,c,l]);const[b]=(0,u.useState)((()=>(e,t)=>{const{adapter:n,paramConfigMap:r,options:o}=y.current;null==t&&(t=o.updateType),function(e){let{immediate:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};P.push(e);let n=t?N:I;1===P.length&&n((()=>{const t=P.slice();P.length=0;const n=t[0].currentSearchString;let r;for(let e=0;e<t.length;++e)r=T(0===e?t[e]:{...t[e],currentSearchString:r});e.options.skipUpdateWhenNoChange&&r===n||function(e){let{searchString:t,adapter:n,navigate:r,updateType:o}=e;const i={...n.location,search:t};r&&("string"===typeof o&&o.startsWith("replace")?n.replace(i):n.push(i))}({searchString:null!=r?r:"",adapter:t[t.length-1].adapter,navigate:!0,updateType:t[t.length-1].updateType})}))}({changes:e,updateType:t,currentSearchString:n.location.search,paramConfigMap:r,options:o,adapter:n},{immediate:!o.enableBatching})}));return[h,b]}var D=R;const A=(e,t,n)=>{const r=(0,u.useMemo)((()=>({[e]:null!=t?t:"inherit"})),[e,t]),[o,i]=D(r,n);return[o[e],(0,u.useCallback)(((t,n)=>i("function"===typeof t?n=>{const r=t(n[e]);return{[e]:r}}:{[e]:t},n)),[e,i])]}},28127:(e,t,n)=>{"use strict";var r=n(68963);var o="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},i=r.useSyncExternalStore,a=r.useRef,s=r.useEffect,l=r.useMemo,c=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,u){var d=a(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=l((function(){function e(e){if(!s){if(s=!0,i=e,e=r(e),void 0!==u&&f.hasValue){var t=f.value;if(u(t,e))return a=t}return a=e}if(t=a,o(i,e))return t;var n=r(e);return void 0!==u&&u(t,n)?t:(i=e,a=n)}var i,a,s=!1,l=void 0===n?null:n;return[function(){return e(t())},null===l?void 0:function(){return e(l())}]}),[t,n,r,u]);var p=i(e,d[0],d[1]);return s((function(){f.hasValue=!0,f.value=p}),[p]),c(p),p}},29074:(e,t,n)=>{"use strict";e.exports=n(28127)},24654:()=>{},97326:(e,t,n)=>{"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{Z:()=>r})},87462:(e,t,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{Z:()=>r})},51721:(e,t,n)=>{"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t)}n.d(t,{Z:()=>o})},63366:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}n.d(t,{Z:()=>r})},17095:(e,t,n)=>{"use strict";n.d(t,{CN:()=>I,Tk:()=>M,hF:()=>Y,oZ:()=>s});var r=n(38907),o=n(1399),i=n(89900),a=n(36313),s=(e=>(e.uninitialized="uninitialized",e.pending="pending",e.fulfilled="fulfilled",e.rejected="rejected",e))(s||{});var l=e=>[].concat(...e);var c=r.PO;function u(e,t){if(e===t||!(c(e)&&c(t)||Array.isArray(e)&&Array.isArray(t)))return t;const n=Object.keys(t),r=Object.keys(e);let o=n.length===r.length;const i=Array.isArray(t)?[]:{};for(const a of n)i[a]=u(e[a],t[a]),o&&(o=e[a]===i[a]);return o?e:i}var d=class{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;this.value=e,this.meta=t}};var f=(0,o.PH)("__rtkq/focused"),p=(0,o.PH)("__rtkq/unfocused"),h=(0,o.PH)("__rtkq/online"),m=(0,o.PH)("__rtkq/offline");function g(e){return"query"===e.type}function v(e,t,n,r,o,i){return"function"===typeof e?e(t,n,r,o).map(y).map(i):Array.isArray(e)?e.map(y).map(i):[]}function y(e){return"string"===typeof e?{type:e}:e}function b(e){return null!=e}function w(e){let t=0;for(const n in e)t++;return t}var E=Symbol("forceQueryFn"),_=e=>"function"===typeof e[E];function x(e){return e}function S(e,t,n,r){return v(n[e.meta.arg.endpointName][t],(0,o.KD)(e)?e.payload:void 0,(0,o.h_)(e)?e.payload:void 0,e.meta.arg.originalArgs,"baseQueryMeta"in e.meta?e.meta.baseQueryMeta:void 0,r)}function C(e,t,n){const r=e[t];r&&n(r)}function k(e){return("arg"in e?e.arg.fixedCacheKey:e.fixedCacheKey)??e.requestId}function O(e,t,n){const r=e[k(t)];r&&n(r)}var T={};function N(e){let{reducerPath:t,queryThunk:n,mutationThunk:a,context:{endpointDefinitions:s,apiUid:l,extractRehydrationInfo:c,hasRehydrationInfo:d},assertTagType:g,config:v}=e;const y=(0,o.PH)(`${t}/resetApiState`),b=(0,o.oM)({name:`${t}/queries`,initialState:T,reducers:{removeQueryResult:{reducer(e,t){let{payload:{queryCacheKey:n}}=t;delete e[n]},prepare:(0,o.cw)()},queryResultPatched:{reducer(e,t){let{payload:{queryCacheKey:n,patches:r}}=t;C(e,n,(e=>{e.data=(0,i.QE)(e.data,r.concat())}))},prepare:(0,o.cw)()}},extraReducers(e){e.addCase(n.pending,((e,t)=>{let{meta:n,meta:{arg:r}}=t;const o=_(r);e[r.queryCacheKey]??={status:"uninitialized",endpointName:r.endpointName},C(e,r.queryCacheKey,(e=>{e.status="pending",e.requestId=o&&e.requestId?e.requestId:n.requestId,void 0!==r.originalArgs&&(e.originalArgs=r.originalArgs),e.startedTimeStamp=n.startedTimeStamp}))})).addCase(n.fulfilled,((e,t)=>{let{meta:n,payload:r}=t;C(e,n.arg.queryCacheKey,(e=>{if(e.requestId!==n.requestId&&!_(n.arg))return;const{merge:t}=s[n.arg.endpointName];if(e.status="fulfilled",t)if(void 0!==e.data){const{fulfilledTimeStamp:o,arg:a,baseQueryMeta:s,requestId:l}=n;let c=(0,i.Uy)(e.data,(e=>t(e,r,{arg:a.originalArgs,baseQueryMeta:s,fulfilledTimeStamp:o,requestId:l})));e.data=c}else e.data=r;else e.data=s[n.arg.endpointName].structuralSharing??1?u((0,i.mv)(e.data)?(0,i.Js)(e.data):e.data,r):r;delete e.error,e.fulfilledTimeStamp=n.fulfilledTimeStamp}))})).addCase(n.rejected,((e,t)=>{let{meta:{condition:n,arg:r,requestId:o},error:i,payload:a}=t;C(e,r.queryCacheKey,(e=>{if(n);else{if(e.requestId!==o)return;e.status="rejected",e.error=a??i}}))})).addMatcher(d,((e,t)=>{const{queries:n}=c(t);for(const[r,o]of Object.entries(n))"fulfilled"!==o?.status&&"rejected"!==o?.status||(e[r]=o)}))}}),w=(0,o.oM)({name:`${t}/mutations`,initialState:T,reducers:{removeMutationResult:{reducer(e,t){let{payload:n}=t;const r=k(n);r in e&&delete e[r]},prepare:(0,o.cw)()}},extraReducers(e){e.addCase(a.pending,((e,t)=>{let{meta:n,meta:{requestId:r,arg:o,startedTimeStamp:i}}=t;o.track&&(e[k(n)]={requestId:r,status:"pending",endpointName:o.endpointName,startedTimeStamp:i})})).addCase(a.fulfilled,((e,t)=>{let{payload:n,meta:r}=t;r.arg.track&&O(e,r,(e=>{e.requestId===r.requestId&&(e.status="fulfilled",e.data=n,e.fulfilledTimeStamp=r.fulfilledTimeStamp)}))})).addCase(a.rejected,((e,t)=>{let{payload:n,error:r,meta:o}=t;o.arg.track&&O(e,o,(e=>{e.requestId===o.requestId&&(e.status="rejected",e.error=n??r)}))})).addMatcher(d,((e,t)=>{const{mutations:n}=c(t);for(const[r,o]of Object.entries(n))"fulfilled"!==o?.status&&"rejected"!==o?.status||r===o?.requestId||(e[r]=o)}))}}),E=(0,o.oM)({name:`${t}/invalidation`,initialState:T,reducers:{updateProvidedBy:{reducer(e,t){const{queryCacheKey:n,providedTags:r}=t.payload;for(const o of Object.values(e))for(const e of Object.values(o)){const t=e.indexOf(n);-1!==t&&e.splice(t,1)}for(const{type:o,id:i}of r){const t=(e[o]??={})[i||"__internal_without_id"]??=[];t.includes(n)||t.push(n)}},prepare:(0,o.cw)()}},extraReducers(e){e.addCase(b.actions.removeQueryResult,((e,t)=>{let{payload:{queryCacheKey:n}}=t;for(const r of Object.values(e))for(const e of Object.values(r)){const t=e.indexOf(n);-1!==t&&e.splice(t,1)}})).addMatcher(d,((e,t)=>{const{provided:n}=c(t);for(const[r,o]of Object.entries(n))for(const[t,n]of Object.entries(o)){const o=(e[r]??={})[t||"__internal_without_id"]??=[];for(const e of n){o.includes(e)||o.push(e)}}})).addMatcher((0,o.Q)((0,o.KD)(n),(0,o.h_)(n)),((e,t)=>{const n=S(t,"providesTags",s,g),{queryCacheKey:r}=t.meta.arg;E.caseReducers.updateProvidedBy(e,E.actions.updateProvidedBy({queryCacheKey:r,providedTags:n}))}))}}),x=(0,o.oM)({name:`${t}/subscriptions`,initialState:T,reducers:{updateSubscriptionOptions(e,t){},unsubscribeQueryResult(e,t){},internal_getRTKQSubscriptions(){}}}),N=(0,o.oM)({name:`${t}/internalSubscriptions`,initialState:T,reducers:{subscriptionsUpdated:{reducer:(e,t)=>(0,i.QE)(e,t.payload),prepare:(0,o.cw)()}}}),I=(0,o.oM)({name:`${t}/config`,initialState:{online:"undefined"===typeof navigator||void 0===navigator.onLine||navigator.onLine,focused:"undefined"===typeof document||"hidden"!==document.visibilityState,middlewareRegistered:!1,...v},reducers:{middlewareRegistered(e,t){let{payload:n}=t;e.middlewareRegistered="conflict"!==e.middlewareRegistered&&l===n||"conflict"}},extraReducers:e=>{e.addCase(h,(e=>{e.online=!0})).addCase(m,(e=>{e.online=!1})).addCase(f,(e=>{e.focused=!0})).addCase(p,(e=>{e.focused=!1})).addMatcher(d,(e=>({...e})))}}),P=(0,r.UY)({queries:b.reducer,mutations:w.reducer,provided:E.reducer,subscriptions:N.reducer,config:I.reducer});return{reducer:(e,t)=>P(y.match(t)?void 0:e,t),actions:{...I.actions,...b.actions,...x.actions,...N.actions,...w.actions,...E.actions,resetApiState:y}}}var I=Symbol.for("RTKQ/skipToken"),P={status:"uninitialized"},R=(0,i.Uy)(P,(()=>{})),D=(0,i.Uy)(P,(()=>{}));var A=WeakMap?new WeakMap:void 0,j=e=>{let{endpointName:t,queryArgs:n}=e,o="";const i=A?.get(n);if("string"===typeof i)o=i;else{const e=JSON.stringify(n,((e,t)=>(0,r.PO)(t)?Object.keys(t).sort().reduce(((e,n)=>(e[n]=t[n],e)),{}):t));(0,r.PO)(n)&&A?.set(n,e),o=e}return`${t}(${o})`};function M(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){const n=(0,a.kO)((t=>e.extractRehydrationInfo?.(t,{reducerPath:e.reducerPath??"api"}))),r={reducerPath:"api",keepUnusedDataFor:60,refetchOnMountOrArgChange:!1,refetchOnFocus:!1,refetchOnReconnect:!1,invalidationBehavior:"delayed",...e,extractRehydrationInfo:n,serializeQueryArgs(t){let n=j;if("serializeQueryArgs"in t.endpointDefinition){const e=t.endpointDefinition.serializeQueryArgs;n=t=>{const n=e(t);return"string"===typeof n?n:j({...t,queryArgs:n})}}else e.serializeQueryArgs&&(n=e.serializeQueryArgs);return n(t)},tagTypes:[...e.tagTypes||[]]},i={endpointDefinitions:{},batch(e){e()},apiUid:(0,o.x0)(),extractRehydrationInfo:n,hasRehydrationInfo:(0,a.kO)((e=>null!=n(e)))},s={injectEndpoints:function(e){const t=e.endpoints({query:e=>({...e,type:"query"}),mutation:e=>({...e,type:"mutation"})});for(const[n,r]of Object.entries(t))if(!0!==e.overrideExisting&&n in i.endpointDefinitions){if("throw"===e.overrideExisting)throw new Error((0,o.rJ)(39))}else{i.endpointDefinitions[n]=r;for(const e of l)e.injectEndpoint(n,r)}return s},enhanceEndpoints(e){let{addTagTypes:t,endpoints:n}=e;if(t)for(const o of t)r.tagTypes.includes(o)||r.tagTypes.push(o);if(n)for(const[r,o]of Object.entries(n))"function"===typeof o?o(i.endpointDefinitions[r]):Object.assign(i.endpointDefinitions[r]||{},o);return s}},l=t.map((e=>e.init(s,r,i)));return s.injectEndpoints({endpoints:e.endpoints})}}var L=2147482.647,z=e=>{let{reducerPath:t,api:n,queryThunk:r,context:i,internalState:a}=e;const{removeQueryResult:s,unsubscribeQueryResult:l}=n.internalActions,c=(0,o.Q)(l.match,r.fulfilled,r.rejected);function u(e){const t=a.currentSubscriptions[e];return!!t&&!function(e){for(let t in e)return!1;return!0}(t)}const d={};function f(e,t,n,r){const o=i.endpointDefinitions[t],a=o?.keepUnusedDataFor??r.keepUnusedDataFor;if(a===1/0)return;const l=Math.max(0,Math.min(a,L));if(!u(e)){const t=d[e];t&&clearTimeout(t),d[e]=setTimeout((()=>{u(e)||n.dispatch(s({queryCacheKey:e})),delete d[e]}),1e3*l)}}return(e,r,o)=>{if(c(e)){const n=r.getState()[t],{queryCacheKey:o}=l.match(e)?e.payload:e.meta.arg;f(o,n.queries[o]?.endpointName,r,n.config)}if(n.util.resetApiState.match(e))for(const[t,n]of Object.entries(d))n&&clearTimeout(n),delete d[t];if(i.hasRehydrationInfo(e)){const n=r.getState()[t],{queries:o}=i.extractRehydrationInfo(e);for(const[e,t]of Object.entries(o))f(e,t?.endpointName,r,n.config)}}},F=e=>{let{reducerPath:t,context:n,context:{endpointDefinitions:r},mutationThunk:i,queryThunk:a,api:s,assertTagType:l,refetchQuery:c,internalState:u}=e;const{removeQueryResult:d}=s.internalActions,f=(0,o.Q)((0,o.KD)(i),(0,o.h_)(i)),p=(0,o.Q)((0,o.KD)(i,a),(0,o.Iv)(i,a));let h=[];function m(e,r){const o=r.getState(),i=o[t];if(h.push(...e),"delayed"===i.config.invalidationBehavior&&function(e){for(const t in e.queries)if("pending"===e.queries[t]?.status)return!0;for(const t in e.mutations)if("pending"===e.mutations[t]?.status)return!0;return!1}(i))return;const a=h;if(h=[],0===a.length)return;const l=s.util.selectInvalidatedBy(o,a);n.batch((()=>{const e=Array.from(l.values());for(const{queryCacheKey:t}of e){const e=i.queries[t],n=u.currentSubscriptions[t]??{};e&&(0===w(n)?r.dispatch(d({queryCacheKey:t})):"uninitialized"!==e.status&&r.dispatch(c(e,t)))}}))}return(e,t)=>{f(e)?m(S(e,"invalidatesTags",r,l),t):p(e)?m([],t):s.util.invalidateTags.match(e)&&m(v(e.payload,void 0,void 0,void 0,void 0,l),t)}},B=e=>{let{reducerPath:t,queryThunk:n,api:r,refetchQuery:o,internalState:i}=e;const a={};function s(e,n){let{queryCacheKey:r}=e;const l=n.getState()[t],c=l.queries[r],d=i.currentSubscriptions[r];if(!c||"uninitialized"===c.status)return;const{lowestPollingInterval:f,skipPollingIfUnfocused:p}=u(d);if(!Number.isFinite(f))return;const h=a[r];h?.timeout&&(clearTimeout(h.timeout),h.timeout=void 0);const m=Date.now()+f;a[r]={nextPollTimestamp:m,pollingInterval:f,timeout:setTimeout((()=>{!l.config.focused&&p||n.dispatch(o(c,r)),s({queryCacheKey:r},n)}),f)}}function l(e,n){let{queryCacheKey:r}=e;const o=n.getState()[t].queries[r],l=i.currentSubscriptions[r];if(!o||"uninitialized"===o.status)return;const{lowestPollingInterval:d}=u(l);if(!Number.isFinite(d))return void c(r);const f=a[r],p=Date.now()+d;(!f||p<f.nextPollTimestamp)&&s({queryCacheKey:r},n)}function c(e){const t=a[e];t?.timeout&&clearTimeout(t.timeout),delete a[e]}function u(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=!1,n=Number.POSITIVE_INFINITY;for(let r in e)e[r].pollingInterval&&(n=Math.min(e[r].pollingInterval,n),t=e[r].skipPollingIfUnfocused||t);return{lowestPollingInterval:n,skipPollingIfUnfocused:t}}return(e,t)=>{(r.internalActions.updateSubscriptionOptions.match(e)||r.internalActions.unsubscribeQueryResult.match(e))&&l(e.payload,t),(n.pending.match(e)||n.rejected.match(e)&&e.meta.condition)&&l(e.meta.arg,t),(n.fulfilled.match(e)||n.rejected.match(e)&&!e.meta.condition)&&s(e.meta.arg,t),r.util.resetApiState.match(e)&&function(){for(const e of Object.keys(a))c(e)}()}},U=e=>{let{reducerPath:t,context:n,api:r,refetchQuery:o,internalState:i}=e;const{removeQueryResult:a}=r.internalActions;function s(e,r){const s=e.getState()[t],l=s.queries,c=i.currentSubscriptions;n.batch((()=>{for(const t of Object.keys(c)){const n=l[t],i=c[t];if(!i||!n)continue;(Object.values(i).some((e=>!0===e[r]))||Object.values(i).every((e=>void 0===e[r]))&&s.config[r])&&(0===w(i)?e.dispatch(a({queryCacheKey:t})):"uninitialized"!==n.status&&e.dispatch(o(n,t)))}}))}return(e,t)=>{f.match(e)&&s(t,"refetchOnFocus"),h.match(e)&&s(t,"refetchOnReconnect")}},q=new Error("Promise never resolved before cacheEntryRemoved."),$=e=>{let{api:t,reducerPath:n,context:r,queryThunk:i,mutationThunk:a,internalState:s}=e;const l=(0,o.Gx)(i),c=(0,o.Gx)(a),u=(0,o.KD)(i,a),d={};function f(e,n,o,i,a){const s=r.endpointDefinitions[e],l=s?.onCacheEntryAdded;if(!l)return;let c={};const u=new Promise((e=>{c.cacheEntryRemoved=e})),f=Promise.race([new Promise((e=>{c.valueResolved=e})),u.then((()=>{throw q}))]);f.catch((()=>{})),d[o]=c;const p=t.endpoints[e].select("query"===s.type?n:o),h=i.dispatch(((e,t,n)=>n)),m={...i,getCacheEntry:()=>p(i.getState()),requestId:a,extra:h,updateCachedData:"query"===s.type?r=>i.dispatch(t.util.updateQueryData(e,n,r)):void 0,cacheDataLoaded:f,cacheEntryRemoved:u},g=l(n,m);Promise.resolve(g).catch((e=>{if(e!==q)throw e}))}return(e,r,o)=>{const s=function(e){if(l(e))return e.meta.arg.queryCacheKey;if(c(e))return e.meta.arg.fixedCacheKey??e.meta.requestId;return t.internalActions.removeQueryResult.match(e)?e.payload.queryCacheKey:t.internalActions.removeMutationResult.match(e)?k(e.payload):""}(e);if(i.pending.match(e)){const t=o[n].queries[s],i=r.getState()[n].queries[s];!t&&i&&f(e.meta.arg.endpointName,e.meta.arg.originalArgs,s,r,e.meta.requestId)}else if(a.pending.match(e)){r.getState()[n].mutations[s]&&f(e.meta.arg.endpointName,e.meta.arg.originalArgs,s,r,e.meta.requestId)}else if(u(e)){const t=d[s];t?.valueResolved&&(t.valueResolved({data:e.payload,meta:e.meta.baseQueryMeta}),delete t.valueResolved)}else if(t.internalActions.removeQueryResult.match(e)||t.internalActions.removeMutationResult.match(e)){const e=d[s];e&&(delete d[s],e.cacheEntryRemoved())}else if(t.util.resetApiState.match(e))for(const[t,n]of Object.entries(d))delete d[t],n.cacheEntryRemoved()}},Z=e=>{let{api:t,context:n,queryThunk:r,mutationThunk:i}=e;const a=(0,o.zR)(r,i),s=(0,o.Iv)(r,i),l=(0,o.KD)(r,i),c={};return(e,r)=>{if(a(e)){const{requestId:o,arg:{endpointName:i,originalArgs:a}}=e.meta,s=n.endpointDefinitions[i],l=s?.onQueryStarted;if(l){const e={},n=new Promise(((t,n)=>{e.resolve=t,e.reject=n}));n.catch((()=>{})),c[o]=e;const u=t.endpoints[i].select("query"===s.type?a:o),d=r.dispatch(((e,t,n)=>n)),f={...r,getCacheEntry:()=>u(r.getState()),requestId:o,extra:d,updateCachedData:"query"===s.type?e=>r.dispatch(t.util.updateQueryData(i,a,e)):void 0,queryFulfilled:n};l(a,f)}}else if(l(e)){const{requestId:t,baseQueryMeta:n}=e.meta;c[t]?.resolve({data:e.payload,meta:n}),delete c[t]}else if(s(e)){const{requestId:t,rejectedWithValue:n,baseQueryMeta:r}=e.meta;c[t]?.reject({error:e.payload??e.error,isUnhandledError:!n,meta:r}),delete c[t]}}},H=e=>{let{api:t,context:{apiUid:n},reducerPath:r}=e;return(e,r)=>{t.util.resetApiState.match(e)&&r.dispatch(t.internalActions.middlewareRegistered(n))}},V=e=>{let{api:t,queryThunk:n,internalState:r}=e;const o=`${t.reducerPath}/subscriptions`;let a=null,s=null;const{updateSubscriptionOptions:l,unsubscribeQueryResult:c}=t.internalActions,u=()=>r.currentSubscriptions,d={getSubscriptions:u,getSubscriptionCount:e=>w(u()[e]??{}),isRequestSubscribed:(e,t)=>{const n=u();return!!n?.[e]?.[t]}};return(e,u)=>{if(a||(a=JSON.parse(JSON.stringify(r.currentSubscriptions))),t.util.resetApiState.match(e))return a=r.currentSubscriptions={},s=null,[!0,!1];if(t.internalActions.internal_getRTKQSubscriptions.match(e))return[!1,d];const f=((e,r)=>{if(l.match(r)){const{queryCacheKey:t,requestId:n,options:o}=r.payload;return e?.[t]?.[n]&&(e[t][n]=o),!0}if(c.match(r)){const{queryCacheKey:t,requestId:n}=r.payload;return e[t]&&delete e[t][n],!0}if(t.internalActions.removeQueryResult.match(r))return delete e[r.payload.queryCacheKey],!0;if(n.pending.match(r)){const{meta:{arg:t,requestId:n}}=r,o=e[t.queryCacheKey]??={};return o[`${n}_running`]={},t.subscribe&&(o[n]=t.subscriptionOptions??o[n]??{}),!0}let o=!1;if(n.fulfilled.match(r)||n.rejected.match(r)){const t=e[r.meta.arg.queryCacheKey]||{},n=`${r.meta.requestId}_running`;o||=!!t[n],delete t[n]}if(n.rejected.match(r)){const{meta:{condition:t,arg:n,requestId:i}}=r;if(t&&n.subscribe){const t=e[n.queryCacheKey]??={};t[i]=n.subscriptionOptions??t[i]??{},o=!0}}return o})(r.currentSubscriptions,e);let p=!0;if(f){s||(s=setTimeout((()=>{const e=JSON.parse(JSON.stringify(r.currentSubscriptions)),[,n]=(0,i.aS)(a,(()=>e));u.next(t.internalActions.subscriptionsUpdated(n)),a=e,s=null}),500));const l="string"==typeof e.type&&!!e.type.startsWith(o),c=n.rejected.match(e)&&e.meta.condition&&!!e.meta.arg.subscribe;p=!l&&!c}return[p,!1]}};function W(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Object.assign(e,...n)}var G=Symbol(),Y=function(){let{createSelector:e=a.P1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{name:G,init(t,n,a){let{baseQuery:s,tagTypes:c,reducerPath:u,serializeQueryArgs:S,keepUnusedDataFor:C,refetchOnMountOrArgChange:O,refetchOnFocus:T,refetchOnReconnect:P,invalidationBehavior:A}=n;(0,i.vI)();const j=e=>e;Object.assign(t,{reducerPath:u,endpoints:{},internalActions:{onOnline:h,onOffline:m,onFocus:f,onFocusLost:p},util:{}});const{queryThunk:M,mutationThunk:L,patchQueryData:q,updateQueryData:Y,upsertQueryData:K,prefetch:Q,buildMatchThunkActions:J}=function(e){let{reducerPath:t,baseQuery:n,context:{endpointDefinitions:r},serializeQueryArgs:a,api:s,assertTagType:l}=e;const c=async(e,t)=>{let{signal:i,abort:a,rejectWithValue:s,fulfillWithValue:l,dispatch:c,getState:f,extra:p}=t;const h=r[e.endpointName];try{let t,r=x;const s={signal:i,abort:a,dispatch:c,getState:f,extra:p,endpoint:e.endpointName,type:e.type,forced:"query"===e.type?u(e,f()):void 0},m="query"===e.type?e[E]:void 0;if(m?t=m():h.query?(t=await n(h.query(e.originalArgs),s,h.extraOptions),h.transformResponse&&(r=h.transformResponse)):t=await h.queryFn(e.originalArgs,s,h.extraOptions,(e=>n(e,s,h.extraOptions))),t.error)throw new d(t.error,t.meta);return l(await r(t.data,t.meta,e.originalArgs),{fulfilledTimeStamp:Date.now(),baseQueryMeta:t.meta,[o.s4]:!0})}catch(m){let t=m;if(t instanceof d){let n=x;h.query&&h.transformErrorResponse&&(n=h.transformErrorResponse);try{return s(await n(t.value,t.meta,e.originalArgs),{baseQueryMeta:t.meta,[o.s4]:!0})}catch(g){t=g}}throw console.error(t),t}};function u(e,n){const r=n[t]?.queries?.[e.queryCacheKey],o=n[t]?.config.refetchOnMountOrArgChange,i=r?.fulfilledTimeStamp,a=e.forceRefetch??(e.subscribe&&o);return!!a&&(!0===a||(Number(new Date)-Number(i))/1e3>=a)}const f=(0,o.hg)(`${t}/executeQuery`,c,{getPendingMeta:()=>({startedTimeStamp:Date.now(),[o.s4]:!0}),condition(e,n){let{getState:o}=n;const i=o(),a=i[t]?.queries?.[e.queryCacheKey],s=a?.fulfilledTimeStamp,l=e.originalArgs,c=a?.originalArgs,d=r[e.endpointName];return!!_(e)||"pending"!==a?.status&&(!!u(e,i)||!(!g(d)||!d?.forceRefetch?.({currentArg:l,previousArg:c,endpointState:a,state:i}))||!s)},dispatchConditionRejection:!0}),p=(0,o.hg)(`${t}/executeMutation`,c,{getPendingMeta:()=>({startedTimeStamp:Date.now(),[o.s4]:!0})});function h(e){return t=>t?.meta?.arg?.endpointName===e}return{queryThunk:f,mutationThunk:p,prefetch:(e,t,n)=>(r,o)=>{const i=(e=>"force"in e)(n)&&n.force,a=(e=>"ifOlderThan"in e)(n)&&n.ifOlderThan,l=function(){const n={forceRefetch:!(arguments.length>0&&void 0!==arguments[0])||arguments[0],isPrefetch:!0};return s.endpoints[e].initiate(t,n)},c=s.endpoints[e].select(t)(o());if(i)r(l());else if(a){const e=c?.fulfilledTimeStamp;if(!e)return void r(l());(Number(new Date)-Number(new Date(e)))/1e3>=a&&r(l())}else r(l(!1))},updateQueryData:function(e,t,n){let r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];return(o,a)=>{const l=s.endpoints[e].select(t)(a());let c,u={patches:[],inversePatches:[],undo:()=>o(s.util.patchQueryData(e,t,u.inversePatches,r))};if("uninitialized"===l.status)return u;if("data"in l)if((0,i.o$)(l.data)){const[e,t,r]=(0,i.aS)(l.data,n);u.patches.push(...t),u.inversePatches.push(...r),c=e}else c=n(l.data),u.patches.push({op:"replace",path:[],value:c}),u.inversePatches.push({op:"replace",path:[],value:l.data});return 0===u.patches.length||o(s.util.patchQueryData(e,t,u.patches,r)),u}},upsertQueryData:(e,t,n)=>r=>r(s.endpoints[e].initiate(t,{subscribe:!1,forceRefetch:!0,[E]:()=>({data:n})})),patchQueryData:(e,t,n,o)=>(i,c)=>{const u=r[e],d=a({queryArgs:t,endpointDefinition:u,endpointName:e});if(i(s.internalActions.queryResultPatched({queryCacheKey:d,patches:n})),!o)return;const f=s.endpoints[e].select(t)(c()),p=v(u.providesTags,f.data,void 0,t,{},l);i(s.internalActions.updateProvidedBy({queryCacheKey:d,providedTags:p}))},buildMatchThunkActions:function(e,t){return{matchPending:(0,o.A6)((0,o.zR)(e),h(t)),matchFulfilled:(0,o.A6)((0,o.KD)(e),h(t)),matchRejected:(0,o.A6)((0,o.Iv)(e),h(t))}}}}({baseQuery:s,reducerPath:u,context:a,api:t,serializeQueryArgs:S,assertTagType:j}),{reducer:X,actions:ee}=N({context:a,queryThunk:M,mutationThunk:L,reducerPath:u,assertTagType:j,config:{refetchOnFocus:T,refetchOnReconnect:P,refetchOnMountOrArgChange:O,keepUnusedDataFor:C,reducerPath:u,invalidationBehavior:A}});W(t.util,{patchQueryData:q,updateQueryData:Y,upsertQueryData:K,prefetch:Q,resetApiState:ee.resetApiState}),W(t.internalActions,ee);const{middleware:te,actions:ne}=function(e){const{reducerPath:t,queryThunk:n,api:i,context:a}=e,{apiUid:s}=a,l={invalidateTags:(0,o.PH)(`${t}/invalidateTags`)},c=e=>e.type.startsWith(`${t}/`),u=[H,z,F,B,$,Z];return{middleware:n=>{let o=!1;const l={...e,internalState:{currentSubscriptions:{}},refetchQuery:d,isThisApiSliceAction:c},f=u.map((e=>e(l))),p=V(l),h=U(l);return e=>l=>{if(!(0,r.LG)(l))return e(l);o||(o=!0,n.dispatch(i.internalActions.middlewareRegistered(s)));const u={...n,next:e},d=n.getState(),[m,g]=p(l,u,d);let v;if(v=m?e(l):g,n.getState()[t]&&(h(l,u,d),c(l)||a.hasRehydrationInfo(l)))for(let e of f)e(l,u,d);return v}},actions:l};function d(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n({type:"query",endpointName:e.endpointName,originalArgs:e.originalArgs,subscribe:!1,forceRefetch:!0,queryCacheKey:t,...r})}}({reducerPath:u,context:a,queryThunk:M,mutationThunk:L,api:t,assertTagType:j});W(t.util,ne),W(t,{reducer:X,middleware:te});const{buildQuerySelector:re,buildMutationSelector:oe,selectInvalidatedBy:ie,selectCachedArgsForQuery:ae}=function(e){let{serializeQueryArgs:t,reducerPath:n,createSelector:r}=e;const o=e=>R,i=e=>D;return{buildQuerySelector:function(e,n){return i=>{const l=t({queryArgs:i,endpointDefinition:n,endpointName:e});return r(i===I?o:e=>s(e)?.queries?.[l]??R,a)}},buildMutationSelector:function(){return e=>{let t;return t="object"===typeof e?k(e)??I:e,r(t===I?i:e=>s(e)?.mutations?.[t]??D,a)}},selectInvalidatedBy:function(e,t){const r=e[n],o=new Set;for(const n of t.map(y)){const e=r.provided[n.type];if(!e)continue;let t=(void 0!==n.id?e[n.id]:l(Object.values(e)))??[];for(const n of t)o.add(n)}return l(Array.from(o.values()).map((e=>{const t=r.queries[e];return t?[{queryCacheKey:e,endpointName:t.endpointName,originalArgs:t.originalArgs}]:[]})))},selectCachedArgsForQuery:function(e,t){return Object.values(e[n].queries).filter((e=>e?.endpointName===t&&"uninitialized"!==e.status)).map((e=>e.originalArgs))}};function a(e){return{...e,...(t=e.status,{status:t,isUninitialized:"uninitialized"===t,isLoading:"pending"===t,isSuccess:"fulfilled"===t,isError:"rejected"===t})};var t}function s(e){return e[n]}}({serializeQueryArgs:S,reducerPath:u,createSelector:e});W(t.util,{selectInvalidatedBy:ie,selectCachedArgsForQuery:ae});const{buildInitiateQuery:se,buildInitiateMutation:le,getRunningMutationThunk:ce,getRunningMutationsThunk:ue,getRunningQueriesThunk:de,getRunningQueryThunk:fe}=function(e){let{serializeQueryArgs:t,queryThunk:n,mutationThunk:r,api:o,context:i}=e;const a=new Map,s=new Map,{unsubscribeQueryResult:l,removeMutationResult:c,updateSubscriptionOptions:u}=o.internalActions;return{buildInitiateQuery:function(e,r){const i=function(s){let{subscribe:c=!0,forceRefetch:f,subscriptionOptions:p,[E]:h,...m}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(g,v)=>{const y=t({queryArgs:s,endpointDefinition:r,endpointName:e}),b=n({...m,type:"query",subscribe:c,forceRefetch:f,subscriptionOptions:p,endpointName:e,originalArgs:s,queryCacheKey:y,[E]:h}),_=o.endpoints[e].select(s),x=g(b),S=_(v());d(g);const{requestId:C,abort:k}=x,O=S.requestId!==C,T=a.get(g)?.[y],N=()=>_(v()),I=Object.assign(h?x.then(N):O&&!T?Promise.resolve(S):Promise.all([T,x]).then(N),{arg:s,requestId:C,subscriptionOptions:p,queryCacheKey:y,abort:k,async unwrap(){const e=await I;if(e.isError)throw e.error;return e.data},refetch:()=>g(i(s,{subscribe:!1,forceRefetch:!0})),unsubscribe(){c&&g(l({queryCacheKey:y,requestId:C}))},updateSubscriptionOptions(t){I.subscriptionOptions=t,g(u({endpointName:e,requestId:C,queryCacheKey:y,options:t}))}});if(!T&&!O&&!h){const e=a.get(g)||{};e[y]=I,a.set(g,e),I.then((()=>{delete e[y],w(e)||a.delete(g)}))}return I}};return i},buildInitiateMutation:function(e){return function(t){let{track:n=!0,fixedCacheKey:o}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(i,a)=>{const l=r({type:"mutation",endpointName:e,originalArgs:t,track:n,fixedCacheKey:o}),u=i(l);d(i);const{requestId:f,abort:p,unwrap:h}=u,m=(g=e=>({error:e}),u.unwrap().then((e=>({data:e}))).catch(g));var g;const v=Object.assign(m,{arg:u.arg,requestId:f,abort:p,unwrap:h,reset:()=>{i(c({requestId:f,fixedCacheKey:o}))}}),y=s.get(i)||{};return s.set(i,y),y[f]=v,v.then((()=>{delete y[f],w(y)||s.delete(i)})),o&&(y[o]=v,v.then((()=>{y[o]===v&&(delete y[o],w(y)||s.delete(i))}))),v}}},getRunningQueryThunk:function(e,n){return r=>{const o=i.endpointDefinitions[e],s=t({queryArgs:n,endpointDefinition:o,endpointName:e});return a.get(r)?.[s]}},getRunningMutationThunk:function(e,t){return e=>s.get(e)?.[t]},getRunningQueriesThunk:function(){return e=>Object.values(a.get(e)||{}).filter(b)},getRunningMutationsThunk:function(){return e=>Object.values(s.get(e)||{}).filter(b)}};function d(e){}}({queryThunk:M,mutationThunk:L,api:t,serializeQueryArgs:S,context:a});return W(t.util,{getRunningMutationThunk:ce,getRunningMutationsThunk:ue,getRunningQueryThunk:fe,getRunningQueriesThunk:de}),{name:G,injectEndpoint(e,n){const r=t;r.endpoints[e]??={},g(n)?W(r.endpoints[e],{name:e,select:re(e,n),initiate:se(e,n)},J(M,e)):"mutation"===n.type&&W(r.endpoints[e],{name:e,select:oe(),initiate:le(e)},J(L,e))}}}}};Y()},1399:(e,t,n)=>{"use strict";n.d(t,{s4:()=>g,xC:()=>_,PH:()=>d,hg:()=>B,oM:()=>V,rJ:()=>te,A6:()=>T,Q:()=>O,Gx:()=>j,KD:()=>A,zR:()=>P,Iv:()=>R,h_:()=>D,x0:()=>C,cw:()=>v});var r=n(89900),o=n(36313),i=n(38907);function a(e){return t=>{let{dispatch:n,getState:r}=t;return t=>o=>"function"===typeof o?o(n,r,e):t(o)}}var s=a(),l=a,c=(function(){const e=(0,o.wN)(...arguments),t=Object.assign((function(){const t=e(...arguments),n=function(e){for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return t((0,r.mv)(e)?(0,r.Vk)(e):e,...o)};return Object.assign(n,t),n}),{withTypes:()=>t})}(o.kO),"undefined"!==typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"===typeof arguments[0]?i.qC:i.qC.apply(null,arguments)}),u=("undefined"!==typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__,e=>e&&"function"===typeof e.match);function d(e,t){function n(){if(t){let n=t(...arguments);if(!n)throw new Error(te(0));return{type:e,payload:n.payload,..."meta"in n&&{meta:n.meta},..."error"in n&&{error:n.error}}}return{type:e,payload:arguments.length<=0?void 0:arguments[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=t=>(0,i.LG)(t)&&t.type===e,n}var f=class e extends Array{constructor(){super(...arguments),Object.setPrototypeOf(this,e.prototype)}static get[Symbol.species](){return e}concat(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return super.concat.apply(this,t)}prepend(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return 1===n.length&&Array.isArray(n[0])?new e(...n[0].concat(this)):new e(...n.concat(this))}};function p(e){return(0,r.o$)(e)?(0,r.Uy)(e,(()=>{})):e}function h(e,t,n){if(e.has(t)){let r=e.get(t);return n.update&&(r=n.update(r,t,e),e.set(t,r)),r}if(!n.insert)throw new Error(te(10));const r=n.insert(t,e);return e.set(t,r),r}var m=()=>function(e){const{thunk:t=!0,immutableCheck:n=!0,serializableCheck:r=!0,actionCreatorCheck:o=!0}=e??{};let i=new f;return t&&("boolean"===typeof t?i.push(s):i.push(l(t.extraArgument))),i},g="RTK_autoBatch",v=()=>e=>({payload:e,meta:{[g]:!0}}),y=e=>t=>{setTimeout(t,e)},b="undefined"!==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame:y(10),w=e=>function(t){const{autoBatch:n=!0}=t??{};let r=new f(e);return n&&r.push(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{type:"raf"};return t=>function(){const n=t(...arguments);let r=!0,o=!1,i=!1;const a=new Set,s="tick"===e.type?queueMicrotask:"raf"===e.type?b:"callback"===e.type?e.queueNotification:y(e.timeout),l=()=>{i=!1,o&&(o=!1,a.forEach((e=>e())))};return Object.assign({},n,{subscribe(e){const t=n.subscribe((()=>r&&e()));return a.add(e),()=>{t(),a.delete(e)}},dispatch(e){try{return r=!e?.meta?.[g],o=!r,o&&(i||(i=!0,s(l))),n.dispatch(e)}finally{r=!0}}})}}("object"===typeof n?n:void 0)),r},E=!0;function _(e){const t=m(),{reducer:n,middleware:r,devTools:o=!0,preloadedState:a,enhancers:s}=e||{};let l,u;if("function"===typeof n)l=n;else{if(!(0,i.PO)(n))throw new Error(te(1));l=(0,i.UY)(n)}if(!E&&r&&"function"!==typeof r)throw new Error(te(2));if("function"===typeof r){if(u=r(t),!E&&!Array.isArray(u))throw new Error(te(3))}else u=t();if(!E&&u.some((e=>"function"!==typeof e)))throw new Error(te(4));let d=i.qC;o&&(d=c({trace:!E,..."object"===typeof o&&o}));const f=(0,i.md)(...u),p=w(f);if(!E&&s&&"function"!==typeof s)throw new Error(te(5));let h="function"===typeof s?s(p):p();if(!E&&!Array.isArray(h))throw new Error(te(6));if(!E&&h.some((e=>"function"!==typeof e)))throw new Error(te(7));E||!u.length||h.includes(f)||console.error("middlewares were provided, but middleware enhancer was not included in final enhancers - make sure to call `getDefaultEnhancers`");const g=d(...h);return(0,i.MT)(l,a,g)}function x(e){const t={},n=[];let r;const o={addCase(e,n){const r="string"===typeof e?e:e.type;if(!r)throw new Error(te(28));if(r in t)throw new Error(te(29));return t[r]=n,o},addMatcher:(e,t)=>(n.push({matcher:e,reducer:t}),o),addDefaultCase:e=>(r=e,o)};return e(o),[t,n,r]}var S="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",C=function(){let e="",t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:21;for(;t--;)e+=S[64*Math.random()|0];return e},k=(e,t)=>u(e)?e.match(t):e(t);function O(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return e=>t.some((t=>k(t,e)))}function T(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return e=>t.every((t=>k(t,e)))}function N(e,t){if(!e||!e.meta)return!1;const n="string"===typeof e.meta.requestId,r=t.indexOf(e.meta.requestStatus)>-1;return n&&r}function I(e){return"function"===typeof e[0]&&"pending"in e[0]&&"fulfilled"in e[0]&&"rejected"in e[0]}function P(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?e=>N(e,["pending"]):I(t)?e=>O(...t.map((e=>e.pending)))(e):P()(t[0])}function R(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?e=>N(e,["rejected"]):I(t)?e=>O(...t.map((e=>e.rejected)))(e):R()(t[0])}function D(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=e=>e&&e.meta&&e.meta.rejectedWithValue;return 0===t.length||I(t)?e=>T(R(...t),r)(e):D()(t[0])}function A(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?e=>N(e,["fulfilled"]):I(t)?e=>O(...t.map((e=>e.fulfilled)))(e):A()(t[0])}function j(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?e=>N(e,["pending","fulfilled","rejected"]):I(t)?e=>{const n=[];for(const r of t)n.push(r.pending,r.rejected,r.fulfilled);return O(...n)(e)}:j()(t[0])}var M=["name","message","stack","code"],L=class{constructor(e,t){this.payload=e,this.meta=t}_type},z=class{constructor(e,t){this.payload=e,this.meta=t}_type},F=e=>{if("object"===typeof e&&null!==e){const t={};for(const n of M)"string"===typeof e[n]&&(t[n]=e[n]);return t}return{message:String(e)}},B=(()=>{function e(e,t,n){const r=d(e+"/fulfilled",((e,t,n,r)=>({payload:e,meta:{...r||{},arg:n,requestId:t,requestStatus:"fulfilled"}}))),o=d(e+"/pending",((e,t,n)=>({payload:void 0,meta:{...n||{},arg:t,requestId:e,requestStatus:"pending"}}))),i=d(e+"/rejected",((e,t,r,o,i)=>({payload:o,error:(n&&n.serializeError||F)(e||"Rejected"),meta:{...i||{},arg:r,requestId:t,rejectedWithValue:!!o,requestStatus:"rejected",aborted:"AbortError"===e?.name,condition:"ConditionError"===e?.name}})));return Object.assign((function(e){return(a,s,l)=>{const c=n?.idGenerator?n.idGenerator(e):C(),u=new AbortController;let d,f;function p(e){f=e,u.abort()}const h=async function(){let h;try{let i=n?.condition?.(e,{getState:s,extra:l});if(null!==(m=i)&&"object"===typeof m&&"function"===typeof m.then&&(i=await i),!1===i||u.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const g=new Promise(((e,t)=>{d=()=>{t({name:"AbortError",message:f||"Aborted"})},u.signal.addEventListener("abort",d)}));a(o(c,e,n?.getPendingMeta?.({requestId:c,arg:e},{getState:s,extra:l}))),h=await Promise.race([g,Promise.resolve(t(e,{dispatch:a,getState:s,extra:l,requestId:c,signal:u.signal,abort:p,rejectWithValue:(e,t)=>new L(e,t),fulfillWithValue:(e,t)=>new z(e,t)})).then((t=>{if(t instanceof L)throw t;return t instanceof z?r(t.payload,c,e,t.meta):r(t,c,e)}))])}catch(g){h=g instanceof L?i(null,c,e,g.payload,g.meta):i(g,c,e)}finally{d&&u.signal.removeEventListener("abort",d)}var m;return n&&!n.dispatchConditionRejection&&i.match(h)&&h.meta.condition||a(h),h}();return Object.assign(h,{abort:p,requestId:c,arg:e,unwrap:()=>h.then(U)})}}),{pending:o,rejected:i,fulfilled:r,settled:O(i,r),typePrefix:e})}return e.withTypes=()=>e,e})();function U(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}var q=Symbol.for("rtk-slice-createasyncthunk");function $(e,t){return`${e}/${t}`}function Z(){let{creators:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=e?.asyncThunk?.[q];return function(e){const{name:n,reducerPath:o=n}=e;if(!n)throw new Error(te(11));const i=("function"===typeof e.reducers?e.reducers(function(){function e(e,t){return{_reducerDefinitionType:"asyncThunk",payloadCreator:e,...t}}return e.withTypes=()=>e,{reducer:e=>Object.assign({[e.name](){return e(...arguments)}}[e.name],{_reducerDefinitionType:"reducer"}),preparedReducer:(e,t)=>({_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:t}),asyncThunk:e}}()):e.reducers)||{},a=Object.keys(i),s={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},l={addCase(e,t){const n="string"===typeof e?e:e.type;if(!n)throw new Error(te(12));if(n in s.sliceCaseReducersByType)throw new Error(te(13));return s.sliceCaseReducersByType[n]=t,l},addMatcher:(e,t)=>(s.sliceMatchers.push({matcher:e,reducer:t}),l),exposeAction:(e,t)=>(s.actionCreators[e]=t,l),exposeCaseReducer:(e,t)=>(s.sliceCaseReducersByName[e]=t,l)};function c(){const[t={},n=[],o]="function"===typeof e.extraReducers?x(e.extraReducers):[e.extraReducers],i={...t,...s.sliceCaseReducersByType};return function(e,t){let n,[o,i,a]=x(t);if("function"===typeof e)n=()=>p(e());else{const t=p(e);n=()=>t}function s(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n(),t=arguments.length>1?arguments[1]:void 0,s=[o[t.type],...i.filter((e=>{let{matcher:n}=e;return n(t)})).map((e=>{let{reducer:t}=e;return t}))];return 0===s.filter((e=>!!e)).length&&(s=[a]),s.reduce(((e,n)=>{if(n){if((0,r.mv)(e)){const r=n(e,t);return void 0===r?e:r}if((0,r.o$)(e))return(0,r.Uy)(e,(e=>n(e,t)));{const r=n(e,t);if(void 0===r){if(null===e)return e;throw new Error(te(9))}return r}}return e}),e)}return s.getInitialState=n,s}(e.initialState,(e=>{for(let t in i)e.addCase(t,i[t]);for(let t of s.sliceMatchers)e.addMatcher(t.matcher,t.reducer);for(let t of n)e.addMatcher(t.matcher,t.reducer);o&&e.addDefaultCase(o)}))}a.forEach((r=>{const o=i[r],a={reducerName:r,type:$(n,r),createNotation:"function"===typeof e.reducers};!function(e){return"asyncThunk"===e._reducerDefinitionType}(o)?function(e,t,n){let r,o,{type:i,reducerName:a,createNotation:s}=e;if("reducer"in t){if(s&&!function(e){return"reducerWithPrepare"===e._reducerDefinitionType}(t))throw new Error(te(17));r=t.reducer,o=t.prepare}else r=t;n.addCase(i,r).exposeCaseReducer(a,r).exposeAction(a,o?d(i,o):d(i))}(a,o,l):function(e,t,n,r){let{type:o,reducerName:i}=e;if(!r)throw new Error(te(18));const{payloadCreator:a,fulfilled:s,pending:l,rejected:c,settled:u,options:d}=t,f=r(o,a,d);n.exposeAction(i,f),s&&n.addCase(f.fulfilled,s);l&&n.addCase(f.pending,l);c&&n.addCase(f.rejected,c);u&&n.addMatcher(f.settled,u);n.exposeCaseReducer(i,{fulfilled:s||W,pending:l||W,rejected:c||W,settled:u||W})}(a,o,l,t)}));const u=e=>e,f=new Map;let m;function g(e,t){return m||(m=c()),m(e,t)}function v(){return m||(m=c()),m.getInitialState()}function y(t){let n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];function r(e){let r=e[t];return"undefined"===typeof r&&n&&(r=v()),r}function o(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u;const r=h(f,n,{insert:()=>new WeakMap});return h(r,t,{insert:()=>{const r={};for(const[o,i]of Object.entries(e.selectors??{}))r[o]=H(i,t,v,n);return r}})}return{reducerPath:t,getSelectors:o,get selectors(){return o(r)},selectSlice:r}}const b={name:n,reducer:g,actions:s.actionCreators,caseReducers:s.sliceCaseReducersByName,getInitialState:v,...y(o),injectInto(e){let{reducerPath:t,...n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=t??o;return e.inject({reducerPath:r,reducer:g},n),{...b,...y(r,!0)}}};return b}}function H(e,t,n,r){function o(o){let i=t(o);"undefined"===typeof i&&r&&(i=n());for(var a=arguments.length,s=new Array(a>1?a-1:0),l=1;l<a;l++)s[l-1]=arguments[l];return e(i,...s)}return o.unwrapped=e,o}var V=Z();function W(){}r.mv;var G=(e,t)=>{if("function"!==typeof e)throw new Error(te(32))};var{assign:Y}=Object,K="listenerMiddleware",Q=e=>{let{type:t,actionCreator:n,matcher:r,predicate:o,effect:i}=e;if(t)o=d(t).match;else if(n)t=n.type,o=n.match;else if(r)o=r;else if(!o)throw new Error(te(21));return G(i,"options.listener"),{predicate:o,type:t,effect:i}},J=Object.assign((e=>{const{type:t,predicate:n,effect:r}=Q(e);return{id:C(),effect:r,type:t,predicate:n,pending:new Set,unsubscribe:()=>{throw new Error(te(22))}}}),{withTypes:()=>J}),X=Object.assign(d(`${K}/add`),{withTypes:()=>X}),ee=(d(`${K}/removeAll`),Object.assign(d(`${K}/remove`),{withTypes:()=>ee}));Symbol.for("rtk-state-proxy-original");function te(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}},89900:(e,t,n)=>{"use strict";n.d(t,{Js:()=>f,QE:()=>J,Uy:()=>K,Vk:()=>V,aS:()=>Q,mv:()=>l,o$:()=>c,vI:()=>G});var r=Symbol.for("immer-nothing"),o=Symbol.for("immer-draftable"),i=Symbol.for("immer-state");function a(e){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var s=Object.getPrototypeOf;function l(e){return!!e&&!!e[i]}function c(e){return!!e&&(d(e)||Array.isArray(e)||!!e[o]||!!e.constructor?.[o]||y(e)||b(e))}var u=Object.prototype.constructor.toString();function d(e){if(!e||"object"!==typeof e)return!1;const t=s(e);if(null===t)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===u}function f(e){return l(e)||a(15),e[i].base_}function p(e,t){0===h(e)?Object.entries(e).forEach((n=>{let[r,o]=n;t(r,o,e)})):e.forEach(((n,r)=>t(r,n,e)))}function h(e){const t=e[i];return t?t.type_:Array.isArray(e)?1:y(e)?2:b(e)?3:0}function m(e,t){return 2===h(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function g(e,t){return 2===h(e)?e.get(t):e[t]}function v(e,t,n){const r=h(e);2===r?e.set(t,n):3===r?e.add(n):e[t]=n}function y(e){return e instanceof Map}function b(e){return e instanceof Set}function w(e){return e.copy_||e.base_}function E(e,t){if(y(e))return new Map(e);if(b(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);if(!t&&d(e)){if(!s(e)){const t=Object.create(null);return Object.assign(t,e)}return{...e}}const n=Object.getOwnPropertyDescriptors(e);delete n[i];let r=Reflect.ownKeys(n);for(let o=0;o<r.length;o++){const t=r[o],i=n[t];!1===i.writable&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(n[t]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[t]})}return Object.create(s(e),n)}function _(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return S(e)||l(e)||!c(e)||(h(e)>1&&(e.set=e.add=e.clear=e.delete=x),Object.freeze(e),t&&p(e,((e,t)=>_(t,!0)))),e}function x(){a(2)}function S(e){return Object.isFrozen(e)}var C,k={};function O(e){const t=k[e];return t||a(0),t}function T(e,t){k[e]||(k[e]=t)}function N(){return C}function I(e,t){t&&(O("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function P(e){R(e),e.drafts_.forEach(A),e.drafts_=null}function R(e){e===C&&(C=e.parent_)}function D(e){return C={drafts_:[],parent_:C,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function A(e){const t=e[i];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function j(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return void 0!==e&&e!==n?(n[i].modified_&&(P(t),a(4)),c(e)&&(e=M(t,e),t.parent_||z(t,e)),t.patches_&&O("Patches").generateReplacementPatches_(n[i].base_,e,t.patches_,t.inversePatches_)):e=M(t,n,[]),P(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==r?e:void 0}function M(e,t,n){if(S(t))return t;const r=t[i];if(!r)return p(t,((o,i)=>L(e,r,t,o,i,n))),t;if(r.scope_!==e)return t;if(!r.modified_)return z(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const t=r.copy_;let o=t,i=!1;3===r.type_&&(o=new Set(t),t.clear(),i=!0),p(o,((o,a)=>L(e,r,t,o,a,n,i))),z(e,t,!1),n&&e.patches_&&O("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function L(e,t,n,r,o,i,a){if(l(o)){const a=M(e,o,i&&t&&3!==t.type_&&!m(t.assigned_,r)?i.concat(r):void 0);if(v(n,r,a),!l(a))return;e.canAutoFreeze_=!1}else a&&n.add(o);if(c(o)&&!S(o)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;M(e,o),t&&t.scope_.parent_||z(e,o)}}function z(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&_(t,n)}var F={get(e,t){if(t===i)return e;const n=w(e);if(!m(n,t))return function(e,t,n){const r=q(t,n);return r?"value"in r?r.value:r.get?.call(e.draft_):void 0}(e,n,t);const r=n[t];return e.finalized_||!c(r)?r:r===U(e.base_,t)?(Z(e),e.copy_[t]=H(r,e)):r},has:(e,t)=>t in w(e),ownKeys:e=>Reflect.ownKeys(w(e)),set(e,t,n){const r=q(w(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const r=U(w(e),t),s=r?.[i];if(s&&s.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(((o=n)===(a=r)?0!==o||1/o===1/a:o!==o&&a!==a)&&(void 0!==n||m(e.base_,t)))return!0;Z(e),$(e)}var o,a;return e.copy_[t]===n&&(void 0!==n||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty:(e,t)=>(void 0!==U(e.base_,t)||t in e.base_?(e.assigned_[t]=!1,Z(e),$(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){const n=w(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.type_||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty(){a(11)},getPrototypeOf:e=>s(e.base_),setPrototypeOf(){a(12)}},B={};function U(e,t){const n=e[i];return(n?w(n):e)[t]}function q(e,t){if(!(t in e))return;let n=s(e);for(;n;){const e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=s(n)}}function $(e){e.modified_||(e.modified_=!0,e.parent_&&$(e.parent_))}function Z(e){e.copy_||(e.copy_=E(e.base_,e.scope_.immer_.useStrictShallowCopy_))}p(F,((e,t)=>{B[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),B.deleteProperty=function(e,t){return B.set.call(this,e,t,void 0)},B.set=function(e,t,n){return F.set.call(this,e[0],t,n,e[0])};function H(e,t){const n=y(e)?O("MapSet").proxyMap_(e,t):b(e)?O("MapSet").proxySet_(e,t):function(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:N(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=r,i=F;n&&(o=[r],i=B);const{revoke:a,proxy:s}=Proxy.revocable(o,i);return r.draft_=s,r.revoke_=a,s}(e,t);return(t?t.scope_:N()).drafts_.push(n),n}function V(e){return l(e)||a(10),W(e)}function W(e){if(!c(e)||S(e))return e;const t=e[i];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=E(e,t.scope_.immer_.useStrictShallowCopy_)}else n=E(e,!0);return p(n,((e,t)=>{v(n,e,W(t))})),t&&(t.finalized_=!1),n}function G(){const e=16;const t="replace",n="add",i="remove";function u(e){if(!c(e))return e;if(Array.isArray(e))return e.map(u);if(y(e))return new Map(Array.from(e.entries()).map((e=>{let[t,n]=e;return[t,u(n)]})));if(b(e))return new Set(Array.from(e).map(u));const t=Object.create(s(e));for(const n in e)t[n]=u(e[n]);return m(e,o)&&(t[o]=e[o]),t}function d(e){return l(e)?u(e):e}T("Patches",{applyPatches_:function(r,o){return o.forEach((o=>{const{path:s,op:l}=o;let c=r;for(let t=0;t<s.length-1;t++){const n=h(c);let r=s[t];"string"!==typeof r&&"number"!==typeof r&&(r=""+r),0!==n&&1!==n||"__proto__"!==r&&"constructor"!==r||a(e+3),"function"===typeof c&&"prototype"===r&&a(e+3),c=g(c,r),"object"!==typeof c&&a(e+2,s.join("/"))}const d=h(c),f=u(o.value),p=s[s.length-1];switch(l){case t:switch(d){case 2:return c.set(p,f);case 3:a(e);default:return c[p]=f}case n:switch(d){case 1:return"-"===p?c.push(f):c.splice(p,0,f);case 2:return c.set(p,f);case 3:return c.add(f);default:return c[p]=f}case i:switch(d){case 1:return c.splice(p,1);case 2:return c.delete(p);case 3:return c.delete(o.value);default:return delete c[p]}default:a(e+1)}})),r},generatePatches_:function(e,r,o,a){switch(e.type_){case 0:case 2:return function(e,r,o,a){const{base_:s,copy_:l}=e;p(e.assigned_,((e,c)=>{const u=g(s,e),f=g(l,e),p=c?m(s,e)?t:n:i;if(u===f&&p===t)return;const h=r.concat(e);o.push(p===i?{op:p,path:h}:{op:p,path:h,value:f}),a.push(p===n?{op:i,path:h}:p===i?{op:n,path:h,value:d(u)}:{op:t,path:h,value:d(u)})}))}(e,r,o,a);case 1:return function(e,r,o,a){let{base_:s,assigned_:l}=e,c=e.copy_;c.length<s.length&&([s,c]=[c,s],[o,a]=[a,o]);for(let n=0;n<s.length;n++)if(l[n]&&c[n]!==s[n]){const e=r.concat([n]);o.push({op:t,path:e,value:d(c[n])}),a.push({op:t,path:e,value:d(s[n])})}for(let t=s.length;t<c.length;t++){const e=r.concat([t]);o.push({op:n,path:e,value:d(c[t])})}for(let t=c.length-1;s.length<=t;--t){const e=r.concat([t]);a.push({op:i,path:e})}}(e,r,o,a);case 3:return function(e,t,r,o){let{base_:a,copy_:s}=e,l=0;a.forEach((e=>{if(!s.has(e)){const a=t.concat([l]);r.push({op:i,path:a,value:e}),o.unshift({op:n,path:a,value:e})}l++})),l=0,s.forEach((e=>{if(!a.has(e)){const a=t.concat([l]);r.push({op:n,path:a,value:e}),o.unshift({op:i,path:a,value:e})}l++}))}(e,r,o,a)}},generateReplacementPatches_:function(e,n,o,i){o.push({op:t,path:[],value:n===r?void 0:n}),i.push({op:t,path:[],value:e})}})}var Y=new class{constructor(e){var t=this;this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(e,t,n)=>{if("function"===typeof e&&"function"!==typeof t){const n=t;t=e;const r=this;return function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n;for(var o=arguments.length,i=new Array(o>1?o-1:0),a=1;a<o;a++)i[a-1]=arguments[a];return r.produce(e,(e=>t.call(this,e,...i)))}}let o;if("function"!==typeof t&&a(6),void 0!==n&&"function"!==typeof n&&a(7),c(e)){const r=D(this),i=H(e,void 0);let a=!0;try{o=t(i),a=!1}finally{a?P(r):R(r)}return I(r,n),j(o,r)}if(!e||"object"!==typeof e){if(o=t(e),void 0===o&&(o=e),o===r&&(o=void 0),this.autoFreeze_&&_(o,!0),n){const t=[],r=[];O("Patches").generateReplacementPatches_(e,o,t,r),n(t,r)}return o}a(1)},this.produceWithPatches=(e,n)=>{if("function"===typeof e)return function(n){for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return t.produceWithPatches(n,(t=>e(t,...o)))};let r,o;return[this.produce(e,n,((e,t)=>{r=e,o=t})),r,o]},"boolean"===typeof e?.autoFreeze&&this.setAutoFreeze(e.autoFreeze),"boolean"===typeof e?.useStrictShallowCopy&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){c(e)||a(8),l(e)&&(e=V(e));const t=D(this),n=H(e,void 0);return n[i].isManual_=!0,R(t),n}finishDraft(e,t){const n=e&&e[i];n&&n.isManual_||a(9);const{scope_:r}=n;return I(r,t),j(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));const r=O("Patches").applyPatches_;return l(e)?r(e,t):this.produce(e,(e=>r(e,t)))}},K=Y.produce,Q=Y.produceWithPatches.bind(Y),J=(Y.setAutoFreeze.bind(Y),Y.setUseStrictShallowCopy.bind(Y),Y.applyPatches.bind(Y));Y.createDraft.bind(Y),Y.finishDraft.bind(Y)},87555:(e,t,n)=>{"use strict";n.d(t,{$j:()=>ce,I0:()=>me,dC:()=>ge,oR:()=>fe,v9:()=>g,wU:()=>V,zt:()=>ue});var r=n(68963),o=n(29074),i=r,a=Symbol.for("react-redux-context"),s="undefined"!==typeof globalThis?globalThis:{};function l(){if(!i.createContext)return{};const e=s[a]??(s[a]=new Map);let t=e.get(i.createContext);return t||(t=i.createContext(null),e.set(i.createContext,t)),t}var c=l(),u=()=>{throw new Error("uSES not initialized!")};function d(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;return function(){return i.useContext(e)}}var f=d(),p=u,h=(e,t)=>e===t;function m(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;const t=e===c?f:d(e),n=function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{equalityFn:r=h,devModeChecks:o={}}="function"===typeof n?{equalityFn:n}:n;const{store:a,subscription:s,getServerState:l,stabilityCheck:c,identityFunctionCheck:u}=t(),d=(i.useRef(!0),i.useCallback({[e.name]:t=>e(t)}[e.name],[e,c,o.stabilityCheck])),f=p(s.addNestedSub,a.getState,l||a.getState,d,r);return i.useDebugValue(f),f};return Object.assign(n,{withTypes:()=>n}),n}var g=m(),v=Symbol.for("react.element"),y=Symbol.for("react.portal"),b=Symbol.for("react.fragment"),w=Symbol.for("react.strict_mode"),E=Symbol.for("react.profiler"),_=Symbol.for("react.provider"),x=Symbol.for("react.context"),S=Symbol.for("react.server_context"),C=Symbol.for("react.forward_ref"),k=Symbol.for("react.suspense"),O=Symbol.for("react.suspense_list"),T=Symbol.for("react.memo"),N=Symbol.for("react.lazy"),I=(Symbol.for("react.offscreen"),Symbol.for("react.client.reference"),C),P=T;function R(e){if("object"===typeof e&&null!==e){const t=e.$$typeof;switch(t){case v:{const n=e.type;switch(n){case b:case E:case w:case k:case O:return n;default:{const e=n&&n.$$typeof;switch(e){case S:case x:case C:case N:case T:case _:return e;default:return t}}}}case y:return t}}}function D(e,t,n,r,o){let i,a,s,l,c,{areStatesEqual:u,areOwnPropsEqual:d,areStatePropsEqual:f}=o,p=!1;function h(o,p){const h=!d(p,a),m=!u(o,i,p,a);return i=o,a=p,h&&m?(s=e(i,a),t.dependsOnOwnProps&&(l=t(r,a)),c=n(s,l,a),c):h?(e.dependsOnOwnProps&&(s=e(i,a)),t.dependsOnOwnProps&&(l=t(r,a)),c=n(s,l,a),c):m?function(){const t=e(i,a),r=!f(t,s);return s=t,r&&(c=n(s,l,a)),c}():c}return function(o,u){return p?h(o,u):(i=o,a=u,s=e(i,a),l=t(r,a),c=n(s,l,a),p=!0,c)}}function A(e){return function(t){const n=e(t);function r(){return n}return r.dependsOnOwnProps=!1,r}}function j(e){return e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function M(e,t){return function(t,n){let{displayName:r}=n;const o=function(e,t){return o.dependsOnOwnProps?o.mapToProps(e,t):o.mapToProps(e,void 0)};return o.dependsOnOwnProps=!0,o.mapToProps=function(t,n){o.mapToProps=e,o.dependsOnOwnProps=j(e);let r=o(t,n);return"function"===typeof r&&(o.mapToProps=r,o.dependsOnOwnProps=j(r),r=o(t,n)),r},o}}function L(e,t){return(n,r)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${r.wrappedComponentName}.`)}}function z(e,t,n){return{...n,...e,...t}}function F(e){e()}var B={notify(){},get:()=>[]};function U(e,t){let n,r=B,o=0,i=!1;function a(){c.onStateChange&&c.onStateChange()}function s(){o++,n||(n=t?t.addNestedSub(a):e.subscribe(a),r=function(){let e=null,t=null;return{clear(){e=null,t=null},notify(){F((()=>{let t=e;for(;t;)t.callback(),t=t.next}))},get(){const t=[];let n=e;for(;n;)t.push(n),n=n.next;return t},subscribe(n){let r=!0;const o=t={callback:n,next:null,prev:t};return o.prev?o.prev.next=o:e=o,function(){r&&null!==e&&(r=!1,o.next?o.next.prev=o.prev:t=o.prev,o.prev?o.prev.next=o.next:e=o.next)}}}}())}function l(){o--,n&&0===o&&(n(),n=void 0,r.clear(),r=B)}const c={addNestedSub:function(e){s();const t=r.subscribe(e);let n=!1;return()=>{n||(n=!0,t(),l())}},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:a,isSubscribed:function(){return i},trySubscribe:function(){i||(i=!0,s())},tryUnsubscribe:function(){i&&(i=!1,l())},getListeners:()=>r};return c}var q=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),$="undefined"!==typeof navigator&&"ReactNative"===navigator.product,Z=q||$?i.useLayoutEffect:i.useEffect;function H(e,t){return e===t?0!==e||0!==t||1/e===1/t:e!==e&&t!==t}function V(e,t){if(H(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let o=0;o<n.length;o++)if(!Object.prototype.hasOwnProperty.call(t,n[o])||!H(e[n[o]],t[n[o]]))return!1;return!0}var W={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},G={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Y={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},K={[I]:{$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},[P]:Y};function Q(e){return R(e)===T?Y:K[e.$$typeof]||W}var J=Object.defineProperty,X=Object.getOwnPropertyNames,ee=Object.getOwnPropertySymbols,te=Object.getOwnPropertyDescriptor,ne=Object.getPrototypeOf,re=Object.prototype;function oe(e,t){if("string"!==typeof t){if(re){const n=ne(t);n&&n!==re&&oe(e,n)}let r=X(t);ee&&(r=r.concat(ee(t)));const o=Q(e),i=Q(t);for(let a=0;a<r.length;++a){const s=r[a];if(!G[s]&&(!i||!i[s])&&(!o||!o[s])){const r=te(t,s);try{J(e,s,r)}catch(n){}}}}return e}var ie=u,ae=[null,null];function se(e,t,n,r,o,i){e.current=r,n.current=!1,o.current&&(o.current=null,i())}function le(e,t){return e===t}var ce=function(e,t,n){let{pure:r,areStatesEqual:o=le,areOwnPropsEqual:a=V,areStatePropsEqual:s=V,areMergedPropsEqual:l=V,forwardRef:u=!1,context:d=c}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const f=d,p=function(e){return e?"function"===typeof e?M(e):L(e,"mapStateToProps"):A((()=>({})))}(e),h=function(e){return e&&"object"===typeof e?A((t=>function(e,t){const n={};for(const r in e){const o=e[r];"function"===typeof o&&(n[r]=function(){return t(o(...arguments))})}return n}(e,t))):e?"function"===typeof e?M(e):L(e,"mapDispatchToProps"):A((e=>({dispatch:e})))}(t),m=function(e){return e?"function"===typeof e?function(e){return function(t,n){let r,{displayName:o,areMergedPropsEqual:i}=n,a=!1;return function(t,n,o){const s=e(t,n,o);return a?i(s,r)||(r=s):(a=!0,r=s),r}}}(e):L(e,"mergeProps"):()=>z}(n),g=Boolean(e);return e=>{const t=e.displayName||e.name||"Component",n=`Connect(${t})`,r={shouldHandleStateChanges:g,displayName:n,wrappedComponentName:t,WrappedComponent:e,initMapStateToProps:p,initMapDispatchToProps:h,initMergeProps:m,areStatesEqual:o,areStatePropsEqual:s,areOwnPropsEqual:a,areMergedPropsEqual:l};function c(t){const[n,o,a]=i.useMemo((()=>{const{reactReduxForwardedRef:e,...n}=t;return[t.context,e,n]}),[t]),s=i.useMemo((()=>{let e=f;return n?.Consumer,e}),[n,f]),l=i.useContext(s),c=Boolean(t.store)&&Boolean(t.store.getState)&&Boolean(t.store.dispatch),u=Boolean(l)&&Boolean(l.store);const d=c?t.store:l.store,p=u?l.getServerState:d.getState,h=i.useMemo((()=>function(e,t){let{initMapStateToProps:n,initMapDispatchToProps:r,initMergeProps:o,...i}=t;return D(n(e,i),r(e,i),o(e,i),e,i)}(d.dispatch,r)),[d]),[m,v]=i.useMemo((()=>{if(!g)return ae;const e=U(d,c?void 0:l.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[d,c,l]),y=i.useMemo((()=>c?l:{...l,subscription:m}),[c,l,m]),b=i.useRef(void 0),w=i.useRef(a),E=i.useRef(void 0),_=i.useRef(!1),x=i.useRef(!1),S=i.useRef(void 0);Z((()=>(x.current=!0,()=>{x.current=!1})),[]);const C=i.useMemo((()=>()=>E.current&&a===w.current?E.current:h(d.getState(),a)),[d,a]),k=i.useMemo((()=>e=>m?function(e,t,n,r,o,i,a,s,l,c,u){if(!e)return()=>{};let d=!1,f=null;const p=()=>{if(d||!s.current)return;const e=t.getState();let n,p;try{n=r(e,o.current)}catch(h){p=h,f=h}p||(f=null),n===i.current?a.current||c():(i.current=n,l.current=n,a.current=!0,u())};return n.onStateChange=p,n.trySubscribe(),p(),()=>{if(d=!0,n.tryUnsubscribe(),n.onStateChange=null,f)throw f}}(g,d,m,h,w,b,_,x,E,v,e):()=>{}),[m]);var O,T,N;let I;O=se,T=[w,b,_,a,E,v],Z((()=>O(...T)),N);try{I=ie(k,C,p?()=>h(p(),a):C)}catch(R){throw S.current&&(R.message+=`\nThe error may be correlated with this previous error:\n${S.current.stack}\n\n`),R}Z((()=>{S.current=void 0,E.current=void 0,b.current=I}));const P=i.useMemo((()=>i.createElement(e,{...I,ref:o})),[o,e,I]);return i.useMemo((()=>g?i.createElement(s.Provider,{value:y},P):P),[s,P,y])}const d=i.memo(c);if(d.WrappedComponent=e,d.displayName=c.displayName=n,u){const t=i.forwardRef((function(e,t){return i.createElement(d,{...e,reactReduxForwardedRef:t})}));return t.displayName=n,t.WrappedComponent=e,oe(t,e)}return oe(d,e)}};var ue=function(e){let{store:t,context:n,children:r,serverState:o,stabilityCheck:a="once",identityFunctionCheck:s="once"}=e;const l=i.useMemo((()=>{const e=U(t);return{store:t,subscription:e,getServerState:o?()=>o:void 0,stabilityCheck:a,identityFunctionCheck:s}}),[t,o,a,s]),u=i.useMemo((()=>t.getState()),[t]);Z((()=>{const{subscription:e}=l;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),u!==t.getState()&&e.notifyNestedSubs(),()=>{e.tryUnsubscribe(),e.onStateChange=void 0}}),[l,u]);const d=n||c;return i.createElement(d.Provider,{value:l},r)};function de(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;const t=e===c?f:d(e),n=()=>{const{store:e}=t();return e};return Object.assign(n,{withTypes:()=>n}),n}var fe=de();function pe(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;const t=e===c?fe:de(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var he,me=pe(),ge=F;he=o.useSyncExternalStoreWithSelector,p=he,(e=>{ie=e})(r.useSyncExternalStore)},38907:(e,t,n)=>{"use strict";function r(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}n.d(t,{DE:()=>d,LG:()=>h,MT:()=>l,PO:()=>s,UY:()=>c,md:()=>p,qC:()=>f});var o=(()=>"function"===typeof Symbol&&Symbol.observable||"@@observable")(),i=()=>Math.random().toString(36).substring(7).split("").join("."),a={INIT:`@@redux/INIT${i()}`,REPLACE:`@@redux/REPLACE${i()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${i()}`};function s(e){if("object"!==typeof e||null===e)return!1;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||null===Object.getPrototypeOf(e)}function l(e,t,n){if("function"!==typeof e)throw new Error(r(2));if("function"===typeof t&&"function"===typeof n||"function"===typeof n&&"function"===typeof arguments[3])throw new Error(r(0));if("function"===typeof t&&"undefined"===typeof n&&(n=t,t=void 0),"undefined"!==typeof n){if("function"!==typeof n)throw new Error(r(1));return n(l)(e,t)}let i=e,c=t,u=new Map,d=u,f=0,p=!1;function h(){d===u&&(d=new Map,u.forEach(((e,t)=>{d.set(t,e)})))}function m(){if(p)throw new Error(r(3));return c}function g(e){if("function"!==typeof e)throw new Error(r(4));if(p)throw new Error(r(5));let t=!0;h();const n=f++;return d.set(n,e),function(){if(t){if(p)throw new Error(r(6));t=!1,h(),d.delete(n),u=null}}}function v(e){if(!s(e))throw new Error(r(7));if("undefined"===typeof e.type)throw new Error(r(8));if("string"!==typeof e.type)throw new Error(r(17));if(p)throw new Error(r(9));try{p=!0,c=i(c,e)}finally{p=!1}return(u=d).forEach((e=>{e()})),e}v({type:a.INIT});return{dispatch:v,subscribe:g,getState:m,replaceReducer:function(e){if("function"!==typeof e)throw new Error(r(10));i=e,v({type:a.REPLACE})},[o]:function(){const e=g;return{subscribe(t){if("object"!==typeof t||null===t)throw new Error(r(11));function n(){const e=t;e.next&&e.next(m())}n();return{unsubscribe:e(n)}},[o](){return this}}}}}function c(e){const t=Object.keys(e),n={};for(let r=0;r<t.length;r++){const o=t[r];0,"function"===typeof e[o]&&(n[o]=e[o])}const o=Object.keys(n);let i;try{!function(e){Object.keys(e).forEach((t=>{const n=e[t];if("undefined"===typeof n(void 0,{type:a.INIT}))throw new Error(r(12));if("undefined"===typeof n(void 0,{type:a.PROBE_UNKNOWN_ACTION()}))throw new Error(r(13))}))}(n)}catch(s){i=s}return function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(i)throw i;let a=!1;const s={};for(let i=0;i<o.length;i++){const l=o[i],c=n[l],u=e[l],d=c(u,t);if("undefined"===typeof d){t&&t.type;throw new Error(r(14))}s[l]=d,a=a||d!==u}return a=a||o.length!==Object.keys(e).length,a?s:e}}function u(e,t){return function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t(e.apply(this,r))}}function d(e,t){if("function"===typeof e)return u(e,t);if("object"!==typeof e||null===e)throw new Error(r(16));const n={};for(const r in e){const o=e[r];"function"===typeof o&&(n[r]=u(o,t))}return n}function f(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?e=>e:1===t.length?t[0]:t.reduce(((e,t)=>function(){return e(t(...arguments))}))}function p(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return e=>(n,o)=>{const i=e(n,o);let a=()=>{throw new Error(r(15))};const s={getState:i.getState,dispatch:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return a(e,...n)}},l=t.map((e=>e(s)));return a=f(...l)(i.dispatch),{...i,dispatch:a}}}function h(e){return s(e)&&"type"in e&&"string"===typeof e.type}},36313:(e,t,n)=>{"use strict";n.d(t,{P1:()=>g,PP:()=>c,kO:()=>h,wN:()=>m});var r="NOT_FOUND";function o(e){if("function"!==typeof e)throw new TypeError(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"expected a function, instead received "+typeof e)}var i=e=>Array.isArray(e)?e:[e];function a(e){const t=Array.isArray(e[0])?e[0]:e;return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"expected all items to be functions, instead received the following types: ";if(!e.every((e=>"function"===typeof e))){const n=e.map((e=>"function"===typeof e?`function ${e.name||"unnamed"}()`:typeof e)).join(", ");throw new TypeError(`${t}[${n}]`)}}(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}Symbol(),Object.getPrototypeOf({});var s=(e,t)=>e===t;function l(e){return function(t,n){if(null===t||null===n||t.length!==n.length)return!1;const{length:r}=t;for(let o=0;o<r;o++)if(!e(t[o],n[o]))return!1;return!0}}function c(e,t){const n="object"===typeof t?t:{equalityCheck:t},{equalityCheck:o=s,maxSize:i=1,resultEqualityCheck:a}=n,c=l(o);let u=0;const d=1===i?function(e){let t;return{get:n=>t&&e(t.key,n)?t.value:r,put(e,n){t={key:e,value:n}},getEntries:()=>t?[t]:[],clear(){t=void 0}}}(c):function(e,t){let n=[];function o(e){const o=n.findIndex((n=>t(e,n.key)));if(o>-1){const e=n[o];return o>0&&(n.splice(o,1),n.unshift(e)),e.value}return r}return{get:o,put:function(t,i){o(t)===r&&(n.unshift({key:t,value:i}),n.length>e&&n.pop())},getEntries:function(){return n},clear:function(){n=[]}}}(i,c);function f(){let t=d.get(arguments);if(t===r){if(t=e.apply(null,arguments),u++,a){const e=d.getEntries().find((e=>a(e.value,t)));e&&(t=e.value,0!==u&&u--)}d.put(arguments,t)}return t}return f.clearCache=()=>{d.clear(),f.resetResultsCount()},f.resultsCount=()=>u,f.resetResultsCount=()=>{u=0},f}var u="undefined"!==typeof WeakRef?WeakRef:class{constructor(e){this.value=e}deref(){return this.value}},d=0,f=1;function p(){return{s:d,v:void 0,o:null,p:null}}function h(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=p();const{resultEqualityCheck:r}=t;let o,i=0;function a(){let t=n;const{length:a}=arguments;for(let e=0,n=a;e<n;e++){const n=arguments[e];if("function"===typeof n||"object"===typeof n&&null!==n){let e=t.o;null===e&&(t.o=e=new WeakMap);const r=e.get(n);void 0===r?(t=p(),e.set(n,t)):t=r}else{let e=t.p;null===e&&(t.p=e=new Map);const r=e.get(n);void 0===r?(t=p(),e.set(n,t)):t=r}}const s=t;let l;if(t.s===f?l=t.v:(l=e.apply(null,arguments),i++),s.s=f,r){const e=o?.deref?.()??o;null!=e&&r(e,l)&&(l=e,0!==i&&i--);o="object"===typeof l&&null!==l||"function"===typeof l?new u(l):l}return s.v=l,l}return a.clearCache=()=>{n=p(),a.resetResultsCount()},a.resultsCount=()=>i,a.resetResultsCount=()=>{i=0},a}function m(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];const s="function"===typeof e?{memoize:e,memoizeOptions:n}:e,l=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];let r,l=0,c=0,u={},d=t.pop();"object"===typeof d&&(u=d,d=t.pop()),o(d,`createSelector expects an output function after the inputs, but received: [${typeof d}]`);const f={...s,...u},{memoize:p,memoizeOptions:m=[],argsMemoize:g=h,argsMemoizeOptions:v=[],devModeChecks:y={}}=f,b=i(m),w=i(v),E=a(t),_=p((function(){return l++,d.apply(null,arguments)}),...b);const x=g((function(){c++;const e=function(e,t){const n=[],{length:r}=e;for(let o=0;o<r;o++)n.push(e[o].apply(null,t));return n}(E,arguments);return r=_.apply(null,e),r}),...w);return Object.assign(x,{resultFunc:d,memoizedResultFunc:_,dependencies:E,dependencyRecomputations:()=>c,resetDependencyRecomputations:()=>{c=0},lastResult:()=>r,recomputations:()=>l,resetRecomputations:()=>{l=0},memoize:p,argsMemoize:g})};return Object.assign(l,{withTypes:()=>l}),l}var g=m(h),v=Object.assign((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:g;!function(e){if("object"!==typeof e)throw new TypeError(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"expected an object, instead received "+typeof e)}(e,"createStructuredSelector expects first argument to be an object where each property is a selector, instead received a "+typeof e);const n=Object.keys(e),r=t(n.map((t=>e[t])),(function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.reduce(((e,t,r)=>(e[n[r]]=t,e)),{})}));return r}),{withTypes:()=>v})},95097:(e,t,n)=>{"use strict";n.d(t,{_T:()=>r});function r(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}Object.create;Object.create;"function"===typeof SuppressedError&&SuppressedError},95408:(e,t,n)=>{"use strict";var r,o;n.d(t,{z:()=>bt}),function(e){e.assertEqual=e=>e,e.assertIs=function(e){},e.assertNever=function(e){throw new Error},e.arrayToEnum=e=>{const t={};for(const n of e)t[n]=n;return t},e.getValidEnumValues=t=>{const n=e.objectKeys(t).filter((e=>"number"!==typeof t[t[e]])),r={};for(const e of n)r[e]=t[e];return e.objectValues(r)},e.objectValues=t=>e.objectKeys(t).map((function(e){return t[e]})),e.objectKeys="function"===typeof Object.keys?e=>Object.keys(e):e=>{const t=[];for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t},e.find=(e,t)=>{for(const n of e)if(t(n))return n},e.isInteger="function"===typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"===typeof e&&isFinite(e)&&Math.floor(e)===e,e.joinValues=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:" | ";return e.map((e=>"string"===typeof e?`'${e}'`:e)).join(t)},e.jsonStringifyReplacer=(e,t)=>"bigint"===typeof t?t.toString():t}(r||(r={})),function(e){e.mergeShapes=(e,t)=>({...e,...t})}(o||(o={}));const i=r.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),a=e=>{switch(typeof e){case"undefined":return i.undefined;case"string":return i.string;case"number":return isNaN(e)?i.nan:i.number;case"boolean":return i.boolean;case"function":return i.function;case"bigint":return i.bigint;case"symbol":return i.symbol;case"object":return Array.isArray(e)?i.array:null===e?i.null:e.then&&"function"===typeof e.then&&e.catch&&"function"===typeof e.catch?i.promise:"undefined"!==typeof Map&&e instanceof Map?i.map:"undefined"!==typeof Set&&e instanceof Set?i.set:"undefined"!==typeof Date&&e instanceof Date?i.date:i.object;default:return i.unknown}},s=r.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class l extends Error{constructor(e){var t;super(),t=this,this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];t.issues=[...t.issues,...e]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=e}get errors(){return this.issues}format(e){const t=e||function(e){return e.message},n={_errors:[]},r=e=>{for(const o of e.issues)if("invalid_union"===o.code)o.unionErrors.map(r);else if("invalid_return_type"===o.code)r(o.returnTypeError);else if("invalid_arguments"===o.code)r(o.argumentsError);else if(0===o.path.length)n._errors.push(t(o));else{let e=n,r=0;for(;r<o.path.length;){const n=o.path[r];r===o.path.length-1?(e[n]=e[n]||{_errors:[]},e[n]._errors.push(t(o))):e[n]=e[n]||{_errors:[]},e=e[n],r++}}};return r(this),n}static assert(e){if(!(e instanceof l))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,r.jsonStringifyReplacer,2)}get isEmpty(){return 0===this.issues.length}flatten(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e=>e.message;const t={},n=[];for(const r of this.issues)r.path.length>0?(t[r.path[0]]=t[r.path[0]]||[],t[r.path[0]].push(e(r))):n.push(e(r));return{formErrors:n,fieldErrors:t}}get formErrors(){return this.flatten()}}l.create=e=>new l(e);const c=(e,t)=>{let n;switch(e.code){case s.invalid_type:n=e.received===i.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case s.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,r.jsonStringifyReplacer)}`;break;case s.unrecognized_keys:n=`Unrecognized key(s) in object: ${r.joinValues(e.keys,", ")}`;break;case s.invalid_union:n="Invalid input";break;case s.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${r.joinValues(e.options)}`;break;case s.invalid_enum_value:n=`Invalid enum value. Expected ${r.joinValues(e.options)}, received '${e.received}'`;break;case s.invalid_arguments:n="Invalid function arguments";break;case s.invalid_return_type:n="Invalid function return type";break;case s.invalid_date:n="Invalid date";break;case s.invalid_string:"object"===typeof e.validation?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,"number"===typeof e.validation.position&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:r.assertNever(e.validation):n="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case s.too_small:n="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:"date"===e.type?`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:"Invalid input";break;case s.too_big:n="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"bigint"===e.type?`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"date"===e.type?`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:"Invalid input";break;case s.custom:n="Invalid input";break;case s.invalid_intersection_types:n="Intersection results could not be merged";break;case s.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case s.not_finite:n="Number must be finite";break;default:n=t.defaultError,r.assertNever(e)}return{message:n}};let u=c;function d(){return u}const f=e=>{const{data:t,path:n,errorMaps:r,issueData:o}=e,i=[...n,...o.path||[]],a={...o,path:i};if(void 0!==o.message)return{...o,path:i,message:o.message};let s="";const l=r.filter((e=>!!e)).slice().reverse();for(const c of l)s=c(a,{data:t,defaultError:s}).message;return{...o,path:i,message:s}};function p(e,t){const n=d(),r=f({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===c?void 0:c].filter((e=>!!e))});e.common.issues.push(r)}class h{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,t){const n=[];for(const r of t){if("aborted"===r.status)return m;"dirty"===r.status&&e.dirty(),n.push(r.value)}return{status:e.value,value:n}}static async mergeObjectAsync(e,t){const n=[];for(const r of t){const e=await r.key,t=await r.value;n.push({key:e,value:t})}return h.mergeObjectSync(e,n)}static mergeObjectSync(e,t){const n={};for(const r of t){const{key:t,value:o}=r;if("aborted"===t.status)return m;if("aborted"===o.status)return m;"dirty"===t.status&&e.dirty(),"dirty"===o.status&&e.dirty(),"__proto__"===t.value||"undefined"===typeof o.value&&!r.alwaysSet||(n[t.value]=o.value)}return{status:e.value,value:n}}}const m=Object.freeze({status:"aborted"}),g=e=>({status:"dirty",value:e}),v=e=>({status:"valid",value:e}),y=e=>"aborted"===e.status,b=e=>"dirty"===e.status,w=e=>"valid"===e.status,E=e=>"undefined"!==typeof Promise&&e instanceof Promise;function _(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"===typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)}function x(e,t,n,r,o){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"===typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?o.call(e,n):o?o.value=n:t.set(e,n),n}var S,C,k;"function"===typeof SuppressedError&&SuppressedError,function(e){e.errToObj=e=>"string"===typeof e?{message:e}:e||{},e.toString=e=>"string"===typeof e?e:null===e||void 0===e?void 0:e.message}(S||(S={}));class O{constructor(e,t,n,r){this._cachedPath=[],this.parent=e,this.data=t,this._path=n,this._key=r}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const T=(e,t)=>{if(w(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const t=new l(e.common.issues);return this._error=t,this._error}}};function N(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:r,description:o}=e;if(t&&(n||r))throw new Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');if(t)return{errorMap:t,description:o};return{errorMap:(t,o)=>{var i,a;const{message:s}=e;return"invalid_enum_value"===t.code?{message:null!==s&&void 0!==s?s:o.defaultError}:"undefined"===typeof o.data?{message:null!==(i=null!==s&&void 0!==s?s:r)&&void 0!==i?i:o.defaultError}:"invalid_type"!==t.code?{message:o.defaultError}:{message:null!==(a=null!==s&&void 0!==s?s:n)&&void 0!==a?a:o.defaultError}},description:o}}class I{constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(e){return a(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:a(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new h,ctx:{common:e.parent.common,data:e.data,parsedType:a(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const t=this._parse(e);if(E(t))throw new Error("Synchronous parse encountered promise.");return t}_parseAsync(e){const t=this._parse(e);return Promise.resolve(t)}parse(e,t){const n=this.safeParse(e,t);if(n.success)return n.data;throw n.error}safeParse(e,t){var n;const r={common:{issues:[],async:null!==(n=null===t||void 0===t?void 0:t.async)&&void 0!==n&&n,contextualErrorMap:null===t||void 0===t?void 0:t.errorMap},path:(null===t||void 0===t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:a(e)},o=this._parseSync({data:e,path:r.path,parent:r});return T(r,o)}async parseAsync(e,t){const n=await this.safeParseAsync(e,t);if(n.success)return n.data;throw n.error}async safeParseAsync(e,t){const n={common:{issues:[],contextualErrorMap:null===t||void 0===t?void 0:t.errorMap,async:!0},path:(null===t||void 0===t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:a(e)},r=this._parse({data:e,path:n.path,parent:n}),o=await(E(r)?r:Promise.resolve(r));return T(n,o)}refine(e,t){const n=e=>"string"===typeof t||"undefined"===typeof t?{message:t}:"function"===typeof t?t(e):t;return this._refinement(((t,r)=>{const o=e(t),i=()=>r.addIssue({code:s.custom,...n(t)});return"undefined"!==typeof Promise&&o instanceof Promise?o.then((e=>!!e||(i(),!1))):!!o||(i(),!1)}))}refinement(e,t){return this._refinement(((n,r)=>!!e(n)||(r.addIssue("function"===typeof t?t(n,r):t),!1)))}_refinement(e){return new Se({schema:this,typeName:Me.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}optional(){return Ce.create(this,this._def)}nullable(){return ke.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return ie.create(this,this._def)}promise(){return xe.create(this,this._def)}or(e){return le.create([this,e],this._def)}and(e){return fe.create(this,e,this._def)}transform(e){return new Se({...N(this._def),schema:this,typeName:Me.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const t="function"===typeof e?e:()=>e;return new Oe({...N(this._def),innerType:this,defaultValue:t,typeName:Me.ZodDefault})}brand(){return new Pe({typeName:Me.ZodBranded,type:this,...N(this._def)})}catch(e){const t="function"===typeof e?e:()=>e;return new Te({...N(this._def),innerType:this,catchValue:t,typeName:Me.ZodCatch})}describe(e){return new(0,this.constructor)({...this._def,description:e})}pipe(e){return Re.create(this,e)}readonly(){return De.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const P=/^c[^\s-]{8,}$/i,R=/^[0-9a-z]+$/,D=/^[0-9A-HJKMNP-TV-Z]{26}$/,A=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,j=/^[a-z0-9_-]{21}$/i,M=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,L=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i;let z;const F=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,B=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,U=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,q="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",$=new RegExp(`^${q}$`);function Z(e){let t="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return e.precision?t=`${t}\\.\\d{${e.precision}}`:null==e.precision&&(t=`${t}(\\.\\d+)?`),t}function H(e){let t=`${q}T${Z(e)}`;const n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}class V extends I{_parse(e){this._def.coerce&&(e.data=String(e.data));if(this._getType(e)!==i.string){const t=this._getOrReturnCtx(e);return p(t,{code:s.invalid_type,expected:i.string,received:t.parsedType}),m}const t=new h;let n;for(const i of this._def.checks)if("min"===i.kind)e.data.length<i.value&&(n=this._getOrReturnCtx(e,n),p(n,{code:s.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),t.dirty());else if("max"===i.kind)e.data.length>i.value&&(n=this._getOrReturnCtx(e,n),p(n,{code:s.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),t.dirty());else if("length"===i.kind){const r=e.data.length>i.value,o=e.data.length<i.value;(r||o)&&(n=this._getOrReturnCtx(e,n),r?p(n,{code:s.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}):o&&p(n,{code:s.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}),t.dirty())}else if("email"===i.kind)L.test(e.data)||(n=this._getOrReturnCtx(e,n),p(n,{validation:"email",code:s.invalid_string,message:i.message}),t.dirty());else if("emoji"===i.kind)z||(z=new RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),z.test(e.data)||(n=this._getOrReturnCtx(e,n),p(n,{validation:"emoji",code:s.invalid_string,message:i.message}),t.dirty());else if("uuid"===i.kind)A.test(e.data)||(n=this._getOrReturnCtx(e,n),p(n,{validation:"uuid",code:s.invalid_string,message:i.message}),t.dirty());else if("nanoid"===i.kind)j.test(e.data)||(n=this._getOrReturnCtx(e,n),p(n,{validation:"nanoid",code:s.invalid_string,message:i.message}),t.dirty());else if("cuid"===i.kind)P.test(e.data)||(n=this._getOrReturnCtx(e,n),p(n,{validation:"cuid",code:s.invalid_string,message:i.message}),t.dirty());else if("cuid2"===i.kind)R.test(e.data)||(n=this._getOrReturnCtx(e,n),p(n,{validation:"cuid2",code:s.invalid_string,message:i.message}),t.dirty());else if("ulid"===i.kind)D.test(e.data)||(n=this._getOrReturnCtx(e,n),p(n,{validation:"ulid",code:s.invalid_string,message:i.message}),t.dirty());else if("url"===i.kind)try{new URL(e.data)}catch(l){n=this._getOrReturnCtx(e,n),p(n,{validation:"url",code:s.invalid_string,message:i.message}),t.dirty()}else if("regex"===i.kind){i.regex.lastIndex=0;i.regex.test(e.data)||(n=this._getOrReturnCtx(e,n),p(n,{validation:"regex",code:s.invalid_string,message:i.message}),t.dirty())}else if("trim"===i.kind)e.data=e.data.trim();else if("includes"===i.kind)e.data.includes(i.value,i.position)||(n=this._getOrReturnCtx(e,n),p(n,{code:s.invalid_string,validation:{includes:i.value,position:i.position},message:i.message}),t.dirty());else if("toLowerCase"===i.kind)e.data=e.data.toLowerCase();else if("toUpperCase"===i.kind)e.data=e.data.toUpperCase();else if("startsWith"===i.kind)e.data.startsWith(i.value)||(n=this._getOrReturnCtx(e,n),p(n,{code:s.invalid_string,validation:{startsWith:i.value},message:i.message}),t.dirty());else if("endsWith"===i.kind)e.data.endsWith(i.value)||(n=this._getOrReturnCtx(e,n),p(n,{code:s.invalid_string,validation:{endsWith:i.value},message:i.message}),t.dirty());else if("datetime"===i.kind){H(i).test(e.data)||(n=this._getOrReturnCtx(e,n),p(n,{code:s.invalid_string,validation:"datetime",message:i.message}),t.dirty())}else if("date"===i.kind){$.test(e.data)||(n=this._getOrReturnCtx(e,n),p(n,{code:s.invalid_string,validation:"date",message:i.message}),t.dirty())}else if("time"===i.kind){new RegExp(`^${Z(i)}$`).test(e.data)||(n=this._getOrReturnCtx(e,n),p(n,{code:s.invalid_string,validation:"time",message:i.message}),t.dirty())}else"duration"===i.kind?M.test(e.data)||(n=this._getOrReturnCtx(e,n),p(n,{validation:"duration",code:s.invalid_string,message:i.message}),t.dirty()):"ip"===i.kind?(o=e.data,("v4"!==(a=i.version)&&a||!F.test(o))&&("v6"!==a&&a||!B.test(o))&&(n=this._getOrReturnCtx(e,n),p(n,{validation:"ip",code:s.invalid_string,message:i.message}),t.dirty())):"base64"===i.kind?U.test(e.data)||(n=this._getOrReturnCtx(e,n),p(n,{validation:"base64",code:s.invalid_string,message:i.message}),t.dirty()):r.assertNever(i);var o,a;return{status:t.value,value:e.data}}_regex(e,t,n){return this.refinement((t=>e.test(t)),{validation:t,code:s.invalid_string,...S.errToObj(n)})}_addCheck(e){return new V({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...S.errToObj(e)})}url(e){return this._addCheck({kind:"url",...S.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...S.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...S.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...S.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...S.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...S.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...S.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...S.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...S.errToObj(e)})}datetime(e){var t,n;return"string"===typeof e?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:"undefined"===typeof(null===e||void 0===e?void 0:e.precision)?null:null===e||void 0===e?void 0:e.precision,offset:null!==(t=null===e||void 0===e?void 0:e.offset)&&void 0!==t&&t,local:null!==(n=null===e||void 0===e?void 0:e.local)&&void 0!==n&&n,...S.errToObj(null===e||void 0===e?void 0:e.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return"string"===typeof e?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:"undefined"===typeof(null===e||void 0===e?void 0:e.precision)?null:null===e||void 0===e?void 0:e.precision,...S.errToObj(null===e||void 0===e?void 0:e.message)})}duration(e){return this._addCheck({kind:"duration",...S.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...S.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:null===t||void 0===t?void 0:t.position,...S.errToObj(null===t||void 0===t?void 0:t.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...S.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...S.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...S.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...S.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...S.errToObj(t)})}nonempty(e){return this.min(1,S.errToObj(e))}trim(){return new V({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new V({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new V({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find((e=>"datetime"===e.kind))}get isDate(){return!!this._def.checks.find((e=>"date"===e.kind))}get isTime(){return!!this._def.checks.find((e=>"time"===e.kind))}get isDuration(){return!!this._def.checks.find((e=>"duration"===e.kind))}get isEmail(){return!!this._def.checks.find((e=>"email"===e.kind))}get isURL(){return!!this._def.checks.find((e=>"url"===e.kind))}get isEmoji(){return!!this._def.checks.find((e=>"emoji"===e.kind))}get isUUID(){return!!this._def.checks.find((e=>"uuid"===e.kind))}get isNANOID(){return!!this._def.checks.find((e=>"nanoid"===e.kind))}get isCUID(){return!!this._def.checks.find((e=>"cuid"===e.kind))}get isCUID2(){return!!this._def.checks.find((e=>"cuid2"===e.kind))}get isULID(){return!!this._def.checks.find((e=>"ulid"===e.kind))}get isIP(){return!!this._def.checks.find((e=>"ip"===e.kind))}get isBase64(){return!!this._def.checks.find((e=>"base64"===e.kind))}get minLength(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}function W(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,o=n>r?n:r;return parseInt(e.toFixed(o).replace(".",""))%parseInt(t.toFixed(o).replace(".",""))/Math.pow(10,o)}V.create=e=>{var t;return new V({checks:[],typeName:Me.ZodString,coerce:null!==(t=null===e||void 0===e?void 0:e.coerce)&&void 0!==t&&t,...N(e)})};class G extends I{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){this._def.coerce&&(e.data=Number(e.data));if(this._getType(e)!==i.number){const t=this._getOrReturnCtx(e);return p(t,{code:s.invalid_type,expected:i.number,received:t.parsedType}),m}let t;const n=new h;for(const o of this._def.checks)if("int"===o.kind)r.isInteger(e.data)||(t=this._getOrReturnCtx(e,t),p(t,{code:s.invalid_type,expected:"integer",received:"float",message:o.message}),n.dirty());else if("min"===o.kind){(o.inclusive?e.data<o.value:e.data<=o.value)&&(t=this._getOrReturnCtx(e,t),p(t,{code:s.too_small,minimum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),n.dirty())}else if("max"===o.kind){(o.inclusive?e.data>o.value:e.data>=o.value)&&(t=this._getOrReturnCtx(e,t),p(t,{code:s.too_big,maximum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),n.dirty())}else"multipleOf"===o.kind?0!==W(e.data,o.value)&&(t=this._getOrReturnCtx(e,t),p(t,{code:s.not_multiple_of,multipleOf:o.value,message:o.message}),n.dirty()):"finite"===o.kind?Number.isFinite(e.data)||(t=this._getOrReturnCtx(e,t),p(t,{code:s.not_finite,message:o.message}),n.dirty()):r.assertNever(o);return{status:n.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,S.toString(t))}gt(e,t){return this.setLimit("min",e,!1,S.toString(t))}lte(e,t){return this.setLimit("max",e,!0,S.toString(t))}lt(e,t){return this.setLimit("max",e,!1,S.toString(t))}setLimit(e,t,n,r){return new G({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:S.toString(r)}]})}_addCheck(e){return new G({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:S.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:S.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:S.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:S.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:S.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:S.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:S.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:S.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:S.toString(e)})}get minValue(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}get isInt(){return!!this._def.checks.find((e=>"int"===e.kind||"multipleOf"===e.kind&&r.isInteger(e.value)))}get isFinite(){let e=null,t=null;for(const n of this._def.checks){if("finite"===n.kind||"int"===n.kind||"multipleOf"===n.kind)return!0;"min"===n.kind?(null===t||n.value>t)&&(t=n.value):"max"===n.kind&&(null===e||n.value<e)&&(e=n.value)}return Number.isFinite(t)&&Number.isFinite(e)}}G.create=e=>new G({checks:[],typeName:Me.ZodNumber,coerce:(null===e||void 0===e?void 0:e.coerce)||!1,...N(e)});class Y extends I{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){this._def.coerce&&(e.data=BigInt(e.data));if(this._getType(e)!==i.bigint){const t=this._getOrReturnCtx(e);return p(t,{code:s.invalid_type,expected:i.bigint,received:t.parsedType}),m}let t;const n=new h;for(const o of this._def.checks)if("min"===o.kind){(o.inclusive?e.data<o.value:e.data<=o.value)&&(t=this._getOrReturnCtx(e,t),p(t,{code:s.too_small,type:"bigint",minimum:o.value,inclusive:o.inclusive,message:o.message}),n.dirty())}else if("max"===o.kind){(o.inclusive?e.data>o.value:e.data>=o.value)&&(t=this._getOrReturnCtx(e,t),p(t,{code:s.too_big,type:"bigint",maximum:o.value,inclusive:o.inclusive,message:o.message}),n.dirty())}else"multipleOf"===o.kind?e.data%o.value!==BigInt(0)&&(t=this._getOrReturnCtx(e,t),p(t,{code:s.not_multiple_of,multipleOf:o.value,message:o.message}),n.dirty()):r.assertNever(o);return{status:n.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,S.toString(t))}gt(e,t){return this.setLimit("min",e,!1,S.toString(t))}lte(e,t){return this.setLimit("max",e,!0,S.toString(t))}lt(e,t){return this.setLimit("max",e,!1,S.toString(t))}setLimit(e,t,n,r){return new Y({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:S.toString(r)}]})}_addCheck(e){return new Y({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:S.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:S.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:S.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:S.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:S.toString(t)})}get minValue(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}Y.create=e=>{var t;return new Y({checks:[],typeName:Me.ZodBigInt,coerce:null!==(t=null===e||void 0===e?void 0:e.coerce)&&void 0!==t&&t,...N(e)})};class K extends I{_parse(e){this._def.coerce&&(e.data=Boolean(e.data));if(this._getType(e)!==i.boolean){const t=this._getOrReturnCtx(e);return p(t,{code:s.invalid_type,expected:i.boolean,received:t.parsedType}),m}return v(e.data)}}K.create=e=>new K({typeName:Me.ZodBoolean,coerce:(null===e||void 0===e?void 0:e.coerce)||!1,...N(e)});class Q extends I{_parse(e){this._def.coerce&&(e.data=new Date(e.data));if(this._getType(e)!==i.date){const t=this._getOrReturnCtx(e);return p(t,{code:s.invalid_type,expected:i.date,received:t.parsedType}),m}if(isNaN(e.data.getTime())){return p(this._getOrReturnCtx(e),{code:s.invalid_date}),m}const t=new h;let n;for(const o of this._def.checks)"min"===o.kind?e.data.getTime()<o.value&&(n=this._getOrReturnCtx(e,n),p(n,{code:s.too_small,message:o.message,inclusive:!0,exact:!1,minimum:o.value,type:"date"}),t.dirty()):"max"===o.kind?e.data.getTime()>o.value&&(n=this._getOrReturnCtx(e,n),p(n,{code:s.too_big,message:o.message,inclusive:!0,exact:!1,maximum:o.value,type:"date"}),t.dirty()):r.assertNever(o);return{status:t.value,value:new Date(e.data.getTime())}}_addCheck(e){return new Q({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:S.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:S.toString(t)})}get minDate(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return null!=e?new Date(e):null}get maxDate(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return null!=e?new Date(e):null}}Q.create=e=>new Q({checks:[],coerce:(null===e||void 0===e?void 0:e.coerce)||!1,typeName:Me.ZodDate,...N(e)});class J extends I{_parse(e){if(this._getType(e)!==i.symbol){const t=this._getOrReturnCtx(e);return p(t,{code:s.invalid_type,expected:i.symbol,received:t.parsedType}),m}return v(e.data)}}J.create=e=>new J({typeName:Me.ZodSymbol,...N(e)});class X extends I{_parse(e){if(this._getType(e)!==i.undefined){const t=this._getOrReturnCtx(e);return p(t,{code:s.invalid_type,expected:i.undefined,received:t.parsedType}),m}return v(e.data)}}X.create=e=>new X({typeName:Me.ZodUndefined,...N(e)});class ee extends I{_parse(e){if(this._getType(e)!==i.null){const t=this._getOrReturnCtx(e);return p(t,{code:s.invalid_type,expected:i.null,received:t.parsedType}),m}return v(e.data)}}ee.create=e=>new ee({typeName:Me.ZodNull,...N(e)});class te extends I{constructor(){super(...arguments),this._any=!0}_parse(e){return v(e.data)}}te.create=e=>new te({typeName:Me.ZodAny,...N(e)});class ne extends I{constructor(){super(...arguments),this._unknown=!0}_parse(e){return v(e.data)}}ne.create=e=>new ne({typeName:Me.ZodUnknown,...N(e)});class re extends I{_parse(e){const t=this._getOrReturnCtx(e);return p(t,{code:s.invalid_type,expected:i.never,received:t.parsedType}),m}}re.create=e=>new re({typeName:Me.ZodNever,...N(e)});class oe extends I{_parse(e){if(this._getType(e)!==i.undefined){const t=this._getOrReturnCtx(e);return p(t,{code:s.invalid_type,expected:i.void,received:t.parsedType}),m}return v(e.data)}}oe.create=e=>new oe({typeName:Me.ZodVoid,...N(e)});class ie extends I{_parse(e){const{ctx:t,status:n}=this._processInputParams(e),r=this._def;if(t.parsedType!==i.array)return p(t,{code:s.invalid_type,expected:i.array,received:t.parsedType}),m;if(null!==r.exactLength){const e=t.data.length>r.exactLength.value,o=t.data.length<r.exactLength.value;(e||o)&&(p(t,{code:e?s.too_big:s.too_small,minimum:o?r.exactLength.value:void 0,maximum:e?r.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:r.exactLength.message}),n.dirty())}if(null!==r.minLength&&t.data.length<r.minLength.value&&(p(t,{code:s.too_small,minimum:r.minLength.value,type:"array",inclusive:!0,exact:!1,message:r.minLength.message}),n.dirty()),null!==r.maxLength&&t.data.length>r.maxLength.value&&(p(t,{code:s.too_big,maximum:r.maxLength.value,type:"array",inclusive:!0,exact:!1,message:r.maxLength.message}),n.dirty()),t.common.async)return Promise.all([...t.data].map(((e,n)=>r.type._parseAsync(new O(t,e,t.path,n))))).then((e=>h.mergeArray(n,e)));const o=[...t.data].map(((e,n)=>r.type._parseSync(new O(t,e,t.path,n))));return h.mergeArray(n,o)}get element(){return this._def.type}min(e,t){return new ie({...this._def,minLength:{value:e,message:S.toString(t)}})}max(e,t){return new ie({...this._def,maxLength:{value:e,message:S.toString(t)}})}length(e,t){return new ie({...this._def,exactLength:{value:e,message:S.toString(t)}})}nonempty(e){return this.min(1,e)}}function ae(e){if(e instanceof se){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=Ce.create(ae(r))}return new se({...e._def,shape:()=>t})}return e instanceof ie?new ie({...e._def,type:ae(e.element)}):e instanceof Ce?Ce.create(ae(e.unwrap())):e instanceof ke?ke.create(ae(e.unwrap())):e instanceof pe?pe.create(e.items.map((e=>ae(e)))):e}ie.create=(e,t)=>new ie({type:e,minLength:null,maxLength:null,exactLength:null,typeName:Me.ZodArray,...N(t)});class se extends I{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;const e=this._def.shape(),t=r.objectKeys(e);return this._cached={shape:e,keys:t}}_parse(e){if(this._getType(e)!==i.object){const t=this._getOrReturnCtx(e);return p(t,{code:s.invalid_type,expected:i.object,received:t.parsedType}),m}const{status:t,ctx:n}=this._processInputParams(e),{shape:r,keys:o}=this._getCached(),a=[];if(!(this._def.catchall instanceof re&&"strip"===this._def.unknownKeys))for(const i in n.data)o.includes(i)||a.push(i);const l=[];for(const i of o){const e=r[i],t=n.data[i];l.push({key:{status:"valid",value:i},value:e._parse(new O(n,t,n.path,i)),alwaysSet:i in n.data})}if(this._def.catchall instanceof re){const e=this._def.unknownKeys;if("passthrough"===e)for(const t of a)l.push({key:{status:"valid",value:t},value:{status:"valid",value:n.data[t]}});else if("strict"===e)a.length>0&&(p(n,{code:s.unrecognized_keys,keys:a}),t.dirty());else if("strip"!==e)throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const e=this._def.catchall;for(const t of a){const r=n.data[t];l.push({key:{status:"valid",value:t},value:e._parse(new O(n,r,n.path,t)),alwaysSet:t in n.data})}}return n.common.async?Promise.resolve().then((async()=>{const e=[];for(const t of l){const n=await t.key,r=await t.value;e.push({key:n,value:r,alwaysSet:t.alwaysSet})}return e})).then((e=>h.mergeObjectSync(t,e))):h.mergeObjectSync(t,l)}get shape(){return this._def.shape()}strict(e){return S.errToObj,new se({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,n)=>{var r,o,i,a;const s=null!==(i=null===(o=(r=this._def).errorMap)||void 0===o?void 0:o.call(r,t,n).message)&&void 0!==i?i:n.defaultError;return"unrecognized_keys"===t.code?{message:null!==(a=S.errToObj(e).message)&&void 0!==a?a:s}:{message:s}}}:{}})}strip(){return new se({...this._def,unknownKeys:"strip"})}passthrough(){return new se({...this._def,unknownKeys:"passthrough"})}extend(e){return new se({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new se({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:Me.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new se({...this._def,catchall:e})}pick(e){const t={};return r.objectKeys(e).forEach((n=>{e[n]&&this.shape[n]&&(t[n]=this.shape[n])})),new se({...this._def,shape:()=>t})}omit(e){const t={};return r.objectKeys(this.shape).forEach((n=>{e[n]||(t[n]=this.shape[n])})),new se({...this._def,shape:()=>t})}deepPartial(){return ae(this)}partial(e){const t={};return r.objectKeys(this.shape).forEach((n=>{const r=this.shape[n];e&&!e[n]?t[n]=r:t[n]=r.optional()})),new se({...this._def,shape:()=>t})}required(e){const t={};return r.objectKeys(this.shape).forEach((n=>{if(e&&!e[n])t[n]=this.shape[n];else{let e=this.shape[n];for(;e instanceof Ce;)e=e._def.innerType;t[n]=e}})),new se({...this._def,shape:()=>t})}keyof(){return we(r.objectKeys(this.shape))}}se.create=(e,t)=>new se({shape:()=>e,unknownKeys:"strip",catchall:re.create(),typeName:Me.ZodObject,...N(t)}),se.strictCreate=(e,t)=>new se({shape:()=>e,unknownKeys:"strict",catchall:re.create(),typeName:Me.ZodObject,...N(t)}),se.lazycreate=(e,t)=>new se({shape:e,unknownKeys:"strip",catchall:re.create(),typeName:Me.ZodObject,...N(t)});class le extends I{_parse(e){const{ctx:t}=this._processInputParams(e),n=this._def.options;if(t.common.async)return Promise.all(n.map((async e=>{const n={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:n}),ctx:n}}))).then((function(e){for(const t of e)if("valid"===t.result.status)return t.result;for(const r of e)if("dirty"===r.result.status)return t.common.issues.push(...r.ctx.common.issues),r.result;const n=e.map((e=>new l(e.ctx.common.issues)));return p(t,{code:s.invalid_union,unionErrors:n}),m}));{let e;const r=[];for(const i of n){const n={...t,common:{...t.common,issues:[]},parent:null},o=i._parseSync({data:t.data,path:t.path,parent:n});if("valid"===o.status)return o;"dirty"!==o.status||e||(e={result:o,ctx:n}),n.common.issues.length&&r.push(n.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;const o=r.map((e=>new l(e)));return p(t,{code:s.invalid_union,unionErrors:o}),m}}get options(){return this._def.options}}le.create=(e,t)=>new le({options:e,typeName:Me.ZodUnion,...N(t)});const ce=e=>e instanceof ye?ce(e.schema):e instanceof Se?ce(e.innerType()):e instanceof be?[e.value]:e instanceof Ee?e.options:e instanceof _e?r.objectValues(e.enum):e instanceof Oe?ce(e._def.innerType):e instanceof X?[void 0]:e instanceof ee?[null]:e instanceof Ce?[void 0,...ce(e.unwrap())]:e instanceof ke?[null,...ce(e.unwrap())]:e instanceof Pe||e instanceof De?ce(e.unwrap()):e instanceof Te?ce(e._def.innerType):[];class ue extends I{_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==i.object)return p(t,{code:s.invalid_type,expected:i.object,received:t.parsedType}),m;const n=this.discriminator,r=t.data[n],o=this.optionsMap.get(r);return o?t.common.async?o._parseAsync({data:t.data,path:t.path,parent:t}):o._parseSync({data:t.data,path:t.path,parent:t}):(p(t,{code:s.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),m)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,n){const r=new Map;for(const o of t){const t=ce(o.shape[e]);if(!t.length)throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(const n of t){if(r.has(n))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(n)}`);r.set(n,o)}}return new ue({typeName:Me.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:r,...N(n)})}}function de(e,t){const n=a(e),o=a(t);if(e===t)return{valid:!0,data:e};if(n===i.object&&o===i.object){const n=r.objectKeys(t),o=r.objectKeys(e).filter((e=>-1!==n.indexOf(e))),i={...e,...t};for(const r of o){const n=de(e[r],t[r]);if(!n.valid)return{valid:!1};i[r]=n.data}return{valid:!0,data:i}}if(n===i.array&&o===i.array){if(e.length!==t.length)return{valid:!1};const n=[];for(let r=0;r<e.length;r++){const o=de(e[r],t[r]);if(!o.valid)return{valid:!1};n.push(o.data)}return{valid:!0,data:n}}return n===i.date&&o===i.date&&+e===+t?{valid:!0,data:e}:{valid:!1}}class fe extends I{_parse(e){const{status:t,ctx:n}=this._processInputParams(e),r=(e,r)=>{if(y(e)||y(r))return m;const o=de(e.value,r.value);return o.valid?((b(e)||b(r))&&t.dirty(),{status:t.value,value:o.data}):(p(n,{code:s.invalid_intersection_types}),m)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then((e=>{let[t,n]=e;return r(t,n)})):r(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}}fe.create=(e,t,n)=>new fe({left:e,right:t,typeName:Me.ZodIntersection,...N(n)});class pe extends I{_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==i.array)return p(n,{code:s.invalid_type,expected:i.array,received:n.parsedType}),m;if(n.data.length<this._def.items.length)return p(n,{code:s.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),m;!this._def.rest&&n.data.length>this._def.items.length&&(p(n,{code:s.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());const r=[...n.data].map(((e,t)=>{const r=this._def.items[t]||this._def.rest;return r?r._parse(new O(n,e,n.path,t)):null})).filter((e=>!!e));return n.common.async?Promise.all(r).then((e=>h.mergeArray(t,e))):h.mergeArray(t,r)}get items(){return this._def.items}rest(e){return new pe({...this._def,rest:e})}}pe.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new pe({items:e,typeName:Me.ZodTuple,rest:null,...N(t)})};class he extends I{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==i.object)return p(n,{code:s.invalid_type,expected:i.object,received:n.parsedType}),m;const r=[],o=this._def.keyType,a=this._def.valueType;for(const i in n.data)r.push({key:o._parse(new O(n,i,n.path,i)),value:a._parse(new O(n,n.data[i],n.path,i)),alwaysSet:i in n.data});return n.common.async?h.mergeObjectAsync(t,r):h.mergeObjectSync(t,r)}get element(){return this._def.valueType}static create(e,t,n){return new he(t instanceof I?{keyType:e,valueType:t,typeName:Me.ZodRecord,...N(n)}:{keyType:V.create(),valueType:e,typeName:Me.ZodRecord,...N(t)})}}class me extends I{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==i.map)return p(n,{code:s.invalid_type,expected:i.map,received:n.parsedType}),m;const r=this._def.keyType,o=this._def.valueType,a=[...n.data.entries()].map(((e,t)=>{let[i,a]=e;return{key:r._parse(new O(n,i,n.path,[t,"key"])),value:o._parse(new O(n,a,n.path,[t,"value"]))}}));if(n.common.async){const e=new Map;return Promise.resolve().then((async()=>{for(const n of a){const r=await n.key,o=await n.value;if("aborted"===r.status||"aborted"===o.status)return m;"dirty"!==r.status&&"dirty"!==o.status||t.dirty(),e.set(r.value,o.value)}return{status:t.value,value:e}}))}{const e=new Map;for(const n of a){const r=n.key,o=n.value;if("aborted"===r.status||"aborted"===o.status)return m;"dirty"!==r.status&&"dirty"!==o.status||t.dirty(),e.set(r.value,o.value)}return{status:t.value,value:e}}}}me.create=(e,t,n)=>new me({valueType:t,keyType:e,typeName:Me.ZodMap,...N(n)});class ge extends I{_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==i.set)return p(n,{code:s.invalid_type,expected:i.set,received:n.parsedType}),m;const r=this._def;null!==r.minSize&&n.data.size<r.minSize.value&&(p(n,{code:s.too_small,minimum:r.minSize.value,type:"set",inclusive:!0,exact:!1,message:r.minSize.message}),t.dirty()),null!==r.maxSize&&n.data.size>r.maxSize.value&&(p(n,{code:s.too_big,maximum:r.maxSize.value,type:"set",inclusive:!0,exact:!1,message:r.maxSize.message}),t.dirty());const o=this._def.valueType;function a(e){const n=new Set;for(const r of e){if("aborted"===r.status)return m;"dirty"===r.status&&t.dirty(),n.add(r.value)}return{status:t.value,value:n}}const l=[...n.data.values()].map(((e,t)=>o._parse(new O(n,e,n.path,t))));return n.common.async?Promise.all(l).then((e=>a(e))):a(l)}min(e,t){return new ge({...this._def,minSize:{value:e,message:S.toString(t)}})}max(e,t){return new ge({...this._def,maxSize:{value:e,message:S.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}ge.create=(e,t)=>new ge({valueType:e,minSize:null,maxSize:null,typeName:Me.ZodSet,...N(t)});class ve extends I{constructor(){super(...arguments),this.validate=this.implement}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==i.function)return p(t,{code:s.invalid_type,expected:i.function,received:t.parsedType}),m;function n(e,n){return f({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,d(),c].filter((e=>!!e)),issueData:{code:s.invalid_arguments,argumentsError:n}})}function r(e,n){return f({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,d(),c].filter((e=>!!e)),issueData:{code:s.invalid_return_type,returnTypeError:n}})}const o={errorMap:t.common.contextualErrorMap},a=t.data;if(this._def.returns instanceof xe){const e=this;return v((async function(){for(var t=arguments.length,i=new Array(t),s=0;s<t;s++)i[s]=arguments[s];const c=new l([]),u=await e._def.args.parseAsync(i,o).catch((e=>{throw c.addIssue(n(i,e)),c})),d=await Reflect.apply(a,this,u);return await e._def.returns._def.type.parseAsync(d,o).catch((e=>{throw c.addIssue(r(d,e)),c}))}))}{const e=this;return v((function(){for(var t=arguments.length,i=new Array(t),s=0;s<t;s++)i[s]=arguments[s];const c=e._def.args.safeParse(i,o);if(!c.success)throw new l([n(i,c.error)]);const u=Reflect.apply(a,this,c.data),d=e._def.returns.safeParse(u,o);if(!d.success)throw new l([r(u,d.error)]);return d.data}))}}parameters(){return this._def.args}returnType(){return this._def.returns}args(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new ve({...this._def,args:pe.create(t).rest(ne.create())})}returns(e){return new ve({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,n){return new ve({args:e||pe.create([]).rest(ne.create()),returns:t||ne.create(),typeName:Me.ZodFunction,...N(n)})}}class ye extends I{get schema(){return this._def.getter()}_parse(e){const{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}ye.create=(e,t)=>new ye({getter:e,typeName:Me.ZodLazy,...N(t)});class be extends I{_parse(e){if(e.data!==this._def.value){const t=this._getOrReturnCtx(e);return p(t,{received:t.data,code:s.invalid_literal,expected:this._def.value}),m}return{status:"valid",value:e.data}}get value(){return this._def.value}}function we(e,t){return new Ee({values:e,typeName:Me.ZodEnum,...N(t)})}be.create=(e,t)=>new be({value:e,typeName:Me.ZodLiteral,...N(t)});class Ee extends I{constructor(){super(...arguments),C.set(this,void 0)}_parse(e){if("string"!==typeof e.data){const t=this._getOrReturnCtx(e),n=this._def.values;return p(t,{expected:r.joinValues(n),received:t.parsedType,code:s.invalid_type}),m}if(_(this,C,"f")||x(this,C,new Set(this._def.values),"f"),!_(this,C,"f").has(e.data)){const t=this._getOrReturnCtx(e),n=this._def.values;return p(t,{received:t.data,code:s.invalid_enum_value,options:n}),m}return v(e.data)}get options(){return this._def.values}get enum(){const e={};for(const t of this._def.values)e[t]=t;return e}get Values(){const e={};for(const t of this._def.values)e[t]=t;return e}get Enum(){const e={};for(const t of this._def.values)e[t]=t;return e}extract(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._def;return Ee.create(e,{...this._def,...t})}exclude(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._def;return Ee.create(this.options.filter((t=>!e.includes(t))),{...this._def,...t})}}C=new WeakMap,Ee.create=we;class _e extends I{constructor(){super(...arguments),k.set(this,void 0)}_parse(e){const t=r.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==i.string&&n.parsedType!==i.number){const e=r.objectValues(t);return p(n,{expected:r.joinValues(e),received:n.parsedType,code:s.invalid_type}),m}if(_(this,k,"f")||x(this,k,new Set(r.getValidEnumValues(this._def.values)),"f"),!_(this,k,"f").has(e.data)){const e=r.objectValues(t);return p(n,{received:n.data,code:s.invalid_enum_value,options:e}),m}return v(e.data)}get enum(){return this._def.values}}k=new WeakMap,_e.create=(e,t)=>new _e({values:e,typeName:Me.ZodNativeEnum,...N(t)});class xe extends I{unwrap(){return this._def.type}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==i.promise&&!1===t.common.async)return p(t,{code:s.invalid_type,expected:i.promise,received:t.parsedType}),m;const n=t.parsedType===i.promise?t.data:Promise.resolve(t.data);return v(n.then((e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap}))))}}xe.create=(e,t)=>new xe({type:e,typeName:Me.ZodPromise,...N(t)});class Se extends I{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Me.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){const{status:t,ctx:n}=this._processInputParams(e),o=this._def.effect||null,i={addIssue:e=>{p(n,e),e.fatal?t.abort():t.dirty()},get path(){return n.path}};if(i.addIssue=i.addIssue.bind(i),"preprocess"===o.type){const e=o.transform(n.data,i);if(n.common.async)return Promise.resolve(e).then((async e=>{if("aborted"===t.value)return m;const r=await this._def.schema._parseAsync({data:e,path:n.path,parent:n});return"aborted"===r.status?m:"dirty"===r.status||"dirty"===t.value?g(r.value):r}));{if("aborted"===t.value)return m;const r=this._def.schema._parseSync({data:e,path:n.path,parent:n});return"aborted"===r.status?m:"dirty"===r.status||"dirty"===t.value?g(r.value):r}}if("refinement"===o.type){const e=e=>{const t=o.refinement(e,i);if(n.common.async)return Promise.resolve(t);if(t instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1===n.common.async){const r=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return"aborted"===r.status?m:("dirty"===r.status&&t.dirty(),e(r.value),{status:t.value,value:r.value})}return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then((n=>"aborted"===n.status?m:("dirty"===n.status&&t.dirty(),e(n.value).then((()=>({status:t.value,value:n.value}))))))}if("transform"===o.type){if(!1===n.common.async){const e=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!w(e))return e;const r=o.transform(e.value,i);if(r instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:r}}return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then((e=>w(e)?Promise.resolve(o.transform(e.value,i)).then((e=>({status:t.value,value:e}))):e))}r.assertNever(o)}}Se.create=(e,t,n)=>new Se({schema:e,typeName:Me.ZodEffects,effect:t,...N(n)}),Se.createWithPreprocess=(e,t,n)=>new Se({schema:t,effect:{type:"preprocess",transform:e},typeName:Me.ZodEffects,...N(n)});class Ce extends I{_parse(e){return this._getType(e)===i.undefined?v(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}Ce.create=(e,t)=>new Ce({innerType:e,typeName:Me.ZodOptional,...N(t)});class ke extends I{_parse(e){return this._getType(e)===i.null?v(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}ke.create=(e,t)=>new ke({innerType:e,typeName:Me.ZodNullable,...N(t)});class Oe extends I{_parse(e){const{ctx:t}=this._processInputParams(e);let n=t.data;return t.parsedType===i.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}Oe.create=(e,t)=>new Oe({innerType:e,typeName:Me.ZodDefault,defaultValue:"function"===typeof t.default?t.default:()=>t.default,...N(t)});class Te extends I{_parse(e){const{ctx:t}=this._processInputParams(e),n={...t,common:{...t.common,issues:[]}},r=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return E(r)?r.then((e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new l(n.common.issues)},input:n.data})}))):{status:"valid",value:"valid"===r.status?r.value:this._def.catchValue({get error(){return new l(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}}Te.create=(e,t)=>new Te({innerType:e,typeName:Me.ZodCatch,catchValue:"function"===typeof t.catch?t.catch:()=>t.catch,...N(t)});class Ne extends I{_parse(e){if(this._getType(e)!==i.nan){const t=this._getOrReturnCtx(e);return p(t,{code:s.invalid_type,expected:i.nan,received:t.parsedType}),m}return{status:"valid",value:e.data}}}Ne.create=e=>new Ne({typeName:Me.ZodNaN,...N(e)});const Ie=Symbol("zod_brand");class Pe extends I{_parse(e){const{ctx:t}=this._processInputParams(e),n=t.data;return this._def.type._parse({data:n,path:t.path,parent:t})}unwrap(){return this._def.type}}class Re extends I{_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.common.async){return(async()=>{const e=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return"aborted"===e.status?m:"dirty"===e.status?(t.dirty(),g(e.value)):this._def.out._parseAsync({data:e.value,path:n.path,parent:n})})()}{const e=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return"aborted"===e.status?m:"dirty"===e.status?(t.dirty(),{status:"dirty",value:e.value}):this._def.out._parseSync({data:e.value,path:n.path,parent:n})}}static create(e,t){return new Re({in:e,out:t,typeName:Me.ZodPipeline})}}class De extends I{_parse(e){const t=this._def.innerType._parse(e),n=e=>(w(e)&&(e.value=Object.freeze(e.value)),e);return E(t)?t.then((e=>n(e))):n(t)}unwrap(){return this._def.innerType}}function Ae(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return e?te.create().superRefine(((r,o)=>{var i,a;if(!e(r)){const e="function"===typeof t?t(r):"string"===typeof t?{message:t}:t,s=null===(a=null!==(i=e.fatal)&&void 0!==i?i:n)||void 0===a||a,l="string"===typeof e?{message:e}:e;o.addIssue({code:"custom",...l,fatal:s})}})):te.create()}De.create=(e,t)=>new De({innerType:e,typeName:Me.ZodReadonly,...N(t)});const je={object:se.lazycreate};var Me;!function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"}(Me||(Me={}));const Le=V.create,ze=G.create,Fe=Ne.create,Be=Y.create,Ue=K.create,qe=Q.create,$e=J.create,Ze=X.create,He=ee.create,Ve=te.create,We=ne.create,Ge=re.create,Ye=oe.create,Ke=ie.create,Qe=se.create,Je=se.strictCreate,Xe=le.create,et=ue.create,tt=fe.create,nt=pe.create,rt=he.create,ot=me.create,it=ge.create,at=ve.create,st=ye.create,lt=be.create,ct=Ee.create,ut=_e.create,dt=xe.create,ft=Se.create,pt=Ce.create,ht=ke.create,mt=Se.createWithPreprocess,gt=Re.create,vt={string:e=>V.create({...e,coerce:!0}),number:e=>G.create({...e,coerce:!0}),boolean:e=>K.create({...e,coerce:!0}),bigint:e=>Y.create({...e,coerce:!0}),date:e=>Q.create({...e,coerce:!0})},yt=m;var bt=Object.freeze({__proto__:null,defaultErrorMap:c,setErrorMap:function(e){u=e},getErrorMap:d,makeIssue:f,EMPTY_PATH:[],addIssueToContext:p,ParseStatus:h,INVALID:m,DIRTY:g,OK:v,isAborted:y,isDirty:b,isValid:w,isAsync:E,get util(){return r},get objectUtil(){return o},ZodParsedType:i,getParsedType:a,ZodType:I,datetimeRegex:H,ZodString:V,ZodNumber:G,ZodBigInt:Y,ZodBoolean:K,ZodDate:Q,ZodSymbol:J,ZodUndefined:X,ZodNull:ee,ZodAny:te,ZodUnknown:ne,ZodNever:re,ZodVoid:oe,ZodArray:ie,ZodObject:se,ZodUnion:le,ZodDiscriminatedUnion:ue,ZodIntersection:fe,ZodTuple:pe,ZodRecord:he,ZodMap:me,ZodSet:ge,ZodFunction:ve,ZodLazy:ye,ZodLiteral:be,ZodEnum:Ee,ZodNativeEnum:_e,ZodPromise:xe,ZodEffects:Se,ZodTransformer:Se,ZodOptional:Ce,ZodNullable:ke,ZodDefault:Oe,ZodCatch:Te,ZodNaN:Ne,BRAND:Ie,ZodBranded:Pe,ZodPipeline:Re,ZodReadonly:De,custom:Ae,Schema:I,ZodSchema:I,late:je,get ZodFirstPartyTypeKind(){return Me},coerce:vt,any:Ve,array:Ke,bigint:Be,boolean:Ue,date:qe,discriminatedUnion:et,effect:ft,enum:ct,function:at,instanceof:function(e){return Ae((t=>t instanceof e),arguments.length>1&&void 0!==arguments[1]?arguments[1]:{message:`Input not instance of ${e.name}`})},intersection:tt,lazy:st,literal:lt,map:ot,nan:Fe,nativeEnum:ut,never:Ge,null:He,nullable:ht,number:ze,object:Qe,oboolean:()=>Ue().optional(),onumber:()=>ze().optional(),optional:pt,ostring:()=>Le().optional(),pipeline:gt,preprocess:mt,promise:dt,record:rt,set:it,strictObject:Je,string:Le,symbol:$e,transformer:ft,tuple:nt,undefined:Ze,union:Xe,unknown:We,void:Ye,NEVER:yt,ZodIssueCode:s,quotelessJson:e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:"),ZodError:l})}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}n.m=e,n.amdO={},n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},(()=>{var e,t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;n.t=function(r,o){if(1&o&&(r=this(r)),8&o)return r;if("object"===typeof r&&r){if(4&o&&r.__esModule)return r;if(16&o&&"function"===typeof r.then)return r}var i=Object.create(null);n.r(i);var a={};e=e||[null,t({}),t([]),t(t)];for(var s=2&o&&r;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((e=>a[e]=()=>r[e]));return a.default=()=>r,n.d(i,a),i}})(),n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.f={},n.e=e=>Promise.all(Object.keys(n.f).reduce(((t,r)=>(n.f[r](e,t),t)),[])),n.u=e=>"static/js/"+e+"."+{27:"29953fc3",30:"b097cbb4",86:"ad271bdc",96:"6e1bf3f4",115:"2c4de87e",148:"b60f0e5e",163:"eea01641",178:"e0df04cc",185:"7d51fcfa",202:"52f13cd5",214:"c03ec0c5",337:"b6fc715e",358:"d6300019",383:"4faec08b",425:"c6dd581a",436:"564ff0f8",451:"3b449e79",515:"cd9a8a90",556:"55f00ac6",598:"243fd68d",599:"c58caf58",619:"f27ddcbd",620:"7aea5425",632:"b6c03857",674:"e6536250",678:"b73063ff",704:"45771d88",785:"d2eae69c",919:"53e04507",924:"382f18b1",1148:"3c629236",1150:"2b47004d",1155:"4fce1854",1168:"91d9e2c2",1179:"15d7ac65",1278:"c0717a20",1350:"21b6a9ef",1478:"631a9793",1508:"f0158935",1528:"2a39d066",1616:"8a217b93",1736:"9f4a6b02",1746:"a8ba5c62",1747:"b4331799",1869:"d6661a03",1878:"bfc449c6",1956:"0205a5bb",1962:"2fc0a4aa",2033:"5c6dfca9",2104:"4f22ecac",2118:"9d64ef57",2141:"26c930aa",2183:"e2318c37",2190:"27f354f5",2194:"38bafdfc",2223:"63ae5a05",2229:"6687fc46",2238:"3cf88b79",2244:"54ce68fe",2283:"6b21fbf1",2302:"7e7a2fb4",2322:"fe9185b1",2367:"052e678b",2403:"5de440f9",2435:"092e8d7f",2477:"e6121bfd",2492:"64b7d727",2521:"21bdfab9",2532:"30bb087d",2553:"5faabf5a",2590:"75b6626e",2620:"8e5c52fb",2677:"3d7ea3fc",2701:"86912840",2775:"ae79e944",2840:"b69eb597",2876:"afe7e47f",2931:"3ade3bc3",2937:"09da0354",2962:"66e01691",2981:"6d027811",2986:"2100fcad",2994:"e6c77407",3025:"7e536c57",3074:"bbb8aaef",3231:"65396654",3271:"7b005742",3304:"f5897a96",3333:"ceb196e6",3358:"c777fe1f",3397:"9c0005a3",3457:"b193afe6",3466:"98f036ac",3498:"c7d39060",3621:"9b6c61ab",3630:"8eda2d3f",3644:"aeda46ca",3645:"bdd20200",3756:"67bd6b00",3771:"764124c3",3898:"1fec42e6",3920:"11b8c9d7",3926:"8f2c9741",3945:"054c871d",4046:"5dac72a9",4080:"07be3744",4123:"64882a16",4132:"04be158e",4159:"5e0cfd91",4198:"d0671061",4263:"38b7ba04",4326:"d5c34c54",4345:"9238776d",4347:"adf03999",4388:"edb51304",4482:"59f2c9c2",4535:"5d1c8322",4550:"2e04d705",4583:"1682cf86",4616:"108b0d1e",4618:"131d9563",4635:"a36f9ad7",4663:"b893c670",4684:"27f737c4",4726:"09337328",4789:"2486836a",4812:"73af8448",4814:"11309069",4826:"d2723706",4848:"64f47dc3",4949:"6bf46e71",4964:"c7c75eb0",4985:"991de003",5107:"8cac6a03",5112:"6189bbe0",5117:"896f7ffb",5161:"45b4f520",5168:"6fb23f08",5226:"675d55fb",5293:"84db9400",5311:"a500a1ea",5341:"2c19c723",5345:"37bcf3b0",5352:"3d3187b7",5373:"90c95a6e",5378:"86805fba",5384:"7591e911",5387:"8af1d694",5399:"f9398084",5410:"ff2baaff",5448:"cef3c129",5450:"f0dcfc15",5491:"a460479e",5616:"3df626f9",5643:"00957838",5661:"c83a4eb0",5670:"5c30cef1",5720:"39a954f1",5790:"e3d88e2c",5809:"d78ebebb",5844:"a6d86219",5863:"e2cd2452",5868:"be04313a",6044:"2de9962d",6058:"7f474f92",6065:"b08e9640",6142:"b2452554",6144:"e1568f26",6156:"0c562627",6227:"fc562bbf",6230:"8e64216a",6289:"51f8741e",6291:"e7cdf7f2",6300:"dca75d45",6321:"aa3e44de",6329:"8763cdf1",6361:"a9f11e7a",6390:"e2ce5781",6392:"9c5364ed",6393:"b0de2d9e",6521:"371403ec",6581:"043e40e7",6619:"9e1de7a6",6679:"6e0a87d5",6692:"9322b59d",6795:"5ec0c96a",6815:"672badd5",6876:"867b698c",6877:"d2d51d98",6887:"0855fd66",6892:"2c3c2bcb",6898:"5580b941",6919:"8f4bfed3",6954:"e18be130",6961:"f4888ae1",7016:"4a34a027",7059:"0bcaa0b1",7119:"e94f8dac",7202:"fefd43ee",7257:"8ce0d045",7276:"47f377a4",7388:"9f447514",7409:"4408962b",7520:"0062a6b8",7522:"1a0f9c02",7529:"e42e6e04",7543:"8ff5adcd",7554:"28f3da22",7645:"6f6a8416",7673:"69ae8f05",7684:"a3920b72",7779:"9d9b07ae",7803:"a56cfca6",7992:"20690745",7999:"bdf4fe79",8011:"4fed4307",8065:"22593484",8133:"2afc4db4",8140:"8d8e9309",8167:"b9a90da5",8450:"baf3a89d",8591:"93172fe9",8622:"49f3054c",8695:"f17f8853",8702:"69a3e0d5",8747:"baf63d86",8791:"b209de42",8797:"f8f0ce13",8850:"97635389",8853:"c8f9e9d6",8858:"cd9d49a5",8905:"b8a9fd91",9079:"c7e50399",9101:"ce051539",9173:"56664808",9204:"77418f94",9207:"5881b206",9212:"870f16f0",9219:"24a20881",9220:"4d762672",9280:"40cff028",9292:"91ed23f7",9297:"eadc4dba",9308:"c72b8585",9319:"40f9e46a",9371:"f1e95ffc",9399:"abafeca2",9411:"96fb3e2f",9413:"b2921c36",9415:"a2b45d07",9433:"7ce648d0",9526:"10bb1684",9528:"9991c023",9555:"c9b5ee61",9572:"9f83f004",9610:"5ed57d9d",9621:"48073631",9870:"822da0ba",9876:"c4e3221a",9917:"67d792e3",9923:"270f0a19"}[e]+".chunk.js",n.miniCssF=e=>"static/css/"+e+"."+{1878:"b2c94758",2244:"f723033a",2283:"810c7ec7",2775:"331d1970",4263:"34f7edbd",4482:"3ce054a3",4616:"ac57fa01",5293:"28efb33b",5384:"3206aeb6",5410:"033f4b87",5616:"346fc972",7059:"0a2e691a",9399:"3cc21bd9"}[e]+".chunk.css",n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={},t="ydb-embedded-ui:";n.l=(r,o,i,a)=>{if(e[r])e[r].push(o);else{var s,l;if(void 0!==i)for(var c=document.getElementsByTagName("script"),u=0;u<c.length;u++){var d=c[u];if(d.getAttribute("src")==r||d.getAttribute("data-webpack")==t+i){s=d;break}}s||(l=!0,(s=document.createElement("script")).charset="utf-8",s.timeout=120,n.nc&&s.setAttribute("nonce",n.nc),s.setAttribute("data-webpack",t+i),s.src=r),e[r]=[o];var f=(t,n)=>{s.onerror=s.onload=null,clearTimeout(p);var o=e[r];if(delete e[r],s.parentNode&&s.parentNode.removeChild(s),o&&o.forEach((e=>e(n))),t)return t(n)},p=setTimeout(f.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=f.bind(null,s.onerror),s.onload=f.bind(null,s.onload),l&&document.head.appendChild(s)}}})(),n.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),n.p="./",(()=>{if("undefined"!==typeof document){var e=e=>new Promise(((t,r)=>{var o=n.miniCssF(e),i=n.p+o;if(((e,t)=>{for(var n=document.getElementsByTagName("link"),r=0;r<n.length;r++){var o=(a=n[r]).getAttribute("data-href")||a.getAttribute("href");if("stylesheet"===a.rel&&(o===e||o===t))return a}var i=document.getElementsByTagName("style");for(r=0;r<i.length;r++){var a;if((o=(a=i[r]).getAttribute("data-href"))===e||o===t)return a}})(o,i))return t();((e,t,r,o,i)=>{var a=document.createElement("link");a.rel="stylesheet",a.type="text/css",n.nc&&(a.nonce=n.nc),a.onerror=a.onload=n=>{if(a.onerror=a.onload=null,"load"===n.type)o();else{var r=n&&n.type,s=n&&n.target&&n.target.href||t,l=new Error("Loading CSS chunk "+e+" failed.\n("+r+": "+s+")");l.name="ChunkLoadError",l.code="CSS_CHUNK_LOAD_FAILED",l.type=r,l.request=s,a.parentNode&&a.parentNode.removeChild(a),i(l)}},a.href=t,r?r.parentNode.insertBefore(a,r.nextSibling):document.head.appendChild(a)})(e,i,null,t,r)})),t={179:0};n.f.miniCss=(n,r)=>{t[n]?r.push(t[n]):0!==t[n]&&{1878:1,2244:1,2283:1,2775:1,4263:1,4482:1,4616:1,5293:1,5384:1,5410:1,5616:1,7059:1,9399:1}[n]&&r.push(t[n]=e(n).then((()=>{t[n]=0}),(e=>{throw delete t[n],e})))}}})(),(()=>{var e={179:0};n.f.j=(t,r)=>{var o=n.o(e,t)?e[t]:void 0;if(0!==o)if(o)r.push(o[2]);else if(/^[45]616$/.test(t))e[t]=0;else{var i=new Promise(((n,r)=>o=e[t]=[n,r]));r.push(o[2]=i);var a=n.p+n.u(t),s=new Error;n.l(a,(r=>{if(n.o(e,t)&&(0!==(o=e[t])&&(e[t]=void 0),o)){var i=r&&("load"===r.type?"missing":r.type),a=r&&r.target&&r.target.src;s.message="Loading chunk "+t+" failed.\n("+i+": "+a+")",s.name="ChunkLoadError",s.type=i,s.request=a,o[1](s)}}),"chunk-"+t,t)}};var t=(t,r)=>{var o,i,a=r[0],s=r[1],l=r[2],c=0;if(a.some((t=>0!==e[t]))){for(o in s)n.o(s,o)&&(n.m[o]=s[o]);if(l)l(n)}for(t&&t(r);c<a.length;c++)i=a[c],n.o(e,i)&&e[i]&&e[i][0](),e[i]=0},r=self.webpackChunkydb_embedded_ui=self.webpackChunkydb_embedded_ui||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})(),(()=>{"use strict";var e=n(63609),t=n(29796),r=n(90058),o=n(67510);const{store:i,history:a}=(0,o.xC)();var s=n(75859);!async function(){let r;r=await Promise.resolve().then(n.bind(n,29796)).then((e=>{let{SingleClusterApp:t}=e;return t}));const o=document.getElementById("root");if(!o)throw new Error("Can't find root element");e.createRoot(o).render((0,s.jsx)(t.ErrorBoundary,{children:(0,s.jsx)(r,{store:i,history:a})}))}(),(0,r.Z)()})()})(); \ No newline at end of file
diff --git a/ydb/core/viewer/ya.make b/ydb/core/viewer/ya.make
index 3b3ebdae64..be6bbc4821 100644
--- a/ydb/core/viewer/ya.make
+++ b/ydb/core/viewer/ya.make
@@ -121,16 +121,16 @@ IF (NOT EXPORT_CMAKE)
monitoring/json.worker.js.LICENSE.txt monitoring/json.worker.js.LICENSE.txt
monitoring/static/css/1878.b2c94758.chunk.css monitoring/static/css/1878.b2c94758.chunk.css
monitoring/static/css/2244.f723033a.chunk.css monitoring/static/css/2244.f723033a.chunk.css
- monitoring/static/css/2283.810c7ec7.chunk.css monitoring/static/css/2283.810c7ec7.chunk.css
- monitoring/static/css/2775.331d1970.chunk.css monitoring/static/css/2775.331d1970.chunk.css
+ monitoring/static/css/3862.f9d9bfe9.chunk.css monitoring/static/css/3862.f9d9bfe9.chunk.css
monitoring/static/css/4263.34f7edbd.chunk.css monitoring/static/css/4263.34f7edbd.chunk.css
monitoring/static/css/4482.3ce054a3.chunk.css monitoring/static/css/4482.3ce054a3.chunk.css
monitoring/static/css/4616.ac57fa01.chunk.css monitoring/static/css/4616.ac57fa01.chunk.css
- monitoring/static/css/5293.28efb33b.chunk.css monitoring/static/css/5293.28efb33b.chunk.css
- monitoring/static/css/5384.3206aeb6.chunk.css monitoring/static/css/5384.3206aeb6.chunk.css
monitoring/static/css/5410.033f4b87.chunk.css monitoring/static/css/5410.033f4b87.chunk.css
- monitoring/static/css/5616.346fc972.chunk.css monitoring/static/css/5616.346fc972.chunk.css
+ monitoring/static/css/6123.8f81c527.chunk.css monitoring/static/css/6123.8f81c527.chunk.css
+ monitoring/static/css/6194.566eff0a.chunk.css monitoring/static/css/6194.566eff0a.chunk.css
monitoring/static/css/7059.0a2e691a.chunk.css monitoring/static/css/7059.0a2e691a.chunk.css
+ monitoring/static/css/7074.c6e4f322.chunk.css monitoring/static/css/7074.c6e4f322.chunk.css
+ monitoring/static/css/7963.dd2b9fe2.chunk.css monitoring/static/css/7963.dd2b9fe2.chunk.css
monitoring/static/css/9399.3cc21bd9.chunk.css monitoring/static/css/9399.3cc21bd9.chunk.css
monitoring/static/css/main.0bf24cd8.css monitoring/static/css/main.0bf24cd8.css
monitoring/static/favicon.png monitoring/static/favicon.png
@@ -158,7 +158,7 @@ IF (NOT EXPORT_CMAKE)
monitoring/static/js/185.7d51fcfa.chunk.js monitoring/static/js/185.7d51fcfa.chunk.js
monitoring/static/js/185.7d51fcfa.chunk.js.LICENSE.txt monitoring/static/js/185.7d51fcfa.chunk.js.LICENSE.txt
monitoring/static/js/1869.d6661a03.chunk.js monitoring/static/js/1869.d6661a03.chunk.js
- monitoring/static/js/1878.bfc449c6.chunk.js monitoring/static/js/1878.bfc449c6.chunk.js
+ monitoring/static/js/1878.b8595333.chunk.js monitoring/static/js/1878.b8595333.chunk.js
monitoring/static/js/1956.0205a5bb.chunk.js monitoring/static/js/1956.0205a5bb.chunk.js
monitoring/static/js/1956.0205a5bb.chunk.js.LICENSE.txt monitoring/static/js/1956.0205a5bb.chunk.js.LICENSE.txt
monitoring/static/js/1962.2fc0a4aa.chunk.js monitoring/static/js/1962.2fc0a4aa.chunk.js
@@ -181,8 +181,7 @@ IF (NOT EXPORT_CMAKE)
monitoring/static/js/2223.63ae5a05.chunk.js monitoring/static/js/2223.63ae5a05.chunk.js
monitoring/static/js/2229.6687fc46.chunk.js monitoring/static/js/2229.6687fc46.chunk.js
monitoring/static/js/2238.3cf88b79.chunk.js monitoring/static/js/2238.3cf88b79.chunk.js
- monitoring/static/js/2244.54ce68fe.chunk.js monitoring/static/js/2244.54ce68fe.chunk.js
- monitoring/static/js/2283.6b21fbf1.chunk.js monitoring/static/js/2283.6b21fbf1.chunk.js
+ monitoring/static/js/2244.a7bd228d.chunk.js monitoring/static/js/2244.a7bd228d.chunk.js
monitoring/static/js/2302.7e7a2fb4.chunk.js monitoring/static/js/2302.7e7a2fb4.chunk.js
monitoring/static/js/2302.7e7a2fb4.chunk.js.LICENSE.txt monitoring/static/js/2302.7e7a2fb4.chunk.js.LICENSE.txt
monitoring/static/js/2322.fe9185b1.chunk.js monitoring/static/js/2322.fe9185b1.chunk.js
@@ -205,7 +204,6 @@ IF (NOT EXPORT_CMAKE)
monitoring/static/js/2677.3d7ea3fc.chunk.js monitoring/static/js/2677.3d7ea3fc.chunk.js
monitoring/static/js/27.29953fc3.chunk.js monitoring/static/js/27.29953fc3.chunk.js
monitoring/static/js/2701.86912840.chunk.js monitoring/static/js/2701.86912840.chunk.js
- monitoring/static/js/2775.ae79e944.chunk.js monitoring/static/js/2775.ae79e944.chunk.js
monitoring/static/js/2840.b69eb597.chunk.js monitoring/static/js/2840.b69eb597.chunk.js
monitoring/static/js/2840.b69eb597.chunk.js.LICENSE.txt monitoring/static/js/2840.b69eb597.chunk.js.LICENSE.txt
monitoring/static/js/2876.afe7e47f.chunk.js monitoring/static/js/2876.afe7e47f.chunk.js
@@ -248,6 +246,7 @@ IF (NOT EXPORT_CMAKE)
monitoring/static/js/3771.764124c3.chunk.js monitoring/static/js/3771.764124c3.chunk.js
monitoring/static/js/3771.764124c3.chunk.js.LICENSE.txt monitoring/static/js/3771.764124c3.chunk.js.LICENSE.txt
monitoring/static/js/383.4faec08b.chunk.js monitoring/static/js/383.4faec08b.chunk.js
+ monitoring/static/js/3862.041343ca.chunk.js monitoring/static/js/3862.041343ca.chunk.js
monitoring/static/js/3898.1fec42e6.chunk.js monitoring/static/js/3898.1fec42e6.chunk.js
monitoring/static/js/3920.11b8c9d7.chunk.js monitoring/static/js/3920.11b8c9d7.chunk.js
monitoring/static/js/3926.8f2c9741.chunk.js monitoring/static/js/3926.8f2c9741.chunk.js
@@ -262,7 +261,7 @@ IF (NOT EXPORT_CMAKE)
monitoring/static/js/4198.d0671061.chunk.js monitoring/static/js/4198.d0671061.chunk.js
monitoring/static/js/425.c6dd581a.chunk.js monitoring/static/js/425.c6dd581a.chunk.js
monitoring/static/js/425.c6dd581a.chunk.js.LICENSE.txt monitoring/static/js/425.c6dd581a.chunk.js.LICENSE.txt
- monitoring/static/js/4263.38b7ba04.chunk.js monitoring/static/js/4263.38b7ba04.chunk.js
+ monitoring/static/js/4263.183a56ca.chunk.js monitoring/static/js/4263.183a56ca.chunk.js
monitoring/static/js/4326.d5c34c54.chunk.js monitoring/static/js/4326.d5c34c54.chunk.js
monitoring/static/js/4345.9238776d.chunk.js monitoring/static/js/4345.9238776d.chunk.js
monitoring/static/js/4345.9238776d.chunk.js.LICENSE.txt monitoring/static/js/4345.9238776d.chunk.js.LICENSE.txt
@@ -301,7 +300,6 @@ IF (NOT EXPORT_CMAKE)
monitoring/static/js/5168.6fb23f08.chunk.js monitoring/static/js/5168.6fb23f08.chunk.js
monitoring/static/js/5168.6fb23f08.chunk.js.LICENSE.txt monitoring/static/js/5168.6fb23f08.chunk.js.LICENSE.txt
monitoring/static/js/5226.675d55fb.chunk.js monitoring/static/js/5226.675d55fb.chunk.js
- monitoring/static/js/5293.84db9400.chunk.js monitoring/static/js/5293.84db9400.chunk.js
monitoring/static/js/5311.a500a1ea.chunk.js monitoring/static/js/5311.a500a1ea.chunk.js
monitoring/static/js/5311.a500a1ea.chunk.js.LICENSE.txt monitoring/static/js/5311.a500a1ea.chunk.js.LICENSE.txt
monitoring/static/js/5341.2c19c723.chunk.js monitoring/static/js/5341.2c19c723.chunk.js
@@ -310,10 +308,9 @@ IF (NOT EXPORT_CMAKE)
monitoring/static/js/5373.90c95a6e.chunk.js monitoring/static/js/5373.90c95a6e.chunk.js
monitoring/static/js/5378.86805fba.chunk.js monitoring/static/js/5378.86805fba.chunk.js
monitoring/static/js/5378.86805fba.chunk.js.LICENSE.txt monitoring/static/js/5378.86805fba.chunk.js.LICENSE.txt
- monitoring/static/js/5384.7591e911.chunk.js monitoring/static/js/5384.7591e911.chunk.js
monitoring/static/js/5387.8af1d694.chunk.js monitoring/static/js/5387.8af1d694.chunk.js
monitoring/static/js/5399.f9398084.chunk.js monitoring/static/js/5399.f9398084.chunk.js
- monitoring/static/js/5410.ff2baaff.chunk.js monitoring/static/js/5410.ff2baaff.chunk.js
+ monitoring/static/js/5410.5b33035f.chunk.js monitoring/static/js/5410.5b33035f.chunk.js
monitoring/static/js/5448.cef3c129.chunk.js monitoring/static/js/5448.cef3c129.chunk.js
monitoring/static/js/5450.f0dcfc15.chunk.js monitoring/static/js/5450.f0dcfc15.chunk.js
monitoring/static/js/5491.a460479e.chunk.js monitoring/static/js/5491.a460479e.chunk.js
@@ -336,12 +333,14 @@ IF (NOT EXPORT_CMAKE)
monitoring/static/js/6044.2de9962d.chunk.js.LICENSE.txt monitoring/static/js/6044.2de9962d.chunk.js.LICENSE.txt
monitoring/static/js/6058.7f474f92.chunk.js monitoring/static/js/6058.7f474f92.chunk.js
monitoring/static/js/6065.b08e9640.chunk.js monitoring/static/js/6065.b08e9640.chunk.js
+ monitoring/static/js/6123.bcc7dc27.chunk.js monitoring/static/js/6123.bcc7dc27.chunk.js
monitoring/static/js/6142.b2452554.chunk.js monitoring/static/js/6142.b2452554.chunk.js
monitoring/static/js/6142.b2452554.chunk.js.LICENSE.txt monitoring/static/js/6142.b2452554.chunk.js.LICENSE.txt
monitoring/static/js/6144.e1568f26.chunk.js monitoring/static/js/6144.e1568f26.chunk.js
monitoring/static/js/6156.0c562627.chunk.js monitoring/static/js/6156.0c562627.chunk.js
monitoring/static/js/619.f27ddcbd.chunk.js monitoring/static/js/619.f27ddcbd.chunk.js
monitoring/static/js/619.f27ddcbd.chunk.js.LICENSE.txt monitoring/static/js/619.f27ddcbd.chunk.js.LICENSE.txt
+ monitoring/static/js/6194.f467f444.chunk.js monitoring/static/js/6194.f467f444.chunk.js
monitoring/static/js/620.7aea5425.chunk.js monitoring/static/js/620.7aea5425.chunk.js
monitoring/static/js/6227.fc562bbf.chunk.js monitoring/static/js/6227.fc562bbf.chunk.js
monitoring/static/js/6230.8e64216a.chunk.js monitoring/static/js/6230.8e64216a.chunk.js
@@ -357,12 +356,12 @@ IF (NOT EXPORT_CMAKE)
monitoring/static/js/6329.8763cdf1.chunk.js monitoring/static/js/6329.8763cdf1.chunk.js
monitoring/static/js/6329.8763cdf1.chunk.js.LICENSE.txt monitoring/static/js/6329.8763cdf1.chunk.js.LICENSE.txt
monitoring/static/js/6361.a9f11e7a.chunk.js monitoring/static/js/6361.a9f11e7a.chunk.js
+ monitoring/static/js/6382.7ce31b00.chunk.js monitoring/static/js/6382.7ce31b00.chunk.js
monitoring/static/js/6390.e2ce5781.chunk.js monitoring/static/js/6390.e2ce5781.chunk.js
monitoring/static/js/6390.e2ce5781.chunk.js.LICENSE.txt monitoring/static/js/6390.e2ce5781.chunk.js.LICENSE.txt
monitoring/static/js/6392.9c5364ed.chunk.js monitoring/static/js/6392.9c5364ed.chunk.js
monitoring/static/js/6393.b0de2d9e.chunk.js monitoring/static/js/6393.b0de2d9e.chunk.js
monitoring/static/js/6521.371403ec.chunk.js monitoring/static/js/6521.371403ec.chunk.js
- monitoring/static/js/6581.043e40e7.chunk.js monitoring/static/js/6581.043e40e7.chunk.js
monitoring/static/js/6619.9e1de7a6.chunk.js monitoring/static/js/6619.9e1de7a6.chunk.js
monitoring/static/js/6619.9e1de7a6.chunk.js.LICENSE.txt monitoring/static/js/6619.9e1de7a6.chunk.js.LICENSE.txt
monitoring/static/js/6679.6e0a87d5.chunk.js monitoring/static/js/6679.6e0a87d5.chunk.js
@@ -409,6 +408,7 @@ IF (NOT EXPORT_CMAKE)
monitoring/static/js/7803.a56cfca6.chunk.js monitoring/static/js/7803.a56cfca6.chunk.js
monitoring/static/js/785.d2eae69c.chunk.js monitoring/static/js/785.d2eae69c.chunk.js
monitoring/static/js/785.d2eae69c.chunk.js.LICENSE.txt monitoring/static/js/785.d2eae69c.chunk.js.LICENSE.txt
+ monitoring/static/js/7963.b08b6343.chunk.js monitoring/static/js/7963.b08b6343.chunk.js
monitoring/static/js/7992.20690745.chunk.js monitoring/static/js/7992.20690745.chunk.js
monitoring/static/js/7999.bdf4fe79.chunk.js monitoring/static/js/7999.bdf4fe79.chunk.js
monitoring/static/js/8011.4fed4307.chunk.js monitoring/static/js/8011.4fed4307.chunk.js
@@ -469,17 +469,17 @@ IF (NOT EXPORT_CMAKE)
monitoring/static/js/9555.c9b5ee61.chunk.js monitoring/static/js/9555.c9b5ee61.chunk.js
monitoring/static/js/9572.9f83f004.chunk.js monitoring/static/js/9572.9f83f004.chunk.js
monitoring/static/js/96.6e1bf3f4.chunk.js monitoring/static/js/96.6e1bf3f4.chunk.js
- monitoring/static/js/9610.5ed57d9d.chunk.js monitoring/static/js/9610.5ed57d9d.chunk.js
monitoring/static/js/9621.48073631.chunk.js monitoring/static/js/9621.48073631.chunk.js
monitoring/static/js/9621.48073631.chunk.js.LICENSE.txt monitoring/static/js/9621.48073631.chunk.js.LICENSE.txt
- monitoring/static/js/9870.822da0ba.chunk.js monitoring/static/js/9870.822da0ba.chunk.js
+ monitoring/static/js/9854.4a10d07f.chunk.js monitoring/static/js/9854.4a10d07f.chunk.js
+ monitoring/static/js/9870.f57e1929.chunk.js monitoring/static/js/9870.f57e1929.chunk.js
monitoring/static/js/9876.c4e3221a.chunk.js monitoring/static/js/9876.c4e3221a.chunk.js
monitoring/static/js/9876.c4e3221a.chunk.js.LICENSE.txt monitoring/static/js/9876.c4e3221a.chunk.js.LICENSE.txt
monitoring/static/js/9917.67d792e3.chunk.js monitoring/static/js/9917.67d792e3.chunk.js
monitoring/static/js/9923.270f0a19.chunk.js monitoring/static/js/9923.270f0a19.chunk.js
monitoring/static/js/9923.270f0a19.chunk.js.LICENSE.txt monitoring/static/js/9923.270f0a19.chunk.js.LICENSE.txt
- monitoring/static/js/main.a4a734f7.js monitoring/static/js/main.a4a734f7.js
- monitoring/static/js/main.a4a734f7.js.LICENSE.txt monitoring/static/js/main.a4a734f7.js.LICENSE.txt
+ monitoring/static/js/main.5702199d.js monitoring/static/js/main.5702199d.js
+ monitoring/static/js/main.5702199d.js.LICENSE.txt monitoring/static/js/main.5702199d.js.LICENSE.txt
monitoring/static/media/403.271ae19f0d1101a2c67a904146bbd4d3.svg monitoring/static/media/403.271ae19f0d1101a2c67a904146bbd4d3.svg
monitoring/static/media/403.6367e52f9464706633f52a2488a41958.svg monitoring/static/media/403.6367e52f9464706633f52a2488a41958.svg
monitoring/static/media/codicon.762fced46d6cddbda272.ttf monitoring/static/media/codicon.762fced46d6cddbda272.ttf